/* Circle247 - brand v2 (July 2026)
   Gradients first, flats second: teal #03587C-#05475E, pink #F089A9-#F4A8BE,
   cream #FEF7F9-#FCE8F1, ink #05475E. Fredoka displays, Nunito reads. */

:root {
  --teal: #03587C;
  --teal-deep: #05475E;
  --teal-soft: #1d7ba6;
  --teal-mute: rgba(3, 88, 124, 0.08);
  --pink: #F089A9;
  --pink-deep: #EB6F92;
  --pink-soft: #F4A8BE;
  --pink-tint: #FCE8F1;
  --cream: #FEF7F9;
  --cream-warm: #FCE8F1;
  --ink: #05475E;
  --ink-soft: #3d6b82;
  --ink-mute: #8aa4b0;
  /* Brand v2 gradients - the same ones inside the logo */
  --grad-teal: linear-gradient(135deg, #03587C, #05475E);
  --grad-pink: linear-gradient(135deg, #F089A9, #F4A8BE);
  --grad-cream: linear-gradient(160deg, #FEF7F9, #FCE8F1);
  /* Legacy aliases kept so unchanged rules still resolve */
  --navy: var(--teal);
  --navy-deep: var(--teal-deep);
  --navy-soft: var(--teal-soft);
  --green: var(--teal);
  --green-soft: var(--teal-soft);
  --green-deep: var(--teal-deep);
  --peach: var(--pink-soft);
  --coral: #e07a5f;
  --line: rgba(3, 88, 124, 0.1);
  --shadow-sm: 0 2px 8px rgba(3, 88, 124, 0.08);
  --shadow-md: 0 8px 30px rgba(3, 88, 124, 0.12);
  --shadow-lg: 0 20px 60px rgba(3, 88, 124, 0.15);
  --radius: 24px;
  --radius-sm: 12px;
  --font-display: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--grad-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--green); }

.c-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .c-container { padding: 0 20px; } }

/* ---------- Buttons ---------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.c-btn--primary { background: var(--grad-teal); color: #fff; box-shadow: 0 6px 18px rgba(3, 88, 124, 0.3); }
.c-btn--primary:hover { background: var(--grad-teal); filter: brightness(1.12); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(3, 88, 124, 0.4); }
.c-btn--ghost { background: transparent; color: var(--navy); }
.c-btn--ghost:hover { background: rgba(3, 88, 124, 0.05); color: var(--navy); }
.c-btn--outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.c-btn--outline:hover { background: var(--cream-warm); color: var(--navy); }
.c-btn--danger { background: var(--coral); color: #fff; }
.c-btn--danger:hover { background: #c96247; color: #fff; }
.c-btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.c-btn--block { width: 100%; }

/* ---------- Nav ---------- */
.c-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 247, 249, 0.9);
  border-bottom: 1px solid rgba(3, 88, 124, 0.08);
}
.c-nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.c-nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy); text-decoration: none; }
.c-nav__brand:hover { color: var(--navy); }
.c-nav__links { display: flex; align-items: center; gap: 28px; }
/* ---------- Country dropdown ---------- */
.c-country { position: relative; }
.c-country__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(3, 88, 124, 0.12);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.c-country__btn:hover { background: #fff; border-color: rgba(3, 88, 124, 0.25); }
.c-country__btn[aria-expanded="true"] { background: #fff; border-color: var(--teal); }
.c-country__flag { font-size: 1.05rem; line-height: 1; }
.c-country__caret { font-size: 0.75rem; color: var(--ink-mute); }
.c-country__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(3, 88, 124, 0.15);
  list-style: none;
  padding: 6px;
  margin: 0;
  display: none;
  z-index: 120;
}
.c-country.is-open .c-country__menu { display: block; animation: c-country-fade 0.15s ease-out; }
@keyframes c-country-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.c-country__menu li { margin: 0; }
.c-country__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--teal);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.12s ease;
}
.c-country__item:hover:not(.is-disabled) { background: var(--pink-tint); color: var(--teal); }
.c-country__item.is-current { background: rgba(3, 88, 124, 0.08); }
.c-country__item.is-disabled {
  color: var(--ink-mute);
  cursor: not-allowed;
}
.c-country__name { flex: 1; }
.c-country__tick { color: var(--teal); font-weight: 700; }
.c-country__soon {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  background: var(--pink-tint);
  padding: 3px 8px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .c-country__btn { padding: 6px 10px; font-size: 0.85rem; }
  .c-country__menu { right: -10px; min-width: 220px; }
}

