/* Lillaa Creators — shared styles for creator + approval pages.
   Mobile-first; matches the landing page (black primary, soft grey ground). */
:root {
  --bg: #f6f6f9;
  --card: #ffffff;
  --ink: #16151a;
  --text: #2b2a31;
  --muted: #6b6a75;
  --line: #e7e6ee;
  --primary: #111111;
  --primary-ink: #ffffff;
  --accent: #9b1c47;          /* saree maroon — highlights only */
  --accent-soft: #fbeef3;
  --ok: #157347;
  --ok-soft: #e8f6ee;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --info-soft: #eef2ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 17, 26, .04), 0 8px 24px rgba(17, 17, 26, .06);
  --max: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p + p { margin-top: .5rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 20px; padding-bottom: 40px; }

/* ── top bar ─────────────────────────────────────────────── */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand span { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border-left: 1px solid var(--line); padding-left: 10px; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { text-decoration: none; font-weight: 500; font-size: .92rem; padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.topnav a:hover, .topnav a.active { color: var(--ink); background: #f1f0f5; }

/* ── buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600;
  font-size: .93rem; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.2; min-height: 42px; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #2a2a2a; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #cfcdd8; background: #fafafc; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #0f5c38; }
.btn-bad { background: #fff; color: var(--bad); border-color: #f3c6c1; }
.btn-bad:hover { background: var(--bad-soft); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #18834a; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:focus-visible, input:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #c7c3ff; outline-offset: 2px; }

/* ── cards & layout ──────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card, .stack > * + * { margin-top: 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head p { margin-top: 2px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.section-title { margin: 28px 0 12px; }
.section-title p { margin-top: 2px; }

/* ── status banner ───────────────────────────────────────── */
.banner { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius); padding: 14px 16px; border: 1px solid; }
.banner .ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.banner strong { display: block; color: var(--ink); }
.banner-warn { background: var(--warn-soft); border-color: #f6dfb4; }
.banner-warn .ico { background: #f6c76b; color: #5a3600; }
.banner-ok { background: var(--ok-soft); border-color: #c5e8d3; }
.banner-ok .ico { background: var(--ok); color: #fff; }
.banner-bad { background: var(--bad-soft); border-color: #f6c9c4; }
.banner-bad .ico { background: var(--bad); color: #fff; }
.banner-info { background: var(--info-soft); border-color: #d9defc; }
.banner-info .ico { background: #4f46e5; color: #fff; }

/* ── alerts (form feedback) ──────────────────────────────── */
.alert { border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; margin-bottom: 14px; border: 1px solid; }
.alert-bad { background: var(--bad-soft); border-color: #f6c9c4; color: #7a1a12; }
.alert-ok { background: var(--ok-soft); border-color: #c5e8d3; color: #0f4d2f; }

/* ── setup steps ─────────────────────────────────────────── */
.steps { list-style: none; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: #f1f0f5; color: var(--muted); border: 2px solid var(--line); position: relative; z-index: 1; }
.step.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.current .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.blocked .dot { background: var(--bad-soft); border-color: #f3c6c1; color: var(--bad); }
.step h3 { margin-top: 5px; }
.step.todo h3 { color: var(--muted); font-weight: 600; }
.step .body { min-width: 0; }
.step .body > p { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.step-panel { margin-top: 12px; background: #fafafc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }

/* ── forms ───────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.input { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid #d9d7e1; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); min-height: 46px; }
.input:focus { border-color: #8b86f5; outline: 3px solid #e4e2ff; outline-offset: 0; }
.input[readonly] { background: #f6f6f9; color: var(--muted); }
.input-code { text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; font: inherit;
  font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.form-row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.preview { font-size: .86rem; color: var(--muted); margin-top: 6px; word-break: break-all; }
.preview b { color: var(--ink); }

/* ── code cards ──────────────────────────────────────────── */
.code-card { display: flex; flex-direction: column; }
.code-card.feature { border-color: #1b1b1f; box-shadow: 0 10px 30px rgba(17, 17, 26, .12); }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 4px 8px; border-radius: 6px; }
.eyebrow.grey { color: #4b4a55; background: #efeef4; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 8px;
  border: 1.5px dashed #c9c6d6; border-radius: 12px; padding: 12px 12px 12px 16px; background: #fcfcfe; }
.code-box code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1.2rem, 5vw, 1.55rem);
  font-weight: 700; color: var(--ink); letter-spacing: .06em; word-break: break-all; }
.link-row { display: flex; gap: 8px; align-items: center; }
.link-row .input { min-height: 40px; font-size: .88rem; padding: 8px 10px; }
.benefits { list-style: none; margin: 12px 0 0; display: grid; gap: 6px; font-size: .92rem; }
.benefits li { display: flex; gap: 8px; }
.benefits li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-grey { background: #efeef4; color: #4b4a55; }

/* ── how-to-earn ─────────────────────────────────────────── */
.earn-card h2 { display: flex; align-items: center; gap: 10px; }
.earn-card h2 .num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid;
  place-items: center; font-size: .9rem; flex: none; }
.howto { list-style: none; counter-reset: s; margin-top: 12px; display: grid; gap: 12px; }
.howto > li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: .93rem; }
.howto > li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: #efeef4; color: var(--ink);
  font-weight: 700; font-size: .8rem; display: grid; place-items: center; margin-top: 1px; }
.howto strong { color: var(--ink); }
.callout { margin-top: 14px; background: #fafafc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; }
.callout-warn { background: var(--warn-soft); border-color: #f6dfb4; }
.example { margin-top: 14px; border-radius: var(--radius-sm); background: var(--ok-soft); border: 1px solid #c5e8d3; padding: 12px 14px; font-size: .9rem; }
.example .rows { display: grid; gap: 4px; margin-top: 8px; }
.example .rows div { display: flex; justify-content: space-between; gap: 12px; }
.example .rows b { color: var(--ink); white-space: nowrap; }

/* ── earnings placeholder ────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.stat { background: #fafafc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.stat b { display: block; font-size: 1.25rem; color: #b9b7c3; }
.stat span { font-size: .78rem; color: var(--muted); }

/* ── socials ─────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.chip:hover { border-color: #cfcdd8; }
details.edit { margin-top: 12px; }
details.edit summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink); list-style: none; display: inline-flex; gap: 6px; }
details.edit summary::-webkit-details-marker { display: none; }
details.edit summary::before { content: "✎"; }
details.edit[open] summary { margin-bottom: 12px; }

/* ── auth pages ──────────────────────────────────────────── */
.auth { display: grid; gap: 24px; align-items: start; grid-template-columns: 1fr; max-width: 980px; margin: 8px auto 0; }
@media (min-width: 880px) { .auth { grid-template-columns: 1.05fr .95fr; } .auth.single { grid-template-columns: 1fr; max-width: 440px; } }
.auth .card { padding: 26px 22px; }
.auth h1 { margin-bottom: 4px; }
.auth .sub { color: var(--muted); margin-bottom: 20px; }
.auth .switch { text-align: center; margin-top: 16px; font-size: .92rem; color: var(--muted); }
.auth .switch a { color: var(--ink); font-weight: 600; }
.aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.aside h2 { margin-bottom: 4px; }
.aside .howto { margin-top: 16px; }
.perk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.perk { background: #fafafc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 10px; text-align: center; }
.perk b { display: block; font-size: 1.3rem; color: var(--ink); }
.perk span { font-size: .76rem; color: var(--muted); line-height: 1.3; display: block; }

/* ── admin list ──────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { text-decoration: none; font-weight: 600; font-size: .88rem; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); }
.tab b { color: var(--ink); margin-left: 4px; }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab.active b { color: #fff; }
.search { max-width: 280px; min-height: 40px; font-size: .92rem; }
.people { display: grid; gap: 12px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .person { grid-template-columns: 1.3fr 1fr 1fr auto; align-items: center; } }
.person h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.person .meta { font-size: .86rem; color: var(--muted); margin-top: 3px; word-break: break-word; }
.person .meta a { color: var(--muted); }
.person .label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.person .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--ink); font-size: 1rem; }
.person .btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 900px) { .person .btns { justify-content: flex-end; } }
.person .todo-note { grid-column: 1 / -1; font-size: .85rem; background: var(--warn-soft); border: 1px solid #f6dfb4; border-radius: 10px; padding: 8px 12px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ── confirm dialog ──────────────────────────────────────── */
dialog.confirm { border: 0; border-radius: var(--radius); padding: 22px; max-width: 400px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.confirm::backdrop { background: rgba(17, 17, 26, .45); }
dialog.confirm h3 { margin-bottom: 6px; }
dialog.confirm .actions { justify-content: flex-end; }

/* ── footer ──────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: #fff; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px;
  font-size: .85rem; color: var(--muted); }
.foot a { color: var(--muted); }

/* ── toast ───────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: .9rem; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 520px) {
  .brand span { display: none; }
  .topnav a { padding: 8px 8px; font-size: .88rem; }
  .card { padding: 16px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .link-row { flex-direction: column; align-items: stretch; }
}

[hidden] { display: none !important; }

/* fixes after review */
.grid-2 > .card + .card { margin-top: 0; }
.benefits li { display: block; position: relative; padding-left: 22px; }
.benefits li::before { position: absolute; left: 0; top: 0; }
.input-code::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
