/* ================================
   MOBILE HORIZONTAL SCROLL FIX
   Copy this to the VERY TOP of your style.css
   ================================ */

/* Critical: Prevent horizontal scroll */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

body {
  position: relative;
}

/* Fix all containers */
* {
  box-sizing: border-box;
}

/* Mobile-specific fixes */
@media (max-width: 767px) {
  /* Fix navigation layout */
  .nav-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 12px !important;
    gap: 8px !important;
    max-width: 100vw !important;
    overflow: visible !important;
  }
  
  .nav-brand {
    flex-shrink: 0;
    font-size: 1rem !important;
    gap: 6px !important;
  }
  
  .nav-icon {
    width: 28px !important;
    height: 28px !important;
  }
  
  .nav-menu {
    display: flex !important;
    gap: 4px !important;
    flex-shrink: 1;
    justify-content: center;
    overflow: visible !important;
  }
  
  .nav-link {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
  }
  
  .nav-user {
    display: flex !important;
    gap: 8px !important;
    align-items: center;
    flex-shrink: 0;
  }
  
  /* Hide username on mobile to save space */
  .nav-username {
    display: none !important;
  }
  
  .btn-logout {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }
  
  /* Fix dashboard layout */
  .dashboard-layout {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    gap: 16px !important;
    max-width: 100vw !important;
  }
  
  /* Fix sidebar */
  .sidebar-card {
    padding: 16px !important;
    max-width: 100% !important;
  }
  
  .sidebar-avatar {
    width: 60px !important;
    height: 60px !important;
  }
  
  .sidebar-username {
    font-size: 1.1rem !important;
  }
  
  .sidebar-email {
    font-size: 0.8rem !important;
    word-break: break-all;
  }
  
  /* Fix stats grid */
  .sidebar-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  
  .stat-item {
    padding: 10px 6px !important;
    min-width: 0;
  }
  
  .stat-icon {
    font-size: 1.3rem !important;
  }
  
  .stat-label {
    font-size: 0.65rem !important;
    text-align: center;
  }
  
  .stat-value {
    font-size: 1.1rem !important;
  }
  
  /* Fix subscription cards */
  .subscriptions-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .subscription-card {
    padding: 16px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  .subscription-card-header {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  
  .subscription-card-title {
    font-size: 1.1rem !important;
    word-break: break-word;
  }
  
  .subscription-card-description {
    font-size: 0.8rem !important;
  }
  
  .subscription-card-body {
    gap: 10px !important;
    padding: 12px 0 !important;
  }
  
  .subscription-detail {
    font-size: 0.8rem !important;
  }
  
  /* Fix buttons */
  .btn {
    font-size: 0.8rem !important;
    padding: 8px 14px !important;
  }
  
  .btn-sm {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }
  
  /* Fix badges */
  .badge {
    font-size: 0.65rem !important;
    padding: 3px 8px !important;
  }
  
  /* Fix product grid */
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .product-card {
    padding: 16px !important;
    max-width: 100% !important;
  }
  
  /* Fix modals */
  .modal {
    max-width: 92vw !important;
    margin: 16px auto !important;
  }
  
  .modal-body,
  .modal-header,
  .modal-footer {
    padding: 16px !important;
  }
  
  /* Fix page headers */
  .page-title {
    font-size: 1.75rem !important;
  }
  
  .section-title {
    font-size: 1.3rem !important;
  }
}

/* Very small screens (< 360px) */
@media (max-width: 359px) {
  .nav-brand span {
    font-size: 0.85rem !important;
  }
  
  .nav-link {
    font-size: 0.7rem !important;
    padding: 4px 6px !important;
  }
  
  .btn-logout {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
  }
}

/* Ensure images never overflow */
img {
  max-width: 100% !important;
  height: auto !important;
}

/* Fix long URLs and text */
.sidebar-email,
.modal-detail-value,
.purchase-card,
.subscription-detail-value {
  word-break: break-word;
  overflow-wrap: break-word;
}




/* ================================
   FILTH BOT - MOBILE-OPTIMIZED THEME
   Professional SaaS Design System
   ================================ */

/* CSS Variables - Design Tokens */
:root {
  /* Colors - Dark Theme with Filth Branding */
  --primary: #FF8C00; /* Orange from flames */
  --primary-hover: #FFA500;
  --secondary: #4169E1; /* Blue from eyes */
  --secondary-hover: #5B9BD5;
  --background: #0a0a0a; /* Deep black */
  --surface: #1a1a1a; /* Dark gray */
  --surface-hover: #2a2a2a;
  --border: #333333;
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-tertiary: #999999;
  
  /* Status Colors */
  --success: #10B981;
  --success-light: #064E3B;
  --warning: #F59E0B;
  --warning-light: #78350F;
  --error: #EF4444;
  --error-light: #7F1D1D;
  --info: #3B82F6;
  --info-light: #1E3A8A;
  
  /* Accent Colors */
  --orange-glow: #FF8C00;
  --blue-glow: #4169E1;
  
  /* Shadows - Updated for dark theme */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-orange: 0 0 20px rgba(255, 140, 0, 0.3);
  --shadow-blue: 0 0 20px rgba(65, 105, 225, 0.3);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ================================
   GLOBAL STYLES
   ================================ */

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

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ================================
   LOGIN PAGE
   ================================ */

.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: #000000;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}

.login-card {
  background: var(--background);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(65, 105, 225, 0.15) 100%);
  border-bottom: 1px solid rgba(255, 140, 0, 0.3);
  position: relative;
}

.login-header-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
  animation: bounce 2s ease infinite;
}