.c-nav__links a { color: var(--teal); font-weight: 500; font-size: 0.95rem; }
.c-nav__links a:hover { color: var(--teal-deep); }
.c-nav__links a.c-btn { padding: 10px 20px; font-size: 0.9rem; }
.c-nav__links a.c-btn--primary { color: #fff; }
.c-nav__links a.c-btn--primary:hover { color: #fff; }
.c-nav__links a.c-btn--ghost { color: var(--teal); }
.c-nav__links a.c-btn--ghost:hover { color: var(--teal-deep); }
@media (max-width: 720px) {
  .c-nav__inner { padding: 14px 20px; }
  .c-nav__links { gap: 14px; }
  .c-nav__links a:not(.c-btn) { display: none; }
}

/* ---------- Logo mark ---------- */
.c-logo-mark {
  width: 34px;
  height: 34px;
  display: inline-block;
  background-image: url('../img/logo-mark.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}
.c-logo-text { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.c-logo-text span { color: var(--ink); }

/* ---------- Hero with parallax ---------- */
.c-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  background: var(--grad-cream);
}
.c-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 88, 124, 0.15) 0%, transparent 60%);
  z-index: 0;
  animation: drift 18s ease-in-out infinite;
}
.c-hero::after {
  content: '';
  position: absolute;
  bottom: -250px;
  right: -180px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
  z-index: 0;
  animation: drift 22s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}
.c-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media (max-width: 960px) { .c-hero__inner { grid-template-columns: 1fr; gap: 50px; } }

.c-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(3, 88, 124, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 20px;
}
.c-hero__badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(3, 88, 124, 0.22); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.c-hero h1 { margin-bottom: 20px; }
.c-hero__lede { font-size: 1.22rem; color: var(--ink-soft); margin-bottom: 32px; max-width: 540px; }
.c-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.c-hero__trust {
  margin-top: 40px;
  display: flex;
  gap: 30px;
  font-size: 0.88rem;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.c-hero__trust span { display: flex; align-items: center; gap: 8px; }
.c-hero__trust span::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* Floating phone mock */
.c-hero__visual {
  position: relative;
  height: 540px;
}
.c-phone {
  position: absolute;
  width: 260px;
  height: 520px;
  background: var(--teal);
  border-radius: 38px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(3, 88, 124, 0.35), 0 0 0 8px rgba(3, 88, 124, 0.08);
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 6s ease-in-out infinite;
}
.c-phone__screen {
  width: 100%;
  height: 100%;
  background: var(--grad-teal);
  border-radius: 26px;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.c-phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #000;
  border-radius: 12px;
}
.c-phone__content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--cream); text-align: center; padding-top: 20px; }
.c-phone__pulse {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--pink);
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 0 0 0 rgba(252, 155, 179, 0.7);
  animation: pulse-ring 2s ease-out infinite;
}
.c-phone__pulse::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(252, 155, 179, 0.7); }
  70% { box-shadow: 0 0 0 30px rgba(252, 155, 179, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 155, 179, 0); }
}
.c-phone__label { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; }
.c-phone__sub { font-size: 0.85rem; opacity: 0.7; }

.c-card-float {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.c-card-float--1 { top: 30px; left: 0; animation: float 6s ease-in-out infinite; }
.c-card-float--2 { bottom: 90px; right: 0; animation: float 7s ease-in-out infinite 1s; }
.c-card-float--3 { top: 220px; left: -30px; animation: float 8s ease-in-out infinite 0.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(var(--tx, 0)); }
  50% { transform: translateY(-12px) translateX(var(--tx, 0)); }
}
.c-card-float__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(3, 88, 124, 0.2); }
.c-card-float__dot--coral { background: var(--coral); box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.2); }
.c-card-float strong { color: var(--navy); font-family: var(--font-display); display: block; font-weight: 600; font-size: 0.95rem; }
.c-card-float small { color: var(--ink-mute); font-size: 0.78rem; }

