/* MoonTarot - mobile first warm yellow theme */
:root {
    --accent: #f6d365;
    --accent-strong: #e7b93f;
    --accent-deep: #9a7413;
    --accent-soft: #fff4c9;
    --accent-mist: #fffaeb;
    --cream: #fffcf5;
    --ink: #2d2719;
    --muted: #7c7159;
    --line: #ecdfbe;
    --card: #ffffff;
    --danger: #b23b3b;
    --success: #2e7d5b;
    --font-sans: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --radius-lg: 22px;
    --radius: 16px;
    --radius-sm: 11px;
    --shadow: 0 12px 40px rgba(122, 101, 43, .10);
    --shadow-sm: 0 4px 18px rgba(122, 101, 43, .08);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(246, 211, 101, .24), transparent 38rem),
        radial-gradient(circle at 100% 8%, rgba(255, 233, 168, .35), transparent 30rem),
        var(--cream);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, .brand-text, .hero-title, .section-title {
    font-family: var(--font-sans);
    letter-spacing: -.01em;
    color: var(--ink);
}

a {
    color: var(--accent-deep);
    text-decoration: none;
}

a:hover {
    color: #6f5309;
}

p {
    color: var(--muted);
}

.container {
    width: 100%;
    padding-inline: 1rem;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .container { max-width: 760px; }
}

@media (min-width: 1080px) {
    .container { max-width: 1120px; }
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: .65rem 1.2rem;
    border-width: 1.5px;
}

.btn-primary {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-color: #3b2f10;
    --bs-btn-hover-bg: var(--accent-strong);
    --bs-btn-hover-border-color: var(--accent-strong);
    --bs-btn-hover-color: #2c2209;
    --bs-btn-active-bg: var(--accent-strong);
    --bs-btn-active-border-color: var(--accent-strong);
    --bs-btn-active-color: #2c2209;
    --bs-btn-disabled-bg: #efdfae;
    --bs-btn-disabled-border-color: #efdfae;
    --bs-btn-disabled-color: #8b7c58;
    background: var(--accent);
    border-color: var(--accent);
    color: #3b2f10;
    box-shadow: 0 6px 20px rgba(231, 185, 63, .25);
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #2c2209;
}

.btn-outline-primary {
    --bs-btn-color: var(--accent-deep);
    --bs-btn-border-color: var(--accent-strong);
    --bs-btn-hover-bg: var(--accent-soft);
    --bs-btn-hover-color: var(--accent-deep);
    --bs-btn-hover-border-color: var(--accent-strong);
    --bs-btn-active-bg: var(--accent-soft);
    --bs-btn-active-color: var(--accent-deep);
    color: var(--accent-deep);
    border-color: var(--accent-strong);
}

.btn-ghost {
    color: var(--ink);
    border: 1.5px solid var(--line);
    background: rgba(255, 255, 255, .7);
}

.btn-ghost:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--ink);
}

.btn-dark {
    background: #332c1e;
    border-color: #332c1e;
    color: #fff8e5;
}

.btn-dark:hover {
    background: #241f15;
    border-color: #241f15;
    color: #fff8e5;
}

.btn-danger-soft {
    background: #fbeaea;
    border-color: #f0caca;
    color: var(--danger);
}

.btn-danger-soft:hover {
    background: #f6dada;
    color: #8d2c2c;
}

.btn-sm {
    padding: .38rem .8rem;
    font-size: .82rem;
}

.btn-lg {
    padding: .85rem 1.6rem;
    font-size: 1.02rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 .18rem rgba(246, 211, 101, .45);
    border-color: var(--accent-strong);
}

.btn-link {
    color: var(--accent-deep);
}

/* ---------- Header ---------- */
.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 252, 245, .86);
    border-bottom: 1px solid rgba(236, 223, 190, .8);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 66px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    font-weight: 700;
}

.brand:hover { color: var(--ink); }

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #5d4712;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 4px 14px rgba(231, 185, 63, .3);
}

.brand-text {
    font-size: 1.2rem;
    line-height: 1;
}

