/* =====================================================================
   SBB UNIVERSE THEME
   A "royal directory" identity built from the crest logo: deep navy,
   magenta-crimson, foil gold, on a warm ivory field. Laurel + hairline
   motifs echo the crest without repeating it everywhere.
   ===================================================================== */

:root {
    /* --- palette --- */
    --navy-950: #0A1330;
    --navy-900: #0F1B41;
    --navy-700: #1B2B63;
    --navy-500: #2C3F8C;
    --magenta-600: #B8115E;
    --magenta-500: #D2166E;
    --magenta-400: #E14C8B;
    --gold-600: #B8912C;
    --gold-500: #D4AF37;
    --gold-300: #E9D48C;
    --ivory-50: #FBF8F1;
    --ivory-100: #F5EFE1;
    --ink-900: #191A2B;
    --ink-600: #4A4B63;
    --ink-400: #7B7C93;
    --line: rgba(15, 27, 65, 0.10);
    /* --- gradients --- */
    --grad-royal: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-700) 55%, var(--magenta-600) 130%);
    --grad-gold: linear-gradient(120deg, #9C7A22 0%, var(--gold-500) 45%, #F1DE9E 60%, var(--gold-500) 78%, #9C7A22 100%);
    --grad-magenta: linear-gradient(120deg, var(--magenta-600), var(--magenta-400));
    /* --- type --- */
    --font-display: "Cormorant Garamond", "Georgia", serif;
    --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-soft: 0 18px 45px -20px rgba(15, 22, 55, 0.35);
    --shadow-card: 0 10px 30px -14px rgba(15, 22, 55, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--ivory-50);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* belt-and-suspenders: stops any single element's miscalculated width
                          from creating a page-wide horizontal scrollbar on small screens */
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.15;
    letter-spacing: 0.2px;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

h3 {
    font-size: 1.4rem;
}

p {
    color: var(--ink-600);
    max-width: 68ch;
}

a {
    color: var(--magenta-600);
    text-decoration: none;
    transition: color .2s ease;
}

    a:hover {
        color: var(--magenta-500);
    }

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

/* focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------------------------------------------------------------------
   HAIRLINE / CREST DIVIDER  (subtle nod to the laurel + gold ring)
   --------------------------------------------------------------------- */
.crest-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 8px 0 28px;
    color: var(--gold-600);
}

    .crest-divider::before, .crest-divider::after {
        content: "";
        height: 1px;
        width: 64px;
        background: linear-gradient(90deg, transparent, var(--gold-500));
    }

    .crest-divider::after {
        background: linear-gradient(90deg, var(--gold-500), transparent);
    }

    .crest-divider svg {
        width: 22px;
        height: 22px;
    }

/* ---------------------------------------------------------------------
   TOPBAR + HEADER
   --------------------------------------------------------------------- */