/* ---------- Sections ---------- */
.c-section { padding: 100px 0; position: relative; }
.c-section--alt { background: #fff; }
.c-section--dark { background: var(--navy); color: var(--cream); }
.c-section--dark h2, .c-section--dark h3 { color: #fff; }
.c-section--dark p { color: rgba(255, 255, 255, 0.72); }

.c-section__head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.c-section__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-deep);
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--green);
}
.c-section--dark .c-section__eyebrow { color: var(--green-soft); }

/* ---------- How it works (parallax bg) ---------- */
.c-how {
  background: linear-gradient(180deg, #fff0f3 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.c-how::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 88, 124, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.c-how__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; position: relative; z-index: 1; }
@media (max-width: 860px) { .c-how__grid { grid-template-columns: 1fr; } }
.c-how__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.c-how__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.c-how__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.c-how__card--guardian .c-how__icon { background: linear-gradient(135deg, var(--teal-soft), var(--teal-deep)); }
.c-how__card--member .c-how__icon { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); color: var(--teal); }
.c-how__card h3 { margin-bottom: 12px; }
.c-how__card ul { list-style: none; padding: 0; margin: 20px 0 0; }
.c-how__card li { padding: 10px 0 10px 28px; position: relative; color: var(--ink-soft); font-size: 0.96rem; border-top: 1px solid var(--line); }
.c-how__card li:first-child { border-top: none; }
.c-how__card li::before { content: '✓'; position: absolute; left: 0; top: 10px; color: var(--green); font-weight: 700; }

/* ---------- Features grid ---------- */
.c-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 900px) { .c-features { grid-template-columns: 1fr; } }
.c-feature {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--cream-warm);
  border: 1px solid var(--line);
}
.c-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.c-feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.c-feature p { font-size: 0.95rem; margin: 0; }

/* ---------- Pricing ---------- */
.c-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .c-pricing-grid { grid-template-columns: 1fr; } }
.c-plan {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 34px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease;
}
.c-plan:hover { transform: translateY(-4px); }
.c-plan--featured { border: 2px solid var(--green); box-shadow: 0 20px 60px rgba(3, 88, 124, 0.15); }
.c-plan--current { border: 2px solid var(--green); box-shadow: 0 20px 60px rgba(3, 88, 124, 0.15); }
.c-plan__badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.c-plan__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--green-deep); text-transform: uppercase; letter-spacing: 0.05em; }
.c-plan__who { color: var(--ink-mute); font-size: 0.92rem; margin: 8px 0 20px; }
.c-plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 28px; }
.c-plan__price strong { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; color: var(--navy); letter-spacing: -0.03em; }
.c-plan__price span { color: var(--ink-mute); font-size: 0.95rem; }
.c-plan__features { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.c-plan__features li { padding: 10px 0 10px 28px; position: relative; font-size: 0.95rem; color: var(--ink-soft); }
.c-plan__features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.c-plan .c-btn { width: 100%; }

.c-pricing__note { text-align: center; margin-top: 40px; color: var(--ink-mute); font-size: 0.9rem; }

/* ---------- Download CTA ---------- */
.c-download { text-align: center; padding: 80px 0; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%); color: var(--cream); position: relative; overflow: hidden; }
.c-download::before { content: ''; position: absolute; bottom: -150px; left: 20%; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 155, 179, 0.3) 0%, transparent 65%); pointer-events: none; }
.c-download .c-container { position: relative; }
.c-download h2 { color: #fff; margin-bottom: 12px; }
.c-download p { color: rgba(255, 255, 255, 0.75); margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }
.c-download__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.c-download__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--navy);
  padding: 14px 26px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.c-download__btn:hover { transform: translateY(-2px); color: var(--navy); }
.c-download__btn small { display: block; font-size: 0.7rem; opacity: 0.7; font-weight: 400; }
.c-download__btn strong { font-size: 1rem; display: block; }

