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

/* ── Design tokens ────────────────────────────────── */
:root {
  --primary: #7C6EE0;
  --primary-dark: #6558c8;
  --primary-light: #a598ea;
  --accent: #E8748A;
  --accent-light: #f4a0b0;
  --teal: #4ECDC4;
  --green: #52B788;

  --bg: #FEFEFE;
  --bg-alt: #F7F5FF;
  --bg-card: #FFFFFF;
  --bg-dark: #12102A;
  --bg-dark-card: #1E1C38;

  --text: #1C1A35;
  --text-muted: #6B6890;
  --text-light: #A09DC0;
  --border: #E8E5F5;
  --border-dark: #2E2B50;

  --shadow-sm: 0 2px 8px rgba(124,110,224,0.08);
  --shadow-md: 0 6px 24px rgba(124,110,224,0.12);
  --shadow-lg: 0 16px 48px rgba(124,110,224,0.16);
  --shadow-xl: 0 32px 80px rgba(124,110,224,0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);

  --nav-h: 68px;
  --sans: 'Poppins', system-ui, sans-serif;
  --serif: 'Poppins', system-ui, sans-serif;
}

.dark {
  --bg: #12102A;
  --bg-alt: #1A1836;
  --bg-card: #1E1C38;
  --text: #EAE8FF;
  --text-muted: #9E9BC0;
  --text-light: #6B6890;
  --border: #2E2B50;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; transition: background 0.3s, color 0.3s; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { font-family: var(--sans); cursor: pointer; border: none; outline: none; }

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* ── Typography ───────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  transition: var(--transition); cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; box-shadow: 0 4px 16px rgba(124,110,224,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,110,224,0.45); color: #fff; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #c94a64 100%);
  color: #fff; box-shadow: 0 4px 16px rgba(232,116,138,0.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,116,138,0.45); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); padding: 0.7rem 1.6rem;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: rgba(124,110,224,0.1); color: var(--primary); }
.btn-ghost:hover { background: rgba(124,110,224,0.2); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ── Navbar ───────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  padding: 0 2rem; gap: 2rem;
  background: rgba(254,254,254,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.dark .navbar { background: rgba(18,16,42,0.9); border-bottom-color: var(--border-dark); }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-brand .logo-mark {
  width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-links a {
  padding: 0.4rem 0.85rem; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(124,110,224,0.08); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-switcher { display: flex; align-items: center; gap: 2px; background: var(--bg-alt); border-radius: var(--radius-full); padding: 3px; }
.lang-btn { padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; background: transparent; color: var(--text-muted); transition: var(--transition); }
.lang-btn.active { background: var(--primary); color: #fff; }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.theme-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; background: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── Mobile nav ───────────────────────────────────── */
.nav-mobile-extras { display: none; }

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-card); flex-direction: column; padding: 1rem 1rem 1.25rem;
    gap: 0.25rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; border-radius: var(--radius-md); font-size: 1rem; }
  .hamburger { display: flex; }
  .nav-desktop-only { display: none !important; }
  .nav-mobile-extras {
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
  }
  /* Larger tap targets */
  .navbar { padding: 0 1rem; }
  .nav-brand { font-size: 1rem; }
}

/* ── Section layout ───────────────────────────────── */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-badge {
  display: inline-block; padding: 0.3rem 1rem; background: rgba(124,110,224,0.1);
  color: var(--primary); border-radius: var(--radius-full); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem;
}

/* ── Cards ────────────────────────────────────────── */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 2rem;
  transition: var(--transition-slow); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
}
.icon-purple { background: rgba(124,110,224,0.12); color: var(--primary); }
.icon-pink { background: rgba(232,116,138,0.12); color: var(--accent); }
.icon-teal { background: rgba(78,205,196,0.12); color: var(--teal); }
.icon-green { background: rgba(82,183,136,0.12); color: var(--green); }
.icon-amber { background: rgba(245,158,11,0.12); color: #f59e0b; }
.icon-red { background: rgba(239,68,68,0.12); color: #ef4444; }
.icon-blue { background: rgba(59,130,246,0.12); color: #3b82f6; }
.card h3 { margin-bottom: 0.5rem; color: var(--text); }
.card p { font-size: 0.92rem; line-height: 1.65; }
.card .card-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.25rem; font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.card .card-link:hover { gap: 0.6rem; }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: var(--transition);
}
.card:hover::before { opacity: 1; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h); position: relative; overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 80% at 70% 40%, rgba(124,110,224,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 60% at 20% 70%, rgba(232,116,138,0.07) 0%, transparent 60%);
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-blob-1 { width: 500px; height: 500px; background: rgba(124,110,224,0.12); top: -100px; right: 5%; animation: blobFloat 12s ease-in-out infinite; }
.hero-blob-2 { width: 400px; height: 400px; background: rgba(232,116,138,0.09); bottom: 0; left: 10%; animation: blobFloat 9s ease-in-out infinite reverse; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-25px) scale(1.04); }
  66% { transform: translate(-15px,15px) scale(0.97); }
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; width: 100%; }
.hero-badge-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(124,110,224,0.1); color: var(--primary);
  border: 1px solid rgba(124,110,224,0.2); padding: 0.4rem 1rem;
  border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-badge-pill::before { content: '✦'; font-size: 0.6rem; }
.hero-title { margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; max-width: 480px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 700; color: var(--primary); font-family: var(--sans); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Hero image */
.hero-image-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-img-ring {
  width: 420px; height: 420px; border-radius: 50%;
  border: 2px solid rgba(124,110,224,0.2);
  display: flex; align-items: center; justify-content: center;
  position: relative; animation: slowSpin 30s linear infinite;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }
.hero-img-ring::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; background: var(--primary);
  border-radius: 50%; top: 12px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(124,110,224,0.2);
}
.hero-img-inner {
  width: 360px; height: 360px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, rgba(124,110,224,0.15) 0%, rgba(232,116,138,0.12) 100%);
  display: flex; align-items: center; justify-content: center;
  animation: slowSpin 30s linear infinite reverse;
  border: 3px solid rgba(124,110,224,0.15);
}
.hero-img-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero-img-placeholder { font-size: 6rem; opacity: 0.5; }
.hero-float-badge {
  position: absolute; background: var(--bg-card); border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600;
}
.hero-float-1 { bottom: 20px; left: -20px; }
.hero-float-2 { top: 30px; right: -10px; }
.hero-float-badge .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.dot-purple { background: var(--primary); box-shadow: 0 0 0 3px rgba(124,110,224,0.2); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .hero-image-wrap { display: none; }
}

/* ── Services grid ────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.service-card .card-icon { margin-bottom: 1rem; }

/* ── Tools section ────────────────────────────────── */
.tools-section { background: var(--bg-dark); }
.dark .tools-section { background: #0e0c24; }
.tools-section .section-header h2 { color: #fff; }
.tools-section .section-header p { color: rgba(255,255,255,0.6); }
.tools-section .section-badge { background: rgba(124,110,224,0.2); color: rgba(255,255,255,0.9); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.25rem; }
.tool-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 1.75rem; transition: var(--transition-slow);
}
.tool-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(124,110,224,0.4); transform: translateY(-3px); }
.tool-card h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.05rem; }
.tool-card p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 1.25rem; }
.tool-card a { color: var(--primary-light); font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; }
.tool-card a:hover { gap: 0.55rem; }