.topbar {
    background: var(--navy-950);
    color: var(--ivory-100);
    font-size: 0.82rem;
    padding: 7px 0;
}

    .topbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .topbar a {
        color: var(--gold-300);
    }

    .topbar .topbar-links {
        display: flex;
        gap: 18px;
    }

        .topbar .topbar-links span {
            opacity: .85;
        }

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(251, 248, 241, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 84px;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .brand img {
        height: 56px;
        width: auto;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .brand-text .name {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1.45rem;
        color: var(--navy-900);
    }

    .brand-text .tag {
        font-size: 0.68rem;
        letter-spacing: 1.5px;
        color: var(--magenta-600);
        font-weight: 600;
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

    .main-nav ul {
        display: flex;
        gap: 28px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .main-nav > ul > li > a {
        color: var(--navy-900);
        font-weight: 600;
        font-size: 0.96rem;
        position: relative;
        padding: 6px 0;
        display: inline-block;
    }

        .main-nav > ul > li > a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: var(--grad-magenta);
            transition: width .25s ease;
        }

        .main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.active::after {
            width: 100%;
        }

        .main-nav > ul > li > a:hover {
            color: var(--magenta-600);
        }

/* dropdown for Featured / categories - a dedicated class, deliberately NOT reusing ".main-nav a"
   selectors above, so there's zero risk of the top-level nav's ::after/position rules leaking
   into the dropdown and hiding its text (that was the cause of the empty-looking boxes on mobile). */
.has-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    min-width: 260px;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.has-dropdown:hover .dropdown-panel, .has-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink-900) !important;
    font-weight: 500;
    font-size: .92rem;
    background: transparent;
    position: static;
}

    .dropdown-link:hover {
        background: var(--ivory-100);
        color: var(--magenta-600) !important;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-toggle-btn {
    display: none;
    font-size: 1.3rem;
    padding: 6px 10px;
}

/* ---------------------------------------------------------------------
   RESPONSIVE HEADER  (hamburger drives the mobile nav below 960px)
   --------------------------------------------------------------------- */
@media (max-width: 960px) {
    .site-header .container {
        flex-wrap: wrap;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        row-gap: 10px;
    }

    .brand-text .tag {
        display: none;
    }

    .brand img {
        height: 44px;
    }

    .main-nav {
        order: 3;
        flex-basis: 100%;
        display: none;
        width: 100%;
    }

        .main-nav.open {
            display: block;
            margin-top: 6px;
            max-height: 70vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .main-nav ul {
            flex-direction: column;
            gap: 4px;
            width: 100%;
        }

        .main-nav li {
            width: 100%;
        }

        .main-nav > ul > li > a {
            display: block;
            padding: 12px 4px;
            border-bottom: 1px solid var(--line);
        }

    .has-dropdown .dropdown-panel {
        position: static;
        transform: none !important;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: var(--ivory-100);
        display: none;
        margin-top: 4px;
        border-radius: var(--radius-sm);
    }

    .has-dropdown.open .dropdown-panel {
        display: block;
    }

    .dropdown-link {
        border-bottom: none;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

        .header-actions .btn {
            padding: 9px 16px;
            font-size: .82rem;
        }

    .nav-toggle-btn {
        display: inline-flex;
        order: 2;
    }
}

@media (max-width: 480px) {
    .header-actions .btn-gold {
        display: none;
    }
    /* "Become a Retailer" moves into the nav panel on very small screens */
}

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
    white-space: nowrap;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-gold {
    background: var(--grad-gold);
    background-size: 220% 100%;
    color: var(--navy-950);
    box-shadow: 0 10px 26px -12px rgba(212, 175, 55, 0.65);
}

    .btn-gold:hover {
        background-position: 100% 0;
        color: var(--navy-950);
        box-shadow: 0 14px 30px -12px rgba(212,175,55,.8);
    }

.btn-royal {
    background: var(--grad-royal);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(15,22,55,.55);
}

    .btn-royal:hover {
        color: #fff;
        filter: brightness(1.08);
    }

.btn-outline {
    background: transparent;
    border-color: var(--navy-900);
    color: var(--navy-900);
}

    .btn-outline:hover {
        background: var(--navy-900);
        color: #fff;
    }

.btn-ghost {
    background: transparent;
    color: var(--navy-900);
    padding: 10px 16px;
}

    .btn-ghost:hover {
        color: var(--magenta-600);
    }

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
}

/* ---------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--grad-royal);
    color: #fff;
    overflow: hidden;
    padding: 86px 0 140px;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .5;
        background-image: radial-gradient(circle at 15% 20%, rgba(212,175,55,.18), transparent 40%), radial-gradient(circle at 85% 75%, rgba(210,22,110,.28), transparent 45%);
    }

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-300);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: .85rem;
    margin-bottom: 18px;
}

.hero h1 {
    color: #fff;
    margin: 0 0 18px;
}

    .hero h1 em {
        color: var(--gold-300);
        font-style: normal;
    }

.hero p.lead {
    color: rgba(255,255,255,.82);
    font-size: 1.08rem;
    max-width: 46ch;
}

.hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 34px;
    flex-wrap: wrap;
}

    .hero-stats div strong {
        display: block;
        font-family: var(--font-display);
        font-size: 1.7rem;
        color: var(--gold-300);
    }

    .hero-stats div span {
        font-size: .82rem;
        color: rgba(255,255,255,.75);
    }

.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo-frame {
    position: relative;
    max-width: 420px;
    width: 100%;
    animation: float 5s ease-in-out infinite;
}

    .hero-photo-frame > img:first-child {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        border-radius: var(--radius-lg);
        border: 3px solid var(--gold-500);
        box-shadow: 0 30px 55px -15px rgba(0,0,0,.5);
    }

.hero-badge {
    position: absolute;
    bottom: -22px;
    left: -22px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 3px solid var(--gold-500);
    box-shadow: 0 12px 26px -8px rgba(0,0,0,.5);
    background: #fff;
    object-fit: cover;
}

@keyframes float {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* Search card overlaps the hero bottom edge */
.search-card {
    position: relative;
    z-index: 5;
    margin-top: -78px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 26px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr auto;
    gap: 14px;
    border: 1px solid var(--line);
}

    .search-card .field {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .search-card label {
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .6px;
        color: var(--navy-700);
        text-transform: uppercase;
    }

    .search-card input, .search-card select {
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        padding: 11px 12px;
        font-size: .95rem;
        font-family: var(--font-body);
        background: var(--ivory-50);
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .search-card input:focus, .search-card select:focus {
            border-color: var(--magenta-500);
            box-shadow: 0 0 0 3px rgba(210,22,110,.12);
            outline: none;
        }

.geo-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--magenta-600);
    font-weight: 700;
    margin-top: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

    .geo-btn svg {
        width: 14px;
        height: 14px;
    }

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p.lead {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-art {
        display: none;
    }

    .search-card {
        grid-template-columns: 1fr;
        margin-top: -50px;
    }
}

/* ---------------------------------------------------------------------
   SECTIONS
   --------------------------------------------------------------------- */
.section {
    padding: 96px 0;
}

    .section.tight {
        padding: 60px 0;
    }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

    .section-head .eyebrow {
        color: var(--magenta-600);
        font-weight: 700;
        letter-spacing: 1.4px;
        font-size: .78rem;
        text-transform: uppercase;
    }

    .section-head h2 {
        margin: 10px 0 12px;
    }

.section-alt {
    background: var(--ivory-100);
}

/* ---------------------------------------------------------------------
   CATEGORY GRID
   --------------------------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .category-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-soft);
        border-color: var(--gold-500);
    }

    .category-card .icon-wrap {
        width: 62px;
        height: 62px;
        margin: 0 auto 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--grad-royal);
        color: var(--gold-300);
    }

        .category-card .icon-wrap svg {
            width: 28px;
            height: 28px;
        }

    .category-card h3 {
        font-size: 1.08rem;
        margin: 0 0 4px;
    }

    .category-card span {
        font-size: .82rem;
        color: var(--ink-400);
    }

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------------------------------------------------------------------
   BUSINESS CARDS
   --------------------------------------------------------------------- */
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.business-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

    .business-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-soft);
    }

    .business-card .thumb {
        position: relative;
        height: 175px;
        background: var(--grad-royal);
    }

        .business-card .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--grad-gold);
    color: var(--navy-950);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 8px 18px -8px rgba(212,175,55,.7);
}

