/* ============================================================
   MAIN STYLESHEET — nudeaigenerator.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import './tokens.css';

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--surface-base);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Utility ── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: 0.01em;
  transition: all var(--duration-fast) var(--ease-default);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  outline: none;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-sm);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); filter: brightness(0.96); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:active { background: var(--surface-active); }

.btn-ghost {
  background: var(--surface-card);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 32px;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 7px 16px;
  font-size: var(--text-xs);
}

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ================================================================
   TOPNAV (Landing Pages)
   ================================================================ */

.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topnav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  gap: var(--space-4);
}

.topnav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.topnav-logo .logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topnav-logo .logo-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.topnav-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.topnav-link {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-default);
  text-decoration: none;
}

.topnav-link:hover { color: var(--text-primary); background: var(--surface-hover); }
.topnav-link.active { color: var(--text-primary); }
.topnav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.topnav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-default);
}
.hamburger-btn:focus-visible { outline: 2px solid var(--accent); }

/* ================================================================
   SIDEBAR (App Dashboard)
   ================================================================ */

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--surface-muted);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--duration-normal) var(--ease-default);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }

.sidebar-logo {
  padding: 20px var(--space-5);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  text-decoration: none;
}

.sidebar-logo .logo-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo .logo-icon svg {
  width: 18px; height: 18px;
  fill: #fff;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-3) var(--space-2);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-instant) var(--ease-default);
  text-decoration: none;
  position: relative;
  user-select: none;
}

.nav-item:hover { color: var(--text-primary); background: var(--surface-hover); }
.nav-item.active { color: var(--text-primary); background: var(--accent-muted); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.nav-item:focus-visible { outline: 2px solid var(--accent); }

.nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  background: var(--gradient);
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2) var(--space-3);
}

.sidebar-bottom {
  padding: var(--space-3);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-footer {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.sidebar-footer a { color: var(--text-muted); transition: color var(--duration-fast); }
.sidebar-footer a:hover { color: var(--text-secondary); }

/* ================================================================
   MAIN WRAPPER (App Layout)
   ================================================================ */

.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 150;
  /* No backdrop-filter — blur compositing on mobile Safari/Chrome
     causes this layer to visually cover the sidebar (z-index: 200)
     despite correct stacking order. Plain colour overlay is sufficient. */
}

/* ================================================================
   PAGE LAYOUT (Landing)
   ================================================================ */

.page-wrapper {
  padding-top: var(--topnav-height);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-10) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-10) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,51,102,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(255,107,53,0.08) 0%, transparent 60%),
    var(--surface-base);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: var(--weight-extrabold);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto var(--space-7);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding: var(--space-5) var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  max-width: 640px;
  margin: 0 auto;
}

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

.hero-stat-number {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ================================================================
   GALLERY PREVIEW
   ================================================================ */

.gallery-strip {
  display: flex;
  gap: var(--space-3);
  overflow: hidden;
  padding: var(--space-5) 0;
  position: relative;
}

.gallery-strip::before,
.gallery-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.gallery-strip::before { left: 0; background: linear-gradient(to right, var(--surface-base), transparent); }
.gallery-strip::after  { right: 0; background: linear-gradient(to left, var(--surface-base), transparent); }

.gallery-track {
  display: flex;
  gap: var(--space-3);
  animation: scroll-gallery 28s linear infinite;
  flex-shrink: 0;
}
.gallery-track-reverse { animation-direction: reverse; animation-duration: 32s; }

@keyframes scroll-gallery {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-card {
  width: 180px;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-card);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-default);
}

.gallery-card:hover { transform: scale(1.03); }

.gallery-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.4);
  transition: filter var(--duration-normal) var(--ease-default);
}

.gallery-card:hover .gallery-card-img { filter: blur(14px) brightness(0.5); }

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,51,102,0.08), rgba(255,107,53,0.06));
}

.gallery-card-lock {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}

.gallery-placeholder {
  width: 100%; height: 100%;
  background: var(--gradient-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(33.33% + 20px);
  right: calc(33.33% + 20px);
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--accent-alt));
  pointer-events: none;
}

.step-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  text-align: center;
  position: relative;
  transition: all var(--duration-fast) var(--ease-default);
}

.step-card:hover {
  border-color: var(--border-accent);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-glow-sm);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   FEATURES GRID
   ================================================================ */

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

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-6);
  transition: all var(--duration-fast) var(--ease-default);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.feature-card.featured {
  background: var(--gradient-card);
  border-color: var(--border-accent);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: all var(--duration-fast);
}

.feature-card:hover .feature-icon {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: var(--shadow-glow-sm);
}

