/* Goldys mini-apps: "Atelier" look. Same family as the PG app (cream, ink, gold) with one accent per app.
   No external fonts or scripts: Cormorant Garamond (SIL OFL, fonts/) for headings, system sans for text. */
@font-face { font-family: 'Cormorant'; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 700; font-display: swap; src: url('fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #FBF8F3; --bg-sunken: #F4EEE5; --surface: #FFFFFF; --ink: #1F1A17; --text-2: #5B514A; --text-3: #7A6E64;
  --line: rgba(31, 26, 23, .10); --line-strong: rgba(31, 26, 23, .18);
  --gold: #B8860B; --gold-deep: #7A5A0B; --gold-tint: #F6EBD3;
  --accent: #7A1E3A; --accent-deep: #5C1229; --accent-tint: #F7E8EC; --on-accent: #FFFFFF;
  --good: #1B8F65;
  --serif: 'Cormorant', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Segoe UI', Roboto, sans-serif;
  --r-card: 22px; --r-in: 14px; --shadow: 0 1px 2px rgba(31, 26, 23, .06), 0 8px 24px rgba(31, 26, 23, .06);
}
body[data-app='mehendi'] { --accent: #4E6B2F; --accent-deep: #3A5122; --accent-tint: #EEF3E6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #15110F; --bg-sunken: #1D1815; --surface: #221C19; --ink: #F4EDE6; --text-2: #CDBFB3; --text-3: #A69688;
    --line: rgba(244, 237, 230, .10); --line-strong: rgba(244, 237, 230, .18); --gold: #D9AE4F; --gold-deep: #E2BE6A; --gold-tint: #3A2F1A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
  :root:not([data-theme='light']) body[data-app='tailoring'] { --accent: #D97A97; --accent-deep: #F0A3BA; --accent-tint: #3A1C26; --on-accent: #1A0A10; }
  :root:not([data-theme='light']) body[data-app='mehendi'] { --accent: #A6C47A; --accent-deep: #C3DCA0; --accent-tint: #26301A; --on-accent: #10160A; }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent); }
.ma-boot { min-height: 100vh; display: grid; place-items: center; font-family: var(--serif); font-size: 28px; color: var(--text-3); }

/* ---------- shell ---------- */
.ma { max-width: 560px; margin: 0 auto; padding: 0 16px 120px; }
.ma-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 0 -16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.ma-mono { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold); color: var(--gold-deep);
  font: 700 20px/1 var(--serif); }
.ma-brand { flex: 1; min-width: 0; }
.ma-brand b { display: block; font: 700 20px/1.1 var(--serif); letter-spacing: .2px; }
.ma-brand span { font-size: 12px; color: var(--text-3); }
.ma-pill { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 8px 14px; min-height: 40px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ---------- hero ---------- */
.ma-hero { padding: 28px 0 8px; }
.ma-eyebrow { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.ma-hero h1 { font: 700 44px/1.02 var(--serif); margin: 10px 0 12px; letter-spacing: -.3px; }
.ma-hero h1 em { font-style: normal; color: var(--accent); }
.ma-hero p { margin: 0 0 20px; color: var(--text-2); font-size: 17px; }
.ma-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ma-btn { appearance: none; border: 0; border-radius: 999px; min-height: 50px; padding: 0 22px; font-weight: 650; font-size: 16px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.ma-btn:active { transform: translateY(1px); }
.ma-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.ma-btn--block { width: 100%; }
.ma-btn[disabled] { opacity: .5; cursor: default; }

/* stitch line: the brand divider */
.ma-stitch { height: 0; border: 0; border-top: 1.5px dashed color-mix(in srgb, var(--gold) 70%, transparent); margin: 26px 0; }

/* ---------- festival card ---------- */
.ma-fest { position: relative; overflow: hidden; border-radius: var(--r-card); padding: 18px; color: #FFF8EC;
  background: radial-gradient(120% 140% at 100% 0%, #C9931A 0%, transparent 55%), linear-gradient(135deg, #5C1229, #2A1410); box-shadow: var(--shadow); }
body[data-app='mehendi'] .ma-fest { background: radial-gradient(120% 140% at 100% 0%, #C9931A 0%, transparent 55%), linear-gradient(135deg, #3A5122, #1C2410); }
.ma-fest small { text-transform: uppercase; letter-spacing: 1.4px; font-size: 11px; opacity: .85; }
.ma-fest h2 { font: 700 28px/1.1 var(--serif); margin: 4px 0 6px; color: #FFF8EC; }
.ma-fest p { margin: 0; font-size: 14px; opacity: .92; }
.ma-fest__count { position: absolute; right: 16px; top: 16px; text-align: center; background: rgba(255, 248, 236, .14); border: 1px solid rgba(255, 248, 236, .28);
  border-radius: 16px; padding: 8px 12px; min-width: 64px; }
.ma-fest__count b { display: block; font: 700 26px/1 var(--serif); }
.ma-fest__count span { font-size: 11px; opacity: .85; }
.ma-fest__next { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.ma-fest__next span { white-space: nowrap; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 248, 236, .12); }

/* ---------- sections ---------- */
.ma-h2 { font: 700 26px/1.15 var(--serif); margin: 0 0 4px; }
.ma-sub { color: var(--text-3); font-size: 14px; margin: 0 0 14px; }
.ma-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ma-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.ma-card[aria-pressed='true'] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow); }
.ma-card b { display: block; font-weight: 650; margin-top: 8px; }
.ma-card span { font-size: 13px; color: var(--text-3); }
.ma-art { display: grid; place-items: center; height: 92px; border-radius: 16px; background: var(--accent-tint); color: var(--accent); }
.ma-art svg { width: 76px; height: 76px; }
.ma-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.ma-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 10px 6px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface); font-size: 12px; text-align: center; }
.ma-chip svg { width: 56px; height: 56px; color: var(--accent); }
.ma-chip em { font-style: normal; font-size: 10px; color: var(--gold-deep); font-weight: 650; text-transform: uppercase; letter-spacing: .6px; }

.ma-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.ma-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.ma-steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold);
  color: var(--gold-deep); font: 700 18px/1 var(--serif); }
.ma-steps b { display: block; }
.ma-steps span { font-size: 14px; color: var(--text-2); }

.ma-x { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ma-x a { display: block; padding: 14px; border-radius: 18px; background: var(--bg-sunken); text-decoration: none; color: var(--ink); font-size: 14px; }
.ma-x a b { display: block; font: 700 18px/1.2 var(--serif); }

/* ---------- order builder ---------- */
.ma-progress { display: flex; gap: 6px; margin: 18px 0 6px; }
.ma-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line-strong); }
.ma-progress i.on { background: var(--accent); }
.ma-steplabel { font-size: 13px; color: var(--text-3); }
.ma-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.ma-bar__in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.ma-bar__price { flex: 1; min-width: 0; }
.ma-bar__price small { display: block; font-size: 12px; color: var(--text-3); }
.ma-bar__price b { font: 700 22px/1.1 var(--serif); }

/* ---------- sign-in sheet ---------- */
.ma-scrim { position: fixed; inset: 0; z-index: 10; background: rgba(31, 26, 23, .42); display: grid; align-items: end; }
.ma-sheet { background: var(--surface); border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); max-width: 560px; width: 100%; margin: 0 auto; }
.ma-sheet h3 { font: 700 26px/1.1 var(--serif); margin: 0 0 4px; }
.ma-field { display: grid; gap: 6px; margin: 14px 0; font-size: 14px; font-weight: 600; }
.ma-field input { min-height: 50px; border-radius: var(--r-in); border: 1px solid var(--line-strong); background: var(--bg); padding: 0 14px; font-size: 17px; font-weight: 500; }
.ma-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ma-note { font-size: 13px; color: var(--text-3); }
.ma-err { color: #C0392B; font-size: 14px; }
.ma-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 32px; }

@media (prefers-reduced-motion: no-preference) { .ma-card, .ma-btn { transition: transform .15s ease, box-shadow .15s ease; } .ma-card:hover { transform: translateY(-1px); } }

/* Brand logo, hero photo and sample-design photos (4-Nov) */
.ma-logo { display: block; width: min(100%, 420px); height: auto; margin: 4px auto 18px; }
.ma-hero { text-align: center; }
.ma-hero .ma-cta { justify-content: center; }
.ma-heroimg { position: relative; margin: 22px 0 0; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.ma-heroimg img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ma-heroimg figcaption, .ma-photo small { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 18px; color: #fff; background: rgba(0, 0, 0, .45); }
.ma-photo { position: relative; border-radius: 16px; overflow: hidden; background: var(--accent-tint); aspect-ratio: 4 / 5; }
.ma-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ma-card .ma-photo small { color: #fff; font-size: 11px; }
.tl-idea { font: inherit; color: inherit; }

/* Birthday week offer (owner 5-Nov): shown on the home page during her birthday week. */
.cb-card { display: flex; gap: 12px; align-items: center; margin: 12px 16px 0; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(90deg, #FFF3D6 0%, #FDE3C2 55%, #FBD6DF 100%); color: #5A2E0B; box-shadow: 0 0 0 1px rgba(200, 120, 60, 0.25) inset; }
.cb-cake { font-size: 28px; line-height: 1; }
.cb-text { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.cb-text b { font-size: 15px; }
.cb-code { padding: 1px 6px; border-radius: 6px; background: rgba(90, 46, 11, 0.12); letter-spacing: 0.06em; }
@media (prefers-color-scheme: dark) { .cb-card { background: linear-gradient(90deg, #2E2210 0%, #3A2012 55%, #3A1626 100%); color: #FFE3A8; } }

/* Goldys points + the one-go welcome gift (PG residents): locked = grey with a lock, active = gold. */
.gp { display: grid; gap: 10px; margin: 14px 0; }
.gp__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.875rem; }
.gw-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; }
.gw-card--locked { background: #F1EEEA; color: #5B514A; box-shadow: inset 0 0 0 1px rgba(31, 26, 23, 0.14); }
.gw-card--active { background: linear-gradient(135deg, #FFF6DD 0%, #F6E3B0 60%, #EBCB7E 100%); color: #4A3606; box-shadow: 0 6px 20px rgba(184, 134, 11, 0.22); }
.gw-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.7); font-size: 1.25rem; }
.gw-card__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.gw-card__title { font-weight: 650; }
.gw-card__sub { font-size: 0.8125rem; opacity: 0.85; }

/* Sign-up gift, step by step (owner 6-Nov): Ladies Tailor / Bridal Mehendi. The donut is js/step-rewards.css; these are
   the forms under it (each step's field has an id the "Get more points" rows jump to). */
.wg { margin: 14px 0; }
main > [data-testid='welcome-gift']:first-child { margin-top: 12px; }
.wg-forms { display: grid; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface, #FFFFFF); box-shadow: inset 0 0 0 1px rgba(31, 26, 23, 0.08); }
.wg-form { display: grid; gap: 10px; }
.wg-form .ma-field { margin: 0; }
.wg-form .ma-field input, .wg-form .ma-field textarea { background: #FFFFFF; }
.wg-plus { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; color: #A34A08; background: #FDEBD9; }
.wg-check { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.wg-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.wg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wg-ok { margin: 0; font-size: 0.875rem; color: #23704A; font-weight: 600; }
.wg-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wg-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.wg-avatar--empty { display: grid; place-items: center; background: rgba(31, 26, 23, 0.06); font-size: 1.4rem; }
.wg-file { position: relative; overflow: hidden; cursor: pointer; }
.wg-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wg-file:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.wg-q { margin: 0; font-weight: 600; }
.wg-stars { display: flex; gap: 4px; }
.wg-star { width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(31, 26, 23, 0.05); color: #B9AEA4; font-size: 1.5rem; cursor: pointer; }
.wg-star.is-on { color: #D9701E; background: #FDEBD9; }
.wg-star:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wg-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; text-decoration: none; width: fit-content; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .gw-card--locked { background: #26201C; color: #CDBFB3; box-shadow: inset 0 0 0 1px rgba(244, 237, 230, 0.16); }
  :root:not([data-theme='light']) .gw-card--locked .gw-card__icon { background: rgba(244, 237, 230, 0.08); }
  :root:not([data-theme='light']) .wg-forms { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(244, 237, 230, 0.12); }
  :root:not([data-theme='light']) .wg-form .ma-field input, :root:not([data-theme='light']) .wg-form .ma-field textarea { background: var(--surface); }
  :root:not([data-theme='light']) .wg-plus { color: #F6A86A; background: rgba(240, 149, 79, 0.16); }
  :root:not([data-theme='light']) .wg-ok { color: #8FD8AC; }
  :root:not([data-theme='light']) .wg-star { background: rgba(244, 237, 230, 0.08); }
}

/* Phone app (owner 16-Nov): install banner, phone-alerts card, PIN sign-in tabs and the PIN card (js/miniapps/appshell.js). */
.gx-shell { position: absolute; z-index: 8; left: 0; right: 0; top: calc(76px + env(safe-area-inset-top, 0px)); display: grid; gap: 8px; padding: 0 12px; pointer-events: none; }
.gx-install, .gx-alerts { pointer-events: auto; max-width: 560px; width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(31, 26, 23, .18); }
.gx-install img { border-radius: 10px; flex: none; }
.gx-install > span, .gx-alerts > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gx-install b, .gx-alerts b { font-size: 15px; }
.gx-install small, .gx-alerts small { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.gx-alerts__msg { color: var(--accent-deep) !important; font-weight: 600; }
.gx-install__go { min-height: 40px; padding: 0 16px; font-size: 14px; flex: none; }
.gx-install__x { appearance: none; border: 0; background: transparent; color: var(--text-3); font-size: 22px; line-height: 1; width: 36px; height: 40px; cursor: pointer; flex: none; border-radius: 10px; }
.gx-install__x:focus-visible, .gx-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gx-steps { margin: 6px 0 10px; padding-left: 22px; display: grid; gap: 8px; }
.gx-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 10px 0 4px; border-radius: 999px; background: var(--bg-sunken); }
.gx-tabs button { width: 100%; justify-self: stretch; appearance: none; border: 0; min-height: 40px; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 15px/1 var(--sans); cursor: pointer; }
.gx-tabs button[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 26, 23, .12); }
.gx-pincard { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.gx-pincard__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gx-pincard__row > span { display: grid; gap: 2px; flex: 1; min-width: 180px; }
.gx-pincard__row small { color: var(--text-2); font-size: 13px; }
.gx-pincard form { margin-top: 12px; display: grid; gap: 4px; }
.gx-reset { color: var(--text-2); font-size: 13px; }

/* Continue with Google + sign in once (owner 25-Nov-2026). Google's button rules: white, the full-colour G, grey border. */
.gx-google { display: grid; gap: 10px; margin: 10px 0 2px; }
.gx-gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; width: 100%;
  border: 1px solid #747775; border-radius: 999px; background: #fff; color: #1F1F1F; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; }
.gx-gbtn:hover { background: #F8F9FA; } .gx-gbtn:active { background: #F1F3F4; }
.gx-gbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gx-gbtn--sm { width: auto; min-height: 40px; font-size: 14px; padding: 0 14px; }
.gx-g { flex: none; }
.gx-or { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; color: var(--text-3); font-size: 13px; }
.gx-or::before, .gx-or::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.gx-linked { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--good); }
.gx-gnote { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 60; width: min(520px, calc(100vw - 24px));
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(31, 26, 23, .18); font-size: 14px; line-height: 1.4; }
.gx-gnote span { flex: 1; } .gx-gnote--bad { border-color: #B3261E; }
.gx-gnote button { appearance: none; border: 0; background: transparent; color: var(--text-3); font-size: 16px; width: 32px; height: 32px; cursor: pointer; border-radius: 8px; flex: none; }
/* "I'm joining Goldys PG" (js/miniapps/join-pg.js) */
.jp-card { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); display: grid; gap: 8px; }
.jp-card--wait { background: var(--accent-tint); border-color: transparent; }
.jp-form { display: grid; gap: 6px; }
.jp-me { display: grid; gap: 2px; margin: 0 0 4px; padding: 10px 12px; border-radius: var(--r-in); background: var(--bg-sunken); }
.jp-me small { color: var(--text-2); font-size: 13px; }
.jp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; margin: 4px 0; }
.jp-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }

/* Goldys rewards card (owner 16-Nov): wallet, share & both get ₹501, slabs, how you earn (js/miniapps/rewards.js). */
.rw { margin: 18px 0; display: grid; gap: 14px; }
.rw-wallet { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-card); color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent)); box-shadow: 0 10px 24px rgba(31, 26, 23, .16); }
.rw-wallet__label { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.rw-wallet__amt { font: 700 34px/1.1 var(--serif, var(--sans)); font-variant-numeric: tabular-nums; }
.rw-wallet__soon { font-size: 13px; opacity: .95; }
.rw-share, .rw-slabs, .rw-enter { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.rw-h { margin: 0 0 4px; font-size: 18px; }
.rw-p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.rw-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px dashed var(--accent); border-radius: 12px; margin-bottom: 10px; }
.rw-code span { font-size: 13px; color: var(--text-2); }
.rw-code b { font: 700 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--ink); }
.rw-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rw-actions .ma-btn { flex: 1 1 140px; }
.rw-small { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.rw-note { margin: 0; }
.rw-enter { display: grid; gap: 6px; }
.rw-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.rw-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding: 6px 0; border-bottom: 1px solid var(--line); }
.rw-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rw-table th:last-child, .rw-table td:last-child { text-align: right; }
.rw-table tr:last-child td { border-bottom: 0; }
.rw-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.rw-how li { display: flex; gap: 10px; align-items: baseline; }
.gp__nudge { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--bg-sunken); font-size: 14px; color: var(--ink); }

/* Phase 2 (owner 16-Nov): Silver / Gold / Platinum, festival day, cross-sell. */
.rw-level { padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; }
.rw-level__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rw-level__pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.rw-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font: 700 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  background: #E9E7E3; color: #3F3A35; border: 1px solid rgba(0, 0, 0, .08); }
.rw-badge--sm { padding: 1px 8px; font-size: 11px; vertical-align: middle; }
.rw-level--gold .rw-badge, .rw-badge.rw-level--gold { background: linear-gradient(135deg, #F6E3A6, #D9AE45); color: #4A3507; }
.rw-level--platinum .rw-badge, .rw-badge.rw-level--platinum { background: linear-gradient(135deg, #F1F1F4, #B9BCC6); color: #2A2D35; }
.rw-bar { height: 8px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.rw-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.rw-table small { color: var(--text-2); font-weight: 400; }
.rw-table tr.rw-me td { color: var(--accent-deep); }
.rw-festive { margin: 0; padding: 10px 14px; border-radius: 14px; background: #FFF3D6; color: #5A3D00; font-size: 15px; }
.rw-cross { display: flex; gap: 12px; align-items: center; margin: 12px 0 16px; padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; flex-wrap: wrap; }
.rw-cross > span:nth-child(2) { flex: 1 1 200px; display: grid; gap: 2px; }
.rw-cross small { color: var(--text-2); font-size: 13px; line-height: 1.4; }
.rw-cross__icon { font-size: 26px; }
.rw-cross__cta { font-weight: 700; color: var(--accent-deep); font-size: 14px; }
.rw-cross:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------------------------------------------------------------
   Desktop and tablet (owner 22-Nov: "why this looks not full screen on desktop, also tailor app").
   Phones keep the one-column layout above. From 760px the page grows; from 1024px the home page uses the full width
   (picture beside the headline, 4 designs a row), the studio / shop admin go wide, and forms stay a comfortable
   reading column (760px) in the middle so lines and fields never stretch across a big screen.
   ------------------------------------------------------------------------------------------------------------------ */
@media (min-width: 760px) {
  .ma { max-width: 960px; padding: 0 28px 120px; }
  .ma-top, .tl-tabs { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
  .ma-chips { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
  .ma-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ma-x { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ma-bar__in, .ma-sheet, .gx-install, .gx-alerts { max-width: 640px; }
  .ma-sheet { border-radius: 24px; margin-bottom: 24px; }
}
@media (min-width: 1024px) {
  .ma { max-width: 1240px; padding: 0 40px 96px; }
  .ma-top, .tl-tabs, .ma-chips { margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; }
  .tl-tabs { justify-content: center; }
  /* Every screen except home / studio / admin / games: a centred reading column. */
  .ma:not(.ma--home):not(.ma--wide) > :not(.ma-top):not(.tl-tabs):not(#gx-shell-root):not(.ma-scrim) { max-width: 760px; margin-left: auto; margin-right: auto; }
  .ma.ma--wide { max-width: 1320px; }

  /* Home: headline and buttons on the left, the picture on the right. */
  .ma--home .ma-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 56px; align-items: center; text-align: left; padding: 48px 0 32px; }
  .ma--home .ma-hero > * { grid-column: 1; }
  .ma--home .ma-hero > .ma-heroimg { grid-column: 2; grid-row: 1 / span 12; margin: 0; align-self: center; }
  .ma--home .ma-heroimg img { aspect-ratio: 4 / 3; }
  .ma--home .ma-hero .ma-cta { justify-content: flex-start; }
  .ma--home .ma-logo { margin: 0 0 18px; width: min(100%, 380px); }
  .ma--home .ma-hero h1 { font-size: clamp(48px, 4.6vw, 64px); }
  .ma--home .ma-hero p { font-size: 18px; max-width: 34em; }
  .ma--home > div > section, .ma--home main > div > section { scroll-margin-top: 90px; }
  .ma--home .ma-h2 { font-size: 34px; }
  .ma--home .ma-sub { max-width: 60em; }
  .ma--home .ma-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .ma--home .ma-x { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .ma--home .ma-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
  .ma--home .ma-steps li { grid-template-columns: 1fr; padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
  .ma--home .ma-fest { padding: 28px 32px; }
  .ma--home .ma-fest h2 { font-size: 36px; }
  .ma--home .tl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ma--home .tl-search__bar { max-width: 620px; }
  .ma-foot { text-align: center; }
}
@media (min-width: 1440px) {
  .ma--home .ma-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Dark mode: the brand logos are drawn in dark ink; show them light so they read on the dark page (owner 22-Nov). */
@media (prefers-color-scheme: dark) { .ma-logo { filter: invert(1) hue-rotate(180deg) brightness(1.05); } }
.rw-wallet__amt small { font-size: .45em; font-weight: 600; margin-left: 4px; opacity: .85; }
.rw-notcash { margin-top: 6px; opacity: .85; }

/* Mehendi welcome points (owner 28-Nov-2026): js/miniapps/mehendi-welcome.js (cards) and js/mehendi-welcome-offer.js
   (the pop-up). Henna-warm, quiet; the points number carries the moment, not decoration. */
.mw-card { grid-template-columns: minmax(0, 1fr); min-width: 0; margin: 14px 0; padding: 16px 18px; border: 1px solid var(--line, rgba(31,26,23,.12)); border-radius: var(--r-card, 18px);
  background: var(--surface, #fff); display: grid; gap: 10px; }
.mw-card--offer, .mw-card--new { background: linear-gradient(135deg, var(--accent-tint, #F6EDE3), var(--surface, #fff) 70%); border-color: transparent;
  box-shadow: 0 1px 0 rgba(31,26,23,.04), 0 8px 24px -16px rgba(122,62,18,.35); }
.mw-card--new { animation: mw-in .45s cubic-bezier(.2,.8,.2,1); }
.mw-card--done { opacity: .85; }
.mw-card__top { display: flex; gap: 12px; align-items: center; }
.mw-card__top > span:last-child { display: grid; gap: 2px; min-width: 0; }
.mw-card__top small { color: var(--text-2, #5B514A); font-size: 13px; line-height: 1.4; }
.mw-card__gift { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: var(--surface, #fff); border: 1px solid var(--line, rgba(31,26,23,.12)); }
.mw-card__pts { font-size: 18px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mw-bar { height: 6px; border-radius: 999px; background: var(--bg-sunken, #F1EBE3); overflow: hidden; }
.mw-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent, #9A4B16); transition: width .4s ease; }
.mw-small { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2, #5B514A); }
.mw-err { margin: 0; color: #B3261E; font-size: 14px; }
.mw-btn { appearance: none; border: 0; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--accent, #9A4B16); color: #fff;
  font: 600 15px/1 inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; justify-self: start; }
.mw-btn:disabled { opacity: .55; cursor: default; }
.mw-btn:focus-visible { outline: 2px solid var(--accent, #9A4B16); outline-offset: 3px; }
.mw-btn--link { background: transparent; color: var(--accent-text, var(--accent, #9A4B16)); padding: 0; min-height: 36px; }
.mw-offer { text-align: center; }
.mw-offer__hero { display: grid; place-items: center; }
.mw-offer__emoji { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; font-size: 38px;
  background: linear-gradient(135deg, var(--accent-tint, #F6EDE3), var(--surface, #fff)); border: 1px solid var(--line, rgba(31,26,23,.12)); animation: mw-in .5s cubic-bezier(.2,.8,.2,1); }
.mw-offer__pts { margin: 0; font-size: 20px; }
.mw-offer__pts b { display: block; font-size: 48px; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--accent-text, var(--accent, #9A4B16)); }
.mw-offer__for { margin: 0; }
.mw-offer__rule { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2, #5B514A); }
@keyframes mw-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mw-card--new, .mw-offer__emoji { animation: none; } .mw-bar > span { transition: none; } }

/* One-tap feedback after a Bridal Mehendi booking (owner 28-Nov-2026): js/miniapps/quick-feedback.js. */
.qf { grid-template-columns: minmax(0, 1fr); min-width: 0; margin: 14px 0; padding: 16px 18px; border-radius: var(--r-card, 18px); background: var(--surface, #fff); border: 1px solid var(--line, rgba(31,26,23,.12)); display: grid; gap: 10px; }
.qf__h { margin: 0; font-size: 18px; }
.qf__sub { margin: 0; font-size: 13px; color: var(--text-2, #5B514A); }
.qf__faces { display: flex; justify-content: space-between; gap: 6px; }
.qf__face { appearance: none; flex: 1; min-height: 56px; border-radius: 16px; border: 1px solid var(--line, rgba(31,26,23,.12)); background: var(--bg, #FBF8F3);
  font-size: 30px; line-height: 1; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.qf__face:hover, .qf__face:focus-visible { transform: translateY(-2px) scale(1.06); background: var(--accent-tint, #F6EDE3); outline: none; border-color: var(--accent, #9A4B16); }
.qf__face:active { transform: scale(.95); }
.qf__thanks { margin: 0; display: flex; gap: 12px; align-items: center; animation: mw-in .4s cubic-bezier(.2,.8,.2,1); }
.qf__thanks > span:last-child { display: grid; gap: 2px; min-width: 0; }
.qf__thanks small { color: var(--text-2, #5B514A); font-size: 13px; }
.qf__big { font-size: 40px; line-height: 1; }
.qf__line { display: flex; gap: 8px; min-width: 0; }
.qf__line input { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line, rgba(31,26,23,.18)); background: var(--bg, #FBF8F3); font: 400 16px/1.2 inherit; color: inherit; }
.qf__send { flex: none; appearance: none; border: 0; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--accent, #9A4B16); color: #fff; font: 600 15px/1 inherit; cursor: pointer; }
.qf__send:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .qf__face, .qf__thanks { transition: none; animation: none; } }

/* Games section on the Ladies Tailor home (owner 6-Dec-2026): its own block below "Also from Goldys". */
.ma-games { margin-top: 32px; }