.business-card .body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.business-card h3 {
    margin: 0;
    font-size: 1.18rem;
}

.business-card .meta {
    font-size: .84rem;
    color: var(--ink-400);
    display: flex;
    align-items: center;
    gap: 6px;
}

.business-card .rating {
    color: var(--gold-600);
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.business-card .tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-chip {
    background: var(--ivory-100);
    color: var(--navy-700);
    font-size: .74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.business-card .cta-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}

@media (max-width: 1000px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------
   HOW IT WORKS / STEPS
   --------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
    padding: 10px;
}

    .step .num {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: 2px solid var(--gold-500);
        color: var(--gold-600);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        font-family: var(--font-display);
        font-weight: 700;
    }

@media (max-width: 900px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------
   FORMS / CARDS (auth, dashboards)
   --------------------------------------------------------------------- */
.auth-shell {
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-visual {
    background: var(--grad-royal);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px;
    position: relative;
    overflow: hidden;
}

    .auth-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 80% 20%, rgba(212,175,55,.25), transparent 40%);
    }

    .auth-visual .content {
        position: relative;
        z-index: 1;
    }

.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.role-tabs {
    display: flex;
    gap: 8px;
    background: var(--ivory-100);
    padding: 6px;
    border-radius: 999px;
    margin-bottom: 28px;
}

    .role-tabs a {
        flex: 1;
        text-align: center;
        padding: 9px 0;
        border-radius: 999px;
        font-weight: 700;
        font-size: .86rem;
        color: var(--ink-600);
    }

        .role-tabs a.active {
            background: var(--grad-royal);
            color: #fff;
        }

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: .82rem;
        font-weight: 700;
        color: var(--navy-700);
        margin-bottom: 6px;
    }

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    font-family: var(--font-body);
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}

    .form-control:focus {
        border-color: var(--magenta-500);
        box-shadow: 0 0 0 3px rgba(210,22,110,.12);
        outline: none;
    }

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-hint {
    font-size: .78rem;
    color: var(--ink-400);
    margin-top: 5px;
}