/* ---------- Footer ---------- */
.c-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.7); padding: 72px 0 28px; }
.c-footer__inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) {
  .c-footer__inner { grid-template-columns: 1fr 1fr; }
  .c-footer { padding: 40px 0 18px; }
}
@media (max-width: 520px) {
  .c-footer__inner { display: none; }
  .c-footer { padding: 0; }
  .c-footer__bottom { margin-top: 0; padding: 10px 20px 0; border-top: none; }
}
.c-footer__brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; margin-top: 12px; max-width: 260px; }
.c-footer__brand .c-logo-text, .c-footer__brand .c-logo-text span { color: #fff; }
.c-footer__brand .c-logo-text { font-size: 1.2rem; }
/* Footer sits on teal — invert the mark to white via CSS filter */
.c-footer__brand .c-logo-mark,
.c-sidebar__brand .c-logo-mark,
.c-mbar__brand .c-logo-mark { background-color: #fff; border-radius: 50%; background-size: 70%; }
.c-footer__col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.c-footer__col a { display: block; color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; padding: 6px 0; }
.c-footer__col a:hover { color: #fff; }
.c-footer__bottom { text-align: center; margin-top: 50px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }

/* ============================================================ */
/* ============ AUTH + DASHBOARDS =========================== */
/* ============================================================ */

.page-auth, .page-guardian, .page-member { background: var(--cream); min-height: 100vh; }

/* ---------- Auth ---------- */
.c-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .c-auth { grid-template-columns: 1fr; } }
.c-auth__form { display: flex; align-items: center; justify-content: center; padding: 48px; }
.c-auth__form-inner { width: 100%; max-width: 380px; }
.c-auth__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.c-auth h1 { font-size: 2.1rem; margin-bottom: 8px; }
.c-auth__sub { color: var(--ink-mute); margin-bottom: 32px; }
.c-auth__side {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--cream);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.c-auth__side::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 155, 179, 0.45) 0%, transparent 70%);
}
.c-auth__side-content { position: relative; z-index: 1; max-width: 380px; }
.c-auth__side h2 { color: #fff; font-size: 1.9rem; }
.c-auth__side p { color: rgba(255, 255, 255, 0.8); }
.c-auth__footer { margin-top: 28px; font-size: 0.92rem; color: var(--ink-mute); text-align: center; }
@media (max-width: 900px) { .c-auth__side { display: none; } }

.c-field { margin-bottom: 18px; }
.c-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-family: var(--font-display); }
.c-field input, .c-field select, .c-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.c-field input:focus, .c-field select:focus, .c-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(3, 88, 124, 0.15); }

.c-role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.c-role-toggle label {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}
.c-role-toggle label strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 3px; }
.c-role-toggle label small { color: var(--ink-mute); }
.c-role-toggle input { display: none; }
.c-role-toggle input:checked + label { border-color: var(--green); background: rgba(3, 88, 124, 0.08); }

.c-alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 18px; }
.c-alert--error { background: rgba(224, 122, 95, 0.12); color: var(--coral); border: 1px solid rgba(224, 122, 95, 0.3); }
.c-alert--success { background: rgba(3, 88, 124, 0.12); color: var(--green-deep); border: 1px solid rgba(3, 88, 124, 0.3); }

