/* ═══════════════════════════════════════════════════════════════════
   ResumePro · 简历优化大师 · 极致奢华设计系统
   ULTRA-LUXURIOUS $10K/Month SaaS Design Language
   ═══════════════════════════════════════════════════════════════════ */

/* ========== CSS VARIABLES / DESIGN TOKENS ========== */
:root {
  /* Backgrounds */
  --bg-primary: #050508;
  --bg-secondary: #0a0a12;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --bg-input: #0d0d18;
  --bg-glass: rgba(17, 17, 24, 0.75);
  --bg-glass-hover: rgba(22, 22, 31, 0.88);

  /* Borders */
  --border: #1a1a2e;
  --border-light: #252540;
  --border-accent: rgba(201, 168, 76, 0.25);

  /* Text */
  --text-primary: #f5f5fa;
  --text-secondary: #9898b0;
  --text-muted: #5a5a75;

  /* Accent */
  --accent: #c9a84c;
  --accent-light: #d4b860;
  --accent-dark: #a88a30;
  --accent-glow: rgba(201, 168, 76, 0.12);
  --accent-glow-strong: rgba(201, 168, 76, 0.22);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #e8c547 50%, #a88a30 100%);
  --gradient-gold-hover: linear-gradient(135deg, #dfc278 0%, #f0d890 40%, #c9a84c 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a12 0%, #050508 100%);
  --gradient-card-premium: linear-gradient(180deg, var(--bg-card) 0%, rgba(201,168,76,0.04) 100%);

  /* Status */
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 60px rgba(201, 168, 76, 0.08);
  --shadow-gold-hover: 0 0 80px rgba(201, 168, 76, 0.15);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.5), 0 0 60px rgba(201,168,76,0.06);

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --navbar-height: 72px;
  --sidebar-width: 260px;
}

/* ========== GLOBAL RESET ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ========== ANIMATIONS / KEYFRAMES ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(3deg);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(201, 168, 76, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes goldGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.1), 0 0 60px rgba(201, 168, 76, 0.05);
  }
  50% {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.2), 0 0 80px rgba(201, 168, 76, 0.1);
  }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================================================================
   NAVBAR - Frosted Glass
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition);
}

.navbar.scrolled {
  height: 60px;
  background: rgba(5, 5, 8, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.85;
}

.logo-icon {
  color: var(--accent);
  font-size: 26px;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.4));
}

.logo-text {
  color: var(--text-primary);
}

.logo-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-btn-outline {
  border: 1px solid var(--border-light) !important;
  color: var(--text-primary) !important;
  font-weight: 500 !important;
}

.nav-btn-outline:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-glow) !important;
}

.nav-btn-filled {
  background: var(--gradient-gold) !important;
  color: #0a0a0f !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
}

.nav-btn-filled:hover {
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.35) !important;
  transform: translateY(-1px) !important;
  background: var(--gradient-gold-hover) !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.mobile-menu-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + 40px) 32px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 15%, var(--accent-glow) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 70% 70%, rgba(100, 100, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 60%),
    var(--bg-primary);
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
}

/* Geometric grid overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 30%, transparent 70%);
}

/* Diamond pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z' fill='none' stroke='%23c9a84c' stroke-width='0.8' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.5;
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(60px);
}

.hero-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-shape:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -80px;
  animation: floatSlow 10s ease-in-out infinite;
  animation-delay: -2s;
}

.hero-shape:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 12s ease-in-out infinite;
  animation-delay: -4s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #c0c0d0 50%, #7878a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.3));
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  background: linear-gradient(180deg, #fff 0%, #c0c0d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 36px;
  background: var(--gradient-gold);
  color: #0a0a0f;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(201, 168, 76, 0.35);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.full-width {
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 36px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-header {
  text-align: center;
  margin-bottom: 72px;
  animation: fadeInUp 0.6s ease-out;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff 0%, #b0b0c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.features {
  padding: 120px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-icon {
  font-size: 44px;
  margin-bottom: 24px;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.2));
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   PRICING SECTION
   ================================================================ */
.pricing {
  padding: 120px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-grid.compact {
  grid-template-columns: repeat(4, 1fr);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card > * {
  position: relative;
  z-index: 1;
}

/* Popular card */
.pricing-card.popular {
  border-color: rgba(201, 168, 76, 0.35);
  background: linear-gradient(180deg, rgba(201,168,76,0.07) 0%, var(--bg-card) 25%);
  box-shadow: var(--shadow-gold);
  animation: goldGlow 4s ease-in-out infinite;
}

.pricing-card.popular:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold-hover);
}

