/* =====================================================
   SlugHosting.com — Main Stylesheet
   ===================================================== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  --warning: #f97316;
  --dark: #0f0f1a;
  --dark-2: #13131f;
  --dark-3: #1a1a2e;
  --dark-4: #22223b;
  --card-bg: #16213e;
  --card-border: rgba(99, 102, 241, 0.15);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(13,13,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 2rem;
  height: 68px;
  display: flex; align-items: center;
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; -webkit-text-fill-color: white;
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; flex: 1;
}
.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(99,102,241,0.1);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav-coin-display {
  display: flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 20px; padding: 4px 14px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
}
.nav-hamburger {
  display: none; cursor: pointer;
  background: none; border: none; color: var(--text-primary);
  font-size: 1.4rem; padding: 4px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.6rem 1.4rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: white; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(99,102,241,0.5); color: white; }
.btn-secondary { background: rgba(99,102,241,0.15); color: var(--primary-light); border: 1px solid rgba(99,102,241,0.3); }
.btn-secondary:hover { background: rgba(99,102,241,0.25); color: var(--primary-light); }
.btn-success { background: var(--secondary); color: white; }
.btn-success:hover { background: #059669; transform: translateY(-1px); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--card-border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.05rem; border-radius: 14px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-loading { position: relative; }
.btn-loading::after {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  border: 2px solid transparent; border-top-color: currentColor;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  right: 12px;
}

/* ---- HERO SECTION ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--dark-2);
  position: relative; overflow: hidden;
  padding: 120px 2rem 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99,102,241,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(16,185,129,0.08) 0%, transparent 50%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  max-width: 1280px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 20px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 600; color: var(--primary-light);
  margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
.hero-title .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary-light); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Hero Visual */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-card-stack { position: relative; width: 320px; height: 380px; }
.floating-card {
  position: absolute; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.floating-card.main {
  width: 100%; bottom: 0;
  animation: float 6s ease-in-out infinite;
}
.floating-card.secondary {
  width: 80%; top: 0; right: 0;
  animation: float 6s ease-in-out 2s infinite;
}

/* ---- SECTIONS ---- */
.section { padding: 80px 2rem; }
.section-alt { background: var(--dark-3); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}
.container { max-width: 1280px; margin: 0 auto; }

/* ---- CARDS ---- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(99,102,241,0.4);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.card-body { padding: 1.5rem; }

/* ---- CATEGORY GRID ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  cursor: pointer; transition: all var(--transition);
  text-align: center;
}
.cat-card:hover {
  border-color: var(--cat-color, var(--primary));
  box-shadow: 0 0 20px rgba(99,102,241,0.2);
  transform: translateY(-3px);
}
.cat-icon {
  width: 56px; height: 56px;
  background: var(--cat-color, var(--primary));
  border-radius: 14px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: white;
}
.cat-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.cat-count { font-size: 0.8rem; color: var(--text-muted); }

/* ---- PRODUCT GRID ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 8px 32px rgba(99,102,241,0.15);
  transform: translateY(-4px);
}
.product-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.product-image {
  height: 150px;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--card-border);
}
.product-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-size: 0.75rem; font-weight: 600;
  color: var(--primary); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 0.5rem;
}
.product-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; flex: 1; }
.product-features { list-style: none; margin-bottom: 1.25rem; }
.product-features li {
  font-size: 0.82rem; color: var(--text-secondary);
  padding: 3px 0;
  display: flex; align-items: center; gap: 6px;
}
.product-features li::before {
  content: '✓'; color: var(--secondary);
  font-weight: 700; font-size: 0.75rem;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--card-border);
}
.product-price { display: flex; flex-direction: column; }
.price-coins {
  font-size: 1.3rem; font-weight: 800;
  color: var(--accent);
  display: flex; align-items: center; gap: 4px;
}
.price-cycle { font-size: 0.75rem; color: var(--text-muted); }

/* ---- FILTER TABS ---- */
.filter-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-tab {
  padding: 0.4rem 1rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500;
  background: var(--dark-3); color: var(--text-secondary);
  border: 1px solid var(--card-border);
  cursor: pointer; transition: all var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* ---- REVIEWS ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.review-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 0.75rem; }
.review-title { font-weight: 700; margin-bottom: 0.5rem; }
.review-content { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1rem; }
.review-author { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.trustpilot-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #00b67a; color: white;
  padding: 8px 16px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 700;
}

/* ---- FORM STYLES ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.5rem;
}
.form-control {
  width: 100%; padding: 0.7rem 1rem;
  background: var(--dark-3);
  border: 1px solid var(--card-border);
  border-radius: 10px; color: var(--text-primary);
  font-size: 0.9rem; font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-control::placeholder { color: var(--text-muted); }
.form-control option { background: var(--dark-3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.35rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }
.input-group { position: relative; }
.input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.9rem;
}
.input-group .form-control { padding-left: 2.5rem; }
.input-group .input-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
}

/* ---- AUTH PAGES ---- */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--dark-2); padding: 2rem;
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99,102,241,0.12), transparent);
}
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem; width: 100%; max-width: 440px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 0.4rem; }
.auth-subtitle { font-size: 0.88rem; color: var(--text-secondary); text-align: center; margin-bottom: 2rem; }
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--text-muted); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--card-border);
}
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.7rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--card-border);
  background: var(--dark-3); color: var(--text-primary);
  transition: all var(--transition); width: 100%; margin-bottom: 0.75rem;
}
.social-btn:hover { background: var(--dark-4); border-color: var(--primary); }
.social-btn.discord { border-color: rgba(88,101,242,0.4); }
.social-btn.discord:hover { background: rgba(88,101,242,0.1); }
.social-btn.google { border-color: rgba(234,67,53,0.4); }
.social-btn.google:hover { background: rgba(234,67,53,0.1); }