/* ---------- Dashboard shell ---------- */
.c-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.c-sidebar {
  background: var(--navy);
  color: var(--cream);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100%;
}
.c-sidebar__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.2rem; }
.c-sidebar__brand .c-logo-text, .c-sidebar__brand .c-logo-text span { color: #fff; }
.c-sidebar__nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.c-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.c-sidebar__nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.c-sidebar__nav a.active { background: rgba(3, 88, 124, 0.2); color: #fff; }
.c-sidebar__user { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; gap: 10px; }
.c-sidebar__user-name { color: #fff; font-weight: 500; font-size: 0.92rem; }
.c-sidebar__user small { color: rgba(255, 255, 255, 0.5); font-size: 0.78rem; }
.c-sidebar__user a { color: rgba(255, 255, 255, 0.6); font-size: 0.82rem; margin-top: 6px; }

.c-main { padding: 38px 44px; }
.c-main__head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.c-main__head h1 { font-size: 1.9rem; margin-bottom: 4px; }
.c-main__head p { color: var(--ink-mute); font-size: 0.95rem; margin: 0; }

/* ---------- Mobile header bar ---------- */
.c-mbar { display: none; }

@media (max-width: 860px) {
  .c-mbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--navy);
    padding: 12px 18px;
    -webkit-backdrop-filter: blur(8px);
  }
  .c-mbar__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; text-decoration: none; }
  .c-mbar__brand .c-logo-mark { width: 22px; height: 22px; }
  .c-mbar__brand .c-logo-text, .c-mbar__brand .c-logo-text span { color: #fff; }
  .c-mbar__toggle {
    background: none; border: none; cursor: pointer; padding: 6px;
    display: flex; flex-direction: column; gap: 5px; width: 28px;
  }
  .c-mbar__toggle span {
    display: block; height: 2px; background: #fff; border-radius: 2px;
    transition: all 0.25s ease;
  }
  .c-mbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .c-mbar__toggle.is-open span:nth-child(2) { opacity: 0; }
  .c-mbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hide desktop sidebar on mobile */
  .c-sidebar { display: none; }

  .c-app { grid-template-columns: 1fr; }
  .c-main { padding: 18px 16px; min-height: calc(100vh - 52px); }
  .c-main__head h1 { font-size: 1.5rem; }
}

/* ---------- Slide-out drawer ---------- */
.c-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0, 61, 90, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.c-drawer.is-open { display: block; opacity: 1; }
.c-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.c-drawer.is-open .c-drawer__panel { transform: translateX(0); }
.c-drawer__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.c-drawer__user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  overflow: hidden; flex-shrink: 0;
}
.c-drawer__user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-drawer__user-name { color: #fff; font-weight: 600; font-size: 0.95rem; }
.c-drawer__head small { color: rgba(255,255,255,0.5); font-size: 0.78rem; display: block; margin-top: 2px; }
.c-drawer__nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.c-drawer__nav a {
  display: block; padding: 12px 14px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7); font-size: 0.95rem;
  font-family: var(--font-display); font-weight: 500; text-decoration: none;
  transition: background 0.15s;
}
.c-drawer__nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.c-drawer__nav a.active { background: rgba(0,88,124,0.2); color: #fff; }
.c-drawer__foot {
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 12px;
}
.c-drawer__foot a { color: rgba(255,255,255,0.6); font-size: 0.85rem; text-decoration: none; }
.c-drawer__foot .c-sidebar__upgrade { color: var(--pink); font-weight: 600; }

/* Desktop: hide mobile-only elements */
@media (min-width: 861px) {
  .c-mbar { display: none !important; }
  .c-drawer { display: none !important; }
}

/* ---------- Cards / panels ---------- */
.c-panel { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.c-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.c-panel__head h2 { font-size: 1.2rem; margin: 0; }

.c-grid-dash { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .c-grid-dash { grid-template-columns: 1fr; } }

/* Map */
#c-map { width: 100%; height: 520px; border-radius: var(--radius); overflow: hidden; }

/* Map markers */
.c-map-marker { background: none !important; border: none !important; }
.c-marker {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--teal);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.c-marker--sos {
  animation: marker-pulse 1.5s ease-in-out infinite;
}
@keyframes marker-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 122, 95, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(224, 122, 95, 0); }
}

/* Acknowledged button */
.c-btn--acked {
  background: rgba(3, 88, 124, 0.08) !important;
  color: var(--ink-mute) !important;
  cursor: default;
  opacity: 0.7;
}