.feature-card:hover .feature-icon svg { color: #fff; }

.feature-icon svg {
  width: 20px; height: 20px;
  color: var(--accent);
  transition: color var(--duration-fast);
}

.feature-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ================================================================
   MODEL SHOWCASE
   ================================================================ */

.model-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-7);
  max-width: fit-content;
}

.model-tab {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  border: none;
  background: none;
}

.model-tab.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow-sm);
}

.model-tab:hover:not(.active) { color: var(--text-primary); }
.model-tab:focus-visible { outline: 2px solid var(--accent); }

.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.model-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  position: relative;
}

.model-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.model-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--surface-hover);
  display: block;
}

.model-card-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #1a0010 0%, #0d0020 50%, #1a0a00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.model-card-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.08;
}

.model-card-placeholder svg {
  width: 48px; height: 48px;
  color: rgba(255,255,255,0.15);
  position: relative; z-index: 1;
}

.models-panel { display: none; }
.models-panel.active { display: block; }

.model-card-info {
  padding: var(--space-3) var(--space-4);
}

.model-card-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: 4px;
}

.model-card-style {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.model-card-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--weight-bold);
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.pricing-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  transition: all var(--duration-fast) var(--ease-default);
  position: relative;
  overflow: hidden;
}

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

.pricing-card.featured {
  background: linear-gradient(160deg, rgba(255,51,102,0.1) 0%, rgba(255,107,53,0.06) 100%);
  border-color: var(--border-accent);
  transform: scale(1.03);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  background: var(--gradient);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: var(--space-4);
}

.pricing-tier {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.pricing-amount {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-amount.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-currency {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-feature-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,51,102,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-feature-icon svg { width: 10px; height: 10px; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */

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

.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-fast) var(--ease-default);
}

.testimonial-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-4);
}

.testimonial-stars svg {
  width: 14px; height: 14px;
  fill: #fbbf24;
  color: #fbbf24;
}

.testimonial-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  font-style: italic;
}

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

.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.testimonial-handle {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ================================================================
   FAQ
   ================================================================ */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-fast);
}

.faq-item.open { border-color: var(--border-accent); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  user-select: none;
  transition: background var(--duration-fast);
}

.faq-question:hover { background: var(--surface-hover); }

.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--duration-fast) var(--ease-default);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ================================================================
   CTA SECTION
   ================================================================ */

.cta-section {
  padding: var(--space-10) 0;
}

.cta-card {
  background: linear-gradient(135deg, rgba(255,51,102,0.12) 0%, rgba(255,107,53,0.08) 60%, rgba(255,51,102,0.05) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-7);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse, rgba(255,51,102,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 50%; height: 70%;
  background: radial-gradient(ellipse, rgba(255,107,53,0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-7);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-9) 0 var(--space-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
  text-decoration: none;
  color: var(--text-primary);
}

.footer-brand-logo .logo-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
}

.footer-brand-logo .logo-icon svg { width: 16px; height: 16px; fill: #fff; }

.footer-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.footer-social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  background: var(--surface-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-fast);
  text-decoration: none;
}

.footer-social-link:hover {
  background: var(--accent-muted);
  border-color: var(--border-accent);
  color: var(--accent);
}

.footer-social-link svg { width: 16px; height: 16px; }

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-link:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-legal a:hover { color: var(--text-secondary); }

/* ================================================================
   AGE GATE / MODAL
   ================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: #111010;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 440px;
  width: 100%;
  text-align: center;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--duration-fast) var(--ease-spring);
  box-shadow: var(--shadow-lg);
}

.modal-backdrop.open .modal { transform: scale(1) translateY(0); }

.modal-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-5);
}

.modal-icon svg { width: 28px; height: 28px; color: var(--accent); }

.modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.modal-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-4);
  line-height: 1.6;
}

/* ================================================================
   GENERATOR DASHBOARD LAYOUT
   ================================================================ */

.app-topnav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-5);
  height: var(--topnav-height);
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-topnav-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  flex: 1;
}

.generator-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - var(--topnav-height));
  gap: 0;
}

.generator-panel {
  border-right: 1px solid var(--border);
  background: var(--surface-muted);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
  position: sticky;
  top: var(--topnav-height);
  height: calc(100vh - var(--topnav-height));
}

.generator-panel::-webkit-scrollbar { width: 4px; }
.generator-panel::-webkit-scrollbar-track { background: transparent; }
.generator-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }

.generator-canvas {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Input / Textarea ── */

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-textarea {
  width: 100%;
  min-height: 110px;
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.6;
  resize: vertical;
  transition: border-color var(--duration-fast);
  outline: none;
}

.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea:focus { border-color: var(--accent); }

.form-input {
  width: 100%;
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--accent); }

/* Style Selector ── */

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

.style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
}

