:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #764ba2;
  --accent: #f093fb;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text-dark: #1a202c;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #53a0fd 75%, #667eea 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  opacity: 0.1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.server-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-features {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-badge {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Container & Grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  min-height: calc(100vh - 497px);
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.grid > .card {
  width: 350px;
  flex-shrink: 0;
}

.grid > .announcements-card {
  width: 350px;
}

/* Card Styles */
.card {
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  height: 680px;
  display: flex;
  flex-direction: column;
}

.card > * {
  flex-shrink: 0;
}

.card .widget-content,
.card .purchase-form,
.card .sales-list,
.card .vk-widget-wrapper,
.card .auth-form {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Scrollbar styles for card content */
.card .widget-content::-webkit-scrollbar,
.card .purchase-form::-webkit-scrollbar,
.card .sales-list::-webkit-scrollbar,
.card .vk-widget-wrapper::-webkit-scrollbar,
.card .auth-form::-webkit-scrollbar {
  width: 10px;
}

.card .widget-content::-webkit-scrollbar-track,
.card .purchase-form::-webkit-scrollbar-track,
.card .sales-list::-webkit-scrollbar-track,
.card .vk-widget-wrapper::-webkit-scrollbar-track,
.card .auth-form::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.card .widget-content::-webkit-scrollbar-thumb,
.card .purchase-form::-webkit-scrollbar-thumb,
.card .sales-list::-webkit-scrollbar-thumb,
.card .vk-widget-wrapper::-webkit-scrollbar-thumb,
.card .auth-form::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  border: 2px solid rgba(102, 126, 234, 0.15);
  backdrop-filter: blur(10px);
}

.card .widget-content::-webkit-scrollbar-thumb:hover,
.card .purchase-form::-webkit-scrollbar-thumb:hover,
.card .sales-list::-webkit-scrollbar-thumb:hover,
.card .vk-widget-wrapper::-webkit-scrollbar-thumb:hover,
.card .auth-form::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Featured Card */
.featured {
  grid-column: span 1;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

/* Status Indicator */
.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.status-indicator.online {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.status-indicator.online::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--success);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Forms */
.purchase-form,
.auth-form {
  padding: 22px 24px;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  margin-bottom: 15px;
  animation: slideDown 0.3s ease;
}

.error-icon {
  font-size: 18px;
  color: #dc3545;
  font-weight: bold;
}

.error-text {
  color: #dc3545;
  font-size: 14px;
  font-weight: 500;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

.form-group small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  margin-top: 30px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--primary);
}

/* Sales List */
.sales-list {
  padding: 20px 25px;
}

.sales-list section {
  padding: 15px;
  margin-bottom: 12px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.sales-list section:hover {
  background: white;
  border-color: var(--primary);
  transform: translateX(5px);
}

.sales-list section:last-child {
  margin-bottom: 0;
}

.sales-list p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
}

.sales-list p b {
  color: var(--primary);
  font-weight: 700;
}

.sales-list .highlight-sale {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Widget Content */
.widget-content {
  padding: 20px 25px;
}

.vk-widget-wrapper {
  padding: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: visible;
  min-height: 400px;
}

.vk-widget-wrapper > div {
  flex: 1;
  width: 100%;
  min-height: 380px;
}

.vk-widget-wrapper #vk_groups {
  border-radius: 12px;
  overflow: visible;
  width: 100% !important;
  height: 100%;
}

.vk-widget-wrapper iframe {
  width: 100% !important;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  background: white;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .featured {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .container {
    padding: 0 15px 40px;
  }

  .card-header {
    padding: 15px 20px;
  }

  .purchase-form,
  .auth-form {
    padding: 20px;
  }
}

/* Server Monitoring */
.server-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.server-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
}

.server-item-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.server-header-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.server-info-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.server-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.server-address-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.server-address-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.server-item:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.server-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.server-status.online {
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
}

.server-status.offline {
    background: var(--danger);
    box-shadow: 0 0 12px var(--danger);
}

.server-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--primary);
    flex: 1;
}

.server-map {
    font-size: 13px;
    color: var(--text-light);
}

.server-stat {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.server-address {
    font-size: 12px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.server-address:hover {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--primary);
}

.server-map-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

.server-map-time-mini {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
}

.server-address {
    font-size: 14px;
}

.steam-connect-btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.3);
    margin-left: auto;
}

