/* ==================================================
   Dopafix Design System
   ================================================== */

/* ---- CSS Variables ---- */
:root {
  --primary: #6C63FF;
  --primary-hover: #5a52e0;
  --secondary: #8B7CF6;
  --accent: #63D2C7;
  --bg: #F7F8FC;
  --bg-elevated: #FFFFFF;
  --dark: #171827;
  --text: #303144;
  --muted: #73758A;
  --success: #45B97C;
  --success-light: #E8F5EE;
  --warning: #F2B84B;
  --warning-light: #FDF5E3;
  --danger: #E86A92;
  --danger-light: #FDE8EF;
  --info-light: #EEF2FF;
  --border: #E2E4F0;
  --border-strong: #C8CBE0;
  --shadow-sm: 0 1px 2px rgba(23,24,39,0.04);
  --shadow: 0 4px 24px rgba(23,24,39,0.06);
  --shadow-lg: 0 12px 40px rgba(23,24,39,0.10);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-height: 72px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --transition: 200ms ease;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #0F0F1A;
  --bg-elevated: #1A1A2E;
  --dark: #E8E8F0;
  --text: #E8E8F0;
  --muted: #9A9CB8;
  --border: #2A2A45;
  --border-strong: #3A3A5C;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.20);
  --shadow: 0 4px 24px rgba(0,0,0,0.30);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.40);
  --info-light: rgba(108,99,255,0.12);
  --success-light: rgba(69,185,124,0.12);
  --warning-light: rgba(242,184,75,0.12);
  --danger-light: rgba(232,106,146,0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0F1A;
    --bg-elevated: #1A1A2E;
    --dark: #E8E8F0;
    --text: #E8E8F0;
    --muted: #9A9CB8;
    --border: #2A2A45;
    --border-strong: #3A3A5C;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.20);
    --shadow: 0 4px 24px rgba(0,0,0,0.30);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.40);
    --info-light: rgba(108,99,255,0.12);
    --success-light: rgba(69,185,124,0.12);
    --warning-light: rgba(242,184,75,0.12);
    --danger-light: rgba(232,106,146,0.12);
  }
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p { margin-bottom: var(--space-lg); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }

/* ---- Layout ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl); }
.container-narrow { max-width: 800px; }
.container-wide { max-width: 1400px; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

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

.w-full { width: 100%; }
.h-full { height: 100%; }

.mt-auto { margin-top: auto; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* ---- Skip Link ---- */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--primary); color: #fff;
  padding: var(--space-sm) var(--space-lg);
  z-index: 10000; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600; font-size: 0.875rem;
}
.skip-link:focus { top: 0; outline: none; }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(247,248,252,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
[data-theme="dark"] .site-header,
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header { background: rgba(15,15,26,0.85); } }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl);
}

.logo {
  display: flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem;
  color: var(--text); text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}

.main-nav { display: none; gap: var(--space-lg); }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.nav-link {
  font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  padding: var(--space-sm) 0; position: relative; transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); text-decoration: none; }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary); border-radius: 2px; transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions { display: none; align-items: center; gap: var(--space-md); }
@media (min-width: 1024px) { .header-actions { display: flex; } }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: transparent;
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--border); color: var(--text); }

.mobile-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  color: var(--text); background: var(--bg-elevated); border: 1px solid var(--border);
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg-elevated); z-index: 2000;
  display: flex; flex-direction: column; padding: var(--space-xl);
  transform: translateX(100%); transition: transform 300ms ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2xl);
}
.mobile-menu-close {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text);
}
.mobile-nav { display: flex; flex-direction: column; gap: var(--space-md); flex: 1; }
.mobile-nav .nav-link { font-size: 1.125rem; padding: var(--space-md) 0; }
.mobile-menu-footer { display: flex; flex-direction: column; gap: var(--space-md); margin-top: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm); font-family: var(--font-body); font-weight: 600;
  font-size: 0.9375rem; padding: 10px 20px; border-radius: 12px;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
  border: 1px solid transparent; line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(108,99,255,0.25);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(108,99,255,0.35); filter: brightness(1.05); }

.btn-secondary {
  background: var(--bg-elevated); color: var(--text); border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg); }

.btn-ghost { background: transparent; color: var(--primary); border-color: transparent; }
.btn-ghost:hover { background: var(--info-light); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }

.btn-sm { padding: 6px 14px; font-size: 0.875rem; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }

/* ---- Cards ---- */
.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-body { padding: var(--space-xl); }
.card-body-lg { padding: var(--space-2xl); }
.card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-sm); }
.card-text { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

.card-premium {
  background: linear-gradient(135deg, rgba(108,99,255,0.06), rgba(139,124,246,0.06));
  border: 1px solid rgba(108,99,255,0.15); border-radius: var(--radius);
}

/* ---- Forms ---- */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--text); margin-bottom: var(--space-sm);
}
.form-label .required { color: var(--danger); }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text); font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2373758A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* ---- Alerts ---- */
.alert {
  display: flex; align-items: flex-start; gap: var(--space-md);
  padding: var(--space-lg); border-radius: var(--radius);
  font-size: 0.9375rem; line-height: 1.6;
}
.alert-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.alert-warning { background: var(--warning-light); color: #7A5C1E; border: 1px solid rgba(242,184,75,0.3); }
.alert-success { background: var(--success-light); color: #2A7A52; border: 1px solid rgba(69,185,124,0.3); }
.alert-danger { background: var(--danger-light); color: #8A2E4E; border: 1px solid rgba(232,106,146,0.3); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
}
.badge-primary { background: var(--info-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: #B08A2E; }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-muted { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

/* ---- Hero ---- */
.hero {
  position: relative; padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
  overflow: hidden;
}
.hero-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(108,99,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { text-align: center; max-width: 720px; margin: 0 auto; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1;
  margin-bottom: var(--space-lg); letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.125rem; color: var(--muted); line-height: 1.7;
  margin-bottom: var(--space-xl); max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-lg); }
.hero-disclaimer { font-size: 0.8125rem; color: var(--muted); }

/* ---- Sections ---- */
.section { padding: var(--space-4xl) 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-label {
  display: inline-block; font-size: 0.8125rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-md);
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: var(--space-md); }
.section-desc { font-size: 1.0625rem; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---- Page Header ---- */
.page-header { text-align: center; margin-bottom: var(--space-3xl); }
.page-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: var(--space-sm); }
.page-subtitle { font-size: 1.0625rem; color: var(--muted); }

/* ---- Pricing Grid ---- */
.pricing-grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-2xl);
  display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 0.75rem; font-weight: 700; padding: 6px 16px;
  border-radius: 20px; box-shadow: 0 4px 12px rgba(108,99,255,0.3);
}
.pricing-card-header { text-align: center; margin-bottom: var(--space-xl); }
.pricing-card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-sm); }
.pricing-card-price { font-size: 2.5rem; font-weight: 800; margin-bottom: var(--space-sm); }
.pricing-card-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-card-desc { font-size: 0.9375rem; color: var(--muted); }
.pricing-features { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-xl); flex: 1; }
.pricing-feature { display: flex; align-items: center; gap: var(--space-md); font-size: 0.9375rem; }
.pricing-feature.muted { color: var(--muted); opacity: 0.6; }
.pricing-feature-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--success); }
.pricing-card-footer { margin-top: auto; }

/* ---- Blog ---- */
.blog-grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card-image {
  height: 180px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
}
.blog-card-category { position: absolute; top: var(--space-lg); left: var(--space-lg); }
.blog-card-body { padding: var(--space-xl); display: flex; flex-direction: column; }
.blog-card-meta { display: flex; gap: var(--space-md); font-size: 0.8125rem; color: var(--muted); margin-bottom: var(--space-sm); }
.blog-card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-sm); line-height: 1.35; }
.blog-card-excerpt { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; margin-bottom: var(--space-lg); flex: 1; }
.blog-card-footer { margin-top: auto; }

.blog-post-header { margin-bottom: var(--space-2xl); }
.blog-post-category { margin-bottom: var(--space-md); }
.blog-post-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: var(--space-md); }
.blog-post-meta { display: flex; gap: var(--space-md); font-size: 0.9375rem; color: var(--muted); }
.blog-post-content { font-size: 1.0625rem; line-height: 1.8; color: var(--text); }
.blog-post-content h2 { font-size: 1.5rem; margin-top: var(--space-3xl); margin-bottom: var(--space-lg); }
.blog-post-content h3 { font-size: 1.25rem; margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.blog-post-content p { margin-bottom: var(--space-xl); }
.blog-post-content ul { padding-left: var(--space-xl); list-style: disc; margin-bottom: var(--space-xl); }
.blog-post-content li { margin-bottom: var(--space-sm); }
.blog-post-takeaways {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-2xl); margin-top: var(--space-3xl);
}
.blog-post-takeaways h3 { margin-bottom: var(--space-lg); }
.blog-post-takeaways ul { padding-left: var(--space-xl); list-style: disc; }
.blog-post-takeaways li { margin-bottom: var(--space-sm); font-size: 1rem; }

