@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

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

:root {
  --gold: #d4a843;
  --gold-light: #e8c96a;
  --gold-dark: #b8902e;
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --bg-input: #1e1e1e;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --border: #2a2a2a;
  --radius: 8px;
  --danger: #dc2626;
  --success: #22c55e;
}

html { scroll-behavior: smooth }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1,h2,h3,h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2 }

a { color: var(--gold); text-decoration: none; transition: color .2s }
a:hover { color: var(--gold-light) }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px }
.container-sm { max-width: 600px; margin: 0 auto; padding: 0 20px }
.container-md { max-width: 800px; margin: 0 auto; padding: 0 20px }

.hidden { display: none !important }
.text-center { text-align: center }
.text-gold { color: var(--gold) }
.text-muted { color: var(--text-muted) }
.text-danger { color: var(--danger) }
.text-success { color: var(--success) }
.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 }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700;
  color: var(--text);
}
.nav-brand svg { color: var(--gold) }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none }
.nav-links a { color: var(--text-muted); font-size: .875rem; font-weight: 500; padding: 4px 0 }
.nav-links a:hover, .nav-links a.active { color: var(--gold) }
.nav-actions { display: flex; gap: 8px; align-items: center }
.nav-user { display: flex; align-items: center; gap: 10px; font-size: .875rem }
.nav-user img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gold); object-fit:cover }
.nav-cart-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 8px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.nav-cart-btn:hover { color: var(--gold); background: rgba(212,168,67,.1); }
.nav-cart-badge {
  position: absolute; top: -2px; right: -2px;
  background: #ef4444; color: #fff;
  width: 17px; height: 17px; border-radius: 50%;
  font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.mobile-menu-btn {
  display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px 20px; gap: 12px;
  }
  .nav-links.open { display: flex }
  .nav-actions .btn-ghost { display: none }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius); font-weight: 600;
  font-size: .875rem; cursor: pointer; border: none; transition: all .2s;
  font-family: 'Montserrat', sans-serif; text-decoration: none; line-height: 1.4;
}
.btn:disabled { opacity: .5; cursor: not-allowed }
.btn-primary { background: var(--gold); color: #000 }
.btn-primary:hover:not(:disabled) { background: var(--gold-light); color: #000; transform: translateY(-1px) }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text) }
.btn-outline:hover:not(:disabled) { border-color: var(--gold); color: var(--gold) }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 10px 16px }
.btn-ghost:hover { color: var(--text) }
.btn-danger { background: var(--danger); color: #fff }
.btn-danger:hover:not(:disabled) { opacity: .9 }
.btn-sm { padding: 6px 14px; font-size: .8125rem }
.btn-lg { padding: 14px 32px; font-size: 1rem }
.btn-block { width: 100% }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50% }

/* BADGE */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--bg-elevated); color: var(--gold); border: 1px solid var(--border);
}
.badge-success { background: rgba(34,197,94,.1); color: var(--success); border-color: rgba(34,197,94,.3) }
.badge-danger { background: rgba(220,38,38,.1); color: var(--danger); border-color: rgba(220,38,38,.3) }
.badge-warning { background: rgba(245,158,11,.1); color: #f59e0b; border-color: rgba(245,158,11,.3) }
.badge-primary { background: rgba(212,168,67,.1); color: var(--gold); border-color: rgba(212,168,67,.3) }

/* CARDS */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.4) }
.card-static { transition: none }
.card-static:hover { transform: none; box-shadow: none }
.card-body { padding: 24px }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover }

/* FORMS */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--text-muted) }
.form-control {
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text); font-family: 'Montserrat', sans-serif; font-size: .875rem;
  transition: border-color .2s; width: 100%;
}
.form-control:focus { outline: none; border-color: var(--gold) }
.form-control::placeholder { color: #666 }
textarea.form-control { min-height: 100px; resize: vertical }
select.form-control { cursor: pointer }
.form-error { font-size: .75rem; color: var(--danger); margin-top: 4px }
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 4px }

/* HERO */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 64px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg) 0%, #1a1510 50%, var(--bg) 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,168,67,.08) 0%, transparent 70%);
}
.hero-content { position: relative; max-width: 640px }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 24px }
.hero h1 .gold { color: var(--gold) }
.hero p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 32px; max-width: 480px }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stat { text-align: center }
.hero-stat .number { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold) }
.hero-stat .label { font-size: .75rem; color: var(--text-muted); margin-top: 4px }