/* Premium card */
.pricing-card.premium {
  background: var(--gradient-card-premium);
  border-color: rgba(201, 168, 76, 0.15);
}

.pricing-card.premium:hover {
  border-color: rgba(201, 168, 76, 0.35);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient-gold);
  color: #0a0a0f;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
  z-index: 2;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.price {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #fff 0%, #b0b0c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card.popular .price {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.currency {
  font-size: 26px;
  font-weight: 600;
  vertical-align: super;
}

.price-unit {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 500;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.btn-pricing {
  width: 100%;
  padding: 13px 20px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
}

.btn-pricing:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.btn-pricing.primary,
.btn-pricing.premium {
  background: var(--gradient-gold);
  color: #0a0a0f;
  border: none;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
}

.btn-pricing.primary:hover,
.btn-pricing.premium:hover {
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.35);
  transform: translateY(-2px);
  color: #0a0a0f;
  background: var(--gradient-gold-hover);
}

/* ================================================================
   AGENT SECTION
   ================================================================ */
.agent-section {
  padding: 120px 32px 140px;
  max-width: 1040px;
  margin: 0 auto;
}

.agent-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 72px;
}

.agent-benefit {
  text-align: center;
}

.benefit-number {
  font-size: 64px;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -3px;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.3));
}

.benefit-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.agent-divider {
  width: 1px;
  height: 64px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.agent-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  transition: all var(--transition);
  position: relative;
}

.flow-step:hover {
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.flow-number {
  width: 40px;
  height: 40px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-weight: 700;
  color: #0a0a0f;
  font-size: 17px;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}

.flow-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.flow-step p {
  font-size: 13px;
  color: var(--text-secondary);
}

.flow-arrow {
  font-size: 28px;
  color: var(--accent);
  font-weight: 300;
  opacity: 0.5;
}

.agent-cta {
  text-align: center;
}

/* ================================================================
   AUTH FORMS (Login, Agent Register)
   ================================================================ */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + 40px) 32px 60px;
  background:
    radial-gradient(ellipse at 30% 20%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(100, 100, 255, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
  padding: 52px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.6s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.3));
}

.auth-header h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.login-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 5px;
}

.login-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.login-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.login-tab:hover:not(.active) {
  color: var(--text-primary);
}

/* Form Group */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: rgba(13, 13, 24, 0.9);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  line-height: 1.7;
  min-height: 120px;
}

.auth-switch {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition);
}

.auth-switch a:hover {
  color: var(--accent-light);
}

/* ================================================================
   REGISTER PAGE - Split Layout
   ================================================================ */
.register-container {
  display: flex;
  min-height: 100vh;
}

/* Left Brand Panel */
.register-brand {
  flex: 0 0 45%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-secondary);
}

.brand-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(100, 100, 255, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a12 0%, #08080f 100%);
}

.brand-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.brand-content {
  position: relative;
  z-index: 1;
  padding: 60px 56px;
  max-width: 500px;
  animation: fadeInUp 0.8s ease-out;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  font-size: 24px;
  font-weight: 700;
}

.brand-icon {
  color: var(--accent);
  font-size: 30px;
  filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.4));
}

.brand-name {
  color: var(--text-primary);
}

.brand-accent {
  color: var(--accent);
}

.brand-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, #b0b0c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.brand-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.bf-check {
  width: 24px;
  height: 24px;
  background: var(--accent-glow);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-testimonial {
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius);
  padding: 24px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ta-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #0a0a0f;
}

.ta-name {
  font-size: 14px;
  font-weight: 600;
}

.ta-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* Right Form Panel */
.register-form-panel {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--navbar-height) + 40px) 56px 60px;
  background: var(--bg-primary);
  overflow-y: auto;
}

.rfp-header {
  margin-bottom: 36px;
}

.rfp-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.rfp-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.rfp-header p a {
  color: var(--accent);
  font-weight: 600;
}

.rfp-header p a:hover {
  color: var(--accent-light);
}

.register-form {
  max-width: 480px;
}

.rf-row {
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.input-wrapper input {
  padding-left: 42px !important;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
  z-index: 1;
}

.toggle-pw:hover {
  opacity: 0.8;
}

.rf-agreement {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
  margin-top: 1px;
}

.checkbox-label input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #0a0a0f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label a {
  color: var(--accent);
  font-weight: 500;
}

.rf-submit {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px !important;
  padding: 16px 32px !important;
}

