/* Evento: navy and gold glass. One stylesheet for the public site, the customer
   pages, the supplier portal and the Super Admin. Colours and sizes are set
   once as variables below; change them there. */

@font-face { font-family: "Anek Tamil"; src: url("../fonts/anek-tamil-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anek Tamil"; src: url("../fonts/anek-tamil-tamil-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap;
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Arima"; src: url("../fonts/arima-latin-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Arima"; src: url("../fonts/arima-tamil-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-display: swap;
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy-deep: #081A33;
  --navy: #0F2A52;
  --navy-mid: #1B3F78;
  --gold: #D4AF37;
  --gold-light: #F0D98A;
  --gold-deep: #A8862A;
  --ivory: #F5F1E6;
  --muted: #A9B6CC;
  --veg: #2E9E5B;
  --nonveg: #B8432F;
  --danger: #E0604F;
  --success: #3FB27F;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(240, 217, 138, 0.22);
  --line-soft: rgba(169, 182, 204, 0.22);
  --field: rgba(8, 26, 51, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: "Inter", "Anek Tamil", system-ui, -apple-system, "Segoe UI", "Noto Sans Tamil", sans-serif;
  --font-display: "Manrope", "Anek Tamil", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ivory); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  background-color: var(--navy-deep);
  background-image:
    url("../img/kolam-tile.svg"),
    radial-gradient(900px 600px at 88% -8%, rgba(212, 175, 55, 0.16), transparent 62%),
    radial-gradient(1000px 700px at -10% 30%, rgba(44, 90, 160, 0.38), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 70%, #0B2246);
  background-attachment: fixed;
}
html[lang="ta"] body { line-height: 1.75; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: #fff; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.gold { color: var(--gold-light); }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
body.wide { --wrap: 1600px; }   /* portal pages (admin, supplier, customer) use the whole screen */
.stack > * + * { margin-top: 1.25rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { justify-content: space-between; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ glass */
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.panel { padding: clamp(18px, 3vw, 28px); }
.panel > :last-child { margin-bottom: 0; }
.panel-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 18px 0; }

/* ----------------------------------------------------------------- header */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(8, 26, 51, 0.78); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; color: var(--ivory); text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.topnav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.topnav a, .linkbtn { color: var(--ivory); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 1rem; }
.topnav a:hover, .topnav a[aria-current="page"] { background: var(--glass-strong); color: var(--gold-light); }
.linkbtn { background: none; border: 0; font: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--gold-light); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: 6px; }
.lang a { padding: 5px 12px; font-size: 0.9rem; border-radius: 0; }
.lang a[aria-current="true"] { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.navtoggle { display: none; margin-left: auto; background: var(--glass); border: 1px solid var(--line); color: var(--ivory); border-radius: 10px; padding: 8px 14px; font: inherit; }
@media (max-width: 860px) {
  .navtoggle { display: inline-block; }
  .topnav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 14px; margin: 0; }
  .topnav.open { display: flex; }
  .topbar-in { flex-wrap: wrap; }
  .lang { align-self: flex-start; margin: 6px 0 0; }
}

/* ------------------------------------------------- portal shell (sidebar) */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px 0 56px; }
.side { position: sticky; top: 88px; padding: 14px; }
.side h2 { font-size: 1rem; font-family: var(--font-body); color: var(--muted); font-weight: 500; margin: 6px 10px 10px; }
.side a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--ivory); text-decoration: none; }
.side a:hover { background: var(--glass-strong); }
.side a[aria-current="page"] { background: rgba(212, 175, 55, 0.16); color: var(--gold-light); box-shadow: inset 3px 0 0 var(--gold); }
.side .count { background: var(--gold); color: var(--navy-deep); border-radius: 999px; padding: 0 9px; font-size: 0.85rem; font-weight: 600; }
.main { min-width: 0; }
.page { padding: 28px 0 56px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; padding-top: 16px; }
  .side { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .side h2 { display: none; }
  .side a { white-space: nowrap; }
  .side a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--glass); color: var(--gold-light); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.05s; }