.form-error {
    color: var(--magenta-600);
    font-size: .82rem;
    margin-top: 5px;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }
}

/* ---------------------------------------------------------------------
   DASHBOARD SHELL (Admin / Retailer)
   --------------------------------------------------------------------- */
/* CSS Grid items default to min-width:auto, which refuses to shrink below the intrinsic content
   width of whatever's inside them (a long unbroken string, a wide button...) - this is what was
   causing sidebar panels/buttons to overflow past the viewport edge instead of wrapping normally
   on narrow screens. Forcing min-width:0 on every grid container's direct children fixes that
   systemically instead of chasing it one page at a time. */
.dash-shell > *, .form-grid-2 > *, .form-grid-3 > *, .search-layout > *, .detail-layout > *,
.override-form-grid > * {
    min-width: 0;
}

.dash-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: var(--ivory-50);
}

.dash-sidebar {
    background: var(--navy-950);
    color: #fff;
    padding: 26px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

    .dash-sidebar .brand-mini {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 8px 26px;
        border-bottom: 1px solid rgba(255,255,255,.1);
        margin-bottom: 20px;
    }

        .dash-sidebar .brand-mini img {
            height: 36px;
        }

.dash-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.75);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 4px;
    transition: background .2s ease, color .2s ease;
}

    .dash-nav a svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .dash-nav a:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
    }

    .dash-nav a.active {
        background: var(--grad-magenta);
        color: #fff;
    }

.dash-nav .section-label {
    text-transform: uppercase;
    font-size: .68rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,.35);
    margin: 18px 10px 8px;
}

.dash-main {
    padding: 30px 36px 70px;
}

.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 14px;
}

    .dash-topbar h1 {
        font-size: 1.7rem;
        margin: 0;
    }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

    .stat-card .label {
        font-size: .78rem;
        color: var(--ink-400);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .4px;
    }

    .stat-card .value {
        font-family: var(--font-display);
        font-size: 1.9rem;
        color: var(--navy-900);
        margin-top: 6px;
    }

    .stat-card.accent-gold {
        border-top: 3px solid var(--gold-500);
    }

    .stat-card.accent-magenta {
        border-top: 3px solid var(--magenta-500);
    }

    .stat-card.accent-navy {
        border-top: 3px solid var(--navy-700);
    }

.panel {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-bottom: 26px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

    .panel-head h2 {
        font-size: 1.2rem;
        margin: 0;
    }

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.data-table th, .data-table td {
    white-space: nowrap;
}

    .data-table td.wrap-cell {
        white-space: normal;
    }

.data-table th {
    text-align: left;
    padding: 12px 14px;
    background: var(--ivory-100);
    color: var(--navy-700);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-900);
}

.data-table tr:hover td {
    background: var(--ivory-50);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.badge-pending {
    background: #FFF3D6;
    color: #92650B;
}

.badge-confirmed {
    background: #DCE7FF;
    color: #1E3A8A;
}

.badge-inprogress {
    background: #E4DCFF;
    color: #4C1D95;
}

.badge-completed {
    background: #DBF6E3;
    color: #14532D;
}

.badge-cancelled {
    background: #FDE1E1;
    color: #9B1C1C;
}

.badge-approved {
    background: #DBF6E3;
    color: #14532D;
}

.badge-rejected {
    background: #FDE1E1;
    color: #9B1C1C;
}

@media (max-width: 960px) {
    .dash-shell {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 82%;
        max-width: 300px;
        height: 100dvh;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 20px 0 40px rgba(0,0,0,.25);
        overflow-y: auto;
    }

        .dash-sidebar.open {
            transform: translateX(0);
        }

    .dash-mobile-topbar {
        display: flex;
    }
}

@media (min-width: 961px) {
    .dash-mobile-topbar {
        display: none;
    }
}

.dash-mobile-topbar {
    align-items: center;
    justify-content: space-between;
    background: var(--navy-950);
    color: #fff;
    padding: 14px 18px;
    position: sticky;
    top: 0;
    z-index: 150;
}

    .dash-mobile-topbar img {
        height: 32px;
    }

    .dash-mobile-topbar button {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.4rem;
        cursor: pointer;
    }

.dash-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,19,48,.5);
    z-index: 190;
}

    .dash-sidebar-backdrop.open {
        display: block;
    }

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-950);
    color: rgba(255,255,255,.75);
    padding: 70px 0 26px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

    .footer-grid h4 {
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: 1.05rem;
        margin-bottom: 16px;
    }

    .footer-grid a {
        display: block;
        color: rgba(255,255,255,.68);
        font-size: .9rem;
        margin-bottom: 10px;
    }

        .footer-grid a:hover {
            color: var(--gold-300);
        }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 22px;
    font-size: .82rem;
    flex-wrap: wrap;
    gap: 10px;
}