/* Member list */
.c-member-list { display: flex; flex-direction: column; gap: 8px; }
.c-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  transition: background 0.15s ease;
}
.c-member:hover { background: var(--cream-warm); }
.c-member--clickable { cursor: pointer; }
.c-member__avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--teal)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-family: var(--font-display); overflow: hidden; flex-shrink: 0; }
.c-member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-member__body { flex: 1; }
.c-member__body strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 0.97rem; }
.c-member__body small { color: var(--ink-mute); font-size: 0.82rem; }
.c-member__status { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.c-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-mute); }
.c-dot--online { background: var(--green); box-shadow: 0 0 0 3px rgba(3, 88, 124, 0.2); }
.c-dot--offline { background: var(--ink-mute); }
.c-badge { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.c-badge--guardian { background: var(--grad-teal); color: #fff; }
.c-badge--inner { background: rgba(3, 88, 124, 0.15); color: var(--green-deep); }
.c-badge--wider { background: rgba(90, 127, 184, 0.15); color: #3a5a8c; }
.c-badge--sub_guardian { background: rgba(240, 137, 169, 0.2); color: #c4567a; }

/* Alert */
.c-alert-box {
  background: linear-gradient(135deg, var(--coral), #c96247);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(224, 122, 95, 0.4);
  animation: alert-pulse 1.6s ease-in-out infinite;
}
@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(224, 122, 95, 0.4); }
  50% { box-shadow: 0 8px 40px rgba(224, 122, 95, 0.7); }
}
.c-alert-box h3 { color: #fff; margin: 0 0 4px; font-size: 1.1rem; }
.c-alert-box p { color: rgba(255, 255, 255, 0.9); margin: 0 0 16px; font-size: 0.9rem; }
.c-alert-box .c-btn { background: #fff; color: var(--coral); }
.c-alert-box .c-btn:hover { background: var(--cream); color: #c96247; }
.c-alert-box .c-btn--acked { background: rgba(255,255,255,0.3) !important; color: rgba(255,255,255,0.6) !important; }
.c-alert-box--pulse { animation: alert-pulse 1.5s ease-in-out infinite; }
@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(224, 122, 95, 0.4); }
  50% { box-shadow: 0 8px 40px rgba(224, 122, 95, 0.8), 0 0 0 8px rgba(224, 122, 95, 0.2); }
}

/* Member status view */
.c-status-hero { background: #fff; border-radius: var(--radius); padding: 60px 40px 30px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.c-status-hero__pulse {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--green);
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 0 0 0 rgba(3, 88, 124, 0.6);
  animation: pulse-ring 2s ease-out infinite;
}
.c-status-hero__pulse::after { content: ''; position: absolute; inset: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.c-status-hero h2 { font-size: 1.8rem; margin-bottom: 6px; }
.c-status-hero p { color: var(--ink-mute); margin-bottom: 30px; }
.c-status-hero__loc { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9rem; margin-bottom: 0; }
.c-status-hero__loc-icon { width: 14px; height: 14px; color: var(--ink-mute); flex-shrink: 0; }

.c-guardians-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* Action pill buttons (SOS + Check In) */
.c-action-pills { display: flex; gap: 16px; margin-top: 22px; }
.c-action-pill { flex: 1; text-align: center; padding: 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.c-action-pill p { color: var(--ink-mute); font-size: 0.85rem; margin: 10px 0 0; }
.c-pill-btn {
  border: none; padding: 16px 36px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  cursor: pointer; transition: all 0.2s; min-width: 160px;
}
.c-pill-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.c-pill-btn--sos { background: linear-gradient(135deg, var(--coral), #c96247); color: #fff; }
.c-pill-btn--checkin { background: var(--grad-teal); color: #fff; }
.c-pill-btn--done { background: rgba(3, 88, 124, 0.15) !important; color: var(--teal) !important; cursor: default; transform: none !important; box-shadow: none !important; }
@media (max-width: 520px) { .c-action-pills { flex-direction: column; } }

@media (max-width: 860px) {
  .c-status-hero__pulse { width: 100px; height: 100px; }
  .c-status-hero__pulse::after { inset: 20px; }
  .c-status-hero h2 { font-size: 1.4rem; }
  .c-sos-panic { padding: 22px 18px; margin-top: 18px; }
  .c-sos-panic button { padding: 14px 28px; }
  .c-panel { padding: 18px; }
  .c-profile-form { max-width: 100%; }
  #c-map { height: 340px; }
  .c-grid-dash { grid-template-columns: 1fr; }
}

/* Location sharing indicator */
.c-location-sharing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(3, 88, 124, 0.08);
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 600;
}
.c-location-sharing__pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: loc-pulse 1.5s ease-in-out infinite;
}
@keyframes loc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(3, 88, 124, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(3, 88, 124, 0); }
}

/* Profile */
.c-profile-avatar { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; }
.c-profile-avatar__img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--line); }
.c-profile-avatar__placeholder { width: 100px; height: 100px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-family: var(--font-display); font-weight: 600; }
.c-profile-avatar__upload { font-size: 0.85rem; color: var(--teal); cursor: pointer; font-weight: 600; }
.c-profile-avatar__upload:hover { text-decoration: underline; }
.c-profile-form { display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.c-profile-form textarea { resize: vertical; min-height: 70px; }
.c-profile-form__actions { display: flex; align-items: center; gap: 14px; }
.c-profile-form__msg { font-size: 0.85rem; font-weight: 600; }

/* History */
.c-history { display: flex; flex-direction: column; }
.c-history__date { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--ink-mute); padding: 18px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.c-history__date:first-child { padding-top: 0; }
.c-history__item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; position: relative; }
.c-history__item + .c-history__item { border-top: 1px solid rgba(0,0,0,0.04); }
.c-history__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex-shrink: 0; margin-top: 5px; }
.c-history__item--sos_triggered .c-history__dot { background: var(--coral); }
.c-history__item--sos_resolved .c-history__dot { background: #2ecc71; }
.c-history__item--sos_ack .c-history__dot { background: var(--pink); }
.c-history__item--offline_detected .c-history__dot { background: var(--ink-mute); }
.c-history__item--checkin .c-history__dot { background: #2ecc71; }
.c-history__item--checkin_missed .c-history__dot { background: var(--coral); }
.c-history__item--checkin_reminder .c-history__dot { background: #f0ad4e; }
.c-history__item--heartbeat .c-history__dot { background: var(--teal-soft); }
.c-history__item--joined_circle .c-history__dot { background: var(--pink); }
.c-history__body { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.c-history__body span { font-size: 0.92rem; color: var(--ink); }
.c-history__body small { font-size: 0.8rem; color: var(--ink-mute); white-space: nowrap; }

/* Check In */

/* Member edit panel */
.c-member-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.c-member-wrap .c-member { border: none; cursor: pointer; }
.c-member-edit {
  display: none; padding: 18px; background: var(--cream);
  border-top: 1px solid var(--line);
}
.c-member-edit.is-open { display: block; }
.c-member-edit__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.c-member-edit__actions { display: flex; gap: 10px; }
@media (max-width: 860px) { .c-member-edit__fields { grid-template-columns: 1fr; } }

/* Toggle switch */
.c-toggle { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.c-toggle input { display: none; }
.c-toggle__track {
  position: absolute; inset: 0; background: var(--line); border-radius: 12px;
  transition: background 0.2s;
}
.c-toggle__track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.c-toggle input:checked + .c-toggle__track { background: var(--teal); }
.c-toggle input:checked + .c-toggle__track::after { transform: translateX(20px); }

/* Circle switcher */
.c-circle-switcher { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.c-circle-switcher__item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: var(--radius-sm); border: none;
  background: transparent; color: rgba(255,255,255,0.6); cursor: pointer;
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 500;
  text-align: left; transition: background 0.15s;
}
.c-circle-switcher__item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.c-circle-switcher__item.is-active { background: rgba(3, 88, 124, 0.25); color: #fff; }
.c-circle-switcher__item small { font-size: 0.72rem; color: rgba(255,255,255,0.4); font-weight: 400; }
.c-circle-switcher__item.is-active small { color: rgba(255,255,255,0.6); }
.c-sidebar__circle-name { color: rgba(255,255,255,0.5); font-size: 0.8rem; font-family: var(--font-display); font-weight: 500; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); text-transform: uppercase; letter-spacing: 0.05em; }

/* Sidebar upgrade */
.c-sidebar__upgrade { color: var(--pink) !important; font-weight: 600; font-size: inherit; margin: 0 !important; }
.c-sidebar__upgrade:hover { text-decoration: underline; }

/* Invite */
/* Invite role selector */
.c-invite-roles { display: flex; gap: 12px; }
.c-invite-role { flex: 1; cursor: pointer; }
.c-invite-role input { display: none; }
.c-invite-role__card {
  padding: 16px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  text-align: center; transition: all 0.15s;
}
.c-invite-role__card strong { display: block; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 4px; }
.c-invite-role__card small { color: var(--ink-mute); font-size: 0.82rem; }
.c-invite-role input:checked + .c-invite-role__card { border-color: var(--teal); background: rgba(3, 88, 124, 0.06); }
.c-code-display__link { display: block; word-break: break-all; font-size: 0.85rem; margin-top: 8px; color: var(--teal); }

.c-code-display {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 16px;
}
.c-code-display__code { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; letter-spacing: 0.15em; color: var(--pink); margin: 8px 0; }
.c-code-display p { color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; margin: 0; }
.c-code-display a { color: var(--pink-soft); font-size: 0.85rem; }

/* Subscription */
.c-sub-panel { background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); }
.c-sub-panel h3 { margin-bottom: 6px; }
.c-sub-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; font-family: var(--font-display); }
.c-sub-status--active { background: rgba(3, 88, 124, 0.15); color: var(--green-deep); }
.c-sub-status--inactive { background: rgba(122, 122, 122, 0.15); color: var(--ink-mute); }

/* ---------- Modal dialog ---------- */
.c-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 61, 90, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: c-modal-fade 0.2s ease-out;
}
.c-modal.is-open { display: flex; }
@keyframes c-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.c-modal__box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 61, 90, 0.3);
  text-align: center;
  animation: c-modal-pop 0.25s ease-out;
}
@keyframes c-modal-pop {
  from { transform: translateY(10px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.c-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  margin: 0 auto 18px;
}
.c-modal__box h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--teal);
}
.c-modal__box p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.55;
}
.c-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.c-modal__waitlist {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}
.c-modal__waitlist input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}
.c-modal__waitlist input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(3, 88, 124, 0.15);
}

