/* Custom Premium Design System */
:root {
  --bg-dark: #0a0b10;
  --bg-panel: rgba(16, 18, 27, 0.45);
  --bg-card: rgba(22, 25, 38, 0.7);
  --bg-card-hover: rgba(28, 32, 48, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.2);
  
  /* Primary Colors */
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.35);
  
  --secondary: #4b5563;
  --secondary-hover: #6b7280;
  
  /* Status Colors */
  --color-online: #10b981;
  --color-online-glow: rgba(16, 185, 129, 0.3);
  
  --color-offline: #9ca3af;
  
  --color-connecting: #f59e0b;
  --color-connecting-glow: rgba(245, 158, 11, 0.3);
  
  --color-guard: #ef4444;
  --color-guard-glow: rgba(239, 68, 68, 0.3);
  
  --color-error: #ef4444;
  
  /* Text */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;
  
  /* Layout */
  --max-width: 1440px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

a {
  color: var(--primary-hover);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  text-decoration: underline;
}

.app-container {
  width: 100%;
  max-width: var(--max-width);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--color-online);
  color: white;
  box-shadow: 0 4px 14px var(--color-online-glow);
}
.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
}

.btn-danger-outline {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  transform: translateY(-2px);
}

.btn-icon {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  padding: 0;
}
.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Stats Summary */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--primary-hover); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--color-online); }
.stat-icon.yellow { background: rgba(245, 158, 11, 0.15); color: var(--color-connecting); }
.stat-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--color-guard); }

.stat-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
}
.stat-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Global Controls */
.global-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}
.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-family: inherit;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

/* Accounts Grid */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  min-height: 200px;
}

.game-tag-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem;
  border-radius: 6px;
  width: auto;
  height: 30px;
}
.game-tag-img img {
  max-height: 100%;
  border-radius: 4px;
}
.fallback-tag {
  font-size: 0.8rem;
  color: #e5e7eb;
  padding: 0 0.4rem;
}

.no-accounts {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-panel);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.no-accounts-icon {
  margin-bottom: 1.25rem;
  color: var(--primary-hover);
  opacity: 0.8;
}
.no-accounts p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.no-accounts .subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Account Card */
.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

@keyframes spin-border {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.premium-avatar.farming-spin {
  position: relative;
}

.premium-avatar.farming-spin::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px dashed #a855f7;
  animation: spin-border 4s linear infinite;
  opacity: 0.8;
  pointer-events: none;
}

.account-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.username-container h4 {
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.offline { background: rgba(156, 163, 175, 0.15); color: var(--color-offline); }
.status-badge.connecting { background: rgba(245, 158, 11, 0.15); color: var(--color-connecting); }
.status-badge.online { background: rgba(16, 185, 129, 0.15); color: var(--color-online); }
.status-badge.steam_guard { background: rgba(239, 68, 68, 0.15); color: var(--color-guard); }
.status-badge.error { background: rgba(239, 68, 68, 0.15); color: var(--color-error); }
.status-badge.logged_in_elsewhere { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pulse-badge .status-dot {
  animation: pulse-dot 1.5s infinite;
}

/* Card Body */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.info-row .label {
  color: var(--text-muted);
}
.info-row .value {
  font-weight: 600;
}
.info-row .value.active-timer {
  color: var(--color-online);
  font-family: monospace;
  font-size: 0.95rem;
}

.games-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.game-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.card-actions .actions-left {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

.card-actions .btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  flex: 1;
}

.btn-delete-account {
  background: transparent;
  color: var(--text-dark);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-delete-account:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.btn-edit-account {
  background: transparent;
  color: var(--text-dark);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-edit-account:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-hover);
}


/* 2FA Guard Box */
.guard-input-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  animation: slide-down 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.guard-input-container label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f87171;
}
.guard-input-row {
  display: flex;
  gap: 0.5rem;
}
.guard-input-row input {
  flex: 1;
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-family: inherit;
  color: white;
  font-size: 0.9rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  outline: none;
}
.guard-input-row input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  overflow-y: auto;
  padding: 3rem 0;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #11131e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: var(--transition);
  overflow: hidden;
}
.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.modal-close:hover {
  color: white;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.form-group input {
  background: #181a26;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: inherit;
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.25);
}
.form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: #0f1019;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1100;
  max-width: 380px;
  width: 100%;
}

.toast {
  background: rgba(17, 19, 30, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  animation: slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition);
}
.toast.success { border-left-color: var(--color-online); }
.toast.error { border-left-color: var(--color-error); }
.toast.info { border-left-color: var(--primary); }
.toast.warning { border-left-color: var(--color-connecting); }

.toast-message {
  font-size: 0.9rem;
  font-weight: 500;
}
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}
.toast-close:hover {
  color: white;
}

