:root {
  /* Brand colours taken from the Meenakshi logo */
  --navy: #0a1a24;
  --navy-2: #10303b;
  --blue: #0b7c69;
  --teal: #2fd8b6;
  --chart: #0a8f78; /* validated single-series chart colour */
  --accent: #f0a63a;
  --accent-dark: #d98c1f;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #15803d;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: #0f172a; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.section { padding: 48px 0; }
.section.alt { background: #eef6f4; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.mt { margin-top: 32px; }
.pad { padding: 16px 20px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain-list { padding-left: 1.2em; margin: 0 0 1em; }
.stack { display: grid; gap: 20px; align-content: start; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; flex-shrink: 1; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 42px; width: auto; max-width: 100%; }
@media (max-width: 420px) { .brand-logo { height: 34px; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a { color: #dbe5f5; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav-links > a:hover, .nav-links > a.active { color: #fff; background: rgba(47,216,182,.14); text-decoration: none; }
.nav-links > a.active { box-shadow: inset 0 -2px 0 var(--teal); }
.nav-links > a.btn { color: var(--navy); margin-left: 6px; }
.nav-user { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); }
.nav-user .link-btn { color: #dbe5f5; }
.avatar-link { display: flex; align-items: center; gap: 8px; color: #fff; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--navy); display: inline-grid; place-items: center; font-weight: 700; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.8rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links > a.btn { margin: 8px 0 0; text-align: center; }
  .nav-user { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); justify-content: space-between; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, transform .05s; text-align: center; }
.btn:hover { background: #096656; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #1f1300; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn-outline:hover { background: #f1f5f9; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-google { background: #fff; color: #1f2937; border: 1px solid var(--border); }
.btn-google:hover { background: #f8fafc; }
.btn-sm { padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; margin-top: 10px; }
.link-btn { background: none; border: 0; color: var(--blue); font: inherit; font-size: .9rem; cursor: pointer; padding: 4px 6px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.link-more { font-weight: 600; }

/* Hero */
.banner { background: var(--navy); line-height: 0; }
.banner img { display: block; width: 100%; height: auto; max-width: 1920px; margin: 0 auto; }
.hero { background: radial-gradient(1000px 420px at 85% 0%, rgba(47,216,182,.16), transparent), linear-gradient(180deg, var(--navy), var(--navy-2)); border-top: 1px solid rgba(47,216,182,.15); color: #e2e8f0; padding: 64px 0 72px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.hero .hl { color: var(--teal); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.lead { font-size: 1.08rem; color: #cbd5e1; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.hero-note { font-size: .92rem; color: #cbd5e1; }
.hero-note b { color: #fff; }
.hero-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 24px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat { background: rgba(255,255,255,.07); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 1.6rem; color: #fff; }
.stat span { font-size: .85rem; color: #cbd5e1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding: 40px 0 48px; } }

/* Page head */
.page-head { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #cbd5e1; padding: 36px 0 32px; }
.page-head h1 { color: #fff; margin-bottom: 6px; }
.page-head p { margin: 0; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.crumb { color: var(--teal); font-size: .9rem; display: inline-block; margin-bottom: 6px; }
.profile-head { display: flex; align-items: center; gap: 18px; }
.admin-head { padding-bottom: 0; }
.admin-nav { display: flex; gap: 4px; margin-top: 16px; overflow-x: auto; }
.admin-nav a { color: #cbd5e1; padding: 10px 16px; border-radius: 10px 10px 0 0; white-space: nowrap; }
.admin-nav a.active, .admin-nav a:hover { background: var(--bg); color: var(--navy); text-decoration: none; font-weight: 600; }

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2 { margin: 0; font-size: 1.1rem; }
.card-head.plain { padding: 0 0 12px; border: 0; align-items: flex-start; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 1.7rem; }
.section-head p { margin: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 84px; }
@media (max-width: 860px) { .sticky { position: static; } }
.empty { text-align: center; padding: 40px 20px; }

.cat-card { color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.cat-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15,23,42,.1); }
.cat-icon { width: 46px; height: 46px; border-radius: 12px; background: #e0f6f1; color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; flex-shrink: 0; }
.cat-icon .icon { width: 26px; height: 26px; }
.cat-meta { margin-top: auto; font-size: .9rem; color: var(--muted); }
.cat-meta b { color: var(--success); }

.service-card { display: flex; flex-direction: column; gap: 14px; }
.service-card h3 a { color: #0f172a; }
.service-card p { margin: 0; font-size: .93rem; }
.service-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px dashed var(--border); padding-top: 14px; }
.price-from { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.price { font-size: 1.45rem; font-weight: 800; color: #0f172a; }
.price.big { font-size: 2.1rem; }
.price-unit { font-size: .9rem; color: var(--muted); margin-left: 4px; }
.delivery { font-size: .82rem; color: var(--muted); }
.price-box h3 { margin-bottom: 8px; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.checklist .icon { color: var(--success); margin-top: 3px; }
.checklist.light li { color: #e2e8f0; }
.checklist.light .icon { color: var(--accent); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 4px; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 8px; }
.steps span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.cta-band { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #cbd5e1; padding: 44px 0; }
.cta-band h2 { color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner p { margin: 0; }

/* Catalog */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filter-bar input[type=search] { flex: 1 1 260px; }
.filter-bar select { flex: 0 1 260px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: var(--navy); }
.chip:hover { background: #e0f6f1; text-decoration: none; }
.cat-block { margin-bottom: 40px; scroll-margin-top: 84px; }
.cat-block-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.cat-block-head h2 { margin: 0; }
.cat-block-head p { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
.price-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: #f1f5f9; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
.num { text-align: right; }
tr.dim td { opacity: .55; }
.data-table td { font-size: .94rem; }
@media (max-width: 640px) { th, td { padding: 10px 12px; } }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; text-transform: capitalize; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-in_progress { background: #ede9fe; color: #5b21b6; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-neutral { background: #f1f5f9; color: #475569; }

/* Forms */
.form { display: grid; gap: 14px; align-content: start; }
.form h2, .form h3 { margin-bottom: 0; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: #334155; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; width: 100%; }
input[type=checkbox] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid #8ee8d4; border-color: var(--blue); }
input:disabled { background: #f1f5f9; color: var(--muted); }
textarea { resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
form.inline { display: inline; }

.auth { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 480px; margin: 0 16px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* Flash */
.flash-wrap { margin-top: 16px; }
.flash { border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; font-size: .95rem; border: 1px solid; }
.flash-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* Definition lists */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 1em; font-size: .94rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }

/* Orders */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; border-left: 2px solid var(--border); padding-left: 16px; }
.note { background: #fffbeb; border-color: #fde68a; }

/* Admin */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.kpi { display: grid; gap: 4px; color: inherit; padding: 18px; }
.kpi:hover { text-decoration: none; }
.kpi span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.kpi b { font-size: 1.45rem; color: #0f172a; }
.kpi small { font-size: .8rem; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.status-bars { display: grid; gap: 10px; }
.status-bar { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 12px; color: inherit; }
.status-bar:hover { text-decoration: none; }
.bar { height: 10px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.fill-pending { background: #f59e0b; } .fill-confirmed { background: #3b82f6; } .fill-in_progress { background: #8b5cf6; }
.fill-completed { background: #22c55e; } .fill-cancelled { background: #ef4444; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.msg-list li:last-child { border-bottom: 0; }
.unread { border-left: 4px solid var(--accent); }
.message h3 { margin: 4px 0 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #94a3b8; padding: 48px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-grid a, .footer-grid span { display: block; color: #94a3b8; font-size: .9rem; margin-bottom: 6px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }
.brand-footer { margin-bottom: 14px; }
.brand-footer .brand-logo { height: 38px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding: 18px 16px; font-size: .82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.error-page { padding: 40px 0; }
.error-code { font-size: 5rem; font-weight: 800; color: #cbd5e1; line-height: 1; }

/* Admin dashboard */
.dash-welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-welcome h2 { margin: 0 0 4px; }
.dash-welcome p { margin: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.chart { margin: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.chart-head h2 { margin: 0; font-size: 1.1rem; }
.chart-head p { margin: 2px 0 0; }
.chart-hero { text-align: right; display: grid; }
.chart-hero b { font-size: 1.35rem; color: #0f172a; line-height: 1.2; }
.cols { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 200px; padding-left: 64px; }
.cols-grid { position: absolute; inset: 0 0 24px 64px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.cols-grid span { border-top: 1px solid #edf1f5; position: relative; }
.cols-grid span:last-child { border-top-color: #cbd5e1; }
.cols-grid span::before { content: attr(data-v); position: absolute; right: calc(100% + 8px); top: -.7em; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.col { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; outline: none; }
.col-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.col-bar { display: block; width: min(60%, 36px); background: var(--chart); border-radius: 4px 4px 0 0; min-height: 0; transition: filter .15s; }
.col-bar.zero { height: 0 !important; }
.col-label { height: 24px; line-height: 24px; font-size: .78rem; color: var(--muted); }
.col:hover .col-bar, .col:focus-visible .col-bar { filter: brightness(1.25); }
.col:hover { background: rgba(11,124,105,.05); border-radius: 6px; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% - 18px); transform: translateX(-50%);
  background: #0f172a; color: #fff; font-size: .78rem; padding: 6px 10px; border-radius: 6px; white-space: nowrap; z-index: 5; pointer-events: none;
}
.hbar[data-tip]:hover::after, .hbar[data-tip]:focus-visible::after { bottom: calc(100% + 2px); }
.chart-table { margin-top: 12px; font-size: .88rem; }
.chart-table summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.chart-table table { margin-top: 8px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hbar { display: grid; gap: 4px; outline: none; }
.hbar-top { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
.hbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-val { white-space: nowrap; }
.hbar-track { height: 8px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--chart); border-radius: 99px; }
.hbar:hover .hbar-fill { filter: brightness(1.25); }

/* Legal pages (privacy, terms) */
.legal { max-width: 820px; line-height: 1.7; }
.legal h2 { margin-top: 32px; font-size: 1.3rem; scroll-margin-top: 80px; }
.legal h3 { margin-top: 18px; font-size: 1.05rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