.steam-connect-btn-mini:hover {
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.steam-connect-btn-mini img {
    filter: drop-shadow(0 0 2px rgba(102, 126, 234, 0.5));
}

.info-value-with-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.info-value-with-map {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.server-address-modal {
    font-size: 14px;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

/* Кастомный скроллбар для модального окна */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Скроллбар для списка серверов */
.server-list::-webkit-scrollbar {
    width: 8px;
}

.server-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

.server-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(8px);
}

.server-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(102, 126, 234, 0.35);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.modal-close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

/* Миниатюра карты в списке серверов */
.server-map-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Детальная информация о сервере */
.server-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

.map-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.server-map-large {
    width: 100%;
    height: auto;
    display: block;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-row:hover {
    background: #f0f4ff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.info-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.info-value {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.status-online {
    color: var(--success);
    font-weight: 700;
}

.status-offline {
    color: var(--danger);
    font-weight: 700;
}

/* Таблица игроков */
.players-title {
    margin: 25px 0 15px;
    color: var(--primary);
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.player-list-table {
    margin-top: 15px;
}

.player-header,
.player-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    padding: 10px;
    align-items: center;
}

.player-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.player-row {
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    transition: all 0.3s ease;
}

.player-row:last-child {
    border-radius: 0 0 8px 8px;
}

.player-row:hover {
    background: #f0f4ff;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.player-name-col {
    text-align: left;
    font-weight: 500;
    color: var(--text-dark);
}

.player-stat-col {
    text-align: center;
    font-weight: 600;
}

.player-kills {
    color: var(--success);
}

.player-deaths {
    color: var(--danger);
}

.player-score {
    color: var(--secondary);
}

.no-players {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-style: italic;
}

/* Старые стили для обратной совместимости */
.server-details {
    margin: 20px 0;
}

.server-details p {
    margin: 10px 0;
    font-size: 16px;
    color: var(--text-dark);
}

.player-list {
    margin-top: 20px;
}

.player-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 5px;
    margin-bottom: 5px;
}

/* Scrollbar for server list */
.server-list::-webkit-scrollbar {
    width: 8px;
}

.server-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.server-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.server-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Mobile Responsive for New Features */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .server-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .server-item-header {
        flex-wrap: wrap;
        width: 100%;
    }

    .server-item-footer {
        flex-wrap: wrap;
        width: 100%;
    }

    .server-info-block {
        flex: 1;
        min-width: 0;
    }

    .server-stats {
        width: 100%;
    }

    .server-address-group {
        flex-wrap: wrap;
    }

    .announcements-card {
        width: 100%;
    }

    .announcements-list {
        max-height: 60vh;
    }
}

.player-time {
    color: var(--primary);
}

/* Privilege Description Card */
.privilege-description-card {
    display: flex;
    flex-direction: column;
}

.privilege-description-content {
    padding: 15px 18px;
    line-height: 1.5;
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
}

.privilege-description-content p {
    margin: 6px 0;
    color: var(--text-secondary);
    line-height: 1.3;
}

.privilege-description-content strong {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.5;
}

.privilege-description-content ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.privilege-description-content li {
    padding: 3px 0;
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.privilege-description-content li:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.description-placeholder {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 40px 20px;
    font-size: 16px;
}

/* Scrollbar for privilege description */
.privilege-description-content::-webkit-scrollbar {
    width: 10px;
}

.privilege-description-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.privilege-description-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.privilege-description-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Announcements Card */
.announcements-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 560px;
    overflow-y: auto;
}

.announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-light);
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.announcement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.announcement-item:hover::before {
    opacity: 1;
}

.announcement-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
}

/* Announcement types */
.announcement-success {
    border-left-color: #28a745;
}

.announcement-success .announcement-icon {
    background: rgba(40, 167, 69, 0.08);
    border-color: rgba(40, 167, 69, 0.2);
}

.announcement-success .announcement-title {
    color: #28a745;
}

