/* NaamKaran – plum, rose & festive gold */
:root {
  --plum-950: #170c29;
  --plum-900: #22133b;
  --plum-800: #2d1b4e;
  --plum-700: #432870;
  --plum-500: #7a4fb3;
  --rose: #f2577f;
  --rose-dark: #d63c66;
  --rose-soft: #fff0f4;
  --gold: #f7b541;
  --gold-soft: #fff6e3;
  --bg: #f6f3fb;
  --card: #ffffff;
  --text: #231a33;
  --muted: #6f6680;
  --line: #ebe5f3;
  --boy: #3d8bfd;   --boy-soft: #e8f1ff;
  --girl: #ec4f9a;  --girl-soft: #fde8f2;
  --unk: #8b5cf6;   --unk-soft: #f0eafe;
  --success: #1f9d64; --success-soft: #e5f7ee;
  --danger: #d63c4f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(35, 26, 51, .04), 0 8px 24px rgba(35, 26, 51, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Poppins", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--rose-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; color: var(--text); }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .35rem; font-weight: 700; }
h2 { font-size: 1.15rem; margin: 0; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
h2 a { color: inherit; }
h3 { font-size: .95rem; margin: 1.2rem 0 .6rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
.ic { flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { text-align: right; margin: .5rem 0 0; font-size: .9rem; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Brand ---------- */
.sb-brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none !important; }
.sb-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.sb-brand strong { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.sb-brand small { font-size: .74rem; opacity: .75; margin-top: 2px; }
.sb-brand.dark { color: var(--text); }
.sb-brand.small strong { font-size: 1.1rem; }
.brand-mark { flex: none; border-radius: 28%; box-shadow: 0 8px 22px rgba(194, 61, 126, .38), 0 2px 6px rgba(74, 35, 112, .25); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 30;
  display: flex; flex-direction: column; padding: 1.4rem 1rem 1rem;
  color: #fff; overflow-y: auto;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(242, 87, 127, .28), transparent 60%),
    radial-gradient(90% 50% at 100% 100%, rgba(247, 181, 65, .18), transparent 60%),
    linear-gradient(180deg, var(--plum-800), var(--plum-950));
}
.sidebar .sb-brand { padding: 0 .5rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,.09); }
.sb-nav { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 0; flex: 1; }
.sb-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .5; padding: 1rem .8rem .4rem; }
.sb-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .72rem .85rem; border-radius: 12px;
  color: rgba(255,255,255,.8); font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.sb-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sb-nav a.active {
  color: #fff; background: linear-gradient(90deg, rgba(242,87,127,.95), rgba(242,87,127,.65));
  box-shadow: 0 8px 20px rgba(242, 87, 127, .35);
}
.sb-bottom { display: flex; flex-direction: column; gap: .9rem; }
.sb-user {
  display: flex; align-items: center; gap: .7rem; padding: .75rem; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
}
.sb-user .who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.sb-user .who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.sb-user .who small { display: flex; align-items: center; gap: .3rem; color: var(--gold); font-size: .76rem; }
.sb-user .icon-btn { color: rgba(255,255,255,.75); }
.sb-user .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

.avatar {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--gold)); color: #fff; font-weight: 700; font-size: .85rem;
  font-family: var(--display); text-transform: uppercase;
}
.avatar.sm { width: 34px; height: 34px; font-size: .75rem; }
.avatar.xs { width: 24px; height: 24px; font-size: .62rem; }

/* Developed by credit */
.credit {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 14px;
  text-decoration: none !important; color: inherit; transition: background .15s;
}
.credit img { border-radius: 9px; background: #0b1418; padding: 3px; flex: none; }
.credit span { display: flex; flex-direction: column; line-height: 1.2; }
.credit small { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.credit strong { font-size: .88rem; font-family: var(--display); }
.credit em { font-style: normal; font-size: .74rem; opacity: .7; }
.sidebar .credit { color: #fff; border: 1px dashed rgba(255,255,255,.14); }
.sidebar .credit:hover { background: rgba(255,255,255,.06); }

/* ---------- App shell ---------- */
.shell { margin-left: 272px; min-height: 100vh; }
.content { max-width: 1120px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.mobilebar { display: none; }
.sb-backdrop { display: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 0;
  background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: #f1ecf7; color: var(--text); text-decoration: none; }
.icon-btn.danger:hover { background: #fdecee; color: var(--danger); }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head p { margin: 0; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.section-title { margin: 2rem 0 1rem; font-size: 1.05rem; color: var(--muted); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; margin-bottom: 1.25rem; box-shadow: var(--shadow);
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.card.empty { text-align: center; padding: 2.5rem 1.5rem; }
.card.empty h2 { justify-content: center; margin: .8rem 0 .3rem; }
.narrow-card { max-width: 560px; }
details.card summary { cursor: pointer; display: flex; align-items: center; gap: .5rem; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card[open] summary { margin-bottom: .5rem; }
.title-with-avatar { display: flex; align-items: center; gap: .8rem; }
.title-with-avatar h2 { font-size: 1.05rem; }

/* Hero on the babies page */
.hero {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
  padding: 2rem; border-radius: 24px; color: #fff; margin-bottom: 1.5rem;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(247,181,65,.45), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(122,79,179,.6), transparent 60%),
    linear-gradient(120deg, var(--plum-800), #7b2d6e 55%, var(--rose));
  box-shadow: 0 18px 40px rgba(45, 27, 78, .25);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 30px solid rgba(255,255,255,.07);
}
.hero h1 { color: #fff; font-size: 1.9rem; max-width: 560px; }
.hero p { margin: .2rem 0 1.2rem; opacity: .9; max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 0 0 .5rem !important; opacity: 1 !important; font-weight: 600; }
.hero-stats { display: flex; gap: .75rem; position: relative; z-index: 1; }
.hero-stats div {
  min-width: 96px; padding: .9rem 1rem; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.hero-stats span { font-size: .78rem; opacity: .85; }

/* Baby cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.grid.wide .card { margin: 0; }
.baby-card {
  position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  text-decoration: none !important; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; overflow: hidden;
}
.baby-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--unk)); }
.baby-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(35, 26, 51, .1); }
.bc-top { display: flex; align-items: center; gap: .85rem; }
.baby-title { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.bc-foot { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--muted); }
.bc-foot .go { display: inline-flex; align-items: center; gap: .2rem; color: var(--accent, var(--rose)); font-weight: 600; }
.progress { height: 7px; background: #f1ecf7; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent, var(--rose)), var(--gold)); }
.named-banner { padding: .55rem .8rem; border-radius: 12px; background: var(--success-soft); color: var(--success); font-size: .92rem; }
.g-B { --accent: var(--boy); --accent-soft: var(--boy-soft); }
.g-G { --accent: var(--girl); --accent-soft: var(--girl-soft); }
.g-U { --accent: var(--unk); --accent-soft: var(--unk-soft); }
.baby-avatar { flex: none; border-radius: 50%; }

/* Baby page header */
.baby-head {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.5rem; margin-bottom: 1.25rem;
  border-radius: 24px; background: linear-gradient(120deg, var(--accent-soft, var(--unk-soft)), #fff 70%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.baby-head .baby-avatar { box-shadow: 0 10px 24px rgba(35,26,51,.12); }
.bh-text { flex: 1; min-width: 220px; }
.bh-text p { margin: .3rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.baby-head .btn.light { background: #fff; }
.layout-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: start; }
.layout-2 .card { margin-bottom: 0; }
.slots { display: flex; gap: .35rem; margin: .4rem 0 .6rem; }
.slots span { flex: 1; height: 6px; border-radius: 99px; background: #f1ecf7; }
.slots span.on { background: linear-gradient(90deg, var(--rose), var(--gold)); }
ul.names { list-style: none; padding: 0; margin: .5rem 0 0; }
ul.names li { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--line); }
ul.names li:first-child { border-top: 0; }
ul.names .nm { flex: 1; min-width: 0; }
ul.names .name { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.initial {
  display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px;
  background: var(--accent-soft, var(--rose-soft)); color: var(--accent, var(--rose)); font-family: var(--display); font-weight: 700; font-size: 1.1rem;
}
.initial.sm { width: 28px; height: 28px; border-radius: 9px; font-size: .85rem; vertical-align: middle; margin-right: .3rem; }
.actions { display: flex; gap: .2rem; flex: none; }
.actions form { margin: 0; }
.empty-line { padding: 1rem 0 .3rem; }
.suggest-card { position: sticky; top: 1.5rem; background: linear-gradient(180deg, #fff, #fffafc); }
.big-emoji { font-size: 2.6rem; margin: .5rem 0; }
.suggest-card h2 { justify-content: center; }
.suggest-card form + * , .suggest-card > h2 { text-align: left; }
.suggest-card > h2 { justify-content: flex-start; }

/* Tags & pills */
.pill { background: #f3eef9; color: var(--plum-700); border-radius: 999px; padding: .25rem .75rem; font-size: .82rem; font-weight: 600; }
.tag {
  display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .2rem .65rem;
  font-size: .78rem; font-weight: 600; background: #f3eef9; color: var(--plum-700);
}
.tag.g-B { background: var(--boy-soft); color: var(--boy); }
.tag.g-G { background: var(--girl-soft); color: var(--girl); }
.tag.g-U { background: var(--unk-soft); color: var(--unk); }
.tag.success { background: var(--success-soft); color: var(--success); }
.tag.gold { background: var(--gold-soft); color: #a86b00; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .86rem; margin: 1rem 0 .4rem; color: #3b3150; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: .78rem .9rem; font: inherit; color: inherit; background: #fbfafd;
  border: 1.5px solid #e4ddee; border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); background: #fff; box-shadow: 0 0 0 4px rgba(242, 87, 127, .14); }
input[type=checkbox], input[type=radio] { width: auto; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #a79fb6; pointer-events: none; }
.input-icon > input { padding-left: 2.6rem; }
.input-icon .peek {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none;
  color: var(--muted); font: 600 .78rem var(--font); cursor: pointer; padding: .3rem .5rem; border-radius: 8px;
}
.input-icon .peek:hover { background: #f1ecf7; }
.grow { flex: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .85rem; }
.mobile-row { display: flex; gap: .55rem; align-items: stretch; }
.mobile-row .cc { width: 4.8rem; flex: none; text-align: center; font-weight: 600; }
.mobile-row select, .mobile-row > input { flex: 1; }
.hint { font-size: .83rem; color: var(--muted); margin: .4rem 0 0; min-height: 1.2em; }
.hint .link { font-size: .83rem; }
.meaning-hint:not(:empty) { padding: .45rem .7rem; border-radius: 10px; background: var(--gold-soft); color: #7a5300; }
.name-input { font-family: var(--display); font-size: 1.2rem !important; font-weight: 600; }
.form-actions { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.filters { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.filters > div { flex: 1; min-width: 200px; }
.filters label { margin-top: 0; }
.filter-total { flex: 0 0 auto !important; min-width: 0 !important; text-align: center; padding: .3rem 1rem; border-left: 1px solid var(--line); }
.filter-total strong { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; color: var(--rose); }
.filter-total span { font-size: .78rem; color: var(--muted); }

/* Gender picker */
.gender-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.gender-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; margin: 0; padding: .85rem .4rem;
  border: 1.5px solid #e4ddee; border-radius: 16px; background: #fbfafd; cursor: pointer; font-size: .84rem; text-align: center;
  transition: border-color .15s, background .15s, transform .15s;
}
.gender-opt:hover { transform: translateY(-1px); }
.gender-opt input { position: absolute; opacity: 0; pointer-events: none; }
.gender-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.gender-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.2rem; border-radius: 12px; border: 1.5px solid #e4ddee; background: #fff;
  font: 600 .95rem var(--font); color: var(--text); text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { background: #f8f5fc; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  border: 0; color: #fff; background: linear-gradient(135deg, var(--rose), #ff7a8f 60%, #ff9a6b);
  box-shadow: 0 8px 20px rgba(242, 87, 127, .35);
}
.btn.primary:hover { box-shadow: 0 10px 26px rgba(242, 87, 127, .45); filter: brightness(1.03); }
.btn.light { background: #fff; border: 0; color: var(--plum-800); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.btn.danger { color: var(--danger); }
.btn.small { padding: .42rem .8rem; font-size: .84rem; border-radius: 10px; }
.btn.full { width: 100%; margin-top: 1.3rem; padding: .9rem; font-size: 1rem; }
.btn.google { width: 100%; padding: .8rem; }
.btn:disabled { opacity: .55; cursor: default; }
button.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--rose-dark); cursor: pointer; }
button.link:hover { text-decoration: underline; }
button.link:disabled { color: var(--muted); text-decoration: none; }

/* ---------- Alerts ---------- */
.alert { padding: .85rem 1rem; border-radius: 14px; margin-bottom: 1.1rem; border: 1px solid; font-size: .93rem; }
.alert.error { background: #fdecee; border-color: #f7c6cc; color: #8f1d2c; }
.alert.success { background: var(--success-soft); border-color: #bfe8d3; color: #13643f; }
.alert.info { background: #eef1fd; border-color: #cfd8f7; color: #2a3f86; }
.alert.warn, .alert.dev { background: var(--gold-soft); border-color: #f5dca6; color: #7a5300; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .93rem; }
th, td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
tbody tr:hover { background: #fcfaff; }
tbody tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: .7rem; }

/* Manage page chips */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .9rem; }
.chips li { display: flex; align-items: center; gap: .45rem; padding: .3rem .4rem .3rem .3rem; border-radius: 999px; background: #f3eef9; font-size: .88rem; font-weight: 500; }
.chips form { margin: 0; display: flex; }
.chip-x { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #fff; color: var(--muted); cursor: pointer; }
.chip-x:hover { background: #fdecee; color: var(--danger); }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.row-actions form { margin: 0; }
.manage-card { border-top: 4px solid var(--accent); }

/* ---------- Auth (split screen) ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-visual {
  position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 2.5rem 3rem;
  background:
    radial-gradient(70% 55% at 85% 10%, rgba(247,181,65,.55), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(242,87,127,.65), transparent 60%),
    linear-gradient(150deg, var(--plum-900), var(--plum-700) 50%, #8c2f72);
}
.glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.glow.g1 { width: 420px; height: 420px; right: -140px; bottom: 18%; border: 50px solid rgba(255,255,255,.05); }
.glow.g2 { width: 240px; height: 240px; left: -80px; top: 26%; border: 30px solid rgba(255,255,255,.05); }
.glow.g3 { width: 120px; height: 120px; right: 22%; top: 8%; background: rgba(255,255,255,.06); }
.stars i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .7;
  box-shadow: 0 0 12px 3px rgba(255,255,255,.6); animation: twinkle 3.5s ease-in-out infinite;
}
.stars i:nth-child(1) { top: 12%; left: 18%; }
.stars i:nth-child(2) { top: 22%; left: 70%; animation-delay: .6s; width: 4px; height: 4px; }
.stars i:nth-child(3) { top: 48%; left: 10%; animation-delay: 1.2s; }
.stars i:nth-child(4) { top: 36%; left: 88%; animation-delay: 1.8s; width: 3px; height: 3px; }
.stars i:nth-child(5) { top: 64%; left: 80%; animation-delay: .9s; width: 4px; height: 4px; }
.stars i:nth-child(6) { top: 8%; left: 48%; animation-delay: 2.2s; width: 3px; height: 3px; }
.stars i:nth-child(7) { top: 58%; left: 34%; animation-delay: 1.5s; width: 3px; height: 3px; }
.stars i:nth-child(8) { top: 30%; left: 30%; animation-delay: 2.8s; width: 4px; height: 4px; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: .9; transform: scale(1.15); } }
.av-top, .av-center, .av-bottom { position: relative; z-index: 1; }
.av-center { flex: 1; display: grid; place-items: center; min-height: 340px; margin: 1.5rem 0; }
.moon {
  width: 230px; height: 230px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(255,255,255,.08) 60%);
  box-shadow: 0 0 0 18px rgba(255,255,255,.05), 0 0 0 40px rgba(255,255,255,.035), 0 30px 60px rgba(0,0,0,.25);
  animation: float 6s ease-in-out infinite;
}
.moon-inner .baby-avatar { filter: drop-shadow(0 12px 22px rgba(0,0,0,.25)); }
.chip {
  position: absolute; display: flex; align-items: center; gap: .55rem; padding: .5rem .85rem .5rem .5rem;
  border-radius: 999px; background: rgba(255,255,255,.95); color: var(--text); font-size: .82rem;
  box-shadow: 0 12px 30px rgba(23, 12, 41, .3); animation: float 7s ease-in-out infinite;
}
.chip b { font-family: var(--display); margin-right: .25rem; }
.chip span { color: var(--muted); }
.chip b { color: var(--text); }
.chip.c1 { top: 4%; left: 4%; }
.chip.c2 { top: 14%; right: 0; animation-delay: 1.2s; }
.chip.c3 { bottom: 10%; left: 0; animation-delay: 2.1s; }
.chip.c4 { bottom: 0; right: 6%; animation-delay: .6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.av-bottom h2 { color: #fff; font-size: 2rem; line-height: 1.15; margin-bottom: .6rem; display: block; }
.av-bottom p { opacity: .85; max-width: 440px; margin: 0 0 1.1rem; }
.av-bottom ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.av-bottom li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; opacity: .95; }
.av-bottom li .ic { color: var(--gold); }

.auth-form {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 2.5rem 1.5rem; background: radial-gradient(80% 50% at 50% 0%, #fff, var(--bg));
}
.auth-card { width: 100%; max-width: 430px; }
.auth-card h1 { font-size: 2rem; }
.auth-card .lead { color: var(--muted); margin: 0 0 1.4rem; }
.auth-form .credit { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.auth-form .credit:hover { border-color: #d9cfe8; }
.auth-mobile-brand { display: none; }
.not-me { display: block; margin-top: .35rem; font-size: .86rem; }
.switch { text-align: center; color: var(--muted); margin: 1.4rem 0 0; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); margin: 1.2rem 0 .2rem; font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
input.otp { font: 700 1.9rem var(--display); letter-spacing: .6rem; text-align: center; padding: .7rem; }
.otp-badge { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; background: var(--rose-soft); margin-bottom: 1rem; }
.wave { display: inline-block; animation: wave 2.2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } }

/* Plain (logged-out non-auth pages, e.g. errors) */
.plain-main { max-width: 520px; margin: 0 auto; padding: 2.5rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.plain-card { width: 100%; }
.plain-main .credit { border: 1px solid var(--line); background: #fff; }
.error-card h1 { font-size: 3rem; margin: .6rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-height: 760px) and (min-width: 961px) {
  .auth-visual { padding: 1.6rem 2.5rem; }
  .av-center { min-height: 250px; margin: .5rem 0; }
  .moon { width: 170px; height: 170px; }
  .moon-inner .baby-avatar { width: 110px; height: 110px; }
  .av-bottom h2 { font-size: 1.6rem; }
  .av-bottom p { margin-bottom: .7rem; }
}
@media (max-width: 1100px) {
  .layout-2 { grid-template-columns: 1fr; }
  .suggest-card { position: static; }
}
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-mobile-brand {
    display: flex; align-items: center; gap: .7rem; width: 100%; max-width: 430px;
  }
  .auth-mobile-brand span { display: flex; flex-direction: column; line-height: 1.2; }
  .auth-mobile-brand strong { font: 700 1.35rem var(--display); }
  .auth-mobile-brand small { color: var(--muted); font-size: .8rem; }
  .auth-form { justify-content: flex-start; padding-top: 2rem; }

  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(23, 12, 41, .45); z-index: 20; }
  .shell { margin-left: 0; }
  .mobilebar {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem;
    position: sticky; top: 0; z-index: 10; color: #fff;
    background: linear-gradient(90deg, var(--plum-800), #6b2a6e);
  }
  .mobilebar .icon-btn { color: #fff; }
  .mobilebar .icon-btn:hover { background: rgba(255,255,255,.12); }
  .content { padding: 1.25rem 1rem 3rem; }
}
@media (max-width: 620px) {
  .two { grid-template-columns: 1fr; }
  .hero { padding: 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-stats { width: 100%; }
  .hero-stats div { flex: 1; min-width: 0; }
  .grid.wide { grid-template-columns: 1fr; }
  h1 { font-size: 1.45rem; }
  .baby-head .btn { width: 100%; }
}