.brand-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
  border: 2px solid rgba(255, 140, 0, 0.3);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-style: italic;
  letter-spacing: 2px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: var(--space-2);
  letter-spacing: 4px;
  color: var(--text-primary);
}

.login-body {
  padding: var(--space-6);
}

.login-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.login-body .subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  font-size: 0.95rem;
}

.discord-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: white;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  width: 100%;
  border: 2px solid rgba(88, 101, 242, 0.3);
}

.discord-button:hover {
  background: linear-gradient(135deg, #4752C4 0%, #3b44a0 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(88, 101, 242, 0.6);
}

.discord-icon {
  width: 24px;
  height: 24px;
}

.login-features {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: grid;
  gap: var(--space-3);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  padding: var(--space-2);
  border-radius: var(--radius);
}

.feature-item:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.feature-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ================================
   NAVIGATION - MOBILE OPTIMIZED
   ================================ */

.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.2s ease;
}

.nav-brand:hover {
  color: var(--primary);
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(255, 140, 0, 0.1);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(255, 140, 0, 0.15);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-username {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.btn-logout {
  background: var(--error);
  color: white;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-logout:hover {
  background: #DC2626;
  transform: translateY(-1px);
}

/* ================================
   MAIN CONTENT
   ================================ */

.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  min-height: calc(100vh - 73px);
}

/* ================================
   DASHBOARD LAYOUT - MOBILE OPTIMIZED
   ================================ */

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-4);
  min-height: calc(100vh - 60px);
}

/* Sidebar - Compact on Mobile */
.dashboard-sidebar {
  position: relative;
}

.sidebar-card {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(65, 105, 225, 0.15) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  color: white;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 140, 0, 0.3);
}

.sidebar-header {
  text-align: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 140, 0, 0.6);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-md);
}