/* Keyframes & Animations */
@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px currentColor; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-down {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pulse-text {
  animation: text-pulse 2s infinite ease-in-out;
}
@keyframes text-pulse {
  0%, 100% { text-shadow: 0 0 0px transparent; }
  50% { text-shadow: 0 0 10px var(--color-online-glow); color: #34d399; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }
  .brand {
    justify-content: center;
  }
  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  .global-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
  .action-buttons {
    justify-content: stretch;
  }
  .action-buttons button {
    flex: 1;
  }
}

/* Quick Games Selector Styles */
.quick-games-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.quick-game-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.quick-game-btn:hover {
  background: var(--primary-glow);
  border-color: var(--primary-hover);
  color: #fff;
}

.quick-game-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Subscription Status Bar */
.subscription-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.sub-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.sub-icon {
  font-size: 1.25rem;
}

/* Billing Plan Cards Selector */
.billing-plan-card {
  transition: var(--transition);
}
.billing-plan-card:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--primary-hover) !important;
}
.billing-plan-card.selected {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

/* Preferences Switchers Styles */
.preferences-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.preferences-dropdown {
  position: relative;
  display: inline-block;
}

.preferences-dropdown .dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
  height: 44px;
}

.preferences-dropdown .dropdown-trigger:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.preferences-dropdown .chevron-icon {
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.preferences-dropdown.active .chevron-icon {
  transform: rotate(180deg);
}

.preferences-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 220px;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 100;
  animation: dropdown-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.preferences-dropdown .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.preferences-dropdown .dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.preferences-dropdown .dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
}

.preferences-dropdown .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

@keyframes dropdown-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.preferences-dropdown.active .dropdown-menu {
  display: block;
}

.preferences-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
}

.preferences-dropdown .dropdown-item:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-hover);
}

.preferences-dropdown .dropdown-item.selected {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
  font-weight: 600;
}

.preferences-dropdown .flag-icon {
  font-size: 1.1rem;
  display: inline-block;
  line-height: 1;
}

.preferences-dropdown .currency-symbol {
  font-weight: 700;
  color: var(--primary-hover);
}

/* ========================================= */
/* PREMIUM ACCOUNT CARD CSS                  */
/* ========================================= */

.premium-card {
  background: #0f111a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
  border-color: rgba(96, 165, 250, 0.15);
}

.premium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.premium-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.premium-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.premium-username {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.premium-profile-link {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}
.premium-profile-link:hover { color: #fff; }

.premium-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 0.3rem;
}
.status-farming {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-offline {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}
.status-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-guard {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-elsewhere {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-dot-small {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
}

.premium-header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.premium-header-right svg {
  color: #c084fc;
}

.premium-section-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.premium-section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.box-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.box-icon.purple { background: rgba(147, 51, 234, 0.15); color: #d8b4fe; }
.box-icon.blue { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.box-icon.green { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.box-icon.red { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.box-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.box-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.box-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.box-value.glow-green {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.games-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.game-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.progress-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.progress-list {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.progress-item-name {
  width: 60px;
  font-size: 0.8rem;
  color: #d1d5db;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.progress-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}
.progress-value {
  font-size: 0.8rem;
  color: #9ca3af;
  width: 45px;
  text-align: right;
}

.total-hours-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}
.total-hours-box .box-icon { margin-bottom: 0.5rem; width: 30px; height: 30px; }
.total-hours-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.auth-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-actions {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.5rem;
}

.premium-btn {
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.premium-btn.red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}
.premium-btn.red:hover { background: rgba(239, 68, 68, 0.2); }

.premium-btn.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}
.premium-btn.blue:hover { background: rgba(59, 130, 246, 0.2); }

.premium-btn.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}
.premium-btn.green:hover { background: rgba(16, 185, 129, 0.2); }

.bottom-status-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}
.status-item svg { width: 16px; height: 16px; margin-bottom: 0.2rem; }
.status-item .label { font-size: 0.65rem; color: #9ca3af; }
.status-item .val { font-size: 0.7rem; color: #d1d5db; font-weight: 600; }
/* --- HELP BOT WIDGET --- */
.help-bot-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.help-bot-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.help-bot-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  max-height: 500px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.help-bot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.help-bot-header {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-bot-messages {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 300px;
}

.help-bot-messages::-webkit-scrollbar {
  width: 5px;
}
.help-bot-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}

.bot-msg {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #e2e8f0;
  padding: 0.8rem 1rem;
  border-radius: 12px 12px 12px 2px;
  font-size: 0.9rem;
  line-height: 1.4;
  align-self: flex-start;
  max-width: 85%;
  animation: popIn 0.3s ease forwards;
}

.user-msg {
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 12px 12px 2px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  align-self: flex-end;
  max-width: 85%;
  animation: popIn 0.3s ease forwards;
}

.help-bot-options {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bot-option-btn {
  background: var(--background);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.bot-option-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  margin-right: 4px;
  animation: typing 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .help-bot-window {
    width: calc(100% - 40px);
    right: 20px;
    bottom: 90px;
  }
  .help-bot-btn {
    bottom: 20px;
    right: 20px;
  }
}