/* ---- Education ---- */
.edu-grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
@media (min-width: 768px) { .edu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .edu-grid { grid-template-columns: repeat(3, 1fr); } }

.edu-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-xl);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.edu-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.edu-card-category { margin-bottom: var(--space-md); align-self: flex-start; }
.edu-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-sm); }
.edu-card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; margin-bottom: var(--space-lg); flex: 1; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-md); }
.faq-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg) var(--space-xl); font-size: 1rem; font-weight: 600;
  color: var(--text); text-align: left; background: none; border: none;
}
.faq-question:hover { background: rgba(108,99,255,0.03); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 300ms ease, padding 300ms ease;
  padding: 0 var(--space-xl);
}
.faq-answer.open { max-height: 500px; padding: 0 var(--space-xl) var(--space-lg); }
.faq-answer p { color: var(--muted); font-size: 0.9375rem; line-height: 1.7; margin: 0; }

/* ---- Steps ---- */
.steps-list { display: flex; flex-direction: column; gap: var(--space-2xl); }
.step-item { display: flex; gap: var(--space-xl); align-items: flex-start; }
.step-number {
  width: 56px; height: 56px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800;
  box-shadow: 0 4px 14px rgba(108,99,255,0.25);
}
.step-content h4 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.step-content p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 0; }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: var(--space-2xl); grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.5fr; } }
.contact-info { display: flex; flex-direction: column; gap: var(--space-xl); }
.contact-info-item { display: flex; gap: var(--space-lg); align-items: flex-start; }
.contact-info-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--info-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ---- Editorial List ---- */
.editorial-list { display: flex; flex-direction: column; gap: var(--space-md); }
.editorial-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.editorial-item-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--info-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; flex-shrink: 0;
}
.editorial-item-text { font-size: 1rem; line-height: 1.6; padding-top: 4px; }

/* ---- Disclaimer Card ---- */
.disclaimer-card {
  background: var(--warning-light); border: 1px solid rgba(242,184,75,0.3);
  border-radius: var(--radius); padding: var(--space-2xl);
}
.disclaimer-card-title {
  display: flex; align-items: center; gap: var(--space-md);
  font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-lg); color: #7A5C1E;
}
.disclaimer-card-text { color: #7A5C1E; font-size: 1rem; line-height: 1.7; }
.disclaimer-card-text p { margin-bottom: var(--space-md); }
.disclaimer-card-text p:last-child { margin-bottom: 0; }

/* ---- Assessment ---- */
.assessment-container { max-width: 640px; margin: 0 auto; }
.assessment-progress { margin-bottom: var(--space-2xl); }
.assessment-progress-bar {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.assessment-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px; transition: width 400ms ease;
}
.assessment-progress-text { font-size: 0.8125rem; color: var(--muted); margin-top: var(--space-sm); text-align: center; }
.assessment-question { margin-bottom: var(--space-2xl); }
.assessment-question-text { font-size: 1.25rem; font-weight: 600; line-height: 1.5; margin-bottom: var(--space-xl); }
.assessment-options { display: flex; flex-direction: column; gap: var(--space-md); }
.assessment-option {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-elevated); border: 2px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: all var(--transition);
  font-size: 1rem; color: var(--text); text-align: left; width: 100%;
}
.assessment-option:hover { border-color: var(--primary); background: var(--info-light); }
.assessment-option.selected { border-color: var(--primary); background: var(--info-light); box-shadow: 0 0 0 3px rgba(108,99,255,0.12); }
.assessment-option-radio {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong);
  flex-shrink: 0; transition: all var(--transition); position: relative;
}
.assessment-option.selected .assessment-option-radio { border-color: var(--primary); background: var(--primary); }
.assessment-option.selected .assessment-option-radio::after {
  content: ''; position: absolute; inset: 5px; background: #fff; border-radius: 50%;
}
.assessment-nav { display: flex; justify-content: space-between; align-items: center; }