/* SECTIONS */
.section { padding: 80px 0 }
.section-header { text-align: center; margin-bottom: 48px }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 16px }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto }
.section-alt { background: var(--bg-card) }

/* PAGE HEADER */
.page-header {
  padding: 100px 0 40px;
  background: linear-gradient(180deg, #1a1510 0%, var(--bg) 100%);
  text-align: center; position: relative;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(212,168,67,.08) 0%, transparent 60%);
}
.page-header > * { position: relative }
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px }
.page-header p { color: var(--text-muted); max-width: 500px; margin: 0 auto }

/* GRID */
.grid { display: grid; gap: 24px }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) }

/* FEATURE CARD */
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: rgba(212,168,67,.1); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}

/* PRICING */
.pricing-card { text-align: center; position: relative }
.pricing-card.featured { border-color: var(--gold); box-shadow: 0 0 24px rgba(212,168,67,.15) }
.pricing-card .price { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--gold) }
.pricing-card .price span { font-size: 1rem; color: var(--text-muted); font-family: 'Montserrat', sans-serif }
.pricing-features { list-style: none; text-align: left; margin: 24px 0 }
.pricing-features li {
  padding: 8px 0; font-size: .875rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.pricing-features li::before { content: '\2726'; color: var(--gold); font-size: .75rem }
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000; padding: 4px 16px;
  border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap;
}

/* PRODUCT CARD */
.product-card { position: relative }
.product-card .card-img { aspect-ratio: 1; object-fit: cover }
.product-card .price-tag { font-size: 1.125rem; font-weight: 700; color: var(--gold); margin-top: 4px }
.product-card .limited-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: #000; padding: 4px 10px;
  border-radius: 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase;
}

/* EVENT CARD */
.event-date {
  background: var(--bg-elevated); border-radius: var(--radius); padding: 8px 12px;
  text-align: center; min-width: 56px;
}
.event-date .month { font-size: .625rem; font-weight: 700; color: var(--gold); text-transform: uppercase }
.event-date .day { font-size: 1.5rem; font-weight: 700; line-height: 1 }

/* MODEL CARD */
.model-card .card-img { aspect-ratio: 3/4; object-fit: cover }
.model-card .card-body { text-align: center }

/* CTA */
.cta-section {
  text-align: center; padding: 100px 20px;
  background: linear-gradient(180deg, var(--bg) 0%, #1a1510 50%, var(--bg) 100%);
  position: relative;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,168,67,.06) 0%, transparent 70%);
}
.cta-section > * { position: relative }
.cta-section h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px }
.cta-section p { color: var(--text-muted); max-width: 500px; margin: 0 auto 32px }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 40px 0; text-align: center }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap }
.footer-links a { color: var(--text-muted); font-size: .875rem }
.footer-copy { font-size: .8125rem; color: var(--text-muted) }

/* SOCIAL */
.social-links { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border: 1px solid var(--border); transition: all .2s;
}
.social-links a:hover { color: var(--gold); border-color: var(--gold) }

/* AUTH PAGES */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; padding-top: 84px;
}
.auth-card { width: 100%; max-width: 420px }
.auth-card .card-body { padding: 32px }
.auth-logo { text-align: center; margin-bottom: 24px }
.auth-logo svg { color: var(--gold); margin: 0 auto 12px }

/* DASHBOARD */
.dashboard-layout { padding-top: 64px; min-height: 100vh }
.dashboard-content { padding: 24px 20px; max-width: 1200px; margin: 0 auto }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px }
.stat-card { padding: 20px; text-align: center }
.stat-card .stat-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold) }
.stat-card .stat-label { font-size: .75rem; color: var(--text-muted); margin-top: 4px }
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px }
.section-row h2 { font-size: 1.25rem }

/* LOCKED OVERLAY */
.locked-overlay {
  position: relative;
}
.locked-overlay::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.lock-banner {
  background: linear-gradient(90deg, rgba(212,168,67,.15), rgba(212,168,67,.05));
  border: 1px solid rgba(212,168,67,.3); border-radius: var(--radius);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.lock-banner .lock-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(212,168,67,.15); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* TABS */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto }
.tab-btn {
  padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-muted); font-family: 'Montserrat', sans-serif; font-size: .875rem;
  font-weight: 500; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.tab-btn:hover { color: var(--text) }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold) }

/* TABLE */
.table-wrap { overflow-x: auto }
table { width: 100%; border-collapse: collapse }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .875rem }
th { color: var(--text-muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px }
tr:hover td { background: rgba(255,255,255,.02) }

/* DIALOG/MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
}
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border) }
.modal-header h3 { font-size: 1.125rem }
.modal-body { padding: 24px }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end }

/* TOAST */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px }
.toast {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 20px; min-width: 280px; max-width: 400px;
  animation: slideIn .3s ease; box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.toast-success { border-left: 3px solid var(--success) }
.toast-error { border-left: 3px solid var(--danger) }
.toast h4 { font-size: .875rem; margin-bottom: 4px; font-family: 'Montserrat', sans-serif }
.toast p { font-size: .8125rem; color: var(--text-muted) }

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

/* LOADING */
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg) } }
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* AGE GATE */
.age-gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: var(--bg);
}
.age-gate-card { width: 100%; max-width: 480px; text-align: center }

/* AI HOST */
#aiHost {
  position: fixed; bottom: 0; right: 10px; z-index: 150;
  display: flex; flex-direction: column; align-items: flex-end;
  pointer-events: none;
}
#aiHost > * { pointer-events: auto; }

#hostAvatar {
  width: 140px; height: auto; cursor: pointer;
  animation: hostFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(212,168,67,.35)) drop-shadow(0 4px 12px rgba(0,0,0,.5));
  transition: transform .3s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}
#hostAvatar:hover {
  transform: scale(1.06) rotateY(-5deg);
  filter: drop-shadow(0 12px 32px rgba(212,168,67,.5)) drop-shadow(0 6px 16px rgba(0,0,0,.6));
}

@keyframes hostFloat {
  0%, 100% { transform: translateY(0) rotateY(var(--tiltY, 0deg)) rotateX(var(--tiltX, 0deg)); }
  25% { transform: translateY(-12px) rotateY(var(--tiltY, 2deg)) rotateX(var(--tiltX, 0deg)); }
  50% { transform: translateY(-6px) rotateY(var(--tiltY, 0deg)) rotateX(var(--tiltX, 0deg)); }
  75% { transform: translateY(-14px) rotateY(var(--tiltY, -2deg)) rotateX(var(--tiltX, 0deg)); }
}

#hostGlow {
  position: absolute; bottom: 0; right: 30px;
  width: 80px; height: 20px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212,168,67,.3) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.3); opacity: .3; }
}

#hostChat {
  display: none; position: relative; margin-bottom: 10px; margin-right: 10px;
  width: 300px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.5);
  overflow: hidden;
}
#hostChat::after {
  content: ''; position: absolute; bottom: -8px; right: 40px;
  width: 16px; height: 16px; background: var(--bg-card);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
#hostChat.open { display: block; animation: chatSlideIn .3s ease-out; }

@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.host-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(212,168,67,.08), transparent);
}
.host-header img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold);
}
.host-header .host-name { font-weight: 700; font-size: .875rem }
.host-header .host-status { font-size: .75rem; color: var(--success) }
#hostText {
  padding: 16px; font-size: .875rem; color: var(--text-muted);
  line-height: 1.5; min-height: 60px;
}
.host-buttons {
  padding: 0 16px 16px; display: flex; flex-wrap: wrap; gap: 8px;
}
.host-buttons button {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-muted);
  font-family: 'Montserrat', sans-serif; font-size: .75rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.host-buttons button:hover { border-color: var(--gold); color: var(--gold) }

@media (max-width: 480px) {
  #hostChat { width: 260px; right: auto; }
  #hostAvatar { width: 100px; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 120px 0 60px }
  .hero-stats { gap: 24px }
  .section { padding: 60px 0 }
  .page-header { padding: 80px 0 30px }
  .grid-3, .grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) }
  .stats-grid { grid-template-columns: repeat(2, 1fr) }
  .dashboard-content { padding: 16px 12px }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr }
  .grid-2 { grid-template-columns: 1fr }
}