.brand-text span { color: var(--accent-deep); }

.brand-text small {
    font-family: var(--font-sans);
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-left: .3rem;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: .15rem;
    padding: .75rem;
    background: #fffdf7;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.site-nav.open { display: flex; }

.site-nav .nav-item {
    padding: .65rem .8rem;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
}

.site-nav .nav-item:hover { background: var(--accent-soft); }
.site-nav .nav-item.active { background: var(--accent-soft); color: var(--accent-deep); }
.site-nav .nav-cta { background: var(--accent); color: #3b2f10; text-align: center; }
.site-nav .nav-cta:hover { background: var(--accent-strong); }
.site-nav .nav-admin { color: var(--accent-deep); }

.nav-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    border-top: 1px dashed var(--line);
    margin-top: .35rem;
    padding-top: .6rem !important;
}

.nav-link-plain { color: var(--muted); font-size: .85rem; }

.logout-form { display: inline; margin: 0; }

.logout-button {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 600;
    font-size: .85rem;
    padding: .2rem .3rem;
}

@media (min-width: 900px) {
    .nav-toggle { display: none; }

    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: .2rem;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .site-nav .nav-item { padding: .5rem .8rem; font-size: .9rem; }
    .nav-account { border-top: 0; margin-top: 0; padding-top: .5rem !important; }
}

.site-main {
    flex: 1;
    padding-block: 1.4rem 3rem;
}

@media (min-width: 768px) {
    .site-main { padding-block: 2.2rem 4rem; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: #332c1e;
    color: #f2e7c9;
    padding: 2.2rem 0 1.4rem;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-inner strong { color: #fff4cf; font-size: 1.2rem; font-family: var(--font-sans); }
.footer-inner p { color: #bfb293; margin: .25rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: #f6d365; font-size: .9rem; }
.footer-footer, .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    border-top: 1px solid rgba(255, 244, 207, .16);
    margin-top: 1.6rem;
    padding-top: 1rem;
    color: #9c9178;
    font-size: .78rem;
}

@media (min-width: 768px) {
    .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Floating dashboard button ---------- */
.floating-nav {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem;
    border-radius: 999px;
    background: #332c1e;
    color: #ffe9a8;
    box-shadow: 0 12px 30px rgba(45, 39, 25, .35);
    border: 1px solid rgba(255, 233, 168, .35);
    transition: transform .15s ease, background .15s ease;
}

.floating-nav:hover {
    background: #241f15;
    color: #fff4cf;
    transform: translateY(-2px);
}

.floating-nav-label {
    display: none;
    font-size: .82rem;
    font-weight: 700;
    padding-right: .35rem;
}

@media (min-width: 700px) {
    .floating-nav { right: 1.4rem; bottom: 1.4rem; padding: .75rem 1rem; }
    .floating-nav-label { display: inline; }
}

/* ---------- Hero & sections ---------- */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .65), transparent 13rem),
        linear-gradient(135deg, #fff7d9 0%, #fbe9a9 52%, #f6d365 100%);
    border: 1px solid #f0d98c;
    padding: 2rem 1.3rem;
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -30px -70px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    box-shadow: 0 0 0 26px rgba(255, 255, 255, .16), 0 0 0 52px rgba(255, 255, 255, .1);
}

.hero-content { position: relative; z-index: 1; max-width: 39rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7b5c0c;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(122, 92, 12, .16);
    padding: .35rem .7rem;
    border-radius: 999px;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3.7rem);
    line-height: 1.08;
    margin: 1rem 0 .8rem;
    color: #30270f;
}

.hero-title em {
    font-style: normal;
    color: #8a6410;
}

.hero-text {
    font-size: 1rem;
    color: #5f512f;
    max-width: 34rem;
    margin-bottom: 1.4rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(122, 92, 12, .16);
}

.hero-stat strong { display: block; font-size: 1.3rem; font-family: var(--font-sans); color: #3a2f10; }
.hero-stat span { font-size: .78rem; color: #7b6b45; }

@media (min-width: 900px) {
    .hero { padding: 3.4rem 3rem; }
    .hero-text { font-size: 1.08rem; }
}

.section { margin-top: 2.6rem; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-kicker {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: .2rem;
}

.section-title {
    font-size: clamp(1.35rem, 4.6vw, 1.9rem);
    margin: 0;
}

.section-link {
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 700;
    color: var(--accent-deep);
    border-bottom: 1px solid transparent;
}

.section-link:hover { border-color: var(--accent-deep); }

.section-desc { color: var(--muted); margin: .35rem 0 0; font-size: .92rem; max-width: 42rem; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

@media (min-width: 420px) {
    .product-grid { gap: 1rem; }
}

@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
}

@media (min-width: 1080px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .product-grid.featured-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .16s ease, box-shadow .16s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; }

.product-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .6), transparent 40%),
        linear-gradient(150deg, #fff2c4, #f7df95);
    display: grid;
    place-items: center;
    overflow: hidden;
}

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

.product-thumb .thumb-placeholder {
    display: grid;
    place-items: center;
    color: rgba(122, 92, 12, .55);
}

.product-body {
    padding: .75rem .8rem .9rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
}

.product-cat {
    font-size: .64rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent-deep);
}

.product-name {
    font-family: var(--font-sans);
    font-size: .98rem;
    line-height: 1.3;
    margin: 0;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    margin-top: auto;
    padding-top: .55rem;
}

.price {
    font-weight: 800;
    color: #3a2f10;
    font-size: .95rem;
    white-space: nowrap;
}

.link-arrow { font-size: .75rem; font-weight: 700; color: var(--accent-deep); }

/* ---------- Category cards ---------- */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
}

@media (min-width: 620px) {
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .8rem;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    transition: transform .16s ease, box-shadow .16s ease;
}

.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }

.category-thumb {
    width: 76px;
    height: 76px;
    flex: none;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(150deg, #fff2c4, #f7df95);
    display: grid;
    place-items: center;
    color: rgba(122, 92, 12, .55);
}

.category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-card h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.category-card p { margin: 0; font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category-card .category-meta { font-size: .72rem; color: var(--accent-deep); font-weight: 700; margin-top: .25rem; }

/* ---------- Page head / breadcrumbs ---------- */
.page-head { margin-bottom: 1.3rem; }
.page-head h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin: .2rem 0 .35rem; }
.page-head p { margin: 0; max-width: 46rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .78rem; color: var(--muted); margin-bottom: .7rem; }
.breadcrumbs a { color: var(--accent-deep); }
.breadcrumbs span { color: #b5a986; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1.05fr .95fr; gap: 2.4rem; align-items: start; } }

.detail-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(150deg, #fff2c4, #f7df95);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
}

.detail-media img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { display: flex; flex-direction: column; gap: .9rem; }
.detail-price { font-size: 1.8rem; font-weight: 800; font-family: var(--font-sans); color: #3a2f10; }
.detail-desc { color: #5f563f; white-space: pre-line; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .5rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    padding: .3rem .65rem;
    font-size: .75rem;
    color: var(--muted);
}

.chip.accent { background: var(--accent-soft); border-color: #f0d98c; color: #7b5c0c; }
.chip.success { background: #eaf5ef; border-color: #c6e3d4; color: var(--success); }
.chip.danger { background: #fbeaea; border-color: #f0caca; color: var(--danger); }

.video-frame {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #17140e;
    border: 1px solid #3a3124;
    aspect-ratio: 16 / 9;
}

.video-frame video { width: 100%; height: 100%; display: block; }

.locked-video {
    border: 1px dashed #d9c795;
    background: var(--accent-mist);
    border-radius: var(--radius);
    padding: 1.1rem;
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.locked-video strong { display: block; color: var(--ink); }
.locked-video p { margin: .2rem 0 0; font-size: .88rem; }

/* ---------- Booking ---------- */
.booking-layout { display: grid; gap: 1.3rem; }
@media (min-width: 980px) { .booking-layout { grid-template-columns: 1.35fr .8fr; align-items: start; } }

.step-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.step-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #3b2f10;
    font-weight: 800;
    font-size: .82rem;
    flex: none;
}
.step-head h2 { font-size: 1.1rem; margin: 0; }

.day-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; }

.day-chip {
    flex: none;
    min-width: 74px;
    padding: .6rem .55rem;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    text-align: center;
    cursor: pointer;
    transition: all .15s ease;
}
.day-chip span { display: block; }
.day-chip .dow { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day-chip .dnum { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.day-chip .dmon { font-size: .68rem; color: var(--muted); }
.day-chip:hover { border-color: var(--accent-strong); }
.day-chip.selected { background: var(--accent); border-color: var(--accent-strong); box-shadow: 0 6px 16px rgba(231, 185, 63, .28); }
.day-chip.selected .dow, .day-chip.selected .dmon { color: #6e5310; }

.slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 520px) { .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.slot-chip {
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: .55rem .4rem;
    text-align: center;
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
    cursor: pointer;
}
.slot-chip:hover:not(:disabled) { border-color: var(--accent-strong); background: var(--accent-mist); }
.slot-chip.selected { background: var(--accent); border-color: var(--accent-strong); }
.slot-chip:disabled { background: #f6f1e4; color: #b3a88e; cursor: not-allowed; text-decoration: line-through; }

.service-list { display: flex; flex-direction: column; gap: .55rem; }
.service-item {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: .65rem .7rem;
    background: #fff;
    cursor: pointer;
}
.service-item.checked { border-color: var(--accent-strong); background: var(--accent-mist); }
.service-item input { margin-top: .25rem; accent-color: var(--accent-strong); }
.service-item strong { display: block; font-size: .92rem; }
.service-item span { font-size: .78rem; color: var(--muted); }
.service-item .service-price { margin-left: auto; white-space: nowrap; font-weight: 700; color: #3a2f10; font-size: .85rem; }

.summary-card {
    background: linear-gradient(160deg, #fffaf0, #fff3c4);
    border: 1px solid #f0d98c;
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    box-shadow: var(--shadow);
}
@media (min-width: 980px) { .summary-card { position: sticky; top: 90px; } }

.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .9rem; color: #5f512f; }
.summary-row.total { border-top: 1px dashed #d9c795; margin-top: .5rem; padding-top: .7rem; font-weight: 800; font-size: 1.05rem; color: #3a2f10; }
.summary-card h3 { font-size: 1.15rem; margin: 0 0 .6rem; }

.form-label { font-size: .82rem; font-weight: 700; color: #5f563f; }
.form-control, .form-select {
    border-radius: 12px;
    border-color: #e4d6b3;
    padding: .6rem .75rem;
    color: var(--ink);
    background-color: #fffdf8;
}
.form-control:focus, .form-select:focus { background-color: #fff; }
.form-check-input:checked { background-color: var(--accent-strong); border-color: var(--accent-strong); }
textarea.form-control { min-height: 90px; }

/* ---------- Payment ---------- */
.pay-layout { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .pay-layout { grid-template-columns: .9fr 1.1fr; align-items: start; } }

.qr-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.qr-image { width: min(300px, 80vw); height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: .5rem; }
.amount-large { font-family: var(--font-sans); font-size: 2rem; font-weight: 800; color: #3a2f10; margin: .2rem 0; }
.pay-status { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .35rem .8rem; background: var(--accent-soft); color: #7b5c0c; font-size: .8rem; font-weight: 700; }
.pay-status.paid { background: #eaf5ef; color: var(--success); }
.pay-status.cancelled, .pay-status.expired { background: #fbeaea; color: var(--danger); }

.deeplink-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .9rem; }
.deeplink {
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .55rem .7rem;
    background: #fffdf8;
    color: var(--ink);
    font-weight: 600;
    font-size: .88rem;
}
.deeplink:hover { border-color: var(--accent-strong); background: var(--accent-mist); color: var(--ink); }
.deeplink img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: #fff; }

.pay-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; }

/* ---------- Empty state & alerts ---------- */
.empty-state {
    text-align: center;
    padding: 2.4rem 1rem;
    border: 1px dashed #d9c795;
    border-radius: var(--radius);
    background: var(--accent-mist);
    color: var(--muted);
}
.empty-state h3 { font-size: 1.2rem; margin-bottom: .3rem; }

.alert { border-radius: 12px; border: 1px solid transparent; font-size: .88rem; }
.alert-info { background: #fff8de; border-color: #f0d98c; color: #6e5310; }
.alert-success { background: #eaf5ef; border-color: #c6e3d4; color: #256a4d; }
.alert-danger { background: #fbeaea; border-color: #f0caca; color: #8d2c2c; }
.alert-warning { background: #fff4df; border-color: #f2d9a6; color: #7a5a17; }

/* ---------- My page ---------- */
.account-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff7d9, #fff0bd);
    border: 1px solid #f0d98c;
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}
.account-head h1 { margin: 0; font-size: 1.7rem; }
.account-head p { margin: .2rem 0 0; }

.my-section { margin-top: 1.8rem; }
.my-section h2 { font-size: 1.25rem; margin-bottom: .7rem; }

.list-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.list-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    border-bottom: 1px solid #f4ecd8;
}
.list-row:last-child { border-bottom: 0; }
.list-row h3 { font-size: .98rem; margin: 0 0 .1rem; font-family: var(--font-sans); font-weight: 700; }
.list-row p { margin: 0; font-size: .78rem; }
.list-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .78rem; color: var(--muted); }
.list-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

/* ---------- Admin ---------- */
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; background: #fffdf7; }
.admin-header { background: #332c1e; color: #f6ecd4; position: sticky; top: 0; z-index: 1020; box-shadow: 0 4px 18px rgba(45, 39, 25, .2); }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 64px; }
.brand-admin { color: #fff4cf; }
.brand-admin:hover { color: #fff4cf; }
.brand-admin .brand-mark { background: #f6d365; }
.brand-admin .brand-text { color: #fff4cf; }
.brand-admin .brand-text span { color: #f6d365; }
.admin-header-actions { display: flex; align-items: center; gap: .5rem; }
.admin-header-actions .btn-ghost { color: #f6ecd4; border-color: rgba(255, 244, 207, .25); background: rgba(255, 255, 255, .05); }
.admin-header-actions .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-header-actions .btn-outline-dark { color: #f6ecd4; border-color: rgba(255, 244, 207, .3); }
.admin-header-actions .btn-outline-dark:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-user { display: none; font-size: .78rem; color: #bfb293; }
@media (min-width: 760px) { .admin-user { display: inline; } }

.admin-nav {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    padding: .35rem 0 .7rem;
    scrollbar-width: thin;
}
.admin-nav a {
    flex: none;
    padding: .42rem .75rem;
    border-radius: 999px;
    color: #cfc3a5;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff4cf; }
.admin-nav a.active { background: #f6d365; color: #3b2f10; }

.admin-main { flex: 1; padding-block: 1.2rem 3rem; }
@media (min-width: 1080px) { .admin-main { max-width: 1240px; } }

.admin-page-head { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.admin-page-head h1 { font-size: clamp(1.4rem, 5vw, 2rem); margin: 0 0 .15rem; }
.admin-page-head p { margin: 0; font-size: .88rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.guide-panel {
    background: #fff8de;
    border: 1px solid #f0d98c;
    border-radius: var(--radius);
    margin-bottom: 1.1rem;
    overflow: hidden;
}
.guide-toggle {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    background: transparent;
    border: 0;
    padding: .7rem .9rem;
    text-align: left;
    color: #6e5310;
    font-weight: 700;
    font-size: .88rem;
}
.guide-icon { display: grid; place-items: center; }
.guide-title { flex: 1; }
.guide-chevron { font-size: 1.1rem; }
.guide-body { padding: 0 .95rem .9rem; color: #6b5a32; font-size: .84rem; }
.guide-body ol, .guide-body ul { margin: .2rem 0 .5rem; padding-left: 1.2rem; }
.guide-body li { margin-bottom: .25rem; }
.guide-body p { color: #6b5a32; margin-bottom: .4rem; }
.guide-body code { background: #fff; border: 1px solid #f0d98c; border-radius: 5px; padding: .05rem .3rem; color: #6e5310; }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow-sm); }
.stat-card .stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.stat-card .stat-value { font-family: var(--font-sans); font-size: 1.65rem; font-weight: 800; color: #3a2f10; line-height: 1.2; }
.stat-card .stat-sub { font-size: .72rem; color: var(--muted); }

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    margin-bottom: 1.1rem;
}
.panel h2, .panel h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.panel-head h2, .panel-head h3 { margin: 0; }

.form-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }

.table { font-size: .84rem; color: var(--ink); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .6rem .55rem; border-bottom-color: #f1e8d2; vertical-align: middle; }
.table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fffbf0; border-bottom-color: var(--line); white-space: nowrap; }
.table-hover > tbody > tr:hover > * { background: #fffaf0; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #f1e8d2; }
.table-wrap .table { min-width: 560px; }

.badge-soft { display: inline-block; border-radius: 999px; padding: .18rem .55rem; font-size: .7rem; font-weight: 700; background: #f4eeda; color: #6f6244; white-space: nowrap; }
.badge-soft.paid, .badge-soft.confirmed { background: #eaf5ef; color: var(--success); }
.badge-soft.pending { background: #fff3cf; color: #8a6410; }
.badge-soft.cancelled, .badge-soft.expired, .badge-soft.failed { background: #fbeaea; color: var(--danger); }
.badge-soft.admin { background: #332c1e; color: #f6d365; }

.pagination-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1.1rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; }
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 .55rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 600;
}
.page-link:hover { background: var(--accent-mist); border-color: var(--accent-strong); color: var(--ink); }
.page-link.active { background: var(--accent); border-color: var(--accent-strong); }
.page-link.disabled { pointer-events: none; opacity: .45; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-bottom: .9rem; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 140px; }

.upload-box { background: #fffbf0; border: 1px dashed #d9c795; border-radius: 12px; padding: .75rem; }
.upload-box h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.upload-file { font-size: .8rem; }
.upload-preview { width: 100%; max-width: 220px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: .5rem; }

.log-detail { background: #2b271e; color: #ded4bd; border-radius: 12px; padding: .8rem; font-size: .76rem; white-space: pre-wrap; overflow-x: auto; max-height: 320px; }

.switch-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.switch-row .form-check { font-size: .85rem; }

.bank-row { display: grid; gap: .5rem; grid-template-columns: 1fr; padding: .65rem; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; margin-bottom: .5rem; }
@media (min-width: 700px) { .bank-row { grid-template-columns: 1.2fr 1.2fr 1.2fr 1fr auto; align-items: end; } }

.muted { color: var(--muted); }
.small { font-size: .8rem; }
.nowrap { white-space: nowrap; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.w-100 { width: 100%; }
.mt-1 { margin-top: .35rem; }
.mt-2 { margin-top: .7rem; }
.mt-3 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .35rem; }
.mb-2 { margin-bottom: .7rem; }
.mb-3 { margin-bottom: 1rem; }
.stack { display: flex; flex-direction: column; gap: .5rem; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }

/* ---------- Identity pages ---------- */
#account, .identity-page { max-width: 520px; margin: 0 auto; }
.identity-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow); margin: 1rem auto; max-width: 480px; }
.identity-card h1 { font-size: 1.6rem; }
.form-floating > .form-control { padding-top: 1.4rem; }
.form-floating > label { color: var(--muted); }

/* Validation */
.valid.modified:not([type=checkbox]) { outline: 1px solid #2e7d5b; }
.invalid { outline: 1px solid var(--danger); }
.validation-message { color: var(--danger); font-size: .78rem; }

.blazor-error-boundary {
    background: #fbeaea;
    border: 1px solid #f0caca;
    color: #8d2c2c;
    border-radius: 12px;
    padding: .9rem;
}

.blazor-error-boundary::after { content: "Алдаа гарлаа."; }

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    background: #2d2719;
    color: #fff4cf;
    border-radius: 12px;
    padding: .75rem 1rem;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .25);
    font-size: .85rem;
}

#blazor-error-ui .reload { color: #f6d365; margin-left: .5rem; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ---------- Mobile-first refinements ---------- */
/* FocusOnNavigate focuses the h1 on every navigation; do not draw a focus ring on it. */
h1:focus,
h1:focus-visible,
h1[tabindex="-1"]:focus {
    outline: none;
}

/* Long identifiers and payment references must never widen the layout. */
.summary-row strong,
.summary-row span,
.list-row h3,
.product-name,
.category-card h3,
.pay-layout code {
    overflow-wrap: anywhere;
}

.summary-row strong {
    max-width: 66%;
    text-align: right;
}

.table-wrap {
    -webkit-overflow-scrolling: touch;
}

.guide-toggle {
    min-height: 48px;
}

.admin-nav {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.admin-nav a {
    scroll-snap-align: start;
}

@media (max-width: 900px) {
    /* Comfortable touch targets (WCAG 2.5.5 / mobile-first baseline). */
    .btn,
    .btn-sm,
    .page-link,
    .slot-chip {
        min-height: 44px;
    }

    .btn-sm {
        padding: .55rem .9rem;
        font-size: .84rem;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }

    .section-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding-block: .2rem;
    }

    .breadcrumbs {
        font-size: .8rem;
        gap: .1rem;
    }

    .breadcrumbs a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding-inline: .15rem;
    }

    .footer-links {
        gap: .15rem 1.1rem;
    }

    .footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    .footer-bottom {
        min-height: 40px;
    }

    .form-check-input {
        width: 1.3rem;
        height: 1.3rem;
        margin: .12rem 0 0;
    }

    .form-check {
        display: flex;
        align-items: center;
        gap: .35rem;
        min-height: 44px;
        padding-left: 0;
    }

    .form-check-label {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding-left: .2rem;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
        padding: 11px;
    }

    .site-nav .nav-item {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .nav-account {
        min-height: 44px;
    }

    .logout-button {
        min-height: 40px;
        padding: .35rem .3rem;
    }

    .day-chip {
        min-width: 82px;
        min-height: 82px;
    }

    .slot-chip {
        padding: .7rem .5rem;
    }

    .page-link {
        min-width: 44px;
    }

    .admin-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .product-foot .link-arrow {
        font-size: 0;
    }

    .product-foot .link-arrow::after {
        content: "→";
        font-size: 1rem;
    }

    .floating-nav {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
    }

    .site-main {
        padding-bottom: 4.5rem;
    }

    .admin-main {
        padding-bottom: 5.5rem;
    }
}

@media (max-width: 640px) {
    .admin-header-inner {
        min-height: 60px;
    }

    .brand-admin .brand-text {
        font-size: 1.05rem;
    }

    .brand-admin .brand-text small {
        display: none;
    }

    /* The floating button already links back to the site on mobile. */
    .admin-header-actions .btn-ghost {
        display: none;
    }

    .admin-header-actions {
        gap: .35rem;
    }

    .admin-header-actions .btn {
        min-height: 44px;
        padding: .45rem .75rem;
        font-size: .78rem;
    }

    .admin-nav {
        padding-bottom: .55rem;
    }

    .admin-nav a {
        padding: .4rem .7rem;
        font-size: .78rem;
    }

    .admin-page-head {
        margin-bottom: .8rem;
    }

    .identity-card {
        padding: 1.1rem;
        border-radius: 18px;
    }

    .identity-card .small a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    .account-head {
        padding: 1rem;
    }

    .hero {
        padding: 1.6rem 1rem;
    }
}

/* Admin data tables become labelled cards on phones so actions are never off-screen. */
@media (max-width: 700px) {
    .table-wrap {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .table-wrap .table.table-mobile,
    .table-mobile {
        display: block;
        width: 100%;
        min-width: 0;
        font-size: .84rem;
    }

    .table-mobile thead {
        display: none;
    }

    .table-mobile tbody,
    .table-mobile tr,
    .table-mobile td {
        display: block;
        width: 100%;
    }

    .table-mobile tr {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        margin-bottom: .6rem;
        padding: .7rem .8rem;
        box-shadow: var(--shadow-sm);
    }

    .table-mobile tbody tr:last-child {
        margin-bottom: 0;
    }

    .table-mobile td {
        position: relative;
        border: 0;
        padding: .3rem 0 .3rem 42%;
        text-align: right;
        min-height: 30px;
    }

    .table-mobile td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: .3rem;
        width: 40%;
        padding-right: .5rem;
        text-align: left;
        font-size: .68rem;
        line-height: 1.5;
        text-transform: uppercase;
        letter-spacing: .05em;
        font-weight: 700;
        color: var(--muted);
    }

    .table-mobile td:last-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: .4rem;
        padding: .6rem 0 0;
        margin-top: .4rem;
        border-top: 1px dashed var(--line);
        text-align: right;
    }

    .table-mobile td:last-child::before {
        display: none;
    }

    .table-mobile td[colspan] {
        padding-left: 0;
        text-align: center;
    }

    .table-mobile td[colspan]::before {
        display: none;
    }

    .table-mobile .nowrap {
        white-space: normal;
    }
}

/* Home availability */
.home-availability {
    margin-top: 0;
}

.home-booking {
    padding: 1.1rem;
    border: 1px solid #f0d98c;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 255, 255, .7), transparent 14rem),
        linear-gradient(135deg, #fffaf0 0%, #fff3c4 100%);
    box-shadow: var(--shadow);
}

.home-booking-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.home-slot-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin: .9rem 0 .55rem;
    font-size: .9rem;
}

.home-availability .day-chip {
    background: #fff;
}

.home-availability .slot-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.home-availability .slot-chip:hover {
    color: var(--ink);
}

@media (max-width: 640px) {
    .home-booking {
        padding: 1rem;
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(45, 39, 25, .42);
    backdrop-filter: blur(3px);
}

.loading-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    max-width: 340px;
    padding: 1.1rem 1.3rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fffdf7;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
    color: var(--ink);
    font-weight: 600;
    font-size: .92rem;
}

.loading-spinner {
    flex: none;
    width: 30px;
    height: 30px;
    border: 3px solid #f1e3b8;
    border-top-color: var(--accent-strong);
    border-radius: 50%;
    animation: moon-spin .8s linear infinite;
}

@keyframes moon-spin {
    to { transform: rotate(360deg); }
}

/* Compact availability slots */
.day-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .9rem;
}

.day-slot {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .35rem .4rem .35rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffdf8;
    font-size: .82rem;
}

.day-slot.booked {
    background: #fff3cf;
    border-color: #f0d98c;
}

.day-slot.closed {
    opacity: .6;
}

.day-slot-main {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.day-slot-main strong {
    font-size: .84rem;
    white-space: nowrap;
}

.day-slot-price {
    font-size: .68rem;
    color: var(--muted);
}

.day-slot-badge {
    font-size: .66rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .18rem .5rem;
    background: #f4eeda;
    color: #6f6244;
    white-space: nowrap;
}

.day-slot-badge.booked {
    background: var(--accent);
    color: #5b450f;
}

.day-slot-badge.available {
    background: #eaf5ef;
    color: var(--success);
}

.day-slot-badge.closed {
    background: #fbeaea;
    color: var(--danger);
}

.slot-remove {
    flex: none;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 0;
    border-radius: 50%;
    background: #fbeaea;
    color: var(--danger);
    font-size: 1.15rem;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0;
}

.slot-remove:hover:not(:disabled) {
    background: #f6dada;
}

.slot-remove:disabled {
    opacity: .35;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .day-slot {
        min-height: 48px;
    }

    .slot-remove {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