.sidebar-username {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.sidebar-email {
  font-size: 0.85rem;
  opacity: 0.9;
}

.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.stat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-info {
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: var(--space-1);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Main Content */
.dashboard-main {
  min-height: 400px;
}

.dashboard-section {
  margin-bottom: var(--space-6);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Subscriptions Grid - Mobile Optimized */
.subscriptions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.subscription-card {
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.subscription-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.subscription-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}

.subscription-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.subscription-card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.subscription-card-body {
  flex: 1;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-3);
}

.subscription-card-footer {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Purchases List - Mobile Optimized */
.purchases-list {
  display: grid;
  gap: var(--space-3);
  max-width: 100%;
}

.purchase-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.purchase-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.purchase-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.purchase-info {
  flex: 1;
  min-width: 0;
}

.purchase-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  font-size: 0.9rem;
}

.purchase-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.purchase-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-right: var(--space-2);
}

.page-header {
  margin-bottom: var(--space-6);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ================================
   CARDS
   ================================ */

.card {
  background: var(--background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body {
  color: var(--text-secondary);
}

/* ================================
   BUTTONS - MOBILE OPTIMIZED
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-danger:hover {
  background: #DC2626;
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: 0.8rem;
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ================================
   BADGES
   ================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active {
  background: var(--success-light);
  color: var(--success);
}

.badge-canceled {
  background: var(--error-light);
  color: var(--error);
}

.badge-paused {
  background: rgba(251, 191, 36, 0.2);
  color: #F59E0B;
}

.badge-past-due {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-succeeded {
  background: var(--success-light);
  color: var(--success);
}

.badge-subscription {
  background: var(--info-light);
  color: var(--info);
}

.badge-onetime {
  background: var(--secondary);
  color: white;
  opacity: 0.9;
}

.badge-lifetime {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.badge-incomplete {
  background: rgba(156, 163, 175, 0.2);
  color: #9CA3AF;
}

/* ================================
   SUBSCRIPTION DETAIL
   ================================ */

.subscription-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.subscription-detail-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.subscription-detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

.warning-message {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--warning-light);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  color: #F59E0B;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: var(--space-3);
}

.info-message {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
  color: #3B82F6;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: var(--space-3);
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: var(--space-3);
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

/* ================================
   EMPTY STATES
   ================================ */

.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-tertiary);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.empty-state-description {
  font-size: 0.85rem;
  margin-bottom: var(--space-4);
}

/* ================================
   LOADING STATES
   ================================ */

.loading-container {
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ================================
   ALERTS
   ================================ */

.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert-error {
  background: var(--error-light);
  border: 1px solid var(--error);
  color: #EF4444;
}

.alert-success {
  background: var(--success-light);
  border: 1px solid var(--success);
  color: #10B981;
}

.alert-warning {
  background: var(--warning-light);
  border: 1px solid var(--warning);
  color: #F59E0B;
}

.alert-info {
  background: var(--info-light);
  border: 1px solid var(--info);
  color: #3B82F6;
}

.alert-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: var(--space-1);
  font-size: 0.9rem;
}

/* ================================
   MODAL - MOBILE OPTIMIZED
   ================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--background);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(65, 105, 225, 0.15) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid rgba(255, 140, 0, 0.3);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.modal-body {
  padding: var(--space-4);
}

.modal-section {
  margin-bottom: var(--space-4);
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--border);
}

.modal-details {
  display: grid;
  gap: var(--space-2);
}

.modal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2);
  background: var(--surface);
  border-radius: var(--radius);
}

.modal-detail-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.modal-detail-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.modal-actions {
  display: grid;
  gap: var(--space-2);
}

.modal-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  background: var(--surface);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

/* ================================
   SHOP PAGE - MOBILE OPTIMIZED
   ================================ */

.shop-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.product-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 140, 0, 0.2);
  transform: translateY(-2px);
}

.product-card-header {
  margin-bottom: var(--space-4);
}

.product-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.product-card-description {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.9rem;
}

.product-card-pricing {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: rgba(255, 140, 0, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 140, 0, 0.2);
  text-align: center;
}

.product-price-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
}

.product-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.product-interval {
  font-size: 1rem;
  color: var(--text-secondary);
}

.product-card-footer {
  margin-top: auto;
}

/* Price Options in Modal */
.price-options {
  display: grid;
  gap: var(--space-3);
}

.price-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.price-option:hover {
  border-color: var(--primary);
  background: rgba(255, 140, 0, 0.05);
}

.price-option-info {
  flex: 1;
}