/* ── About section ────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(124,110,224,0.1), rgba(232,116,138,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--primary); border: 2px solid var(--border);
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-floater {
  position: absolute; background: var(--bg-card); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.about-floater-1 { bottom: -20px; right: -20px; }
.about-floater-2 { top: -15px; left: -20px; }
.about-floater .label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.05em; }
.about-floater .value { font-size: 1.2rem; font-weight: 700; color: var(--primary); font-family: var(--sans); }
.about-content h2 { margin-bottom: 1rem; }
.about-content .lead { font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.5rem; }
.about-content .approach { background: var(--bg-alt); padding: 1.25rem 1.5rem; border-radius: var(--radius-md); border-left: 3px solid var(--primary); margin-bottom: 2rem; }
.about-content .approach h4 { color: var(--text); margin-bottom: 0.4rem; font-size: 0.95rem; }
.about-content .approach p { font-size: 0.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { padding: 0.35rem 0.85rem; background: rgba(124,110,224,0.1); color: var(--primary); border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 500; }
.tag.pink { background: rgba(232,116,138,0.1); color: var(--accent); }
.tag.teal { background: rgba(78,205,196,0.1); color: var(--teal); }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } .about-img-wrap { display: none; } }

/* ── Testimonials ─────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); position: relative; }
.testimonial-card::before { content: '\201C'; font-family: var(--sans); font-size: 5rem; color: var(--primary); opacity: 0.15; position: absolute; top: -0.5rem; left: 1.25rem; line-height: 1; }
.testimonial-card blockquote { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.85rem; }
.t-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.t-role { font-size: 0.75rem; color: var(--text-muted); }

/* ── Instagram section ────────────────────────────── */
.instagram-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.insta-post { aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-alt); position: relative; }
.insta-post img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.insta-post:hover img { transform: scale(1.06); }
.insta-post .insta-overlay { position: absolute; inset: 0; background: rgba(124,110,224,0.7); opacity: 0; transition: var(--transition); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; text-align: center; padding: 1rem; }
.insta-post:hover .insta-overlay { opacity: 1; }
.insta-placeholder { aspect-ratio: 1; border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(124,110,224,0.06), rgba(232,116,138,0.06)); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-light); }
.instagram-cta { text-align: center; }
@media (max-width: 600px) { .instagram-grid { grid-template-columns: repeat(2,1fr); } }