/* ---- Result Report ---- */
.result-page { background: var(--bg); }
.result-report {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden; max-width: 900px; margin: 0 auto;
}
.result-report-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; padding: var(--space-2xl); text-align: center;
}
.result-report-header .logo { color: #fff; justify-content: center; margin-bottom: var(--space-lg); }
.result-report-header .logo-icon { background: rgba(255,255,255,0.2); }
.result-report-header h2 { color: #fff; font-size: 1.5rem; margin-bottom: var(--space-sm); }
.result-report-header p { color: rgba(255,255,255,0.85); font-size: 0.9375rem; margin: 0; }
.result-report-header .report-meta { display: flex; justify-content: center; gap: var(--space-xl); margin-top: var(--space-lg); flex-wrap: wrap; }
.result-report-header .report-meta-item { font-size: 0.8125rem; color: rgba(255,255,255,0.8); }
.result-report-header .report-meta-item strong { color: #fff; display: block; font-size: 0.9375rem; margin-top: 2px; }

.result-body { padding: var(--space-2xl); }
@media (min-width: 768px) { .result-body { padding: var(--space-3xl); } }

.result-section { margin-bottom: var(--space-3xl); }
.result-section:last-child { margin-bottom: 0; }
.result-section-title {
  font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-lg);
  display: flex; align-items: center; gap: var(--space-md);
}
.result-section-title svg { color: var(--primary); }

.result-summary-card {
  background: linear-gradient(135deg, rgba(108,99,255,0.06), rgba(139,124,246,0.06));
  border: 1px solid rgba(108,99,255,0.15); border-radius: var(--radius);
  padding: var(--space-2xl); margin-bottom: var(--space-2xl);
}
.result-summary-card p { font-size: 1.0625rem; line-height: 1.7; margin-bottom: var(--space-lg); }
.result-summary-card p:last-child { margin-bottom: 0; }

.domain-grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
@media (min-width: 768px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }

.domain-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-xl); transition: box-shadow var(--transition);
}
.domain-card:hover { box-shadow: var(--shadow); }
.domain-card-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.domain-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--info-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.domain-card-title { font-size: 1.125rem; font-weight: 700; }
.domain-card-label { font-size: 0.8125rem; font-weight: 600; margin-bottom: var(--space-sm); }
.domain-card-label.low { color: var(--success); }
.domain-card-label.moderate { color: var(--warning); }
.domain-card-label.elevated { color: var(--danger); }
.domain-indicator { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: var(--space-md); }
.domain-indicator-fill { height: 100%; border-radius: 4px; transition: width 800ms ease; }
.domain-indicator-fill.low { width: 33%; background: var(--success); }
.domain-indicator-fill.moderate { width: 66%; background: var(--warning); }
.domain-indicator-fill.elevated { width: 100%; background: var(--danger); }
.domain-card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; margin: 0; }
.domain-card .reflection { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); font-style: italic; }

.result-next-steps { display: flex; flex-direction: column; gap: var(--space-lg); }
.result-next-step { display: flex; gap: var(--space-lg); align-items: flex-start; }
.result-next-step-num {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: var(--info-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 0.875rem;
}
.result-next-step h4 { font-size: 1rem; margin-bottom: 4px; }
.result-next-step p { font-size: 0.9375rem; color: var(--muted); margin: 0; }

/* Professional Search */
.pro-search-form {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-xl); margin-bottom: var(--space-2xl);
}
.pro-search-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 768px) { .pro-search-grid { grid-template-columns: 1fr 1fr 1fr; } }
.pro-search-cards { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 768px) { .pro-search-cards { grid-template-columns: repeat(2, 1fr); } }
.pro-search-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-xl); text-align: center;
}
.pro-search-card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--info-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-lg);
}
.pro-search-card h4 { font-size: 1rem; margin-bottom: var(--space-sm); }
.pro-search-card p { font-size: 0.875rem; color: var(--muted); margin-bottom: var(--space-lg); }

/* Reflection list */
.reflection-list { display: flex; flex-direction: column; gap: var(--space-md); }
.reflection-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.reflection-item::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); margin-top: 8px; flex-shrink: 0;
}
.reflection-item p { margin: 0; font-size: 1rem; line-height: 1.6; }