/* -----------------------------------------------------------------------
   Legal pages
   ----------------------------------------------------------------------- */
.c-legal { max-width: 780px; margin: 0 auto; padding: 60px 24px 80px; }
.c-legal__inner h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin: 0 0 8px; }
.c-legal__meta { color: var(--ink-mute); font-size: 0.85rem; margin: 0 0 32px; }
.c-legal__inner h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 40px 0 12px; }
.c-legal__inner h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; }
.c-legal__inner p, .c-legal__inner li { font-size: 0.95rem; line-height: 1.65; color: var(--ink-soft); }
.c-legal__inner ul { padding-left: 20px; margin: 8px 0 16px; }
.c-legal__inner li { margin-bottom: 4px; }
.c-legal__inner a { color: var(--teal); text-decoration: underline; }
.c-legal__highlight {
  background: var(--pink-tint);
  border-left: 4px solid var(--coral);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0 24px;
}
.c-legal__highlight p { margin: 0 0 8px; }
.c-legal__highlight p:last-child { margin: 0; }
.c-legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 12px 0 20px;
}
.c-legal__table th, .c-legal__table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.c-legal__table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--teal-mute);
}
@media (max-width: 720px){
  .c-legal { padding: 32px 16px 60px; }
  .c-legal__inner h1 { font-size: 1.5rem; }
  .c-legal__table { font-size: 0.8rem; }
  .c-legal__table th, .c-legal__table td { padding: 8px 6px; }
}

