/* ============================================================
   MegaPro Wash Hub — brand stylesheet
   Palette from logo: deep navy #11384B · orange #F97432 · peach #FFA97A
   ============================================================ */

:root {
    --navy: #11384B;
    --navy-dark: #0B2735;
    --navy-light: #1C4E68;
    --orange: #F97432;
    --orange-dark: #E05E1D;
    --peach: #FFB48A;
    --peach-light: #FFE3D1;
    --bg: #F4F8FA;
    --card: #FFFFFF;
    --text: #1E2A32;
    --muted: #64748B;
    --line: #E2EAF0;
    --ok: #16A34A;
    --warn: #D97706;
    --bad: #DC2626;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(17, 56, 75, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.accent { color: var(--orange); }
.right { text-align: right; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---- Buttons ---- */
.btn {
    display: inline-block; border: 2px solid transparent; border-radius: 999px;
    padding: .55rem 1.4rem; font-weight: 600; font-size: .95rem; cursor: pointer;
    transition: all .18s ease; text-align: center; line-height: 1.4;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249, 116, 50, .35); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.hero .btn-outline, .section-navy .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn-outline:hover, .section-navy .btn-outline:hover { background: #fff; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--peach-light); color: var(--navy-dark); }
.btn-lg { padding: .8rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .3rem .9rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; }

/* ---- Topbar & navbar ---- */
.topbar { background: var(--navy-dark); color: var(--peach); font-size: .82rem; padding: .4rem 0; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; }
.topbar-phone:hover { text-decoration: underline; }

.navbar { background: var(--navy); position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: #fff; font-size: 1.05rem; letter-spacing: .04em; }
.brand-text small { color: var(--peach); font-size: .72rem; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a { color: #D9E6EE; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a.nav-cta { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---- Hero ---- */
.hero {
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(249,116,50,.25), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(255,180,138,.18), transparent 60%),
        linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
    color: #E8F1F6; padding: 4.5rem 0 4rem;
}
.hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
    color: var(--peach); border-radius: 999px; padding: .3rem 1rem; font-size: .85rem; margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; font-size: 2.7rem; margin-bottom: 1rem; }
.hero .lead { color: #C6D8E2; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--orange); }
.hero-stats span { font-size: .82rem; color: #A9C2CF; }

.hero-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px; padding: 2rem; text-align: center; backdrop-filter: blur(6px);
}
.hero-logo { width: 110px; height: 110px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero-card h3 { color: #fff; margin-top: 1rem; letter-spacing: .06em; }
.hero-card p { color: var(--peach); font-size: .9rem; margin-bottom: 1rem; }
.hero-ticks { list-style: none; text-align: left; color: #D5E4EC; font-size: .92rem; }
.hero-ticks li { padding: .3rem 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.hero-ticks li:last-child { border-bottom: 0; }

/* ---- Sections ---- */
.section { padding: 4rem 0; }
.section-alt { background: #fff; }
.section-navy { background: linear-gradient(150deg, var(--navy-dark), var(--navy)); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: 2rem; margin-bottom: .5rem; }

.page-hero {
    background: linear-gradient(150deg, var(--navy-dark), var(--navy) 70%, var(--navy-light));
    color: #fff; padding: 3rem 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: 2.3rem; margin-bottom: .5rem; }
.page-hero .lead { color: #C6D8E2; max-width: 760px; margin: 0 auto; }

/* ---- Steps ---- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--orange); }
.step-no {
    display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
    background: var(--peach-light); color: var(--orange-dark); font-weight: 700; border-radius: 50%; margin-bottom: .8rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---- Cards ---- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.chip {
    display: inline-block; align-self: flex-start; background: #EAF2F7; color: var(--navy-light);
    font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    border-radius: 999px; padding: .2rem .7rem; margin-bottom: .7rem;
}
.chip-accent { background: var(--peach-light); color: var(--orange-dark); }
.service-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.service-card p { font-size: .9rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.price { color: var(--orange-dark); font-weight: 700; }

/* ---- Signature section ---- */
.signature-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.ticks { list-style: none; margin: 1.2rem 0 1.6rem; }
.ticks li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.signature-panel { background: var(--navy); color: #D5E4EC; border-radius: 18px; padding: 2rem; }
.signature-panel h4 { color: #fff; margin-bottom: .6rem; }
.signature-panel em { color: var(--peach); }
.mini-stats { display: grid; gap: 1rem; margin-top: 1.4rem; }
.mini-stats div { display: flex; align-items: baseline; gap: .8rem; border-left: 3px solid var(--orange); padding-left: .9rem; }
.mini-stats strong { font-size: 1.35rem; color: var(--orange); }
.mini-stats span { font-size: .85rem; }

/* ---- Plans strip (home) ---- */
.plans-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.plan-pill {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
    padding: 1.3rem; display: flex; flex-direction: column; gap: .15rem; color: #fff; transition: all .18s;
}
.plan-pill:hover { transform: translateY(-3px); border-color: var(--orange); color: #fff; }
.plan-pill span { color: #A9C2CF; font-size: .85rem; }
.plan-pill em { color: var(--orange); font-style: normal; font-weight: 700; margin-top: .4rem; }
.plan-pill.highlight { background: var(--orange); border-color: var(--orange); }
.plan-pill.highlight span, .plan-pill.highlight em { color: #fff; }

/* ---- Trust & CTA ---- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.trust h3 { font-size: 1rem; margin-bottom: .4rem; }
.trust p { font-size: .88rem; }
.cta-band { background: linear-gradient(120deg, var(--orange-dark), var(--orange)); color: #fff; padding: 2.6rem 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .3rem; }
.cta-inner p { opacity: .92; }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 1.2rem; }
.faq-item summary {
    cursor: pointer; list-style: none; font-weight: 600; color: var(--navy);
    padding: 1.05rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--orange); line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item > p { padding: 0 0 1.1rem; margin: 0; }

/* ---- Price tables ---- */
.anchor-nav { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 2.5rem; justify-content: center; }
.anchor-nav a {
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1.1rem;
    font-size: .88rem; font-weight: 600; color: var(--navy);
}
.anchor-nav a:hover { border-color: var(--orange); color: var(--orange); }
.price-block { margin-bottom: 3rem; scroll-margin-top: 90px; }
.price-block h2 { margin-bottom: 1rem; font-size: 1.4rem; }
.price-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.price-table th, .price-table td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.price-table th { background: var(--navy); color: #fff; font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:hover td { background: #F8FBFD; }

.note-box {
    background: var(--peach-light); border-left: 4px solid var(--orange); border-radius: 8px;
    padding: 1rem 1.2rem; font-size: .92rem; color: #7A4A2B;
}
.note-box a { color: var(--orange-dark); font-weight: 600; }
/* Inline code — must wrap long URLs/paths so they never overflow on mobile */
code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: .86em; background: rgba(0, 0, 0, .06); padding: .1em .38em; border-radius: 5px;
    overflow-wrap: anywhere; word-break: break-word;
}
.note-box code { background: rgba(122, 74, 43, .1); color: inherit; }

/* ---- Forms & panels ---- */
.panel { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .span-2 { grid-column: span 2; }
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
input, select, textarea {
    font: inherit; padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: 9px;
    background: #FBFDFE; transition: border .15s; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
/* Clear keyboard-focus ring (only for keyboard users, not mouse clicks). */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid rgba(249, 116, 50, .5); outline-offset: 2px; border-radius: 4px;
}
.input-sm { max-width: 130px; padding: .35rem .6rem; }

/* ---- Booking layout ---- */
.booking-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.6rem; align-items: start; }
.booking-main { display: flex; flex-direction: column; gap: 1.6rem; }
.booking-main h2 { font-size: 1.15rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.step-dot {
    display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
    background: var(--orange); color: #fff; border-radius: 50%; font-size: .95rem;
}
.svc-cat { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.1rem 0 .5rem; }
.svc-list { display: flex; flex-direction: column; gap: .5rem; }
.svc-option {
    display: flex; flex-direction: row; align-items: center; gap: .9rem; border: 1.5px solid var(--line); border-radius: 10px;
    padding: .7rem .9rem; cursor: pointer; font-weight: 500; transition: all .15s;
}
.svc-option:hover { border-color: var(--peach); }
.svc-option:has(input:checked) { border-color: var(--orange); background: #FFF7F2; }
.svc-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; }
.svc-info { flex: 1; display: flex; flex-direction: column; }
.svc-info small { font-weight: 400; }
.svc-right { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.qty-wrap { font-size: .8rem; color: var(--muted); display: none; align-items: center; gap: .3rem; }
.svc-option:has(input:checked) .qty-wrap { display: inline-flex; }
.qty-input { width: 58px; padding: .2rem .4rem; font-size: .85rem; }

.booking-side { position: sticky; top: 90px; }
.summary-panel h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.summary-list { list-style: none; display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; border-bottom: 1px dashed var(--line); padding-bottom: .4rem; }
.summary-list li.empty { border: 0; }
.summary-total {
    display: flex; justify-content: space-between; align-items: center; background: var(--navy);
    color: #fff; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem;
}
.summary-total strong { font-size: 1.25rem; color: var(--peach); }
.pay-title { font-size: .95rem; margin: 1rem 0 .5rem; }
.pay-option {
    display: flex; flex-direction: row; gap: .8rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px;
    padding: .7rem .9rem; cursor: pointer; margin-bottom: .6rem; font-weight: 500;
}
.pay-option:has(input:checked) { border-color: var(--orange); background: #FFF7F2; }
.pay-option input { width: 17px; height: 17px; accent-color: var(--orange); margin-top: .25rem; flex-shrink: 0; }
.pay-option span { display: flex; flex-direction: column; }
.pay-option small { font-weight: 400; }

/* ---- Alerts & badges ---- */
.alert { border-radius: 10px; padding: .9rem 1.2rem; margin: 1rem 0; font-size: .95rem; }
.alert ul { margin-left: 1.2rem; }
.alert-ok { background: #EAF9F0; color: #166534; border: 1px solid #BBE8CC; }
.alert-warn { background: #FEF6E7; color: #92400E; border: 1px solid #F5DFB8; }
.alert-bad { background: #FDECEC; color: #991B1B; border: 1px solid #F5C6C6; }
.badge {
    display: inline-block; border-radius: 999px; padding: .15rem .7rem; font-size: .76rem; font-weight: 700;
}
.badge.ok { background: #EAF9F0; color: var(--ok); }
.badge.warn { background: #FEF6E7; color: var(--warn); }
.badge.bad { background: #FDECEC; color: var(--bad); }
.badge.muted { background: #EEF2F5; color: var(--muted); }

/* ---- Plans page ---- */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; align-items: stretch; }
.plan-card {
    background: #fff; border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow);
    display: flex; flex-direction: column; position: relative; border: 2px solid transparent;
}
.plan-card.highlight { border-color: var(--orange); transform: scale(1.02); }
.plan-flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--orange); color: #fff; font-size: .74rem; font-weight: 700;
    border-radius: 999px; padding: .2rem .9rem; white-space: nowrap;
}
.plan-card h3 { font-size: 1.2rem; }
.plan-vehicles { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.plan-price { margin-bottom: 1.2rem; }
.plan-price strong { font-size: 1.7rem; color: var(--navy); display: block; }
.plan-price span { color: var(--muted); font-size: .85rem; }
.plan-features { list-style: none; flex: 1; margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.plan-features li { font-size: .88rem; }

/* ---- Receipt ---- */
.receipt-wrap { max-width: 860px; }
.receipt-head { display: flex; gap: 1.2rem; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 1.2rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.receipt-head img { width: 64px; height: 64px; border-radius: 14px; }
.receipt-head h2 { font-size: 1.3rem; }
.receipt-ref { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.receipt-ref strong { font-size: 1.15rem; color: var(--orange-dark); }
.receipt-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.receipt-meta > div { display: flex; flex-direction: column; gap: .15rem; }
.receipt-table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; }
.receipt-table th, .receipt-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-size: .93rem; text-align: left; }
.receipt-table th { background: #F2F7FA; color: var(--navy); }
.receipt-table th.right, .receipt-table td.right { text-align: right; }
.receipt-foot { margin-top: 1.6rem; text-align: center; }
.receipt-actions { display: flex; gap: .8rem; justify-content: center; margin-top: .8rem; }

/* ---- Contact & about ---- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; align-items: start; }
.contact-info h3 { margin: 1rem 0 .4rem; font-size: 1rem; }
.contact-info h3:first-child { margin-top: 0; }
.about-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2.5rem; background: #fff; }
.about-banner img { display: block; width: 100%; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.about-grid p { margin-bottom: 1rem; }

/* ---- Footer ---- */
.footer { background: var(--navy-dark); color: #B9CDD8; padding: 3.5rem 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.2rem; padding-bottom: 2.5rem; }
.footer h4 { color: #fff; margin-bottom: .8rem; font-size: .95rem; }
.footer a { display: block; color: #B9CDD8; padding: .18rem 0; font-size: .9rem; }
.footer a:hover { color: var(--orange); }
.footer .muted { color: #8AA5B3; font-size: .88rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand strong { color: #fff; }
.footer-motto { color: var(--peach); font-style: italic; margin: .8rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   Admin panel
   ============================================================ */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy-dark); display: flex; flex-direction: column; padding: 1.2rem .9rem; position: sticky; top: 0; height: 100vh; }
.admin-brand { margin-bottom: 1.6rem; padding: 0 .5rem; }
.admin-brand img { width: 38px; height: 38px; border-radius: 10px; }
.admin-brand span { color: #fff; font-size: .95rem; }
.admin-brand strong { color: var(--orange); }
.admin-nav { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.admin-nav a { color: #B9CDD8; padding: .55rem .8rem; border-radius: 8px; font-size: .92rem; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a.active { background: var(--orange); color: #fff; }
.btn-remove { background: transparent; border: 1px solid var(--line); color: var(--bad); width: 26px; height: 26px;
    border-radius: 6px; font-size: 1.1rem; line-height: 1; cursor: pointer; transition: all .15s; }
.btn-remove:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.add-line-form { display: flex; gap: .5rem; align-items: center; margin-top: .8rem; flex-wrap: wrap; }
.nav-badge { display: inline-block; background: var(--orange); color: #fff; font-size: .68rem; font-weight: 700;
    border-radius: 999px; padding: .05rem .42rem; margin-left: .3rem; vertical-align: middle; line-height: 1.5; }
.admin-nav a.active .nav-badge { background: #fff; color: var(--orange-dark); }
.admin-side-foot { display: flex; flex-direction: column; gap: .2rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: .8rem; }
.admin-side-foot a { color: #8AA5B3; font-size: .88rem; padding: .3rem .8rem; }
.admin-side-foot a:hover { color: var(--orange); }
.admin-main { padding: 1.6rem 2rem; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; flex-wrap: wrap; gap: .6rem; }
.admin-topbar h1 { font-size: 1.5rem; }
.admin-content { display: flex; flex-direction: column; gap: 1.4rem; }

/* Mobile top bar for the admin drawer — hidden on desktop */
.admin-mobilebar { display: none; }
.admin-mobilebar-brand { display: flex; align-items: center; gap: .5rem; }
.admin-mobilebar-brand img { width: 32px; height: 32px; border-radius: 8px; }
.admin-mobilebar-brand span { color: #fff; font-size: .95rem; }
.admin-mobilebar-brand strong { color: var(--orange); }
.admin-nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.35);
    color: #fff; font-size: 1.25rem; line-height: 1; width: 42px; height: 40px; border-radius: 8px; cursor: pointer; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat-card { background: #fff; border-radius: 12px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .2rem; }
.stat-card strong { font-size: 1.45rem; color: var(--navy); }
.stat-card.accent strong { color: var(--orange-dark); }
.stat-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.admin-two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.4rem; align-items: start; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: .8rem; }
.panel-head h2 { font-size: 1.1rem; }

.admin-main .panel { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.admin-table tr:hover td { background: #F8FBFD; }
.admin-table .right { text-align: right; }

.filter-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-tabs a { padding: .3rem .9rem; border-radius: 999px; font-size: .85rem; border: 1px solid var(--line); color: var(--muted); }
.filter-tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-form { display: flex; gap: .5rem; }
.search-form input { max-width: 260px; padding: .4rem .7rem; font-size: .88rem; }

.message-card { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: .9rem; }
.message-card.unread { border-left: 4px solid var(--orange); background: #FFFBF8; }
.message-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; flex-wrap: wrap; }
.message-actions { display: flex; gap: .5rem; align-items: flex-start; }

/* ---- Login ---- */
.login-body {
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background:
        radial-gradient(800px 400px at 90% 0%, rgba(249,116,50,.2), transparent 60%),
        linear-gradient(150deg, var(--navy-dark), var(--navy));
    padding: 1.5rem;
}
.login-card { width: 100%; max-width: 400px; text-align: center; }
.login-logo { width: 76px; height: 76px; border-radius: 18px; margin-bottom: .8rem; }
.login-card h1 { font-size: 1.4rem; margin-bottom: .3rem; }
.login-card p { margin-bottom: 1.4rem; }
.login-card form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }

/* ---- Honeypot (bot trap — visually hidden, still in the DOM) ---- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Pagination ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---- Dashboard chart ---- */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: .5rem; }
.chart-day { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
/* On small screens, keep bars a usable/tappable width and scroll instead of squishing. */
@media (max-width: 640px) {
    .chart { overflow-x: auto; gap: 10px; padding-bottom: .3rem; }
    .chart-day { min-width: 30px; }
}
.chart-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.chart-bar { width: 40%; max-width: 20px; border-radius: 4px 4px 0 0; transition: height .2s; }
.chart-bar.bookings { background: var(--navy); }
.chart-bar.revenue { background: var(--orange); }
.chart-label { font-size: .7rem; color: var(--muted); margin-top: .3rem; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }

/* ---- Receipt payment strip ---- */
.receipt-pay { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---- Permissions matrix ---- */
.perm-table-wrap { overflow-x: auto; }
.perm-table th.center, .perm-table td.center { text-align: center; }
.perm-table td.center input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.perm-table tbody tr:hover td { background: #F8FBFD; }
.perm-table th.rolehead { border-left: 2px solid var(--line); background: #F2F7FA; }
.perm-table th.actionhead { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.perm-table thead tr:last-child th:nth-child(3n+1),
.perm-table td:nth-child(3n) { border-left: 2px solid var(--line); }

/* ---- Performance bonus ---- */
.bonus-panel { border-top: 3px solid var(--orange); }
.bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.bonus-grid > div { display: flex; flex-direction: column; gap: .15rem; }
.bonus-figure { font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.bonus-progress { margin-top: .4rem; }
.bonus-progress-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .35rem; gap: 1rem; }
@media (max-width: 720px) { .bonus-grid { grid-template-columns: 1fr; } }

/* ---- Branding upload ---- */
.brand-row { display: flex; gap: 1rem; align-items: flex-start; }
.brand-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: #fff; flex: none; }
.brand-thumb-wide { width: 96px; }

/* ---- Reports ---- */
.report-presets { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.report-presets a { font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); }
.report-presets a:hover { border-color: var(--orange); color: var(--orange); }
.inline-date { flex-direction: row; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.inline-date input { padding: .35rem .5rem; }
.bar-list { display: flex; flex-direction: column; gap: .9rem; }
.bar-row { display: flex; flex-direction: column; gap: .3rem; }
.bar-label { display: flex; justify-content: space-between; font-size: .88rem; }
.bar-label span:last-child { font-weight: 700; color: var(--navy); }
.bar-track { height: 8px; background: #EEF3F6; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--peach)); border-radius: 999px; }

/* ---- Staff earnings cards ---- */
.earn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.earn-card { background: #fff; border-radius: 14px; padding: 1.3rem 1.4rem; box-shadow: var(--shadow); border-top: 4px solid var(--orange); }
.earn-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.earn-card-head h3 { font-size: 1.05rem; }
.earn-figure { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .9rem; }
.earn-earned { font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.earn-split { display: flex; gap: 1rem; border-top: 1px dashed var(--line); padding-top: .8rem; }
.earn-split > div { display: flex; flex-direction: column; gap: .1rem; }
.earn-split b { font-size: 1.05rem; color: var(--navy); }
.earn-jobs { margin-top: .7rem; font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .earn-grid { grid-template-columns: 1fr; } }

/* ---- Print ---- */
@media print {
    .topbar, .navbar, .footer, .no-print, .alert { display: none !important; }
    body { background: #fff; }
    .panel { box-shadow: none; border: 1px solid #ddd; }
    .section { padding: 0; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .steps-grid, .trust-grid, .plans-grid, .plans-strip { grid-template-columns: repeat(2, 1fr); }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-inner, .signature-grid, .about-grid { grid-template-columns: 1fr; }
    .hero-card { max-width: 420px; margin: 0 auto; }
    .booking-grid { grid-template-columns: 1fr; }
    .booking-side { position: static; }
    .admin-two-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .hero h1 { font-size: 2rem; }
    .svc-option { flex-wrap: wrap; }
    .svc-info { flex: 1 1 calc(100% - 2.2rem); }
    .svc-right { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; padding-left: 2.2rem; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy); flex-direction: column; align-items: stretch;
        padding: 1rem 1.4rem; gap: .6rem; box-shadow: 0 10px 20px rgba(0,0,0,.25);
    }
    .nav-links.open { display: flex; }
    .steps-grid, .trust-grid, .cards-grid, .plans-grid, .plans-strip, .form-grid, .contact-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: span 1; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    /* Footer: stack into a single readable column on phones. */
    .footer { padding-top: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; padding-bottom: 2rem; }
    .footer-bottom-inner { flex-direction: column; gap: .4rem; }
    /* Compact top bar on phones: keep only the tappable phone, drop long address/hours. */
    .topbar-loc, .topbar-hours { display: none; }
    .topbar-inner { justify-content: center; }
    .plan-card.highlight { transform: none; }
}

/* ---- Admin: collapse the sidebar into a hamburger drawer ---- */
@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-mobilebar {
        display: flex; align-items: center; justify-content: space-between;
        background: var(--navy-dark); padding: .6rem .9rem; height: 56px;
        position: sticky; top: 0; z-index: 50;
    }
    .admin-nav-toggle { display: block; }
    .admin-side {
        display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
        height: auto; z-index: 45; overflow-y: auto; padding: 1rem;
    }
    .admin-shell.nav-open .admin-side { display: flex; }
    .admin-side .admin-brand { display: none; }   /* brand already shown in the mobile bar */
    .admin-nav a { padding: .8rem .9rem; font-size: 1rem; }   /* larger tap targets */
    .admin-side-foot a { padding: .6rem .9rem; font-size: .95rem; }
    .admin-main { padding: 1.1rem; }
    .admin-topbar h1 { font-size: 1.25rem; }
}