.style-option:hover { border-color: var(--border-strong); color: var(--text-secondary); }

.style-option.selected {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--text-primary);
}

.style-option-thumb {
  width: 40px; height: 40px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--surface-hover);
  display: flex; align-items: center; justify-content: center;
}

/* Ratio Selector ── */

.ratio-grid {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.ratio-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 14px;
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.ratio-btn:hover { border-color: var(--border-strong); color: var(--text-secondary); }

.ratio-btn.selected {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--text-primary);
}

.ratio-icon {
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Count Selector ── */

.count-row {
  display: flex;
  gap: var(--space-2);
}

.count-btn {
  flex: 1;
  padding: 8px;
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
  text-align: center;
}

.count-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
.count-btn.selected { border-color: var(--accent); background: var(--accent-muted); color: var(--text-primary); }

/* Generate Button ── */

.generate-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  color: #fff;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all var(--duration-fast) var(--ease-default);
  box-shadow: var(--shadow-glow-sm);
  position: relative;
  overflow: hidden;
}

.generate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.generate-btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  filter: brightness(1.06);
}

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

.generate-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Output Grid ── */

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

.output-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

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

.output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.output-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  position: relative;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.output-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.output-card-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.output-card-skeleton {
  background: linear-gradient(90deg, var(--surface-card) 25%, var(--surface-hover) 50%, var(--surface-card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.6s ease-in-out infinite;
}

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

.output-card-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  display: flex;
  gap: var(--space-2);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.output-card:hover .output-card-actions { opacity: 1; }

/* Empty State ── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  min-height: 400px;
}

.empty-state-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}

.empty-state-icon svg { width: 32px; height: 32px; color: var(--text-muted); }

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.65;
}

/* ================================================================
   REGISTER / AUTH MODAL
   ================================================================ */

.auth-modal {
  background: #0d0c0d;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.auth-modal-header { text-align: center; margin-bottom: var(--space-6); }
.auth-modal-title { font-size: var(--text-2xl); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.auth-modal-sub { font-size: var(--text-sm); color: var(--text-secondary); }

.auth-form { display: flex; flex-direction: column; gap: var(--space-4); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

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

.auth-footer {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-4);
}

.auth-footer a { color: var(--accent); }

/* ================================================================
   BLOG / CONTENT PAGES
   ================================================================ */

.blog-header {
  padding: var(--space-10) 0 var(--space-8);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding: var(--space-8) 0;
}

.blog-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-default);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-thumb {
  height: 180px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.blog-card-thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,51,102,0.15) 0%, rgba(255,107,53,0.1) 100%);
}

.blog-card-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }

.blog-card-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  margin-bottom: var(--space-3);
  align-self: flex-start;
}

.blog-card-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  flex: 1;
}

.blog-card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

/* ================================================================
   CONTENT PAGES (Privacy, Terms, Contact)
   ================================================================ */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.legal-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.legal-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--border);
}

.legal-section { margin-bottom: var(--space-7); }

.legal-section h2 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
}

.legal-section h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}

.legal-section p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.legal-section ul {
  margin-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.legal-section li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: var(--space-2);
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-8);
  align-items: start;
  padding: var(--space-8) 0;
}

.contact-info { display: flex; flex-direction: column; gap: var(--space-5); }

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-info-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg { width: 18px; height: 18px; color: var(--accent); }

.contact-info-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-form-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */

.toast-container {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 1000;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: #1a1a1a;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  animation: toast-in var(--duration-fast) var(--ease-spring);
  max-width: 360px;
}

.toast.success { border-color: rgba(52, 211, 153, 0.4); }
.toast.error   { border-color: rgba(248, 113, 113, 0.4); }

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

/* ================================================================
   TABS
   ================================================================ */

.tab-bar {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: fit-content;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: calc(var(--radius-md) - 4px);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
  border: none;
  background: none;
}

.tab-btn.active {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.tab-btn:hover:not(.active) { color: var(--text-secondary); }
.tab-btn:focus-visible { outline: 2px solid var(--accent); }

/* ================================================================
   RANGE SLIDER
   ================================================================ */

.range-wrapper { display: flex; flex-direction: column; gap: var(--space-2); }

.range-header { display: flex; justify-content: space-between; align-items: center; }

.range-value {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  background: var(--accent-muted);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-glow-sm);
  cursor: pointer;
  transition: box-shadow var(--duration-fast);
}

input[type="range"]::-webkit-slider-thumb:hover { box-shadow: var(--shadow-glow); }

/* ================================================================
   SCROLLBAR (Global)
   ================================================================ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ================================================================
   FOCUS VISIBLE (Keyboard)
   ================================================================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Suppress focus ring on mouse click */
:focus:not(:focus-visible) { outline: none; }