/* -----------------------------------------------------------------------
   Consent checkboxes (registration)
   ----------------------------------------------------------------------- */
.c-consent { margin: 16px 0 20px; }
.c-consent__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.45;
}
.c-consent__item input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--teal);
}
.c-consent__item a { color: var(--teal); text-decoration: underline; }

/* -----------------------------------------------------------------------
   Consent log (profile)
   ----------------------------------------------------------------------- */
.c-panel__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.c-consent-log__row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.c-consent-log__row:last-child { border-bottom: none; }
.c-consent-log__doc { margin-bottom: 4px; }
.c-consent-log__doc a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}
.c-consent-log__doc a:hover { text-decoration: underline; }
.c-consent-log__ver {
  font-size: 0.75rem;
  color: var(--ink-mute);
  margin-left: 6px;
}
.c-consent-log__detail {
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.5;
}
.c-consent-log__loc {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 2px;
}
.c-consent-log__empty {
  font-size: 0.9rem;
  color: var(--ink-mute);
}

/* -----------------------------------------------------------------------
   Cookie consent banner
   ----------------------------------------------------------------------- */
.c-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--teal-deep);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.c-cookie__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.c-cookie__inner p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.c-cookie__inner a { color: var(--pink-soft); text-decoration: underline; }
.c-cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }
.c-cookie .c-btn--sm { padding: 8px 18px; font-size: 0.82rem; }
.c-cookie .c-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.c-cookie .c-btn--outline:hover { border-color: #fff; }
@media (max-width: 720px){
  .c-cookie__inner { padding: 14px 16px; gap: 12px; }
  .c-cookie__inner p { font-size: 0.82rem; }
}