.social-row {
    display: flex;
    gap: 12px;
}

    .social-row a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .social-row a:hover {
            background: var(--grad-magenta);
        }

    .social-row svg {
        width: 16px;
        height: 16px;
    }

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------------------------------------------------------------------
   SCROLL REVEAL (single orchestrated entrance, not per-card confetti)
   --------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

    .reveal.in-view {
        opacity: 1;
        transform: translateY(0);
    }

/* utility */
.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.w-full {
    width: 100%;
}

.pill-select {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: .85rem;
    background: #fff;
}

/* Reusable 2-column form grid used across auth/business/service forms - collapses to 1 column on
   narrow screens instead of every view needing its own inline media query. */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

@media (max-width: 700px) {
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.latlng-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

@media (max-width: 700px) {
    .latlng-row {
        grid-template-columns: 1fr;
    }

        .latlng-row .btn {
            width: 100%;
        }
}

/* Search results page: filter sidebar + results grid, collapsing to a stacked layout on tablets/phones */
.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: flex-start;
}

.search-filters {
    position: sticky;
    top: 100px;
}

@media (max-width: 900px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-filters {
        position: static;
    }
}

/* Business detail page: content + sidebar, stacks on tablets/phones */
.detail-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 36px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Retailer > Working Hours > date-override quick-add row */
.override-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 24px;
}

@media (max-width: 800px) {
    .override-form-grid {
        grid-template-columns: 1fr;
    }

        .override-form-grid .btn {
            width: 100%;
        }
}

/* Simple photo gallery grid used on the Retailer > Photos & Gallery page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 1;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .gallery-item form {
        position: absolute;
        top: 6px;
        right: 6px;
    }

    .gallery-item .btn {
        padding: 4px 9px;
        font-size: .7rem;
    }

/* Service cards on a business's public page - replaces a cramped table with something that
   reads well and never needs horizontal scrolling, on any screen size. */
.service-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-soft);
    }

    .service-card h3 {
        margin: 0;
        font-size: 1.08rem;
    }

    .service-card .desc {
        color: var(--ink-400);
        font-size: .86rem;
        flex: 1;
    }

    .service-card .price-row {
        display: flex;
        align-items: baseline;
        gap: 8px;
        font-family: var(--font-display);
    }

    .service-card .price-strike {
        text-decoration: line-through;
        color: var(--ink-400);
        font-size: .95rem;
    }

    .service-card .price-now {
        color: var(--magenta-600);
        font-size: 1.3rem;
        font-weight: 700;
    }

    .service-card .meta-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: .8rem;
        color: var(--ink-400);
    }

/* Opening hours as a clean list instead of a table */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .hours-list .hours-row {
        display: flex;
        justify-content: space-between;
        padding: 9px 4px;
        border-bottom: 1px dashed var(--line);
        font-size: .9rem;
    }

        .hours-list .hours-row:last-child {
            border-bottom: none;
        }

        .hours-list .hours-row.today {
            font-weight: 700;
            color: var(--navy-900);
        }

/* ---------------------------------------------------------------------
   ABOUT US PAGE - founder profile, mission/vision, values, ecosystem
   --------------------------------------------------------------------- */
.about-hero {
    background: var(--grad-royal);
    color: #fff;
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .about-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .5;
        background-image: radial-gradient(circle at 20% 30%, rgba(212,175,55,.2), transparent 40%), radial-gradient(circle at 80% 70%, rgba(210,22,110,.25), transparent 45%);
    }

    .about-hero > * {
        position: relative;
        z-index: 1;
    }

    .about-hero p.lead {
        color: rgba(255,255,255,.82);
        max-width: 640px;
        margin: 14px auto 0;
    }

.founder-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 44px;
    align-items: start;
}

@media (max-width: 860px) {
    .founder-grid {
        grid-template-columns: 1fr;
    }
}