.submit-arrow {
  transition: transform var(--transition);
}

.rf-submit:hover .submit-arrow {
  transform: translateX(4px);
}

.rf-divider {
  display: flex;
  align-items: center;
  margin: 28px 0;
  max-width: 480px;
}

.rf-divider::before,
.rf-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.rf-divider span {
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.rf-social {
  display: flex;
  gap: 12px;
  max-width: 480px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.social-btn:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.social-icon {
  font-size: 18px;
}

/* ================================================================
   DASHBOARD
   ================================================================ */
.dashboard {
  display: flex;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

/* Sidebar */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--navbar-height);
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 28px 24px;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  letter-spacing: -0.3px;
}

.sidebar-menu {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition);
  margin-bottom: 4px;
  font-weight: 500;
  position: relative;
}

.sidebar-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.sidebar-user {
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #0a0a0f;
  flex-shrink: 0;
}

.user-info {
  overflow: hidden;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan {
  font-size: 12px;
  color: var(--text-muted);
}

/* Dashboard Content */
.dashboard-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 36px 40px;
  min-height: calc(100vh - var(--navbar-height));
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.content-header h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.plan-badge {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ================================================================
   STATS GRID
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover {
  border-color: rgba(201, 168, 76, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-card .stat-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #fff 0%, #b0b0c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-value.accent {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   OPTIMIZE FORM
   ================================================================ */
.optimize-form {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
}

.optimize-form textarea {
  min-height: 200px;
  line-height: 1.8;
}

.optimize-result {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  animation: fadeIn 0.5s ease;
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.06);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.result-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.btn-copy {
  padding: 10px 20px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  font-weight: 500;
}

.btn-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

#resultContent {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 24px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-primary);
  font-family: var(--font-sans);
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid var(--border);
}

/* ================================================================
   REFERRAL SECTION
   ================================================================ */
.referral-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
}

.referral-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.referral-input-group {
  display: flex;
  gap: 12px;
}

.referral-input-group input {
  flex: 1;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
}

.referral-input-group input:focus {
  border-color: var(--accent);
}

.referral-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.referral-code-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

.referral-code {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 6px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.2));
}

/* ================================================================
   LISTS
   ================================================================ */
