:root {
      /* Light theme colors */
      --bg: #ffffff;
      --text: #111111;
      --header-bg: #f7f7f7;
      --nav-link: #444;
      --nav-link-hover: #ff4a4a;
      --card-bg: #f1f1f1;
      --border: #ddd;
      --aside-bg: #f9f9f9;
      --dropdown-bg: #f1f1f1;
      --bubble-bg: #eee;
      --bubble-hover-bg: #ddd;
      --bubble-active-bg: #444;
      --search-bg: #f1f1f1;
      --search-border: #ccc;
      --search-focus-border: #00c3ff;
      --search-focus-shadow: #00c3ff33;
      --search-icon: #888;
      --suggestions-bg: #ffffff;
      --suggestions-border: #ddd;
      --suggestions-shadow: rgba(0, 0, 0, 0.1);
      --suggestion-hover: #f0f0f0;
      --heading-bg: #f0f0f0;
      --heading-text: #666;
      --suggestion-text: #333;
      --match-bg: #00c3ff;
      --match-text: #000;
      --no-results: #999;
      --item-card-bg: #ffffff;
      --item-card-shadow: rgba(0, 0, 0, 0.1);
      --item-details: #666;
      --category-accent: #7b2cff;
      --category-glow: 0 0 4px rgba(123, 44, 255, 0.2);
      --accent-color: #8B5CF6;
      --accent-light: #C4B5FD;
      --accent-dark: #7C3AED;
      --accent-glow: 0 0 8px rgba(139, 92, 246, 0.3);
      --success-color: #10B981;
      --warning-color: #F59E0B;
      --danger-color: #EF4444;
      --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
      --gradient-danger: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
      --primary-color: #6c5ce7;
      --secondary-color: #a29bfe;
      --dark-color: #2d3436;
      --light-color: #f5f6fa;
      --border-radius: 8px;
      --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    body.dark {
      /* Dark theme colors */
      --bg: #121212;
      --text: #e0e0e0;
      --header-bg: #1a1a1a;
      --nav-link: #bbb;
      --nav-link-hover: #ff4a4a;
      --card-bg: #1e1e1e;
      --border: #333;
      --aside-bg: #1a1a1a;
      --dropdown-bg: #252525;
      --bubble-bg: #2d2d2d;
      --bubble-hover-bg: #3d3d3d;
      --bubble-active-bg: #00c3ff;
      --search-bg: #1e1e1e;
      --search-border: #333;
      --search-focus-border: #00c3ff;
      --search-focus-shadow: #00c3ff33;
      --search-icon: #888;
      --suggestions-bg: #1a1a1a;
      --suggestions-border: #333;
      --suggestions-shadow: rgba(0, 0, 0, 0.5);
      --suggestion-hover: #333;
      --heading-bg: #111;
      --heading-text: #999;
      --suggestion-text: #ddd;
      --match-bg: #00c3ff;
      --match-text: #000;
      --no-results: #777;
      --item-card-bg: #1f1f1f;
      --item-card-shadow: rgba(0, 0, 0, 0.4);
      --item-details: #aaa;
      --category-accent: #bb33ff;
      --category-glow: 0 0 10px rgba(187, 51, 255, 0.3);
      --accent-color: #A78BFA;
      --accent-light: #7C3AED;
      --accent-dark: #6D28D9;
      --accent-glow: 0 0 12px rgba(139, 92, 246, 0.4);
      --success-color: #10B981;
      --warning-color: #F59E0B;
      --danger-color: #EF4444;
    }

    /* ===== BASE STYLES ===== */
    body {
      margin: 0;
      font-family: 'Poppins', sans-serif;
      background-color: var(--bg);
      color: var(--text);
      transition: background-color 0.3s ease, color 0.3s ease;
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    header, nav, .item-card, aside, footer, .search-input-wrapper input {
      transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    }

    /* Main content styles */
    main {
      flex: 1;
      padding: 2rem;
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
    }

    .page-title {
      font-size: 2rem;
      margin-bottom: 2rem;
      color: var(--primary-color);
      text-align: center;
    }

    .auth-required {
      text-align: center;
      padding: 2rem;
      background-color: var(--card-bg);
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      max-width: 600px;
      margin: 0 auto;
    }

    .auth-required h2 {
      margin-bottom: 1rem;
      color: var(--text);
    }

    .auth-required p {
      margin-bottom: 1.5rem;
      color: var(--item-details);
    }

    .auth-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
    }

    .auth-buttons .btn {
      padding: 0.75rem 1.5rem;
      border-radius: var(--border-radius);
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .btn-login {
      background-color: var(--bg);
      color: var(--primary-color);
      border: 1px solid var(--primary-color);
    }

    .btn-login:hover {
      background-color: #f5f3ff;
    }

    .btn-signup {
      background-color: var(--primary-color);
      color: white;
      border: 1px solid var(--primary-color);
    }

    .btn-signup:hover {
      background-color: #5649d1;
    }

    /* Token packages section */
    .token-packages {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .package-card {
      background-color: var(--card-bg);
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      padding: 1.5rem;
      transition: all 0.3s ease;
      border: 2px solid transparent;
      display: flex;
      flex-direction: column;
    }

    .package-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .package-card.popular {
      border-color: var(--primary-color);
      position: relative;
    }

    .popular-badge {
      position: absolute;
      top: -10px;
      right: 20px;
      background-color: var(--primary-color);
      color: white;
      padding: 0.25rem 1rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: bold;
    }

    .package-name {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--text);
    }

    .package-tokens {
      font-size: 2rem;
      font-weight: 700;
      color: var(--primary-color);
      margin-bottom: 0.5rem;
    }

    .package-price {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 1rem;
      color: var(--text);
    }

    .package-price span {
      font-size: 1rem;
      color: var(--item-details);
    }

    .package-features {
      margin-bottom: 1.5rem;
      flex-grow: 1;
    }

    .package-features ul {
      list-style: none;
    }

    .package-features li {
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      color: var(--item-details);
    }

    .package-features li::before {
      content: "✓";
      color: var(--success-color);
      margin-right: 0.5rem;
      font-weight: bold;
    }

    .btn-buy {
      width: 100%;
      padding: 0.75rem;
      border: none;
      border-radius: var(--border-radius);
      background-color: var(--primary-color);
      color: white;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn-buy:hover {
      background-color: #5649d1;
    }

    .btn-buy:disabled {
      background-color: #ccc;
      cursor: not-allowed;
    }

    /* Premium section */
    .premium-section {
      background-color: var(--card-bg);
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      padding: 2rem;
      margin-top: 2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .premium-title {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--primary-color);
    }

    .premium-description {
      margin-bottom: 1.5rem;
      color: var(--item-details);
      max-width: 600px;
    }

    .premium-benefits {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      width: 100%;
      margin-bottom: 2rem;
    }

    .benefit-card {
      padding: 1rem;
      border-radius: var(--border-radius);
      background-color: var(--dropdown-bg);
    }

    .benefit-icon {
      font-size: 2rem;
      color: var(--primary-color);
      margin-bottom: 0.5rem;
    }

    .benefit-title {
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--text);
    }

    .benefit-description {
      font-size: 0.9rem;
      color: var(--item-details);
    }

    .btn-premium {
      padding: 0.75rem 2rem;
      border: none;
      border-radius: var(--border-radius);
      background-color: var(--warning-color);
      color: var(--dark-color);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn-premium:hover {
      background-color: #f5a623;
    }

    /* No refunds disclaimer */
    .refund-disclaimer {
      text-align: center;
      margin-top: 2rem;
      padding: 1rem;
      background-color: var(--dropdown-bg);
      border-radius: var(--border-radius);
      color: var(--item-details);
      font-size: 0.9rem;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Loading state */
    .content-loading {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 300px;
      width: 100%;
    }

    .content-spinner {
      width: 40px;
      height: 40px;
      border: 4px solid rgba(108, 92, 231, 0.2);
      border-top-color: var(--primary-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    /* Toast notifications */
    .toast {
      position: fixed;
      top: 20px;
      right: 20px;
      padding: 15px 20px;
      border-radius: var(--border-radius);
      color: white;
      font-weight: 500;
      box-shadow: var(--box-shadow);
      z-index: 1000;
      display: flex;
      align-items: center;
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.3s, transform 0.3s;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .toast.success {
      background-color: var(--success-color);
    }

    .toast.error {
      background-color: var(--danger-color);
    }

    .toast.warning {
      background-color: var(--warning-color);
    }

    .toast i {
      margin-right: 10px;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* Responsive styles */
    @media (max-width: 768px) {
      .token-packages {
        grid-template-columns: 1fr;
      }
    }


    /* ===== AUTH MODAL STYLES ===== */
.auth-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.7) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 10000 !important;
  backdrop-filter: blur(5px) !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

.auth-modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.auth-modal-content {
  background: var(--card-bg) !important;
  border-radius: 16px !important;
  width: 100% !important;
  max-width: 450px !important;
  max-height: 90vh !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  animation: modalSlideIn 0.3s ease-out !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

@keyframes modalSlideIn {
  from {
    opacity: 0 !important;
    transform: translateY(-30px) scale(0.95) !important;
  }
  to {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }
}

.auth-modal-header {
  background: var(--accent-color) !important;
  color: white !important;
  padding: 1.5rem 2rem !important;
  position: relative !important;
  flex-shrink: 0 !important;
  text-align: center !important;
}

.auth-modal-title {
  margin: 0 !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.auth-modal-title i {
  color: var(--boosted-color) !important;
}

.auth-close-modal {
  position: absolute !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  color: white !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 1.2rem !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
}

.auth-close-modal:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: rotate(90deg) !important;
}

.auth-modal-body {
  padding: 2rem !important;
  overflow-y: auto !important;
  flex: 1 !important;
}

.auth-tabs {
  display: flex !important;
  margin-bottom: 1.5rem !important;
  border-bottom: 1px solid var(--border) !important;
}

.auth-tab {
  flex: 1 !important;
  padding: 0.75rem !important;
  text-align: center !important;
  background: none !important;
  border: none !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

.auth-tab.active {
  color: var(--accent-color) !important;
}

.auth-tab.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -1px !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: var(--accent-color) !important;
}

.auth-form {
  display: none !important;
}

.auth-form.active {
  display: block !important;
}

.form-group {
  margin-bottom: 1.25rem !important;
}

.form-group label {
  display: block !important;
  margin-bottom: 0.5rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
}

.form-control {
  width: 100% !important;
  padding: 0.875rem 1rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-size: 1rem !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.form-control:focus {
  outline: none !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.form-error {
  color: var(--error-color) !important;
  font-size: 0.85rem !important;
  margin-top: 0.5rem !important;
  display: none !important;
}

.form-error.show {
  display: block !important;
}

.age-verification {
  margin: 1.5rem 0 !important;
  padding: 1rem !important;
  background: var(--bubble-bg) !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
}

.checkbox-group {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  margin-top: 1rem !important;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem !important;
  flex-shrink: 0 !important;
}

.checkbox-group label {
  font-weight: normal !important;
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
}

.auth-divider {
  display: flex !important;
  align-items: center !important;
  margin: 1.5rem 0 !important;
  color: var(--item-details) !important;
}

.auth-divider::before,
.auth-divider::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: var(--border) !important;
}

.auth-divider span {
  padding: 0 1rem !important;
  font-size: 0.9rem !important;
}

.social-auth {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  margin-bottom: 1.5rem !important;
}

.social-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.social-btn.google {
  background: white !important;
  color: #757575 !important;
  border: 1px solid #ddd !important;
}

.social-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.social-btn.google:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.auth-form-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 1rem !important;
  margin-top: 1.5rem !important;
}

.btn {
  padding: 0.875rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
  font-size: 1rem !important;
  min-width: 120px !important;
}

.btn-secondary {
  background: var(--bubble-bg) !important;
  color: var(--text) !important;
}

.btn-secondary:hover {
  background: var(--bubble-hover-bg) !important;
}

.btn-primary {
  background: var(--accent-color) !important;
  color: white !important;
}

.btn-primary:hover {
  background: var(--nav-link-hover) !important;
  transform: translateY(-2px) !important;
}

.auth-footer {
  text-align: center !important;
  margin-top: 1.5rem !important;
  color: var(--item-details) !important;
  font-size: 0.9rem !important;
}

.auth-footer a {
  color: var(--accent-color) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.auth-footer a:hover {
  text-decoration: underline !important;
}

/* Success/Error notifications */
.auth-notification {
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
  display: none !important;
}

.auth-notification.error {
  background: rgba(248, 113, 113, 0.1) !important;
  border: 1px solid var(--error-color) !important;
  color: var(--error-color) !important;
}

.auth-notification.success {
  background: rgba(74, 222, 128, 0.1) !important;
  border: 1px solid var(--success-color) !important;
  color: var(--success-color) !important;
}

.auth-notification.show {
  display: block !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .auth-modal-overlay {
    padding: 10px !important;
    align-items: flex-start !important;
  }
  
  .auth-modal-content {
    max-height: 95vh !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
  
  .auth-modal-header {
    padding: 1.25rem 1.5rem !important;
  }
  
  .auth-modal-body {
    padding: 1.5rem !important;
  }
  
  .auth-modal-title {
    font-size: 1.3rem !important;
  }
  
  .auth-close-modal {
    top: 1rem !important;
    right: 1rem !important;
  }
}

@media (max-width: 480px) {
  .auth-modal-header {
    padding: 1rem 1.25rem !important;
  }
  
  .auth-modal-body {
    padding: 1.25rem !important;
  }
  
  .auth-form-actions {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .btn {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  .social-btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  .auth-tab {
    padding: 0.5rem !important;
    font-size: 0.9rem !important;
  }
}

/* Add these styles to your CSS */
.social-btn.google {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 8px !important;
  border: 1px solid #ddd !important;
  background: white !important;
  color: #757575 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
}

.social-btn.google:hover {
  background: #f8f9fa !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

.social-btn.google:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.social-btn.google img {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}
/* ===== ENHANCED PAYMENT MODAL STYLES ===== */
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  backdrop-filter: blur(8px);
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.payment-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.payment-modal-content {
  background: var(--card-bg);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.payment-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-purple);
}

.payment-modal-header {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 1.75rem 2rem;
  position: relative;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.payment-close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.payment-close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.payment-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.payment-package-info {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--dropdown-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 极速飞艇);
  border: 1px solid var(--border);
}

.payment-package-name {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.payment-package-tokens {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-package-price {
  font-size: 1.85rem;
  font-weight: 700;
 极速飞艇 var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.payment-package-price::before {
  content: '—';
  margin-right: 0.5rem;
  color: var(--item-details);
}

.payment-package-price::after {
  content: '—';
  margin-left: 0.5rem;
  color: var(--item-details);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.payment-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.payment-option:hover::before {
  left: 100%;
}

.payment-option:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.payment-option.selected {
  border-color: var(--accent-color);
  background-color: rgba(139, 92, 246, 0.08);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.payment-option.selected::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
}

.payment-option-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  font-size: 1.75rem;
  color: var(--accent-color);
  background: rgba(139, 92, 246, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.payment-option-info {
  flex: 1;
}

.payment-option-name {
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1.1rem;
}

.payment-option-description {
  font-size: 0.9rem;
  color: var(--item-details);
  line-height: 1.4;
}

.payment-security-note {
  text-align: center;
  margin: 1.5rem 0;
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  color: var(--success-color);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.payment-security-note i {
  font-size: 1rem;
}

.payment-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Updated Button Styles */
.btn-payment {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.05rem;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-payment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn-payment:hover {
  transform: translateY(-3px);
}

.btn极速飞艇:active {
  transform: translateY(1px);
}

.btn-payment:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-secondary {
  background: var(--bubble-bg);
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: 0 4极速飞艇 12px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: var(--bubble-hover-bg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-light);
}

.btn-pay {
  background: var(--gradient-purple);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-pay:hover {
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.payment-processing {
  text-align: center;
  padding: 2.5rem 2rem;
  display: none;
  background: var(--dropdown-bg);
  border-radius: 12px;
  margin: 1rem 0;
}

.payment-processing.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.payment-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(108, 92, 231, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

.payment-processing-text {
  font-weight: 600;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.payment-processing-subtext {
  color: var(--item-details);
  font-size: 0.9rem;
}

.payment-error {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error-color);
  color: var(--error-color);
  display: none;
  animation: shake 0.5s ease;
}

.payment-error.show {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payment-error i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .payment-modal-overlay {
    padding: 15px;
    align-items: flex-start;
  }
  
  .payment-modal-content {
    max-height: 95vh;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 16px;
  }
  
  .payment-modal-header {
    padding: 1.5rem 1.25rem;
  }
  
  .payment-modal-body {
    padding: 1.5rem;
  }
  
  .payment-modal-title {
    font-size: 1.3rem;
  }
  
  .payment-close-modal {
    top: 1.25rem;
    right: 1.25rem;
  }
  
  .payment-package-tokens {
    font-size: 2.25rem;
  }
  
  .payment-package-price {
    font-size: 1.5rem;
  }
  
  .payment-option {
    padding: 1rem;
  }
  
  .payment-option-icon {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    margin-right: 1rem;
  }
  
  .btn-payment {
    min-width: auto;
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
  
  .payment-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .payment-modal-header {
    padding: 1.25rem 1rem;
  }
  
  .payment-modal-body {
    padding: 1.25rem;
  }
  
  .payment-package-info {
    padding: 1.25rem;
  }
  
  .payment-option {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .payment-option-icon {
    margin-right: 0;
  }
  
  .payment-security-note {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

 /* ===== SIDEBAR STYLES ===== */
    /* Sidebar styles - matching your design system */
    .sidebar {
      width: 250px;
      background-color: var(--aside-bg);
      border-right: 1px solid var(--border);
      padding: 1.5rem 0;
      position: fixed;
      top: 70px; /* Position below header */
      left: 0;
      height: calc(100vh - 70px); /* Full height minus header */
      overflow-y: auto;
      z-index: 999;
    }

    .sidebar::-webkit-scrollbar {
      width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
      background: transparent;
    }

    .sidebar::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 3px;
    }

    .sidebar::-webkit-scrollbar-thumb:hover {
      background: var(--accent-color);
    }

    .sidebar-section {
      margin-bottom: 1.5rem;
      padding: 0 1.5rem;
    }

    .sidebar-section h3 {
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--heading-text);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 600;
    }

    .sidebar-section h3 i {
      font-size: 0.8rem;
      color: var(--accent-color);
    }

    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
      border-radius: 8px;
      text-decoration: none;
      color: var(--text);
      font-size: 0.95rem;
      margin-bottom: 0.25rem;
      transition: all 0.2s ease;
      font-weight: 500;
      border: 1px solid transparent;
    }

    .sidebar-link:hover {
      background-color: var(--bubble-hover-bg);
      color: var(--nav-link-hover);
      border-color: var(--border);
      transform: translateX(2px);
    }

    .sidebar-link.active {
      background-color: var(--accent-color);
      color: white;
      font-weight: 600;
      box-shadow: var(--accent-glow);
      border-color: var(--accent-color);
    }

    .sidebar-link.active i {
      color: white;
    }

    .sidebar-link i {
      width: 20px;
      text-align: center;
      font-size: 16px;
      color: var(--accent-color);
      transition: color 0.2s ease;
    }

    .sidebar-link:hover i {
      color: var(--nav-link-hover);
    }

    .sidebar-link span {
      flex: 1;
    }

    /* Notification badges */
    .sidebar-link .notification-badge {
      background-color: var(--nav-link-hover);
      color: white;
      font-size: 0.75rem;
      font-weight: 600;
      padding: 0.2rem 0.5rem;
      border-radius: 12px;
      min-width: 18px;
      text-align: center;
      line-height: 1;
    }

    /* Status indicators */
    .sidebar-link .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-left: auto;
    }

    .sidebar-link .status-dot.online {
      background-color: #00b894;
    }

    .sidebar-link .status-dot.away {
      background-color: #fdcb6e;
    }

    .sidebar-link .status-dot.busy {
      background-color: #d63031;
    }

    .sidebar-divider {
      height: 1px;
      background-color: var(--border);
      margin: 1.5rem 0;
    }

    /* Special link types */
    .sidebar-link.premium-link {
      position: relative;
    }

    .sidebar-link.premium-link::after {
      content: '✨';
      font-size: 0.7rem;
      margin-left: auto;
      opacity: 0.7;
    }

    .sidebar-link.premium-link:hover::after {
      opacity: 1;
      animation: sparkle 0.6s ease;
    }

    @keyframes sparkle {
      0%, 100% { transform: scale(1) rotate(0deg); }
      50% { transform: scale(1.2) rotate(180deg); }
    }

    /* Mobile Sidebar Styles - matching desktop design */
    .mobile-sidebar {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: var(--aside-bg);
      border-top: 1px solid var(--border);
      z-index: 1000;
      padding: 0.75rem 0 0.5rem 0;
      backdrop-filter: blur(10px);
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-sidebar-section {
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 0 1rem;
      max-width: 500px;
      margin: 0 auto;
    }

    .mobile-sidebar-link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: 50px;
      padding: 0.5rem 0.25rem;
      border-radius: 12px;
      text-decoration: none;
      color: var(--text);
      font-size: 1.1rem;
      transition: all 0.2s ease;
      position: relative;
      border: 1px solid transparent;
    }

    .mobile-sidebar-link i {
      font-size: 1.2rem;
      color: var(--accent-color);
      margin-bottom: 0.25rem;
      transition: all 0.2s ease;
    }

    .mobile-sidebar-link span {
      font-size: 0.7rem;
      font-weight: 500;
      color: var(--heading-text);
      text-align: center;
      line-height: 1;
      opacity: 0.8;
    }

    .mobile-sidebar-link:hover {
      background-color: var(--bubble-hover-bg);
      color: var(--nav-link-hover);
      transform: translateY(-2px);
      border-color: var(--border);
    }

    .mobile-sidebar-link:hover i {
      color: var(--nav-link-hover);
      transform: scale(1.1);
    }

    .mobile-sidebar-link:hover span {
      color: var(--nav-link-hover);
      opacity: 1;
    }

    .mobile-sidebar-link.active {
      background-color: var(--accent-color);
      color: white;
      border-color: var(--accent-color);
      box-shadow: var(--accent-glow);
    }

    .mobile-sidebar-link.active i {
      color: white;
    }

    .mobile-sidebar-link.active span {
      color: white;
      opacity: 1;
      font-weight: 600;
    }

    /* Notification badges for mobile */
    .mobile-sidebar-link .notification-badge {
      position: absolute;
      top: 0.25rem;
      right: 0.25rem;
      background-color: var(--nav-link-hover);
      color: white;
      font-size: 0.6rem;
      font-weight: 600;
      padding: 0.15rem 0.4rem;
      border-radius: 10px;
      min-width: 16px;
      text-align: center;
      line-height: 1;
      border: 2px solid var(--aside-bg);
    }

    /* Status dots for mobile */
    .mobile-sidebar-link .status-dot {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      border: 1px solid var(--aside-bg);
    }

    .mobile-sidebar-link .status-dot.online {
      background-color: #00b894;
    }

    .mobile-sidebar-link .status-dot.away {
      background-color: #fdcb6e;
    }

    .mobile-sidebar-link .status-dot.busy {
      background-color: #d63031;
    }

    /* Responsive design */
    @media (max-width: 1200px) {
      .sidebar {
        width: 80px;
      }
      
      .sidebar-section h3 {
        display: none;
      }
      
      .sidebar-link {
        padding: 0.75rem 0.5rem;
        justify-content: center;
        gap: 0;
      }
      
      .sidebar-link span {
        display: none;
      }
      
      .sidebar-link .notification-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
      }
      
      .sidebar-link .status-dot {
        position: absolute;
        top: 8px;
        right: 8px;
      }
      
      .sidebar-divider {
        margin: 1rem 0.5rem;
      }
    }

    /* Mobile view adjustments */
    @media (max-width: 768px) {
      .mobile-sidebar {
        display: block;
      }
      
      .sidebar {
        display: none;
      }
      
      /* Adjust main content for mobile */
      .profile-page {
        margin-left: 0 !important;
        padding: 1rem !important;
      }
    }

    /* Very small screens */
    @media (max-width: 480px) {
      .mobile-sidebar-section {
        padding: 0 0.5rem;
      }
      
      .mobile-sidebar-link {
        min-width: 45px;
        padding: 0.4rem 0.2rem;
      }
      
      .mobile-sidebar-link i {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
      }
      
      .mobile-sidebar-link span {
        font-size: 0.65rem;
      }
    }

    /* Entrance animation for mobile */
    .mobile-sidebar {
      animation: slideUpMobile 0.3s ease-out;
    }

    @keyframes slideUpMobile {
      from {
        transform: translateY(100%);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    /* Individual link animation */
    .mobile-sidebar-link {
      animation: fadeInUp 0.4s ease-out backwards;
    }

    .mobile-sidebar-link:nth-child(1) { animation-delay: 0.1s; }
    .mobile-sidebar-link:nth-child(2) { animation-delay: 0.15s; }
    .mobile-sidebar-link:nth-child(3) { animation-delay: 0.2s; }
    .mobile-sidebar-link:nth-child(4) { animation-delay: 0.25s; }
    .mobile-sidebar-link:nth-child(5) { animation-delay: 0.3s; }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Smooth entrance animation */
    .sidebar-link {
      opacity: 0;
      animation: slideIn 0.3s ease forwards;
    }

    .sidebar-link:nth-child(1) { animation-delay: 0.1s; }
    .sidebar-link:nth-child(2) { animation-delay: 0.15s; }
    .sidebar-link:nth-child(3) { animation-delay: 0.2s; }
    .sidebar-link:nth-child(4) { animation-delay: 0.25s; }
    .sidebar-link:nth-child(5) { animation-delay: 0.3s; }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateX(-20px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* Sidebar specific font tweaks */
    .sidebar-section h3 {
      font-family: 'Inter', sans-serif;
      font-weight: 700;
      letter-spacing: 0.6px;
    }

    .sidebar-link span,
    .mobile-sidebar-link span {
      font-family: 'Inter', sans-serif;
      font-weight: 500;
    }

    .sidebar-link.active span,
    .mobile-sidebar-link.active span {
      font-weight: 600;
    }

header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 1.5rem;
      background: var(--header-bg);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
      height: 70px;
      box-sizing: border-box;
    }

    /* Dark mode toggle inside settings dropdown */
.dark-mode-toggle-container {
  padding: 0.75rem 1rem;
  margin: 0;
  border-top: 1px solid var(--border); /* Keep only top border */
  /* Remove border-bottom */
}

.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.dark-mode-toggle:hover {
  background-color: var(--bubble-hover-bg);
}

.dark-mode-toggle i {
  font-size: 1rem;
  color: var(--accent-color);
  margin-right: 0.75rem;
}

.dark-mode-text {
  flex: 1;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
}

.dark-mode-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: var(--bubble-bg);
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

body.dark .dark-mode-switch {
  background-color: var(--accent-color);
}

.dark-mode-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

body.dark .dark-mode-slider {
  transform: translateX(20px);
}

/* Remove the old standalone dark mode toggle */
.dark-mode-toggle:not(.dark-mode-toggle-container .dark-mode-toggle) {
  display: none;
}

/* Settings menu adjustments for the new toggle */
.settings-menu {
  width: 220px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.settings-menu a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  margin: 0;
  box-sizing: border-box;
}

.settings-menu a i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
}

.settings-menu a:hover {
  background-color: var(--bubble-hover-bg);
}

.signout-link {
  color: #e74c3c !important;
  border-top: 1px solid var(--border);
}

.signout-link:hover {
  background-color: rgba(231, 76, 60, 0.1) !important;
}

/* ===== PREMIUM MODAL STYLES ===== */
.premium-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10002;
  backdrop-filter: blur(12px);
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.premium-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.premium-modal-content {
  background: #1e1f2e;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;  /* changed from 480px */
  max-height: 90vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.2);
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.25);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.premium-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B5CF6, #a78bfa, #8B5CF6);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.premium-modal-header {
  background: linear-gradient(135deg, #2d1f6e 0%, #1a1040 100%);
  color: white;
  padding: 2rem 2rem 1.5rem;
  position: relative;
  flex-shrink: 0;
  text-align: center;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.premium-modal-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.premium-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #e2d9ff;
  letter-spacing: 0.3px;
}

.premium-modal-title i {
  color: #a78bfa;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6));
}

.premium-close-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0a0b0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.premium-close-modal:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: rotate(90deg);
}

.premium-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
  background: #1e1f2e;
}

.premium-package-info {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a1f5e 0%, #1e1a45 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: visible;  /* changed from hidden */
  margin-top: 1.5rem; /* increased to give badge room */
}

.premium-package-info::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.premium-badge {
  position: absolute;
  top: -14px;  /* changed from -10px */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
  padding: 0.35rem 1.25rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  white-space: nowrap;  /* added so it never wraps */
}

.premium-package-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #e2d9ff;
  margin-top: 0.5rem;
}

.premium-package-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: #a78bfa;
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
  margin-bottom: 0;
  line-height: 1;
}

.premium-package-price span {
  font-size: 1rem;
  color: #7a7a9a;
  font-weight: 400;
  vertical-align: middle;
}

.premium-features {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.12);
  transition: all 0.2s ease;
}

.premium-feature:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
}

.premium-feature i {
  color: #8B5CF6;
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  color: #d4d0f0;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.feature-text span {
  color: #6e6e8e;
  font-size: 0.82rem;
}

/* Payment section stays mostly the same but themed */
.premium-payment-options {
  margin: 1.25rem 0;
}

.premium-payment-options h4 {
  margin-bottom: 0.875rem;
  color: #a0a0c0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.premium-payment-option {
  margin-bottom: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
}

.premium-payment-option:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.06);
}

.premium-payment-option.selected {
  border-color: #8B5CF6;
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.premium-security-note {
  text-align: center;
  margin: 1.25rem 0;
  padding: 0.7rem;
  background: rgba(16, 185, 129, 0.07);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.premium-processing {
  text-align: center;
  padding: 1.5rem;
  display: none;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 12px;
  margin: 1rem 0;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.premium-processing.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.premium-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8B5CF6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.premium-processing-text {
  font-weight: 600;
  color: #d4d0f0;
}

.premium-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-premium-cancel {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);  /* purple border instead of white */
  background: rgba(139, 92, 246, 0.08);        /* subtle purple tint */
  color: #a78bfa;                               /* purple text */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.btn-premium-cancel:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
}

.btn-premium-subscribe {
  flex: 2;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-premium-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-premium-subscribe:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

@media (max-width: 768px) {
  .premium-modal-content {
    max-height: 95vh;
    margin: 20px 0;
    border-radius: 12px;
  }
  
  .premium-modal-body {
    padding: 1.25rem;
  }
  
  .premium-actions {
    flex-direction: column;
  }
  
  .btn-premium-cancel,
  .btn-premium-subscribe {
    width: 100%;
  }
}

.premium-modal-overlay {
  overflow: hidden;
}

.premium-modal-body::-webkit-scrollbar {
  display: none;
}

.premium-modal-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Verification badge preview for premium features */
.verification-badge-preview {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

/* Verification badge image styling for premium features */
.verification-badge-image {
  width: 48px;
  height: 48px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Reduced from 0.75rem */
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-color);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0px;
  text-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
  line-height: 1;
  margin: 0;
}

/* ===== NOTIFICATION STYLES ===== */
.notifications {
  position: relative;
  margin-right: 0.5rem;
}

.notification-bell {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0.5rem;
  color: var(--nav-link);
  font-size: 1.2rem;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.notification-bell:hover {
  background-color: var(--bubble-hover-bg);
  color: var(--nav-link-hover);
}

.notification-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--nav-link-hover);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  width: 350px;
  max-height: 500px;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  display: none;
  z-index: 100;
  overflow: hidden;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.notification-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.mark-all-read {
  background: none;
  border: none;
  color: var(--nav-link-hover);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

.mark-all-read:hover {
  text-decoration: underline;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--nav-link-hover);
  transition: all 0.2s ease;
}

.notification-item.unread {
  background: rgba(255,74,74,0.1);
  border-left: 3px solid var(--nav-link-hover);
}

.notification-item:hover {
  background: rgba(255,255,255,0.1);
}

.notification-time {
  font-size: 0.7rem;
  color: var(--nav-link);
  margin-top: 0.25rem;
}

.no-notifications {
  text-align: center;
  padding: 1rem;
  color: var(--nav-link);
  font-style: italic;
}

body.logged-in .notifications {
  display: block !important;
}

/* Show dropdown on hover */
.notifications:hover .notification-dropdown {
  display: block;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .notification-dropdown {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    height: calc(100vh - 56px);
    border-radius: 0;
    z-index: 1003;
  }
  
  .notifications:hover .notification-dropdown {
    display: none;
  }
  
  /* Mobile-specific trigger */
  .notifications.mobile-open .notification-dropdown {
    display: flex;
    animation: slideInFromRight 0.3s ease-out;
  }
  
  @keyframes slideInFromRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
}

/* Notification list scrollbar styling */
.notification-list::-webkit-scrollbar {
  width: 8px;
}

.notification-list::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
  margin: 4px;
}

.notification-list::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 4px;
  border: 1px solid #333333;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: #111111;
  border: 1px solid #444444;
}

.notification-list::-webkit-scrollbar-thumb:active {
  background: #222222;
}

/* Firefox support for black scrollbar */
.notification-list {
  scrollbar-width: thin;
  scrollbar-color: #000000 #1a1a1a;
}

/* Dark theme support */
.dark-mode .notification-list::-webkit-scrollbar-track {
  background: #2d2d2d;
}

.dark-mode .notification-list::-webkit-scrollbar-thumb {
  background: #000000;
  border: 1px solid #555555;
}

.dark-mode .notification-list::-webkit-scrollbar-thumb:hover {
  background: #111111;
  border: 1px solid #666666;
}

.dark-mode .notification-list {
  scrollbar-color: #000000 #2d2d2d;
}