.founder-photo-card {
    text-align: center;
}

    .founder-photo-card img {
        width: 100%;
        max-width: 320px;
        aspect-ratio: 3/4;
        object-fit: cover;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
        border: 3px solid var(--gold-500);
    }

    .founder-photo-card .role {
        margin-top: 16px;
        font-family: var(--font-display);
        font-size: 1.15rem;
        color: var(--navy-900);
        font-weight: 700;
    }

        .founder-photo-card .role span {
            display: block;
            font-family: var(--font-body);
            font-size: .82rem;
            font-weight: 600;
            color: var(--magenta-600);
            text-transform: uppercase;
            letter-spacing: .5px;
            margin-top: 4px;
        }

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.achievement-chip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--ivory-100);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: .88rem;
    color: var(--ink-900);
}

    .achievement-chip .dot {
        color: var(--gold-600);
        font-size: 1.1rem;
        line-height: 1;
    }

.quote-banner {
    background: var(--grad-royal);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    text-align: center;
    position: relative;
}

    .quote-banner p {
        color: #fff;
        font-family: var(--font-display);
        font-size: 1.3rem;
        font-style: italic;
        max-width: 720px;
        margin: 0 auto 14px;
    }

    .quote-banner cite {
        color: var(--gold-300);
        font-style: normal;
        font-weight: 700;
        font-size: .9rem;
        letter-spacing: .4px;
    }

.book-feature {
    display: flex;
    gap: 22px;
    align-items: center;
    background: var(--ivory-100);
    border-radius: var(--radius-lg);
    padding: 26px;
}

    .book-feature img {
        width: 130px;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-card);
        flex-shrink: 0;
    }

@media (max-width: 560px) {
    .book-feature {
        flex-direction: column;
        text-align: center;
    }
}

.ecosystem-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.ecosystem-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    text-align: center;
    min-width: 170px;
    box-shadow: var(--shadow-card);
}

    .ecosystem-step .icon {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .ecosystem-step h4 {
        margin: 0 0 4px;
        font-size: 1.02rem;
    }

.ecosystem-arrow {
    font-size: 1.6rem;
    color: var(--gold-500);
}

@media (max-width: 700px) {
    .ecosystem-arrow {
        transform: rotate(90deg);
    }
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

@media (max-width: 760px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }
}

.mv-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border-top: 4px solid var(--gold-500);
    box-shadow: var(--shadow-card);
}

    .mv-card.vision {
        border-top-color: var(--magenta-500);
    }

    .mv-card h3 {
        margin-top: 0;
    }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.value-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    text-align: center;
}

    .value-card .icon-wrap {
        width: 54px;
        height: 54px;
        margin: 0 auto 14px;
        border-radius: 50%;
        background: var(--grad-royal);
        color: var(--gold-300);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }

    .value-card h4 {
        margin: 0 0 6px;
    }

.leadership-steps {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 26px 0;
}

    .leadership-steps span {
        background: var(--ivory-100);
        border-radius: 999px;
        padding: 12px 26px;
        font-family: var(--font-display);
        font-weight: 700;
        color: var(--navy-900);
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .leadership-steps span:not(:last-child)::after {
            content: "→";
            color: var(--gold-500);
            margin-left: 14px;
        }

.aim-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

    .aim-list li {
        list-style: none;
        display: flex;
        gap: 10px;
        align-items: flex-start;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        padding: 14px 16px;
        font-size: .92rem;
    }

        .aim-list li::before {
            content: "✓";
            color: var(--gold-600);
            font-weight: 800;
            flex-shrink: 0;
        }

/* Link cards from About Us -> Founder / Mission & Vision pages */
.about-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.about-link-card {
    display: flex;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .about-link-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-soft);
    }

    .about-link-card img {
        width: 84px;
        height: 84px;
        border-radius: var(--radius-md);
        object-fit: cover;
        flex-shrink: 0;
    }

    .about-link-card h3 {
        margin: 0 0 4px;
        font-size: 1.05rem;
        color: var(--navy-900);
    }

    .about-link-card p {
        margin: 0 0 8px;
        font-size: .86rem;
    }

    .about-link-card .link-arrow {
        color: var(--magenta-600);
        font-weight: 700;
        font-size: .84rem;
    }

/* Tables never break page layout on small screens - wrap any <table class="data-table"> in this */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .table-responsive table.data-table {
        min-width: 640px;
    }

    .table-responsive .btn {
        white-space: nowrap;
    }

/* Generic responsive safety net: any row of buttons wraps instead of overflowing */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 10px 18px;
        font-size: .85rem;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .panel {
        padding: 18px;
    }

    .dash-main {
        padding: 20px 16px 60px;
    }

    .dash-topbar h1 {
        font-size: 1.35rem;
    }

    .stat-card .value {
        font-size: 1.5rem;
    }
}