.history-list,
.referred-users-list,
.earnings-list {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.history-item,
.transaction-item,
.user-item {
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.history-item:hover,
.transaction-item:hover,
.user-item:hover {
  background: rgba(255, 255, 255, 0.01);
}

.history-item:last-child,
.transaction-item:last-child,
.user-item:last-child {
  border-bottom: none;
}

.history-item .item-title {
  font-size: 14px;
  font-weight: 500;
}

.history-item .item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.transaction-item .tx-amount {
  font-weight: 700;
  color: var(--success);
  font-size: 16px;
}

.empty-state {
  padding: 72px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed;
  top: calc(var(--navbar-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: var(--success);
  box-shadow: 0 4px 30px rgba(52, 211, 153, 0.15);
}

.toast.error {
  border-color: var(--danger);
  box-shadow: 0 4px 30px rgba(248, 113, 113, 0.15);
}

/* ================================================================
   MODAL
   ================================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}

.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: 0;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-header h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  transition: all var(--transition);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  padding: 28px 32px 32px;
}

.payment-info {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.payment-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.payment-value {
  font-size: 14px;
  font-weight: 500;
}

.payment-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.payment-methods {
  display: flex;
  gap: 12px;
  margin: 28px 0;
}

.payment-method {
  flex: 1;
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.payment-method:hover {
  border-color: var(--border-light);
}

.payment-method.active {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.08);
}

.payment-method input {
  display: none;
}

.payment-method span {
  font-size: 14px;
  font-weight: 500;
}

/* ================================================================
   VIEW SWITCHING
   ================================================================ */
.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

/* ================================================================
   SHIMMER LOADING EFFECT
   ================================================================ */
.shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--bg-card-hover) 40%,
    var(--bg-card) 80%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* 1200px - Large Tablets */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid,
  .pricing-grid.compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 56px;
  }

  .register-brand {
    flex: 0 0 42%;
  }

  .register-form-panel {
    flex: 0 0 58%;
    padding: calc(var(--navbar-height) + 32px) 40px 40px;
  }

  .brand-content {
    padding: 40px;
  }

  .brand-title {
    font-size: 36px;
  }
}

/* 1024px - Tablets */
@media (max-width: 1024px) {
  :root {
    --navbar-height: 64px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-stats {
    gap: 36px;
  }

  .section-header h2 {
    font-size: 36px;
  }

  .features {
    padding: 80px 24px;
  }

  .pricing {
    padding: 80px 24px;
  }

  .agent-section {
    padding: 80px 24px 100px;
  }

  .agent-flow {
    flex-wrap: wrap;
    justify-content: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .dashboard-content {
    padding: 28px 24px;
  }

  .register-container {
    flex-direction: column;
  }

  .register-brand {
    flex: 0 0 auto;
    min-height: auto;
    padding: 48px 32px;
  }

  .register-form-panel {
    flex: 0 0 auto;
    padding: 40px 32px;
  }

  .brand-content {
    padding: 0;
    max-width: 100%;
  }

  .brand-title {
    font-size: 32px;
  }
}

/* 768px - Mobile Landscape / Small Tablets */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
    --sidebar-width: 0;
  }

  /* Mobile Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(5, 5, 8, 0.96);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 15px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: calc(var(--navbar-height) + 32px) 20px 60px;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 28px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  /* Pricing */
  .pricing-grid,
  .pricing-grid.compact {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Agent */
  .agent-benefits {
    flex-direction: column;
    gap: 32px;
  }

  .agent-divider {
    width: 60px;
    height: 1px;
  }

  .agent-flow {
    flex-direction: column;
  }

  .flow-step {
    max-width: 100%;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  /* Dashboard */
  .dashboard-sidebar {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
  }

  .dashboard-sidebar.mobile-open {
    display: flex;
  }

  .dashboard-content {
    margin-left: 0;
    padding: 24px 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .referral-input-group {
    flex-direction: column;
  }

  /* Auth */
  .auth-card {
    padding: 36px 28px;
  }

  /* Register */
  .register-container {
    flex-direction: column;
  }

  .register-brand {
    min-height: auto;
    padding: 40px 24px;
  }

  .register-form-panel {
    padding: 36px 24px;
  }

  .brand-title {
    font-size: 28px;
  }

  .rf-social {
    flex-direction: column;
  }

  /* Modal */
  .modal-card {
    max-width: calc(100% - 32px);
    margin: 16px;
  }

  .modal-header {
    padding: 20px 24px;
  }

  .modal-body {
    padding: 20px 24px 24px;
  }

  .payment-methods {
    flex-direction: column;
  }
}

/* 480px - Small Mobile */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 16px;
  }

  .hero {
    padding: calc(var(--navbar-height) + 24px) 16px 40px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .features {
    padding: 60px 16px;
  }

  .pricing {
    padding: 60px 16px;
  }

  .agent-section {
    padding: 60px 16px 80px;
  }

  .benefit-number {
    font-size: 48px;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: var(--radius);
  }

  .auth-header h2 {
    font-size: 24px;
  }

  .register-brand {
    padding: 32px 20px;
  }

  .register-form-panel {
    padding: 28px 20px;
  }

  .brand-title {
    font-size: 24px;
  }

  .brand-logo {
    margin-bottom: 32px;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .content-header h2 {
    font-size: 24px;
  }

  .optimize-form {
    padding: 24px 20px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-card .stat-value {
    font-size: 28px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 13px 24px;
    font-size: 14px;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .price {
    font-size: 40px;
  }

  .referral-code {
    font-size: 28px;
    letter-spacing: 4px;
  }
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ================================================================
   UPLOAD ZONE
   ================================================================ */
.upload-zone {
  position: relative;
  border: 2px dashed rgba(201, 168, 76, 0.3);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent-color);
  background: rgba(201, 168, 76, 0.05);
}

.upload-zone:hover::before,
.upload-zone.drag-over::before {
  opacity: 1;
}

.upload-zone.uploading {
  border-color: var(--accent-color);
  border-style: solid;
  pointer-events: none;
}

.upload-zone.success {
  border-color: #4caf50;
  border-style: solid;
  background: rgba(76, 175, 80, 0.05);
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
  filter: grayscale(0.3);
  transition: transform 0.3s;
}

.upload-zone:hover .upload-icon {
  transform: translateY(-4px);
}

.upload-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.upload-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.upload-link {
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.upload-link:hover {
  color: #e0c060;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.upload-status {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.upload-filename {
  font-size: 13px;
  color: var(--text-primary);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress {
  font-size: 12px;
  color: var(--accent-color);
  font-weight: 600;
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
  .navbar,
  .dashboard-sidebar,
  .toast,
  .modal {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .dashboard-content {
    margin-left: 0;
    padding: 0;
  }
}