/* ---- Dashboard ---- */
.dashboard { display: flex; min-height: 100vh; padding-top: var(--header-height); }
.dashboard-sidebar {
  width: 260px; background: var(--bg-elevated); border-right: 1px solid var(--border);
  padding: var(--space-xl); display: none; flex-direction: column; gap: var(--space-sm);
  position: fixed; top: var(--header-height); bottom: 0; left: 0; overflow-y: auto;
}
@media (min-width: 1024px) { .dashboard-sidebar { display: flex; } }
.dashboard-nav-item {
  display: flex; align-items: center; gap: var(--space-md);
  padding: 10px 14px; border-radius: 10px;
  font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  transition: all var(--transition); text-decoration: none;
}
.dashboard-nav-item:hover, .dashboard-nav-item.active { background: var(--info-light); color: var(--primary); text-decoration: none; }
.dashboard-nav-item svg { flex-shrink: 0; }

.dashboard-main { flex: 1; padding: var(--space-2xl); margin-left: 0; }
@media (min-width: 1024px) { .dashboard-main { margin-left: 260px; } }

.dashboard-header { margin-bottom: var(--space-2xl); }
.dashboard-title { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--space-sm); }
.dashboard-subtitle { color: var(--muted); font-size: 1rem; }
.dashboard-user-name { color: var(--primary); }

.dashboard-quick-actions { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dashboard-quick-action {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-xl); text-align: center; transition: box-shadow var(--transition), transform var(--transition);
}
.dashboard-quick-action:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dashboard-quick-action-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--info-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-md);
}
.dashboard-quick-action h4 { font-size: 1rem; margin-bottom: 4px; }
.dashboard-quick-action p { font-size: 0.8125rem; color: var(--muted); margin-bottom: var(--space-md); }

.dashboard-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); }
.dashboard-card-header { padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--border); }
.dashboard-activity { padding: var(--space-xl); }
.dashboard-activity-item { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--border); }
.dashboard-activity-item:last-child { border-bottom: none; }
.dashboard-activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex-shrink: 0; }
.dashboard-activity-item p { margin: 0; font-size: 0.9375rem; }
.dashboard-activity-item span { font-size: 0.8125rem; color: var(--muted); }

/* ---- Journal ---- */
.journal-entries { display: flex; flex-direction: column; gap: var(--space-lg); }
.journal-entry {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-xl); transition: box-shadow var(--transition);
}
.journal-entry:hover { box-shadow: var(--shadow); }
.journal-entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); flex-wrap: wrap; gap: var(--space-sm); }
.journal-entry-date { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.journal-entry-difficulty { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.journal-entry-difficulty.d1 { background: var(--success-light); color: var(--success); }
.journal-entry-difficulty.d2 { background: #E8F4E8; color: #5A9E5A; }
.journal-entry-difficulty.d3 { background: var(--warning-light); color: #B08A2E; }
.journal-entry-difficulty.d4 { background: #FDE8E8; color: #C05050; }
.journal-entry-difficulty.d5 { background: var(--danger-light); color: var(--danger); }
.journal-entry h4 { font-size: 1rem; margin-bottom: var(--space-sm); }
.journal-entry p { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--space-sm); line-height: 1.6; }
.journal-entry p:last-child { margin-bottom: 0; }
.journal-entry-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }

/* ---- Checkout ---- */
.checkout-container { max-width: 720px; margin: 0 auto; }
.checkout-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-2xl); margin-bottom: var(--space-xl);
}
.checkout-product { display: flex; align-items: center; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.checkout-product-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.checkout-product h3 { font-size: 1.25rem; margin-bottom: 4px; }
.checkout-product p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.checkout-row { display: flex; justify-content: space-between; padding: var(--space-md) 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.checkout-row:last-child { border-bottom: none; }
.checkout-row.total { font-size: 1.125rem; font-weight: 700; color: var(--text); padding-top: var(--space-lg); margin-top: var(--space-md); border-top: 2px solid var(--border); }
.checkout-coupon { display: flex; gap: var(--space-md); margin-bottom: var(--space-xl); }
.checkout-coupon input { flex: 1; }

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(180deg, #171827 0%, #1E1F35 100%);
  color: #fff; padding: var(--space-4xl) 0 var(--space-xl);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl); }
.footer-grid {
  display: grid; gap: var(--space-2xl); grid-template-columns: 1fr;
  margin-bottom: var(--space-3xl);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.footer-brand { max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; margin-bottom: var(--space-lg); }
.footer-logo:hover { text-decoration: none; }
.footer-logo .logo-icon { background: rgba(255,255,255,0.12); }
.footer-desc { font-size: 0.9375rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-column h4 { font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-lg); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-md); }
.footer-links a { font-size: 0.9375rem; color: rgba(255,255,255,0.55); transition: color var(--transition); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-xl); }
.footer-legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-lg); }
.footer-legal span { font-size: 0.875rem; color: rgba(255,255,255,0.4); }
.footer-disclaimer { font-size: 0.8125rem; color: rgba(255,255,255,0.35); line-height: 1.6; text-align: center; }

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  padding: var(--space-lg) 0; z-index: 3000;
  transform: translateY(100%); transition: transform 400ms ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap;
}
.cookie-banner-text { font-size: 0.9375rem; color: var(--text); margin: 0; }
.cookie-banner-actions { display: flex; gap: var(--space-md); }