.announcement-success::before {
    background: linear-gradient(180deg, #28a745, #1e7e34);
}

.announcement-info {
    border-left-color: var(--primary);
}

.announcement-info .announcement-icon {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.announcement-info .announcement-title {
    color: var(--primary);
}

.announcement-warning {
    border-left-color: #ffc107;
}

.announcement-warning .announcement-icon {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.2);
}

.announcement-warning .announcement-title {
    color: #d39e00;
}

.announcement-warning::before {
    background: linear-gradient(180deg, #ffc107, #e0a800);
}

.announcement-danger {
    border-left-color: #dc3545;
}

.announcement-danger .announcement-icon {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.2);
}

.announcement-danger .announcement-title {
    color: #dc3545;
}

.announcement-danger::before {
    background: linear-gradient(180deg, #dc3545, #bd2130);
}

.no-announcements {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 40px 20px;
    font-size: 16px;
}

/* Scrollbar for announcements */
.announcements-list::-webkit-scrollbar {
    width: 10px;
}

.announcements-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.announcements-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.announcements-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* ============================================
   BANLIST STYLES
   ============================================ */

/* Banlist Card */
.banlist-card {
    grid-column: span 1;
}

.banlist-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.banlist-server-select {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.banlist-server-select select {
    width: 100%;
    padding: 10px 15px;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banlist-server-select select:hover,
.banlist-server-select select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

.banlist-server-select select option {
    background: var(--bg-card);
    color: var(--text-dark);
}

/* Banlist List (similar to sales-list) */
.banlist-list {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    max-height: 480px;
}

.banlist-list::-webkit-scrollbar {
    width: 10px;
}

.banlist-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.banlist-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.banlist-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(102, 126, 234, 0.3);
}

.banlist-item {
    padding: 15px;
    margin-bottom: 12px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banlist-item:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(5px);
}

.banlist-item:last-child {
    margin-bottom: 0;
}

.banlist-item.ban-active {
    border-left: 3px solid var(--danger);
}

.banlist-item.ban-expired {
    border-left: 3px solid var(--success);
    opacity: 0.85;
}

.banlist-item.ban-expired:hover {
    opacity: 1;
}

.banlist-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.banlist-item-player {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.banlist-item-date {
    font-size: 12px;
    color: var(--text-light);
}

.banlist-item-info {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.banlist-item-reason {
    color: var(--text-light);
}

.banlist-item-length {
    font-weight: 600;
    color: var(--secondary);
}

.banlist-item-admin {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.banlist-item-admin strong {
    color: var(--primary);
    font-weight: 600;
}

/* Banlist States */
.banlist-loading,
.banlist-empty,
.banlist-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
}

.banlist-loading {
    color: var(--primary);
}

.banlist-error {
    color: var(--danger);
}

/* Banlist Pagination */
.banlist-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.banlist-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banlist-page-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.banlist-page-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.banlist-page-dots {
    color: var(--text-light);
    padding: 0 4px;
    font-size: 12px;
}

/* Ban Modal */
.ban-modal-content {
    max-width: 500px;
}

.ban-modal-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.ban-status-icon {
    font-size: 28px;
}

.ban-details {
    padding: 10px 0;
}

.ban-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ban-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ban-detail-row:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.ban-detail-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ban-detail-value {
    color: var(--text-dark);
    font-size: 14px;
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

.ban-detail-value.ban-reason {
    color: var(--secondary);
    font-weight: 600;
}

.ban-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ban-status-badge.active {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.ban-status-badge.expired {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

/* Responsive Banlist */
@media (max-width: 768px) {
    .banlist-header,
    .banlist-row {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .banlist-col-reason,
    .banlist-col-date {
        display: none;
    }

    .banlist-header {
        font-size: 11px;
    }

    .banlist-row {
        font-size: 12px;
    }

    .ban-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .ban-detail-value {
        text-align: left;
        max-width: 100%;
    }
}

/* Profile Card */
.profile-card .profile-content {
    padding: 20px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.avatar-icon {
    font-size: 40px;
    filter: brightness(2);
}

.profile-details {
    flex: 1;
}

.profile-nick {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.server-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-dark);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-item {
    padding: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.change-password-form {
    margin-top: 24px;
}

.form-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.btn-logout {
    width: 100%;
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-logout:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
}

/* My Privileges Card */
.my-privileges-list {
    padding: 20px;
}

.privilege-item {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.privilege-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.privilege-item.expired {
    border-color: #dee2e6;
    opacity: 0.7;
    background: #f8f9fa;
}

.privilege-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.privilege-server {
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-icon {
    font-size: 20px;
}

.server-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.privilege-status {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-expired {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.privilege-address {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.privilege-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.privilege-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: var(--bg-light);
    border-radius: 6px;
}

.privilege-info .info-label {
    font-size: 12px;
    color: var(--text-light);
}

.privilege-info .info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.no-privileges {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.notification-error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.notification-icon {
    font-size: 20px;
}