/* ---- DASHBOARD ---- */
.dashboard-layout {
  display: flex; min-height: 100vh; padding-top: 68px;
}
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--dark-2);
  border-right: 1px solid var(--card-border);
  padding: 1.5rem 1rem;
  position: fixed; top: 68px; bottom: 0; left: 0;
  overflow-y: auto; z-index: 100;
  transition: transform var(--transition);
}
.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem; margin-bottom: 1.5rem;
  background: var(--dark-3); border-radius: var(--radius);
}
.sidebar-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: white; flex-shrink: 0;
}
.sidebar-username { font-weight: 700; font-size: 0.95rem; }
.sidebar-role { font-size: 0.75rem; color: var(--text-muted); text-transform: capitalize; }
.sidebar-coins {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-top: 2px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 0.65rem 1rem; border-radius: 10px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-secondary); transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  color: var(--text-primary);
  background: rgba(99,102,241,0.12);
}
.sidebar-nav li a.active { color: var(--primary-light); }
.sidebar-section {
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 1rem 1rem 0.35rem; margin-top: 0.5rem;
}
.main-content {
  flex: 1; margin-left: 260px;
  padding: 2rem; min-height: calc(100vh - 68px);
  background: var(--dark);
}

/* ---- STATS CARDS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-value { font-size: 1.6rem; font-weight: 800; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ---- TABLE ---- */
.data-table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--card-border); }
.data-table { width: 100%; border-collapse: collapse; background: var(--card-bg); }
.data-table th {
  padding: 0.85rem 1.25rem; text-align: left;
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px;
  background: var(--dark-3); border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}
.data-table td {
  padding: 0.9rem 1.25rem; font-size: 0.88rem;
  border-bottom: 1px solid rgba(99,102,241,0.05);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(99,102,241,0.04); }
.data-table th:first-child, .data-table td:first-child { border-radius: 0; }