/* ---- Toast ---- */
.toast-container {
  position: fixed; top: calc(var(--header-height) + var(--space-lg)); right: var(--space-lg);
  z-index: 4000; display: flex; flex-direction: column; gap: var(--space-md);
}
.toast {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-lg) var(--space-xl); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--space-md); min-width: 280px;
  animation: toastIn 300ms ease; font-size: 0.9375rem;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(23,24,39,0.5);
  z-index: 5000; display: flex; align-items: center; justify-content: center;
  padding: var(--space-xl); opacity: 0; pointer-events: none; transition: opacity 200ms ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); max-width: 640px; width: 100%; max-height: 85vh;
  display: flex; flex-direction: column; transform: scale(0.95); transition: transform 200ms ease;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-xl); border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1.125rem; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--bg); }
.modal-close:hover { color: var(--text); }
.modal-body { padding: var(--space-xl); overflow-y: auto; flex: 1; font-size: 1rem; line-height: 1.7; }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: var(--space-4xl) var(--space-xl); }
.empty-state-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); margin: 0 auto var(--space-xl);
}
.empty-state h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.empty-state p { color: var(--muted); margin-bottom: var(--space-xl); }

/* ---- Error Page ---- */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--space-xl);
}
.error-code { font-size: 6rem; font-weight: 800; font-family: var(--font-heading); color: var(--primary); line-height: 1; margin-bottom: var(--space-lg); }
.error-title { font-size: 1.75rem; margin-bottom: var(--space-md); }
.error-text { color: var(--muted); margin-bottom: var(--space-xl); }

/* ---- Auth Pages ---- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-xl); }
.auth-card { width: 100%; max-width: 420px; }

/* ---- Animations ---- */
[data-animate] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-animate].animated { opacity: 1; transform: translateY(0); }

/* ---- Print Styles ---- */
@media print {
  .site-header, .mobile-menu, .site-footer, .cookie-banner,
  .btn, .theme-toggle, .mobile-menu-btn, .assessment-nav,
  .result-cta-section, .pro-search-form .btn, .journal-entry-actions,
  .dashboard-sidebar, .dashboard-quick-actions .btn {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .result-report { box-shadow: none; border: 1px solid #ddd; max-width: 100%; }
  .result-report-header { background: #f5f5f5 !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .result-report-header .logo { color: #000 !important; }
  .result-report-header p, .result-report-header .report-meta-item { color: #333 !important; }
  .result-report-header .report-meta-item strong { color: #000 !important; }
  .domain-card { break-inside: avoid; page-break-inside: avoid; }
  .result-section { break-inside: avoid; page-break-inside: avoid; }
  .result-next-step { break-inside: avoid; page-break-inside: avoid; }
  .disclaimer-card { break-inside: avoid; page-break-inside: avoid; background: #fff8e1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card-premium { background: #f8f8ff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .domain-indicator-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; color: #000; }
  .page-break { page-break-before: always; }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .step-item { flex-direction: column; text-align: center; }
  .step-number { margin: 0 auto var(--space-md); }
  .contact-grid { grid-template-columns: 1fr; }
  .result-report-header .report-meta { flex-direction: column; gap: var(--space-md); }
  .checkout-coupon { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cookie-banner-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 1023px) {
  .dashboard-sidebar { display: none; }
  .dashboard-main { margin-left: 0; }
}

/* ---- Hidden utilities ---- */
.hidden { display: none !important; }
.justify-center { justify-content: center; }