.btn:hover { background: var(--glass-strong); border-color: var(--gold); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); }
.btn-danger { color: #FFD9D2; border-color: rgba(224, 96, 79, 0.55); }
.btn-danger:hover { background: rgba(224, 96, 79, 0.22); border-color: var(--danger); }
.btn-sm { min-height: 36px; padding: 5px 13px; border-radius: 10px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.inline-form { display: inline; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field label, .field .label { display: block; font-weight: 500; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(169, 182, 204, 0.35);
  background: var(--field); color: var(--ivory); font: inherit; }
textarea.input { min-height: 96px; resize: vertical; }
select.input { appearance: none; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-light) 50%), linear-gradient(135deg, var(--gold-light) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select.input option, select.input optgroup { background: var(--navy); color: var(--ivory); }
.input::placeholder { color: rgba(169, 182, 204, 0.7); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22); }
.input[type="file"] { padding: 8px; }
.input[type="date"] { color-scheme: dark; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }
.err { color: #FFC2B8; font-size: 0.95rem; margin: 6px 0 0; }
.field.has-error .input { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.checks { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.checks .check { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: rgba(8, 26, 51, 0.35); }
.checks .check:has(input:checked) { border-color: var(--gold); background: rgba(212, 175, 55, 0.12); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 10px; font-size: 1.05rem; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 9px 16px; cursor: pointer; }
.seg input:checked + span { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: -2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }

/* --------------------------------------------------------------- messages */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--glass-strong); margin-bottom: 16px; }
.flash-success { border-color: rgba(63, 178, 127, 0.6); background: rgba(63, 178, 127, 0.14); }
.flash-error { border-color: rgba(224, 96, 79, 0.6); background: rgba(224, 96, 79, 0.14); }
.flash-warn { border-color: rgba(212, 175, 55, 0.6); background: rgba(212, 175, 55, 0.12); }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty h3 { color: var(--ivory); }

/* ----------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.95rem; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table a.rowlink { color: var(--ivory); font-weight: 600; text-decoration: none; }
.table a.rowlink:hover { color: var(--gold-light); text-decoration: underline; }
@media (max-width: 720px) {
  .table.cards thead { display: none; }
  .table.cards, .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: 100%; }
  .table.cards tr { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 8px 4px; background: rgba(8, 26, 51, 0.3); }
  .table.cards td { border: 0; padding: 5px 12px; text-align: left; }
  .table.cards td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.85rem; }
}
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }

/* ----------------------------------------------------------- small pieces */
.badge { display: inline-block; padding: 2px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.875rem; white-space: nowrap; color: var(--gold-light); }
.badge-ok { border-color: rgba(63, 178, 127, 0.7); color: #9FE3C2; }
.badge-bad { border-color: rgba(224, 96, 79, 0.7); color: #FFC2B8; }
.badge-quiet { border-color: var(--line-soft); color: var(--muted); }
.food { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px; margin-right: 8px; vertical-align: -2px; flex: none; }
.food i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.food-veg { color: var(--veg); }
.food-nonveg { color: var(--nonveg); }
.stat { padding: 18px 20px; }
.stat .label { display: block; color: var(--muted); font-size: 0.95rem; }
.stat .value { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.2; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.stat a { text-decoration: none; color: inherit; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--ivory); text-decoration: none; background: rgba(8, 26, 51, 0.35); font-size: 0.98rem; }
.chip:hover { border-color: var(--gold); color: var(--gold-light); }
.chip[aria-current="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); font-weight: 600; }
.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: var(--field); flex: none; }
.thumb-lg { width: 84px; height: 84px; border-radius: 16px; }
.thumb-blank { display: inline-grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-light); }

/* ------------------------------------------------- cards: suppliers, plans */
.card { display: block; padding: 18px 20px; color: var(--ivory); text-decoration: none; }
a.card:hover { border-color: var(--gold); color: var(--ivory); }
.card h3 { margin: 0 0 4px; }
.card .meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card-row { display: flex; gap: 14px; align-items: flex-start; }
.card .price { color: var(--gold-light); font-weight: 600; margin-top: 8px; }
.tile { display: block; padding: 16px 18px; text-decoration: none; color: var(--ivory); min-height: 76px; }
a.tile:hover { border-color: var(--gold); color: var(--gold-light); }

/* --------------------------------------------------- item list and quoting */
.items { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: rgba(8, 26, 51, 0.35); }
.item:has(input.qty:not(:placeholder-shown):not([value="0"])) { border-color: var(--line); }
.item h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.item p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.item .price { color: var(--gold-light); font-weight: 600; white-space: nowrap; }
.item .price small { color: var(--muted); font-weight: 400; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 40px; height: 42px; background: var(--glass); border: 0; color: var(--gold-light); font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: var(--glass-strong); }
.stepper input { width: 74px; height: 42px; border: 0; border-inline: 1px solid var(--line); background: var(--field); color: var(--ivory); font: inherit; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quotebar { position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 14px 18px; margin-top: 18px;
  background: rgba(15, 42, 82, 0.92); border-color: var(--gold); }
.quotebar .total { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.totals { margin-left: auto; width: min(100%, 360px); }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 600; font-size: 1.15rem; color: var(--gold-light); }

/* ------------------------------------------------------------ plan / estimate */
.estimate { display: grid; gap: 4px; padding: 22px 24px; position: sticky; top: 84px; }
.estimate .label { color: var(--muted); }
.estimate .figure { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); line-height: 1.1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.service { padding: 18px 20px; }
.service-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: baseline; }
.service-head h3 { margin: 0; }
.service .amount { font-weight: 600; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.option { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-top: 10px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--gold); background: rgba(212, 175, 55, 0.1); }
.option input { accent-color: var(--gold); width: 18px; height: 18px; align-self: center; }
.option .lines { grid-column: 2 / -1; color: var(--muted); font-size: 0.93rem; margin: 0; }
details.breakdown { margin-top: 8px; }
details.breakdown summary { cursor: pointer; color: var(--gold-light); font-size: 0.95rem; }

/* ----------------------------------------------------------------- landing */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(28px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); font-weight: 700; margin-bottom: 0.35em; }
.hero .lede { font-size: 1.2rem; color: #D7DFEC; max-width: 34em; }
.hero-art { display: grid; place-items: center; }
.kolam { width: min(100%, 470px); height: auto; }
.kolam-line, .kolam-edge { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.kolam-dot { fill: var(--gold-light); }
@media (prefers-reduced-motion: no-preference) {
  .kolam-line, .kolam-edge { animation: kolam-draw 2.4s ease-out both; }
  .kolam-edge { animation-delay: 0.9s; }
  .kolam-dot { animation: kolam-dot 0.8s ease-out both; }
  @keyframes kolam-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes kolam-dot { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { order: -1; } .kolam { width: min(62%, 300px); } }
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; padding: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 12px; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.section { padding: clamp(24px, 4vw, 44px) 0; }
.auth { width: min(560px, 100% - 32px); margin: clamp(20px, 5vw, 56px) auto; }
.auth-wide { width: min(820px, 100% - 32px); }
.solo { display: grid; place-items: center; min-height: 100vh; padding: 24px; text-align: center; }
.solo-card { padding: 32px; max-width: 520px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: 0.4em; }
.footer { border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: 0.95rem; margin-top: 30px; }
.footer .row { justify-content: space-between; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--gold-light); }

/* ------------------------------------------------------- service groups */
.group-title { margin: 22px 0 10px; color: var(--gold-light); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.group-title:first-of-type { margin-top: 6px; }
.service-group { margin-bottom: 18px; }
.service-group legend { color: var(--gold-light); }

/* Provision list: "Others" rows typed in by the chef */
.other-rows td { padding: 6px 8px; vertical-align: middle; }
.other-rows td:nth-child(2) { width: 120px; }
.other-rows td:nth-child(3) { width: 140px; }
.other-rows .input { margin: 0; min-width: 0; }

/* ------------------------------------------------------------ supplier leads */
.leads { display: grid; gap: 18px; }
.leads-status .chip b { font-weight: 600; margin-left: 4px; color: var(--gold-light); }
.leads-status .chip[aria-current] b { color: inherit; }
.leads-filter { display: grid; gap: 14px 18px; grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) 140px minmax(150px, 1.1fr) auto; align-items: end; }
@media (max-width: 1300px) { .leads-filter { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); } }
.leads-filter .field { margin: 0; }
.leads-filter-actions { grid-column: auto; }
.leads-filter-actions .row { flex-wrap: nowrap; }
.leads-match { margin-left: 10px; font-size: 1.02rem; white-space: nowrap; }
@media (max-width: 1300px) { .leads-filter-actions { grid-column: 1 / -1; } .leads-filter-actions .row { flex-wrap: wrap; } }
.leads-match strong { color: var(--gold-light); font-size: 1.25rem; margin-right: 4px; }
.leads-filter-actions .row { gap: 8px; align-items: center; }
.leads-table { overflow: visible; }
.leads-table .table { table-layout: fixed; width: 100%; }
.leads-table .table th:nth-child(1) { width: auto; }
.leads-table .table th:nth-child(2) { width: 190px; }
.leads-table .table th:nth-child(3) { width: 240px; }
.leads-table .table td { vertical-align: middle; padding: 12px 14px; overflow-wrap: anywhere; }
.tag-service { color: var(--ivory); border-color: rgba(212, 175, 55, 0.45); background: rgba(212, 175, 55, 0.12); }
.tag-source { color: var(--muted); }
@media (max-width: 1100px) { .leads-table .table th:nth-child(2) { width: 150px; } .leads-table .table th:nth-child(3) { width: 130px; } .lead-status { grid-template-columns: 1fr; } }
.lead-name { display: block; font-size: 1.02rem; line-height: 1.3; }
.lead-place { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.lead-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.8rem; line-height: 1.5; border: 1px solid var(--line-soft); color: var(--muted); background: rgba(8, 26, 51, 0.35); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag-rating { color: var(--gold-light); border-color: rgba(212, 175, 55, 0.45); }
.tag-type { color: var(--ivory); text-decoration: none; }
.tag-type:hover { border-color: var(--gold); }
.tag-link { color: #9FC9FF; text-decoration: none; border-color: rgba(159, 201, 255, 0.4); }
.tag-link:hover { text-decoration: underline; }
.tag-shared { color: #FFD9A8; border-color: rgba(255, 190, 110, 0.45); }
.tag-term { font-style: italic; }
.lead-contact { white-space: normal; }
.lead-phone { display: block; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 6px; }
.lead-contact .row { gap: 6px; flex-wrap: wrap; }
.lead-contact .small { display: block; margin-top: 6px; }
.lead-status { display: grid; grid-template-columns: repeat(2, max-content); gap: 5px; }
.status-pill { font: inherit; font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-soft); background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.status-pill:hover { border-color: var(--gold); color: var(--ivory); }
.status-pill.is-on { color: var(--navy-deep); font-weight: 600; cursor: default; }
.status-pill.is-on.status-new { background: var(--ivory); border-color: var(--ivory); }
.status-pill.is-on.status-contacted { background: var(--gold); border-color: var(--gold); }
.status-pill.is-on.status-registered { background: var(--success); border-color: var(--success); }
.status-pill.is-on.status-not_interested { background: #C9CED8; border-color: #C9CED8; }
.leads-count { margin: -6px 2px 0; }
.customer-created { border-color: rgba(212, 175, 55, 0.6); }
.customer-created .kv { display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, max-content)); margin: 12px 0 0; }
.customer-created dt { color: var(--muted); font-size: 0.9rem; }
.customer-created dd { margin: 2px 0 0; }
.customer-created code { font-size: 1.25rem; letter-spacing: 0.04em; color: var(--gold-light); user-select: all; }
.customer-add { margin-bottom: 18px; }
.leads-import summary { cursor: pointer; font-family: var(--font-display); font-size: 1.15rem; color: var(--ivory); list-style: none; display: flex; align-items: center; gap: 10px; }
.leads-import summary::-webkit-details-marker { display: none; }
.leads-import summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); font-size: 1rem; }
.leads-import[open] summary::before { content: "–"; }
.leads-import > *:not(summary) { margin-top: 12px; }
.leads-import .row { align-items: end; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .leads-table .table td { padding: 6px 12px; }
  .lead-contact { white-space: normal; }
  .lead-status { max-width: none; }
}

/* --------------------------------------------- services and functions (admin) */
.catalog { display: grid; gap: 20px; }
.catalog-editor .catalog-checks { gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.catalog-group { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.catalog-group span { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.catalog-rows { display: grid; }
.catalog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(120px, 160px) auto; gap: 8px 16px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line-soft); }
.catalog-row:last-child { border-bottom: 0; }
.catalog-row.is-off .catalog-name { opacity: 0.55; }
.catalog-name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 18px; align-items: baseline; }
.catalog-name strong { font-weight: 600; font-size: 1rem; }
.catalog-ta { color: var(--muted); font-size: 0.95rem; }
.catalog-meta { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.catalog-count { color: var(--muted); font-size: 0.9rem; white-space: nowrap; text-align: right; }
.badge-veg { border-color: rgba(46, 158, 91, 0.7); color: #9FE3C2; }
.badge-nonveg { border-color: rgba(184, 67, 47, 0.7); color: #FFC2B8; }
@media (max-width: 820px) {
  .catalog-row { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-name { grid-template-columns: 1fr; }
  .catalog-meta, .catalog-count { grid-column: 1 / -1; text-align: left; }
  .catalog-row > .btn { grid-row: 1; grid-column: 2; }
}

/* Type-to-filter box above long selects (function types) */
.combo, .suggest { position: relative; }
.suggest .combo-list [role="option"] small { font-size: 0.85rem; }
.combo-input { padding-right: 42px; }
.combo-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: 0; bottom: 0; }
.combo-arrow { position: absolute; top: 0; right: 0; bottom: 0; width: 40px; border: 0; background: transparent; color: var(--gold, #d4af37); cursor: pointer; font-size: 0; }
.combo-arrow::before { content: ''; display: block; margin: auto; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid currentColor; transition: transform .15s; }
.combo.is-open .combo-arrow::before { transform: rotate(180deg); }
.has-filter-open { position: relative; z-index: 40; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 6px; list-style: none; max-height: 300px; overflow-y: auto; border-radius: 10px; background: rgba(13, 27, 58, 0.97); border: 1px solid rgba(212, 175, 55, 0.35); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); backdrop-filter: blur(14px); }
.combo-list li { margin: 0; }
.combo-group { padding: 8px 10px 4px; font-size: 0.78rem; font-weight: 700; color: var(--gold, #d4af37); text-transform: uppercase; letter-spacing: 0.04em; }
.combo-note { padding: 8px 10px; color: var(--muted); font-size: 0.9rem; }
.combo-list [role="option"] { padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.combo-list [role="option"]:hover, .combo-list [role="option"].is-active { background: rgba(212, 175, 55, 0.16); }
.combo-list [role="option"].is-current { background: rgba(212, 175, 55, 0.28); }

/* ------------------------------------------------------------ ratings */
.stars { white-space: nowrap; letter-spacing: 1px; }
.star-on { color: var(--gold-light); }
.star-half { color: var(--gold-light); opacity: 0.6; }
.star-off { color: rgba(240, 217, 138, 0.25); }
.badge-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); font-weight: 600; }
.rating-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; align-items: center; }
.rating-badge { display: inline-flex; align-items: center; gap: 6px; }
.rating-badge b { color: var(--gold-light); }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; font-size: 2rem; line-height: 1; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { cursor: pointer; color: rgba(240, 217, 138, 0.25); transition: color .1s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: var(--gold-light); }
.star-pick input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }
.rate-panel .actions { margin-top: 8px; }
.review .stars { font-size: 1.1rem; }
.review p { margin: 8px 0 0; }
.ratings { display: grid; gap: 16px; }
.rating-row.is-evento { border-color: rgba(212, 175, 55, 0.5); }
.rating-head { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; align-items: start; }
.rating-supplier a { color: var(--ivory); text-decoration: none; font-size: 1.1rem; }
.rating-supplier a:hover { text-decoration: underline; }
.rating-stars { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.rating-text { margin: 10px 0 0; }
.rating-reason { margin: 8px 0 0; color: var(--ivory); }
.rating-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; align-items: center; }
.rating-act { display: flex; gap: 8px; align-items: center; flex: 1 1 320px; }
.rating-act .input { flex: 1; padding: 8px 12px; }
.rating-edit { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.rating-history { margin-top: 12px; }
.rating-history summary { cursor: pointer; color: var(--gold-light); font-size: 0.95rem; }
.rating-history ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.95rem; }
.rating-history li { margin-bottom: 6px; }
.rating-history li .muted { display: block; font-size: 0.85rem; }

/* ------------------------------------------------------------ social sign-in, bot check */
.social-login { margin-top: 18px; text-align: center; }
.social-login .row { justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn-social { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1f1f1f; border-color: #fff; font-weight: 600; }
.btn-social:hover { background: #f1f1f1; color: #000; }
.btn-apple { background: #000; color: #fff; border-color: #000; }
.btn-apple:hover { background: #222; color: #fff; }
.bot-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 6px 0 10px; }

/* ------------------------------------------------------------ customer interests */
.interests { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px 4px; margin: 4px 0 14px; }
.interests legend { padding: 0 6px; font-weight: 500; }
.interests .hint { margin: 0 0 10px; }
.interests .field { margin-bottom: 10px; }

/* ------------------------------------------------------------ analytics */
.analytics { display: grid; gap: 18px; }
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { padding: 16px 18px; display: grid; gap: 4px; }
.stat-label { color: var(--muted); font-size: 0.9rem; }
.stat-value { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-light); line-height: 1.1; }
.stat-sub { font-size: 0.85rem; }
.an-grid { align-items: start; }
.an-sub { margin: 18px 0 8px; font-size: 1rem; color: var(--muted); font-weight: 500; }
.an-line { padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; display: flex; gap: 8px; flex-wrap: wrap; }
.an-line:last-child { border-bottom: 0; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 1.3fr) minmax(80px, 2fr) 48px; gap: 10px; align-items: center; padding: 5px 0; }
.bar-label { font-size: 0.95rem; line-height: 1.25; overflow-wrap: anywhere; }
.bar-label a { color: var(--ivory); text-decoration: none; }
.bar-label a:hover { text-decoration: underline; }
.bar-label .small { display: block; }
.bar-track { height: 10px; border-radius: 999px; background: rgba(8, 26, 51, 0.55); border: 1px solid var(--line-soft); overflow: hidden; }
.bar-fill { height: 100%; width: var(--w, 0%); border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.bar-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.an-table td, .an-table th { white-space: nowrap; }
.an-table .bar-track { min-width: 120px; }
.funnel { display: flex; flex-wrap: wrap; gap: 10px; }
.funnel-step { flex: 1 1 110px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(8, 26, 51, 0.45); border: 1px solid var(--line-soft); display: grid; gap: 2px; }
.funnel-step strong { font-size: 1.4rem; color: var(--gold-light); }
.funnel-step span { color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------------------------ for you (interests) */
.for-you { display: grid; gap: 14px; }
.for-you-block .panel-head h3 { margin: 0; font-size: 1.15rem; }
.for-you-suppliers { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 6px 0 14px; }
.for-you-supplier { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); color: var(--ivory); text-decoration: none; background: rgba(8, 26, 51, 0.3); }
.for-you-supplier:hover { border-color: var(--gold); }
.for-you-supplier > span { display: grid; min-width: 0; }
.for-you-supplier strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.for-you-decor { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 6px; }
.for-you-decor .decor-tile { padding: 8px; display: grid; gap: 6px; text-decoration: none; color: var(--ivory); }
.for-you-decor .decor-frame { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; }
.for-you-decor .decor-frame svg { width: 100%; height: 100%; display: block; }
.customers-filter .row { align-items: end; gap: 10px; }
.customers-filter .field { margin: 0; min-width: 240px; }
.customers-filter input[type="search"] { flex: 1 1 220px; }

/* Single-column forms on wide admin pages (My account) and the Users page. */
.narrow { max-width: 640px; }
.users-suspend { display: inline-block; text-align: left; }
.users-suspend summary { cursor: pointer; list-style: none; }
.users-suspend summary::-webkit-details-marker { display: none; }
.users-suspend[open] { display: block; margin-top: 8px; }
.users-suspend .row { margin-top: 8px; align-items: flex-end; }

/* Password show / hide eye */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--gold-light); background: var(--glass-strong); }
.pw-toggle[aria-pressed="true"] { color: var(--gold); }

/* Analytics: boxes that open like dropdowns, wider rows, long lists tucked away */
.an-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 620px), 1fr)); align-items: start; }
.an-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.an-card > summary::-webkit-details-marker { display: none; }
.an-card > summary h2 { margin: 0; font-size: 1.25rem; }
.an-card > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light); transform: rotate(45deg); transition: transform .15s; margin: 0 4px 3px 4px; }
.an-card[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.an-card > summary .an-count { margin-left: auto; background: rgba(212, 175, 55, 0.16); color: var(--gold-light); border-radius: 999px; padding: 1px 11px; font-size: 0.85rem; font-weight: 600; }
.an-body { margin-top: 14px; }
.an-more { margin-top: 6px; }
.an-more > summary { cursor: pointer; color: var(--gold-light); font-size: 0.95rem; padding: 8px 0; }
.bar-row { grid-template-columns: minmax(220px, 2fr) minmax(120px, 3fr) 56px; padding: 7px 0; }
.bar-label .small { display: block; margin-top: 2px; line-height: 1.35; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr 48px; } .bar-row .bar-track { grid-column: 1 / -1; order: 3; } }