/* ---- BADGES / STATUS ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge-danger { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge-primary { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.badge-secondary { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }
.badge-info { background: rgba(6,182,212,0.15); color: #22d3ee; border: 1px solid rgba(6,182,212,0.3); }

/* ---- MODALS ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; transform: translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-lg { max-width: 760px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; border-bottom: 1px solid var(--card-border);
}
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.3rem; cursor: pointer; padding: 4px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1.25rem 1.5rem; border-top: 1px solid var(--card-border);
  display: flex; gap: 0.75rem; justify-content: flex-end;
}

/* ---- TABS ---- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--card-border); margin-bottom: 1.5rem; }
.tab-btn {
  padding: 0.75rem 1.25rem; font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); margin-bottom: -1px;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary-light); }
.tab-btn.active { border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- ALERTS ---- */
.alert {
  padding: 0.85rem 1.25rem; border-radius: 10px;
  font-size: 0.88rem; margin-bottom: 1rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.alert-danger { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.alert-warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.alert-info { background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3); color: var(--primary-light); }

/* ---- TICKET STYLES ---- */
.ticket-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  margin-bottom: 1rem; transition: all var(--transition); cursor: pointer;
}
.ticket-card:hover { border-color: rgba(99,102,241,0.4); }
.ticket-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ticket-id { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; }
.ticket-subject { font-weight: 700; margin-bottom: 0.25rem; }
.ticket-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.ticket-message {
  background: var(--dark-3); border-radius: var(--radius);
  padding: 1rem; margin-bottom: 1rem;
}
.ticket-message.admin { background: rgba(99,102,241,0.08); border-left: 3px solid var(--primary); }
.msg-author { font-size: 0.78rem; font-weight: 700; margin-bottom: 0.4rem; }
.msg-content { font-size: 0.88rem; color: var(--text-secondary); }
.msg-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ---- WALLET / COINS ---- */
.wallet-card {
  background: var(--gradient);
  border-radius: var(--radius-lg); padding: 2rem;
  position: relative; overflow: hidden;
}
.wallet-card::before {
  content: ''; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.08); top: -60px; right: -60px;
}
.wallet-balance { font-size: 3rem; font-weight: 800; color: white; }
.wallet-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.coin-icon { font-size: 1.2rem; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.coin-package {
  background: var(--dark-3); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.25rem; text-align: center;
  cursor: pointer; transition: all var(--transition);
}
.coin-package:hover, .coin-package.selected {
  border-color: var(--primary); box-shadow: var(--glow);
}
.coin-package-coins { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.coin-package-bonus { font-size: 0.75rem; color: var(--secondary); font-weight: 600; }
.coin-package-price { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.5rem; }
.coin-package-badge {
  background: var(--gradient); color: white;
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; margin-bottom: 0.5rem; display: inline-block;
}

/* ---- FEATURES SECTION ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--dark-3); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all var(--transition);
}
.feature-card:hover { border-color: rgba(99,102,241,0.4); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
  background: rgba(99,102,241,0.12); color: var(--primary);
}
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.88rem; color: var(--text-secondary); }

/* ---- PAGE HEADER ---- */
.page-header {
  margin-bottom: 1.75rem;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.page-title { font-size: 1.6rem; font-weight: 800; }
.page-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---- SEARCH ---- */
.search-bar {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--dark-3); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 0.5rem 1rem;
  max-width: 360px;
}
.search-bar input {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 0.88rem; flex: 1;
}
.search-bar i { color: var(--text-muted); }

/* ---- FOOTER ---- */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--card-border);
  padding: 3rem 2rem 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; max-width: 1280px; margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
}
.footer-brand .footer-desc { font-size: 0.88rem; color: var(--text-secondary); margin-top: 0.75rem; max-width: 280px; }
.footer-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.88rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary-light); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--dark-3); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.9rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.footer-bottom {
  max-width: 1280px; margin: 1.5rem auto 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; gap: 1rem;
}

/* ---- TOAST ---- */
#toast-container {
  position: fixed; top: 80px; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none;
}
.toast {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px; padding: 0.85rem 1.25rem;
  font-size: 0.88rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  min-width: 280px; max-width: 380px;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3s forwards;
  pointer-events: auto;
}
.toast-success { border-left: 3px solid var(--secondary); }
.toast-danger { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--accent); }
.toast-info { border-left: 3px solid var(--primary); }

/* ---- LOADING ---- */
.loading-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--card-border);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark); display: flex;
  align-items: center; justify-content: center; flex-direction: column; gap: 1rem;
}
.skeleton {
  background: linear-gradient(90deg, var(--dark-3) 25%, var(--dark-4) 50%, var(--dark-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite; border-radius: 8px;
}

/* ---- MISC ---- */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.divider { height: 1px; background: var(--card-border); margin: 1.5rem 0; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  background: rgba(99,102,241,0.12); color: var(--primary-light);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.fw-bold { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ---- ANIMATIONS ---- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--dark-2); z-index: 998;
    padding: 2rem; gap: 0.5rem;
  }
  .main-content { margin-left: 0; padding: 1rem; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .page-header { flex-direction: column; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .modal { max-height: 100vh; border-radius: 0; }
}
@media (max-width: 480px) {
  .auth-card { padding: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 1rem; }
}