/* ── CTA Section ──────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #9B59B6 50%, var(--accent) 100%);
  text-align: center; padding: 5rem 0; position: relative; overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta-section .btn-white { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.cta-section .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.25); }

/* ── Crisis banner ────────────────────────────────── */
.crisis-banner {
  background: linear-gradient(90deg, #c0392b, #e74c3c); color: #fff;
  padding: 0.75rem 1.5rem; text-align: center; font-size: 0.88rem; font-weight: 500;
  position: relative; z-index: 50;
}
.crisis-banner strong { font-size: 1rem; }
.crisis-banner .dismiss-btn { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; cursor: pointer; }
@media (max-width: 768px) {
  .crisis-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    font-size: 0.82rem; padding: 0.6rem 2.5rem 0.6rem 1rem;
  }
}

/* ── Footer ───────────────────────────────────────── */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-mark { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-social a { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-social a:hover { color: var(--primary-light); }
.footer h4 { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.25rem; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer ul a:hover { color: var(--primary-light); }
.footer-crisis { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.footer-crisis p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-crisis strong { color: #fff; font-size: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: gap; font-size: 0.82rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Tools page ───────────────────────────────────── */
.tools-page { padding-top: calc(var(--nav-h) + 2rem); min-height: 100vh; }
.tools-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.tool-tab { padding: 0.55rem 1.25rem; border-radius: var(--radius-full); font-size: 0.88rem; font-weight: 500; background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); transition: var(--transition); cursor: pointer; }
.tool-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tool-panel { display: none; }
.tool-panel.active { display: block; }
@media (max-width: 600px) {
  .tools-tabs { gap: 0.4rem; }
  .tool-tab { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
  .chat-window { height: 320px; }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .emotion-label { width: 80px; font-size: 0.8rem; }
  .sp-contact-row { flex-direction: column; gap: 0.4rem; }
}

/* Chat */
.chat-window { height: 420px; overflow-y: auto; background: var(--bg-alt); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--border); border-bottom: none; }
.chat-msg { max-width: 80%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.ai { align-self: flex-start; }
.chat-bubble { padding: 0.75rem 1.1rem; border-radius: 18px; font-size: 0.9rem; line-height: 1.6; }
.user .chat-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.ai .chat-bubble { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.chat-input-row { display: flex; gap: 0.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 0.75rem; }
.chat-input-row textarea { flex: 1; border: none; background: none; resize: none; font-family: var(--sans); font-size: 0.9rem; color: var(--text); outline: none; min-height: 40px; max-height: 120px; }
.chat-notice { background: rgba(232,116,138,0.08); border: 1px solid rgba(232,116,138,0.2); border-radius: var(--radius-md); padding: 0.75rem 1rem; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }

/* Assessment */
.assess-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.assess-choice { background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; cursor: pointer; transition: var(--transition); text-align: center; }
.assess-choice:hover, .assess-choice.selected { border-color: var(--primary); background: rgba(124,110,224,0.06); }
.assess-choice .icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.assess-choice .name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.assess-choice .full { font-size: 0.75rem; color: var(--text-muted); }
.progress-bar-wrap { background: var(--bg-alt); border-radius: var(--radius-full); height: 6px; margin-bottom: 2rem; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: var(--radius-full); transition: width 0.4s; }
.question-text { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 1.5rem; line-height: 1.5; }
.options-grid { display: grid; gap: 0.6rem; }
.option-btn { background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius-md); padding: 0.85rem 1.25rem; text-align: left; font-size: 0.9rem; color: var(--text); transition: var(--transition); cursor: pointer; }
.option-btn:hover, .option-btn.selected { border-color: var(--primary); background: rgba(124,110,224,0.08); color: var(--primary); font-weight: 600; }
.result-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 2.5rem; border: 1px solid var(--border); text-align: center; }
.result-score-ring { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: #fff; }
.result-score-ring .score-num { font-size: 2rem; font-weight: 700; line-height: 1; }
.result-score-ring .score-label { font-size: 0.7rem; opacity: 0.85; }
.result-category { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.result-interpret { font-size: 0.9rem; line-height: 1.7; text-align: left; background: var(--bg-alt); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.5rem; }
.result-green { color: #22c55e; }
.result-yellow { color: #f59e0b; }
.result-orange { color: #f97316; }
.result-red { color: #ef4444; }

/* Contact page */
.contact-page { padding-top: calc(var(--nav-h) + 3rem); min-height: 100vh; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
.contact-form { background: var(--bg-card); border-radius: var(--radius-xl); padding: 3rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-control {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-md);
  border: 2px solid var(--border); background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 0.9rem; outline: none; transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,110,224,0.1); }
textarea.form-control { resize: vertical; min-height: 110px; }
.contact-info-card { position: sticky; top: calc(var(--nav-h) + 2rem); }
.info-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.info-item:last-child { border: none; }
.info-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(124,110,224,0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.info-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.info-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.success-msg { text-align: center; padding: 3rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } .contact-form { padding: 1.75rem; } }

/* Services page */
.services-page { padding-top: calc(var(--nav-h) + 3rem); min-height: 100vh; }
.services-hero { background: linear-gradient(135deg, rgba(124,110,224,0.08), rgba(232,116,138,0.06)); border-radius: var(--radius-xl); padding: 3rem; margin-bottom: 4rem; text-align: center; }
.services-hero h1 { margin-bottom: 1rem; }

/* About page */
.about-page { padding-top: calc(var(--nav-h) + 2rem); min-height: 100vh; }
.credential-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.credential-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border); font-size: 0.88rem; color: var(--text); }
.credential-item::before { content: '✓'; color: var(--green); font-weight: 700; }

/* Resources page */
.resources-page { padding-top: calc(var(--nav-h) + 3rem); min-height: 100vh; }
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.5rem; }
.resource-card { display: flex; gap: 1.25rem; background: var(--bg-card); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--border); transition: var(--transition-slow); }
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.resource-icon { font-size: 2rem; flex-shrink: 0; }
.resource-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.resource-card p { font-size: 0.85rem; }
.resource-card a { font-size: 0.82rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.6rem; }

/* ── Telegram FAB ─────────────────────────────────── */
.telegram-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 52px; height: 52px; background: #0088cc; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; box-shadow: 0 4px 16px rgba(0,136,204,0.4); z-index: 150; transition: var(--transition); }
.telegram-fab:hover { background: #0077b5; transform: scale(1.08); color: #fff; }
@media (max-width: 768px) { .telegram-fab { bottom: 4.5rem; } }

/* ── FAQ accordion ────────────────────────────────── */
.faq-card { padding: 1.75rem; }
.faq-item { border-bottom: 1px solid var(--border); margin-bottom: 0; padding: 1rem 0; }
.faq-item:first-of-type { padding-top: 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; transition: var(--transition); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.75; padding-bottom: 0.25rem; }

/* ── DBT Diary Card ───────────────────────────────── */
.dbt-card { padding: 1.75rem; }
.dbt-section { margin-bottom: 1.5rem; }
.dbt-section-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.75rem; }
.emotion-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.emotion-emoji { font-size: 1.1rem; width: 24px; flex-shrink: 0; }
.emotion-label { width: 110px; font-size: 0.85rem; color: var(--text); flex-shrink: 0; }
.emotion-slider { flex: 1; accent-color: var(--primary); cursor: pointer; }
.emotion-val { width: 20px; text-align: center; font-size: 0.88rem; font-weight: 700; color: var(--primary); }
.urge-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.urge-label { font-size: 0.85rem; color: var(--text); min-width: 180px; }
.urge-btns { display: flex; gap: 0.3rem; }
.urge-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-alt); font-size: 0.82rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: var(--transition); font-family: var(--sans); }
.urge-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.urge-btn:hover:not(.selected) { border-color: var(--primary); color: var(--primary); }
.skill-group-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); grid-column: 1 / -1; margin-top: 0.5rem; }
.skill-group-label:first-child { margin-top: 0; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.35rem; }
.skill-chip { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.65rem; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; color: var(--text-muted); transition: var(--transition); user-select: none; }
.skill-chip:hover { border-color: var(--primary); color: var(--primary); }
.skill-chip.selected { background: rgba(124,110,224,0.1); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* ── Mood history chart ───────────────────────────── */
.mood-chart { display: flex; gap: 0.5rem; align-items: flex-end; height: 80px; }
.mood-day { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; flex: 1; }
.mood-bar-wrap { height: 56px; display: flex; align-items: flex-end; }
.mood-bar { width: 100%; min-height: 6px; border-radius: 4px 4px 0 0; transition: height 0.4s ease; }
.mood-day-emoji { font-size: 0.9rem; line-height: 1; }
.mood-day-label { font-size: 0.65rem; color: var(--text-muted); }

/* Article / Resource detail page */
.article-page { padding-top: calc(var(--nav-h) + 2.5rem); min-height: 100vh; padding-bottom: 5rem; }
.article-container { max-width: 780px; }
.article-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2.5rem; transition: var(--transition); }
.article-back:hover { color: var(--primary); }
.article-hero { margin-bottom: 3rem; }
.article-icon-wrap { font-size: 3rem; margin-bottom: 1rem; }
.article-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.article-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 620px; line-height: 1.7; }
.article-body { display: flex; flex-direction: column; gap: 2.5rem; margin-bottom: 3rem; }
.article-section h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text); }
.article-section p { font-size: 0.95rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 0.75rem; }
.article-section p:last-child { margin-bottom: 0; }
.article-cta-box { padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* Admin */
.admin-page { padding: 2rem; max-width: 1100px; margin: 0 auto; padding-top: 4rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; background: var(--bg-alt); color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.badge-pending { background: rgba(245,158,11,0.12); color: #f59e0b; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }

/* ── Animations ───────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Mood buttons ─────────────────────────────────── */
.mood-btn { font-size: 1.75rem !important; width: 60px; height: 60px; border-radius: 50% !important; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; transition: var(--transition); border: 2px solid transparent !important; }
.mood-btn:hover { transform: scale(1.15); background: rgba(124,110,224,0.15) !important; }
.mood-btn.selected { background: rgba(124,110,224,0.2) !important; border-color: var(--primary) !important; transform: scale(1.2); box-shadow: 0 4px 16px rgba(124,110,224,0.35); }

/* ── Utility ──────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.loading { opacity: 0.5; pointer-events: none; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Safety Plan ──────────────────────────────────── */
.sp-stepper { display: flex; align-items: center; margin-bottom: 2rem; }
.sp-dot { width: 2rem; height: 2rem; border-radius: 50%; background: var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; transition: var(--transition); }
.sp-dot.active { background: var(--primary); color: white; box-shadow: 0 0 0 4px rgba(124,110,224,0.2); }
.sp-dot.complete { background: var(--green); color: white; }
.sp-line { flex: 1; height: 2px; background: var(--border); }
.sp-panel { display: none; }
.sp-panel.active { display: block; }
.sp-step-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.4rem 0; color: var(--text); }
.sp-step-desc { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1.25rem 0; line-height: 1.6; }
.sp-contact-row { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; }
.sp-contact-row .form-control { flex: 1; }
.sp-contact-row .form-control[readonly] { opacity: 0.65; background: var(--bg-alt); cursor: default; }
.sp-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; align-items: center; flex-wrap: wrap; }

/* ── My Plan (printable) ──────────────────────────── */
.plan-section { border-left: 3px solid var(--primary); padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: var(--bg-card); border-radius: 0 var(--radius-md) var(--radius-md) 0; box-shadow: var(--shadow-sm); }
.plan-section h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); margin: 0 0 0.6rem 0; }
.plan-section p { margin: 0; font-size: 0.92rem; line-height: 1.7; white-space: pre-wrap; }
.plan-contacts { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.plan-contacts td { padding: 0.3rem 0.5rem 0.3rem 0; vertical-align: top; }
.plan-contacts td:first-child { font-weight: 600; padding-right: 1rem; white-space: nowrap; }
.plan-crisis-banner { background: rgba(232,116,138,0.1); border: 1.5px solid rgba(232,116,138,0.5); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: 0.92rem; }
@media print {
  .navbar, .footer, .telegram-fab, .no-print, .crisis-banner { display: none !important; }
  body { background: white !important; color: black !important; }
  .plan-section { box-shadow: none; border-left: 3px solid #7C6EE0; background: white; }
  .plan-crisis-banner { background: #fff0f0; border-color: #E8748A; }
}