.price-option-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.price-option-interval {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.price-option-billing {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ================================
   RESPONSIVE - TABLET
   ================================ */

@media (min-width: 768px) {
  .login-header h1 {
    font-size: 3rem;
  }
  
  .login-body h2 {
    font-size: 1.75rem;
  }
  
  .brand-icon {
    width: 100px;
    height: 100px;
  }
  
  .nav-container {
    padding: var(--space-4) var(--space-6);
  }
  
  .nav-icon {
    width: 40px;
    height: 40px;
  }
  
  .nav-brand {
    font-size: 1.5rem;
  }
  
  .dashboard-layout {
    padding: var(--space-6);
    gap: var(--space-8);
  }
  
  .sidebar-card {
    padding: var(--space-6);
  }
  
  .sidebar-avatar {
    width: 80px;
    height: 80px;
  }
  
  .sidebar-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    flex-direction: row;
    text-align: left;
  }
  
  .stat-info {
    text-align: left;
  }
  
  .subscriptions-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
  
  .subscription-card {
    padding: var(--space-6);
  }
  
  .subscription-card-title {
    font-size: 1.5rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* ================================
   RESPONSIVE - DESKTOP
   ================================ */

@media (min-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 300px 1fr;
    padding: var(--space-8) var(--space-6);
  }
  
  .dashboard-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
  }
  
  .sidebar-card {
    padding: var(--space-8);
  }
  
  .sidebar-avatar {
    width: 100px;
    height: 100px;
  }
  
  .sidebar-stats {
    grid-template-columns: 1fr;
  }
  
  .subscriptions-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }
}

/* ================================
   UTILITY CLASSES
   ================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }

.w-full { width: 100%; }
.hidden { display: none; }

/* Success/Cancel Pages */
.success-content,
.cancel-content {
  text-align: center;
  padding: var(--space-4) 0;
}

.success-icon,
.cancel-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
}

.success-icon {
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-content h2,
.cancel-content h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.success-message,
.cancel-message {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.6;
  font-size: 0.95rem;
}

.success-actions,
.cancel-actions {
  display: grid;
  gap: var(--space-3);
}
/* ================================
   MOBILE OPTIMIZATION FOR SHOP
   Add this to the end of style.css
   ================================ */

/* Make product cards more compact on mobile */
@media (max-width: 768px) {
  
  /* ✅ Reduce product card padding */
  .product-card {
    padding: var(--space-4) !important;
  }
  
  .product-card-header {
    margin-bottom: var(--space-3) !important;
  }
  
  .product-card-title {
    font-size: 1.5rem !important;
    margin-bottom: var(--space-2) !important;
  }
  
  .product-card-description {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: var(--space-3) !important;
  }
  
  /* ✅ Make perk items much more compact */
  .perk-item {
    padding: var(--space-2) var(--space-3) !important;
    margin-bottom: var(--space-2) !important;
    border-left-width: 2px !important; /* Thinner orange border */
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }
  
  .perk-item:last-child {
    margin-bottom: 0 !important;
  }
  
  /* ✅ Smaller checkmark icon */
  .perk-item::before {
    font-size: 0.9rem !important;
    margin-right: var(--space-2) !important;
  }
  
  /* ✅ More compact pricing section */
  .product-card-pricing {
    padding: var(--space-3) var(--space-4) !important;
    margin: var(--space-3) 0 !important;
  }
  
  .product-price {
    font-size: 2rem !important;
  }
  
  .product-interval {
    font-size: 1rem !important;
  }
  
  /* ✅ Reduce space between product cards */
  .product-grid {
    gap: var(--space-4) !important;
  }
  
  /* ✅ Make footer button more compact */
  .product-card-footer {
    padding-top: var(--space-3) !important;
    margin-top: var(--space-3) !important;
  }
  
  .product-card-footer .btn {
    padding: var(--space-3) var(--space-4) !important;
    font-size: 0.95rem !important;
  }
}

/* ✅ Even more compact for very small screens */
@media (max-width: 480px) {
  .product-card {
    padding: var(--space-3) !important;
  }
  
  .product-card-title {
    font-size: 1.35rem !important;
  }
  
  .perk-item {
    padding: var(--space-1) var(--space-2) !important;
    font-size: 0.8rem !important;
  }
  
  .product-price {
    font-size: 1.75rem !important;
  }
}

/* ================================
   LIFETIME BADGE STYLING
   Add this to the end of style.css
   ================================ */

/* Gold lifetime badge with glow effect */
.badge-lifetime {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover effect for lifetime badge */
.badge-lifetime:hover {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  transform: scale(1.05);
}

/* ADD TO BOTTOM OF style.css */

/* Lifetime badge */
.badge-lifetime {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Modal fixes - ensure proper centering and visibility */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay .modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s ease;
  border: 2px solid var(--border);
  position: relative;
  z-index: 10000;
}