/* =========================================================
   تمیزچی - Custom Admin Dashboard
   Fully independent from static/css/style.css (the public site)
   and from Django's default admin styling. Mobile-first, RTL.
   ========================================================= */

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --dash-navy: #0e2a47;
    --dash-navy-dark: #0a1f36;
    --dash-blue: #168bff;
    --dash-cyan: #18c7de;
    --dash-emerald: #19c77a;
    --dash-emerald-dark: #12a866;
    --dash-red: #e0455c;
    --dash-amber: #e0a028;
    --dash-violet: #7c5cff;

    --dash-bg: #f6fbff;
    --dash-surface: #ffffff;
    --dash-surface-soft: #f4f9fc;
    --dash-text: #17232f;
    --dash-text-muted: #5c6b7a;
    --dash-text-faint: #94a3b3;
    --dash-border: #e2ebf2;

    --dash-radius-lg: 22px;
    --dash-radius-md: 16px;
    --dash-radius-sm: 11px;
    --dash-radius-pill: 999px;

    --dash-shadow-soft: 0 16px 40px rgba(10, 50, 90, 0.08);
    --dash-shadow-softer: 0 6px 18px rgba(10, 50, 90, 0.06);
    --dash-shadow-lift: 0 20px 46px rgba(10, 50, 90, 0.14);

    --dash-glass-bg: rgba(255, 255, 255, 0.72);
    --dash-glass-border: rgba(255, 255, 255, 0.75);

    --dash-sidebar-w: 268px;
    --dash-sidebar-w-collapsed: 78px;
    --dash-topbar-h: 62px;
    --dash-bottom-nav-h: 72px;

    --dash-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

.dash-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    color: var(--dash-text);
    line-height: 1.7;
    font-size: 15px;
    background-color: var(--dash-bg);
    background-image:
        radial-gradient(ellipse 60% 45% at 8% -5%, rgba(24, 199, 222, 0.14), transparent 65%),
        radial-gradient(ellipse 55% 45% at 100% 15%, rgba(22, 139, 255, 0.12), transparent 65%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(25, 199, 122, 0.12), transparent 65%),
        linear-gradient(160deg, #f6fbff 0%, #eff9f7 100%);
    background-attachment: fixed;
}

.dash-body,
.dash-body * {
    box-sizing: border-box;
}

.dash-body button,
.dash-body input,
.dash-body textarea,
.dash-body select {
    font-family: inherit;
}

.dash-body img {
    max-width: 100%;
    display: block;
}

/* Global safety net: any element using the plain HTML `hidden` attribute
   must actually hide, even though several rules above/below this point
   set `display` directly on the same element (same specificity as the
   browser's own `[hidden] { display:none }` UA rule, but as an AUTHOR
   rule it would otherwise win the tie and silently defeat `hidden`, as
   happened with the modal overlay and empty image previews during
   testing). Scoped to .dash-body so it can't affect the public site. */
.dash-body [hidden] {
    display: none !important;
}

.dash-body a {
    text-decoration: none;
    color: inherit;
}

.dash-body svg {
    /* Safe fallback: an <svg> with no width/height attribute and no more
       specific rule below would otherwise render at the browser's default
       300x150 intrinsic size. Every icon context below sets its own
       explicit size and (being a more specific or later selector) wins
       over this. */
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- Shell layout ---------- */

.dash-shell {
    display: flex;
    min-height: 100vh;
}

.dash-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--dash-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

.dash-content {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

@media (min-width: 640px) {
    .dash-content {
        padding: 28px 24px 48px;
    }
}

@media (min-width: 1024px) {
    .dash-main {
        padding-bottom: 0;
    }

    .dash-content {
        padding: 32px 36px 56px;
    }
}

/* ---------- Sidebar (desktop fixed / mobile drawer) ---------- */

/* This project is RTL-only (html always has dir="rtl"), so the sidebar
   is anchored with the physical `right` property throughout rather than
   logical inset-inline-* properties - simpler, and avoids direction-
   dependent transform math for a page that only ever renders one way. */
.dash-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--dash-sidebar-w);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--dash-shadow-lift);
    display: flex;
    flex-direction: column;
    z-index: 80;
    transform: translateX(100%);
    transition: transform 320ms var(--dash-ease);
    padding-top: env(safe-area-inset-top, 0px);
}

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

.dash-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 50, 0.35);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.dash-sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.dash-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--dash-border);
    flex-shrink: 0;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dash-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--dash-navy), var(--dash-blue));
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 8px 18px rgba(14, 42, 71, 0.28);
}

.dash-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.dash-brand-text strong {
    font-size: 0.98rem;
    color: var(--dash-navy);
    white-space: nowrap;
}

.dash-brand-text small {
    font-size: 0.74rem;
    color: var(--dash-text-muted);
    white-space: nowrap;
}

.dash-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--dash-border);
    background: #fff;
    color: var(--dash-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 200ms ease, transform 320ms var(--dash-ease);
}

.dash-sidebar-toggle svg {
    width: 16px;
    height: 16px;
}

.dash-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--dash-radius-sm);
    color: var(--dash-text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    min-height: 44px;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
    list-style: none;
}

.dash-nav-link:hover {
    background: var(--dash-surface-soft);
    color: var(--dash-navy);
    transform: translateX(-2px);
}

.dash-nav-link.is-active {
    background: linear-gradient(90deg, rgba(22, 139, 255, 0.14), rgba(24, 199, 222, 0.14));
    color: var(--dash-navy);
    font-weight: 700;
    position: relative;
}

.dash-nav-link.is-active::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    inset-inline-start: -12px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--dash-emerald), var(--dash-cyan));
}

.dash-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dash-nav-icon svg {
    width: 20px;
    height: 20px;
}

.dash-nav-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-nav-group summary::-webkit-details-marker {
    display: none;
}

.dash-nav-summary {
    list-style: none;
}

.dash-nav-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--dash-text-faint);
    transition: transform 250ms ease;
}

.dash-nav-group[open] > .dash-nav-summary .dash-nav-chevron {
    transform: rotate(180deg);
}

.dash-nav-sub {
    display: flex;
    flex-direction: column;
    padding: 2px 0 6px 0;
    margin-inline-start: 32px;
    border-inline-start: 1px dashed var(--dash-border);
}

.dash-nav-sub a {
    padding: 9px 14px;
    font-size: 0.86rem;
    color: var(--dash-text-muted);
    border-radius: var(--dash-radius-sm);
    min-height: 40px;
    display: flex;
    align-items: center;
    transition: background 200ms ease, color 200ms ease;
}

.dash-nav-sub a:hover {
    background: var(--dash-surface-soft);
    color: var(--dash-navy);
}

.dash-sidebar-foot {
    padding: 14px 16px;
    border-top: 1px solid var(--dash-border);
    flex-shrink: 0;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.dash-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-surface-soft);
    margin-bottom: 10px;
}

.dash-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dash-emerald), var(--dash-cyan));
    color: #fff;
    font-weight: 700;
}

.dash-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-user-info strong {
    font-size: 0.86rem;
    color: var(--dash-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-user-info small {
    font-size: 0.74rem;
    color: var(--dash-text-muted);
}

.dash-logout-form {
    margin: 0;
}

.dash-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    background: #fff;
    color: var(--dash-red);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
}

.dash-logout-btn svg {
    width: 17px;
    height: 17px;
}

.dash-logout-btn:hover {
    background: rgba(224, 69, 92, 0.08);
}

/* Desktop: fixed, always visible, collapsible.
   Kept position:fixed (not sticky) at every breakpoint - a fixed sidebar
   is removed from .dash-shell's flex flow entirely, so .dash-main just
   reserves space for it with a margin instead. (position:sticky here
   produced an unreliable position in a dir="rtl" flex row - fixed +
   margin sidesteps that entirely.) */
@media (min-width: 1024px) {
    .dash-sidebar {
        transform: none !important;
        top: 12px;
        bottom: 12px;
        border-radius: 24px 0 0 24px;
    }

    .dash-sidebar-backdrop {
        display: none;
    }

    .dash-sidebar-toggle {
        display: flex;
    }

    .dash-main {
        margin-right: var(--dash-sidebar-w);
        transition: margin-right 320ms var(--dash-ease);
    }

    .dash-sidebar.is-collapsed {
        width: var(--dash-sidebar-w-collapsed);
    }

    .dash-sidebar.is-collapsed ~ .dash-main {
        margin-right: var(--dash-sidebar-w-collapsed);
    }

    .dash-sidebar.is-collapsed .dash-brand-text,
    .dash-sidebar.is-collapsed .dash-nav-label,
    .dash-sidebar.is-collapsed .dash-nav-chevron,
    .dash-sidebar.is-collapsed .dash-nav-sub,
    .dash-sidebar.is-collapsed .dash-user-info,
    .dash-sidebar.is-collapsed .dash-logout-btn span {
        display: none;
    }

    .dash-sidebar.is-collapsed .dash-sidebar-toggle svg {
        transform: rotate(180deg);
    }

    .dash-sidebar.is-collapsed .dash-nav-link,
    .dash-sidebar.is-collapsed .dash-logout-btn {
        justify-content: center;
    }
}

/* ---------- Topbar ---------- */

.dash-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--dash-topbar-h);
    padding: 0 16px;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0 0 22px 22px;
    box-shadow: var(--dash-shadow-softer);
}

.dash-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--dash-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--dash-navy);
    cursor: pointer;
}

.dash-hamburger svg {
    width: 22px;
    height: 22px;
}

.dash-topbar-brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 800;
    color: var(--dash-navy);
    white-space: nowrap;
}

.dash-topbar-brand small {
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--dash-text-muted);
}

.dash-topbar-search {
    display: none;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 420px;
    padding: 0 14px;
    height: 42px;
    border-radius: var(--dash-radius-pill);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--dash-text-faint);
    transition: border-color 200ms ease, background 200ms ease;
}

.dash-topbar-search:focus-within {
    border-color: rgba(22, 139, 255, 0.45);
    background: rgba(255, 255, 255, 0.8);
}

.dash-topbar-search svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dash-topbar-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: var(--dash-text);
}

.dash-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
}

.dash-view-site-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--dash-radius-pill);
    background: linear-gradient(135deg, var(--dash-navy), var(--dash-blue));
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.dash-view-site-btn svg {
    width: 15px;
    height: 15px;
}

.dash-view-site-btn:hover {
    background: var(--dash-navy-dark);
    transform: translateY(-1px);
}

.dash-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--dash-text-muted);
    flex-shrink: 0;
    transition: transform 200ms ease, background 200ms ease;
}

.dash-icon-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
}

.dash-icon-btn svg {
    width: 19px;
    height: 19px;
}

.dash-icon-badge {
    position: absolute;
    top: -3px;
    inset-inline-end: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--dash-red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.dash-profile {
    display: flex;
    align-items: center;
}

@media (min-width: 780px) {
    .dash-topbar-search {
        display: flex;
    }

    .dash-view-site-btn {
        display: inline-flex;
    }
}

@media (min-width: 1024px) {
    .dash-hamburger,
    .dash-topbar-brand {
        display: none;
    }
}

/* ---------- Bottom nav (mobile only) ---------- */

.dash-bottom-nav {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 60;
    display: flex;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 30px rgba(10, 50, 90, 0.1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dash-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--dash-bottom-nav-h);
    border: none;
    background: transparent;
    font-family: inherit;
    color: var(--dash-text-faint);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 200ms ease;
}

.dash-bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 22px;
    border-radius: var(--dash-radius-pill);
    transition: background 200ms ease, transform 200ms ease;
}

.dash-bottom-nav-item svg {
    width: 21px;
    height: 21px;
}

.dash-bottom-nav-item.is-active {
    color: var(--dash-blue);
}

.dash-bottom-nav-item.is-active .dash-bottom-nav-icon {
    background: linear-gradient(135deg, rgba(22, 139, 255, 0.16), rgba(24, 199, 222, 0.16));
    transform: translateY(-2px);
}

@media (min-width: 1024px) {
    .dash-bottom-nav {
        display: none;
    }
}

/* ---------- Page header ---------- */

.dash-page-header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 4px 2px;
}

.dash-page-header::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -20px;
    width: 220px;
    height: 140px;
    background: radial-gradient(ellipse, rgba(24, 199, 222, 0.16), transparent 70%);
    filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

.dash-page-header h1 {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 800;
    color: var(--dash-navy);
    margin: 0;
}

.dash-page-header p {
    margin: 4px 0 0;
    color: var(--dash-text-muted);
    font-size: 0.9rem;
}

.dash-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--dash-text-faint);
    margin-bottom: 6px;
}

.dash-breadcrumb a:hover {
    color: var(--dash-navy);
}

/* ---------- Glass surface + cards (shared) ---------- */

.dash-glass {
    background: var(--dash-glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--dash-glass-border);
    box-shadow: var(--dash-shadow-soft);
}

.dash-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-lg);
    box-shadow: var(--dash-shadow-softer);
}

.dash-panel {
    padding: 20px;
    border-radius: var(--dash-radius-lg);
}

@media (min-width: 640px) {
    .dash-panel {
        padding: 26px;
    }
}

/* Entrance motion - applied to items observed by dashboard.js is not
   required; CSS handles a simple, low-cost reveal on load. */
.dash-animate {
    animation: dashFadeUp 480ms var(--dash-ease) both;
}

.dash-stagger > * {
    animation: dashFadeUp 480ms var(--dash-ease) both;
}

.dash-stagger > *:nth-child(1) { animation-delay: 0ms; }
.dash-stagger > *:nth-child(2) { animation-delay: 50ms; }
.dash-stagger > *:nth-child(3) { animation-delay: 100ms; }
.dash-stagger > *:nth-child(4) { animation-delay: 150ms; }
.dash-stagger > *:nth-child(5) { animation-delay: 200ms; }
.dash-stagger > *:nth-child(6) { animation-delay: 250ms; }
.dash-stagger > *:nth-child(n+7) { animation-delay: 300ms; }

@keyframes dashFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Welcome hero ---------- */

.dash-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    border-radius: 26px;
    background:
        radial-gradient(ellipse 70% 120% at 100% 0%, rgba(24, 199, 222, 0.22), transparent 60%),
        radial-gradient(ellipse 60% 120% at 0% 100%, rgba(25, 199, 122, 0.16), transparent 60%),
        linear-gradient(135deg, rgba(22, 139, 255, 0.14), rgba(24, 199, 222, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--dash-shadow-soft);
    overflow: hidden;
    margin-bottom: 20px;
}

.dash-hero-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dash-hero-date {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: var(--dash-radius-pill);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--dash-navy);
    margin-bottom: 10px;
}

.dash-hero-text h1 {
    margin: 0;
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 800;
    color: var(--dash-navy);
}

.dash-hero-text p {
    margin: 6px 0 0;
    color: var(--dash-text-muted);
    font-size: 0.88rem;
}

.dash-hero-visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: var(--dash-blue);
    box-shadow: var(--dash-shadow-softer);
}

.dash-hero-visual svg {
    width: 40px;
    height: 40px;
}

@media (max-width: 640px) {
    .dash-hero {
        padding: 18px;
        border-radius: 22px;
    }

    .dash-hero-visual {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .dash-hero-visual svg {
        width: 26px;
        height: 26px;
    }
}

/* ---------- Stat cards ---------- */

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 639px) {
    .dash-stats-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

.dash-stat-card {
    padding: 20px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--dash-shadow-softer);
    transition: transform 250ms var(--dash-ease), box-shadow 250ms ease;
}

.dash-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dash-shadow-lift);
}

.dash-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px -6px currentColor;
}

.dash-stat-icon svg {
    width: 20px;
    height: 20px;
}

.dash-stat-icon--blue { background: rgba(22, 139, 255, 0.12); color: var(--dash-blue); }
.dash-stat-icon--emerald { background: rgba(25, 199, 122, 0.12); color: var(--dash-emerald-dark); }
.dash-stat-icon--cyan { background: rgba(24, 199, 222, 0.14); color: #0f8a9c; }
.dash-stat-icon--amber { background: rgba(224, 160, 40, 0.14); color: var(--dash-amber); }
.dash-stat-icon--navy { background: rgba(14, 42, 71, 0.1); color: var(--dash-navy); }
.dash-stat-icon--violet { background: rgba(124, 92, 255, 0.14); color: var(--dash-violet); }

.dash-stat-line {
    display: block;
    margin-top: 14px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--dash-text-faint), transparent);
    opacity: 0.4;
}

.dash-stat-icon--blue ~ .dash-stat-line { background: linear-gradient(90deg, var(--dash-blue), transparent); }
.dash-stat-icon--cyan ~ .dash-stat-line { background: linear-gradient(90deg, var(--dash-cyan), transparent); }
.dash-stat-icon--emerald ~ .dash-stat-line { background: linear-gradient(90deg, var(--dash-emerald-dark), transparent); }
.dash-stat-icon--amber ~ .dash-stat-line { background: linear-gradient(90deg, var(--dash-amber), transparent); }
.dash-stat-icon--violet ~ .dash-stat-line { background: linear-gradient(90deg, var(--dash-violet), transparent); }

.dash-stat-value {
    font-size: clamp(1.7rem, 2.6vw, 2rem);
    font-weight: 800;
    color: var(--dash-navy);
    display: block;
}

.dash-stat-label {
    font-size: 0.84rem;
    color: var(--dash-text-muted);
    margin-top: 2px;
    display: block;
}

@media (min-width: 640px) {
    .dash-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .dash-stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ---------- Section heading + quick actions ---------- */

.dash-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dash-navy);
    margin: 28px 0 14px;
}

.dash-section-title:first-child {
    margin-top: 0;
}

.dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.dash-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--dash-shadow-softer);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dash-navy);
    transition: transform 250ms var(--dash-ease), box-shadow 250ms ease, border-color 250ms ease;
}

.dash-quick-action:hover {
    transform: translateY(-4px);
    box-shadow: var(--dash-shadow-lift);
    border-color: rgba(22, 139, 255, 0.35);
}

.dash-quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--dash-blue), var(--dash-cyan));
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(22, 139, 255, 0.28);
}

.dash-quick-action-icon svg {
    width: 19px;
    height: 19px;
}

.dash-quick-action-label {
    flex: 1;
    min-width: 0;
}

.dash-quick-action-arrow {
    flex-shrink: 0;
    color: var(--dash-text-faint);
}

.dash-quick-action-arrow svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 640px) {
    .dash-quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- Today's bookings list ---------- */

.dash-today-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .dash-today-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.dash-today-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--dash-shadow-softer);
}

.dash-status-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--dash-shadow-softer);
}

.dash-status-card h3 {
    margin: 0 0 14px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--dash-navy);
}

.dash-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--dash-surface-soft);
    font-size: 0.85rem;
    color: var(--dash-text-muted);
}

.dash-status-list strong {
    color: var(--dash-navy);
    font-weight: 800;
    font-size: 0.95rem;
}

.dash-today-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-today-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--dash-radius-md);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--dash-border);
}

.dash-today-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--dash-navy);
    font-size: 0.82rem;
    text-align: center;
}

.dash-today-info {
    flex: 1;
    min-width: 0;
}

.dash-today-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dash-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-today-info small {
    color: var(--dash-text-muted);
    font-size: 0.78rem;
}

.dash-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--dash-text-muted);
    background: var(--dash-surface);
    border: 1px dashed var(--dash-border);
    border-radius: var(--dash-radius-md);
    font-size: 0.88rem;
}

.dash-today-card .dash-empty {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dash-today-card .dash-empty .dash-btn {
    margin-top: 10px;
}

.dash-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(22, 139, 255, 0.12), rgba(24, 199, 222, 0.12));
    color: var(--dash-blue);
}

.dash-empty-icon svg {
    width: 24px;
    height: 24px;
}

/* ---------- Status badges ---------- */

.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--dash-radius-pill);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.dash-badge--pending { background: rgba(224, 160, 40, 0.14); color: #a06c10; }
.dash-badge--confirmed { background: rgba(22, 139, 255, 0.12); color: var(--dash-blue); }
.dash-badge--on_the_way { background: rgba(24, 199, 222, 0.14); color: #0f8a9c; }
.dash-badge--in_progress { background: rgba(24, 199, 222, 0.14); color: #0f8a9c; }
.dash-badge--completed { background: rgba(25, 199, 122, 0.14); color: var(--dash-emerald-dark); }
.dash-badge--cancelled { background: rgba(224, 69, 92, 0.12); color: var(--dash-red); }
.dash-badge--active { background: rgba(25, 199, 122, 0.14); color: var(--dash-emerald-dark); }
.dash-badge--inactive { background: rgba(148, 163, 179, 0.16); color: var(--dash-text-muted); }

/* ---------- Management cards (home content overview) ---------- */

.dash-manage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.dash-manage-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: var(--dash-radius-lg);
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-softer);
    transition: transform 250ms var(--dash-ease), box-shadow 250ms ease;
}

.dash-manage-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dash-shadow-lift);
}

.dash-manage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(22, 139, 255, 0.14), rgba(24, 199, 222, 0.14));
    color: var(--dash-blue);
    flex-shrink: 0;
}

.dash-manage-icon svg {
    width: 22px;
    height: 22px;
}

.dash-manage-body {
    flex: 1;
    min-width: 0;
}

.dash-manage-body h3 {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--dash-navy);
    margin: 0;
}

.dash-manage-body p {
    margin: 3px 0 0;
    font-size: 0.82rem;
    color: var(--dash-text-muted);
}

.dash-manage-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.dash-manage-arrow {
    flex-shrink: 0;
    color: var(--dash-text-faint);
}

.dash-manage-arrow svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 780px) {
    .dash-manage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1180px) {
    .dash-manage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Item list (why-features / steps / faq / testimonials) ---------- */

.dash-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.dash-item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--dash-radius-md);
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
}

.dash-item-thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dash-surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-text-faint);
}

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

.dash-item-thumb svg {
    width: 22px;
    height: 22px;
}

.dash-item-body {
    flex: 1;
    min-width: 0;
}

.dash-item-body strong {
    display: block;
    font-size: 0.92rem;
    color: var(--dash-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-item-body p {
    margin: 3px 0 0;
    font-size: 0.8rem;
    color: var(--dash-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-item-order {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--dash-surface-soft);
    color: var(--dash-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.dash-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ---------- Process steps (booking steps) ---------- */

.dash-steps-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 8px;
}

.dash-step-card {
    position: relative;
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--dash-shadow-softer);
    transition: transform 250ms var(--dash-ease), box-shadow 250ms ease;
}

.dash-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dash-shadow-lift);
}

.dash-step-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dash-blue);
    background: rgba(22, 139, 255, 0.1);
    padding: 4px 12px;
    border-radius: var(--dash-radius-pill);
    margin-bottom: 12px;
}

.dash-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(22, 139, 255, 0.14), rgba(24, 199, 222, 0.14));
    color: var(--dash-blue);
}

.dash-step-icon svg {
    width: 22px;
    height: 22px;
}

.dash-step-title {
    font-size: 0.96rem;
    color: var(--dash-navy);
    margin-bottom: 10px;
}

.dash-step-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.dash-step-order {
    font-size: 0.78rem;
    color: var(--dash-text-muted);
}

.dash-step-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-step-menu {
    position: relative;
}

.dash-step-menu > summary {
    list-style: none;
}

.dash-step-menu > summary::-webkit-details-marker {
    display: none;
}

.dash-step-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dash-surface-soft);
    color: var(--dash-text-muted);
    cursor: pointer;
}

.dash-step-menu-btn svg {
    width: 18px;
    height: 18px;
}

.dash-step-menu-btn:hover {
    background: var(--dash-border);
    color: var(--dash-navy);
}

.dash-step-menu[open] .dash-step-menu-btn {
    background: var(--dash-border);
    color: var(--dash-navy);
}

.dash-step-menu-list {
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 8px);
    left: 0;
    min-width: 160px;
    padding: 6px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-lift);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-step-menu-list form {
    margin: 0;
}

.dash-step-menu-list button {
    width: 100%;
    text-align: right;
    padding: 10px 12px;
    min-height: 40px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.86rem;
    color: var(--dash-text);
    cursor: pointer;
}

.dash-step-menu-list button:hover {
    background: var(--dash-surface-soft);
}

.dash-step-menu-danger {
    color: var(--dash-red) !important;
}

.dash-step-menu-danger:hover {
    background: rgba(224, 69, 92, 0.1) !important;
}

.dash-step-arrow {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    color: var(--dash-text-faint);
}

.dash-step-arrow svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 1200px) {
    .dash-step-arrow {
        display: flex;
    }
}

@media (max-width: 768px) {
    .dash-step-card {
        flex: 1 1 100%;
    }
}

.dash-empty-sub {
    margin-top: -6px;
    font-size: 0.82rem;
}

.dash-empty .dash-btn {
    margin-top: 14px;
}

.dash-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.dash-weekday-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.dash-weekday-list li {
    display: block;
}

.dash-weekday-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--dash-radius-pill);
    background: var(--dash-surface-soft);
    border: 1px solid var(--dash-border);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--dash-text-muted);
    cursor: pointer;
}

.dash-weekday-list label:has(input:checked) {
    background: linear-gradient(135deg, var(--dash-blue), var(--dash-cyan));
    border-color: transparent;
    color: #fff;
}

/* ---------- Jalali date picker ---------- */

.dash-jalali-picker {
    position: relative;
    display: flex;
    align-items: center;
}

.dash-jalali-picker input {
    flex: 1;
    padding-left: 44px;
    cursor: pointer;
    background: #fff;
}

.dash-jalali-picker-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--dash-radius-pill);
    background: transparent;
    color: var(--dash-text-muted);
    cursor: pointer;
}

.dash-jalali-picker-icon svg {
    width: 18px;
    height: 18px;
}

.dash-jalali-picker.is-open .dash-jalali-picker-icon {
    color: var(--dash-blue);
}

.dash-jalali-picker-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    max-width: calc(100vw - 32px);
    padding: 14px;
    border-radius: var(--dash-radius-md);
    background: #fff;
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-lift);
}

.dash-jalali-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dash-jalali-picker-head button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: var(--dash-radius-pill);
    background: var(--dash-surface-soft);
    color: var(--dash-navy);
    font-size: 1.1rem;
    cursor: pointer;
}

.dash-jalali-picker-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dash-navy);
}

.dash-jalali-picker-weekdays,
.dash-jalali-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.dash-jalali-picker-weekdays span {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--dash-text-muted);
    padding-bottom: 6px;
}

.dash-jalali-picker-day {
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-surface-soft);
    color: var(--dash-navy);
    font-size: 0.8rem;
    cursor: pointer;
}

.dash-jalali-picker-day:hover {
    background: var(--dash-border);
}

.dash-jalali-picker-day.is-today {
    box-shadow: inset 0 0 0 1.5px var(--dash-blue);
}

.dash-jalali-picker-day.is-selected {
    background: linear-gradient(135deg, var(--dash-blue), var(--dash-cyan));
    color: #fff;
}

.dash-jalali-picker-blank {
    visibility: hidden;
}

/* ---------- 24-hour time picker ---------- */

/*
 * No icon inside (or on top of) the input at all - the plain text input
 * uses the project's normal .dash-form input[type="text"] styling
 * untouched, so there is nothing for it to ever overlap with. Clicking the
 * input itself opens the dropdown panel (see time-picker.js). The wrapper
 * only exists as a positioning anchor for that panel.
 */
.dash-time-picker {
    position: relative;
}

.dash-time-picker input.dash-time-input {
    cursor: pointer;
    direction: ltr;
    text-align: left;
}

.dash-time-picker-hint {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dash-blue);
    margin-top: 6px;
    display: block;
}

.dash-time-picker-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    gap: 6px;
    width: 160px;
    max-height: 220px;
    padding: 10px;
    border-radius: var(--dash-radius-md);
    background: #fff;
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-lift);
}

.dash-time-picker-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    max-height: 200px;
}

.dash-time-picker-item {
    border: none;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-surface-soft);
    color: var(--dash-navy);
    font-size: 0.82rem;
    padding: 6px 0;
    cursor: pointer;
    direction: ltr;
}

.dash-time-picker-item:hover {
    background: var(--dash-border);
}

.dash-time-picker-item.is-selected {
    background: linear-gradient(135deg, var(--dash-blue), var(--dash-cyan));
    color: #fff;
}

.dash-alert-warning {
    padding: 14px 16px;
    border-radius: var(--dash-radius-md);
    background: rgba(224, 160, 40, 0.12);
    border: 1px solid rgba(224, 160, 40, 0.3);
    color: #8a5d0f;
    font-size: 0.86rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.dash-btn-sm {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.82rem;
}

/* ---------- Portfolio (image-first cards) ---------- */

.dash-portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .dash-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dash-portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dash-portfolio-card {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--dash-shadow-softer);
    transition: transform 250ms var(--dash-ease), box-shadow 250ms ease;
}

.dash-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dash-shadow-lift);
}

.dash-portfolio-media {
    position: relative;
    display: flex;
    aspect-ratio: 16 / 9;
    background: var(--dash-surface-soft);
}

.dash-portfolio-media img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.dash-portfolio-media-label {
    position: absolute;
    top: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--dash-radius-pill);
    background: rgba(14, 42, 71, 0.62);
    backdrop-filter: blur(4px);
}

.dash-portfolio-media-label--before {
    right: 10px;
}

.dash-portfolio-media-label--after {
    left: 10px;
}

.dash-portfolio-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 16px;
}

.dash-portfolio-title {
    font-size: 0.95rem;
    color: var(--dash-navy);
}

.dash-portfolio-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-portfolio-service,
.dash-portfolio-date {
    font-size: 0.78rem;
    color: var(--dash-text-muted);
}

/* ---------- Services (reuses .dash-portfolio-grid/card/body/title/meta) ---------- */

.dash-service-media {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: linear-gradient(135deg, rgba(22, 139, 255, 0.08), rgba(24, 199, 222, 0.08));
}

.dash-service-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(14, 42, 71, 0.12);
}

.dash-service-desc {
    margin: 0;
    color: var(--dash-text-muted);
    font-size: 0.86rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Testimonials ---------- */

.dash-testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .dash-testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1180px) {
    .dash-testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dash-testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--dash-shadow-softer);
    transition: transform 250ms var(--dash-ease), box-shadow 250ms ease;
}

.dash-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dash-shadow-lift);
}

.dash-testimonial-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-testimonial-avatar {
    object-fit: cover;
}

.dash-testimonial-id {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-testimonial-id strong {
    font-size: 0.9rem;
    color: var(--dash-navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-testimonial-text {
    margin: 0;
    font-size: 0.86rem;
    color: var(--dash-text);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

/* ---------- Settings groups (contact info) ---------- */

.dash-settings-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dash-settings-group-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dash-navy);
}

.dash-settings-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .dash-settings-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- FAQ accordion ---------- */

.dash-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-faq-item {
    border-radius: var(--dash-radius-lg);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--dash-shadow-softer);
    overflow: hidden;
}

.dash-faq-item > summary {
    list-style: none;
    cursor: pointer;
}

.dash-faq-item > summary::-webkit-details-marker {
    display: none;
}

.dash-faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

.dash-faq-question-text {
    flex: 1;
    min-width: 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--dash-navy);
}

.dash-faq-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--dash-text-faint);
    transition: transform 250ms ease;
}

.dash-faq-item[open] .dash-faq-chevron {
    transform: rotate(180deg);
}

.dash-faq-body {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-faq-answer {
    margin: 0;
    color: var(--dash-text-muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

/* ---------- Before/after thumbnails (portfolio) ---------- */

.dash-ba-thumb {
    display: flex;
    width: 84px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--dash-border);
}

.dash-ba-thumb img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Buttons ---------- */

.dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--dash-radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 200ms var(--dash-ease), box-shadow 200ms ease, background 200ms ease,
        border-color 200ms ease;
    white-space: nowrap;
}

.dash-btn svg {
    width: 17px;
    height: 17px;
}

.dash-btn-primary {
    background: linear-gradient(135deg, var(--dash-blue), var(--dash-cyan));
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(22, 139, 255, 0.45);
}

.dash-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -8px rgba(22, 139, 255, 0.55);
}

.dash-btn-secondary {
    background: #fff;
    color: var(--dash-text);
    border-color: var(--dash-border);
}

.dash-btn-secondary:hover {
    background: var(--dash-surface-soft);
}

.dash-btn-danger {
    background: var(--dash-red);
    color: #fff;
}

.dash-btn-danger:hover {
    background: #c53a4e;
}

.dash-btn-ghost {
    background: transparent;
    color: var(--dash-text-muted);
    border-color: var(--dash-border);
    min-height: 40px;
    padding: 0 14px;
}

.dash-btn-ghost:hover {
    background: var(--dash-surface-soft);
    color: var(--dash-navy);
}

.dash-btn-icon {
    min-height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--dash-surface-soft);
    color: var(--dash-text-muted);
    border-color: transparent;
}

.dash-btn-icon:hover {
    background: var(--dash-border);
    color: var(--dash-navy);
}

.dash-btn-icon--danger:hover {
    background: rgba(224, 69, 92, 0.12);
    color: var(--dash-red);
}

.dash-btn-block {
    width: 100%;
}

/* ---------- Forms ---------- */

.dash-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 640px;
}

.dash-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dash-field label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--dash-navy);
}

.dash-field .dash-hint {
    font-size: 0.78rem;
    color: var(--dash-text-muted);
    font-weight: 400;
}

.dash-form input[type="text"],
.dash-form input[type="url"],
.dash-form input[type="tel"],
.dash-form input[type="email"],
.dash-form input[type="number"],
.dash-form input[type="date"],
.dash-form input[type="search"],
.dash-form input[type="password"],
.dash-form textarea,
.dash-form select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-soft);
    color: var(--dash-text);
    font-size: 0.92rem;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.dash-form textarea {
    min-height: 110px;
    padding: 12px 16px;
    resize: vertical;
    line-height: 1.8;
}

.dash-form input:focus,
.dash-form textarea:focus,
.dash-form select:focus {
    outline: none;
    border-color: var(--dash-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 139, 255, 0.12);
}

.dash-field.has-error input,
.dash-field.has-error textarea,
.dash-field.has-error select {
    border-color: var(--dash-red);
}

.dash-field-error {
    color: var(--dash-red);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Toggle switch (renders Django's plain checkbox input as a modern switch) */
.dash-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-surface-soft);
    border: 1px solid var(--dash-border);
}

.dash-toggle-row .dash-toggle-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dash-navy);
}

.dash-toggle-row .dash-hint {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--dash-text-muted);
}

.dash-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 27px;
    cursor: pointer;
}

.dash-toggle input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.dash-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd6e0;
    transition: background 220ms ease;
}

.dash-toggle-track::before {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 220ms var(--dash-ease);
}

.dash-toggle input:checked ~ .dash-toggle-track {
    background: linear-gradient(135deg, var(--dash-emerald), var(--dash-cyan));
}

.dash-toggle input:checked ~ .dash-toggle-track::before {
    transform: translateX(-19px);
}

[dir="rtl"] .dash-toggle input:checked ~ .dash-toggle-track::before {
    transform: translateX(19px);
}

.dash-toggle input:focus-visible ~ .dash-toggle-track {
    box-shadow: 0 0 0 3px rgba(22, 139, 255, 0.3);
}

/* The dropzone above each of these is the clickable/droppable surface;
   the real <input type=file> stays in the DOM (for accessibility, form
   submission and drag/drop wiring in dashboard.js) but is visually
   hidden. */
.dash-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Image upload dropzone */
.dash-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 26px 16px;
    border-radius: var(--dash-radius-md);
    border: 1.5px dashed var(--dash-border);
    background: var(--dash-surface-soft);
    color: var(--dash-text-muted);
    text-align: center;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease;
}

.dash-dropzone:hover,
.dash-dropzone.is-dragover {
    border-color: var(--dash-blue);
    background: rgba(22, 139, 255, 0.05);
}

.dash-dropzone svg {
    width: 26px;
    height: 26px;
    color: var(--dash-text-faint);
}

.dash-dropzone strong {
    font-size: 0.86rem;
    color: var(--dash-navy);
}

.dash-dropzone small {
    font-size: 0.76rem;
}

.dash-image-preview-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.dash-image-preview {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 9;
    border-radius: var(--dash-radius-md);
    overflow: hidden;
    background: var(--dash-surface-soft);
    border: 1px solid var(--dash-border);
}

.dash-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-form-actions {
    display: flex;
    gap: 10px;
    padding-top: 6px;
}

/* Sticky save bar on mobile edit pages */
/* True position:fixed (not sticky) on mobile: sticky's "reserve its own
   space in flow, then visually offset it" behavior overlapped whichever
   field happened to sit just above it on shorter forms (its offset paint
   position doesn't reserve a gap against PRECEDING siblings). Fixed has
   no such ambiguity; .dash-form's own padding-bottom below reserves the
   room for it instead. */
.dash-sticky-save {
    position: fixed;
    inset-inline: 0;
    bottom: calc(var(--dash-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--dash-border);
    box-shadow: 0 -8px 24px rgba(10, 50, 90, 0.08);
}

.dash-form {
    padding-bottom: 150px;
}

@media (min-width: 1024px) {
    .dash-sticky-save {
        position: static;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .dash-form {
        padding-bottom: 0;
    }
}

/* ---------- Data table -> card list on mobile ---------- */

.dash-table-wrap {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-lg);
    overflow: hidden;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: start;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dash-text-muted);
    padding: 14px 16px;
    background: var(--dash-surface-soft);
    border-bottom: 1px solid var(--dash-border);
}

.dash-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--dash-border);
    vertical-align: middle;
}

.dash-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 899px) {
    .dash-table thead {
        display: none;
    }

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

    .dash-table tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--dash-border);
    }

    .dash-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 6px 0;
        border-bottom: none;
        font-size: 0.86rem;
    }

    .dash-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--dash-text-muted);
        font-size: 0.78rem;
        flex-shrink: 0;
    }
}

.dash-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.dash-pagination a,
.dash-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border);
    background: #fff;
    font-size: 0.84rem;
    color: var(--dash-text-muted);
}

.dash-pagination a:hover {
    background: var(--dash-surface-soft);
}

.dash-pagination .is-current {
    background: var(--dash-navy);
    color: #fff;
    border-color: var(--dash-navy);
}

.dash-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.dash-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--dash-radius-pill);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dash-text-muted);
    transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.dash-filter-chip.is-active {
    background: linear-gradient(135deg, var(--dash-blue), var(--dash-cyan));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px -6px rgba(22, 139, 255, 0.55);
}

.dash-inline-status-form {
    display: inline-block;
}

.dash-inline-status-form select {
    min-height: 44px;
    max-width: 100%;
    padding: 0 14px;
    border-radius: var(--dash-radius-pill);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-soft);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dash-navy);
    cursor: pointer;
}

.dash-booking-action-group .dash-inline-status-form {
    flex: 1;
    min-width: 0;
}

.dash-booking-action-group .dash-inline-status-form select {
    width: 100%;
}

.dash-inline-status-form select:focus {
    outline: none;
    border-color: var(--dash-blue);
    box-shadow: 0 0 0 3px rgba(22, 139, 255, 0.12);
}

/* ---------- Bookings (operational cards) ---------- */

.dash-booking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-booking-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--dash-shadow-softer);
    transition: box-shadow 250ms ease;
}

.dash-booking-card:hover {
    box-shadow: var(--dash-shadow-lift);
}

.dash-booking-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dash-booking-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--dash-text-faint);
}

.dash-booking-name {
    font-size: 1rem;
    color: var(--dash-navy);
}

.dash-booking-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-booking-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--dash-text-muted);
}

.dash-booking-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--dash-text-faint);
}

.dash-booking-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--dash-border);
}

.dash-booking-action-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dash-booking-action-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dash-text-muted);
    flex-shrink: 0;
}

.dash-booking-inactive-tag {
    color: var(--dash-text-faint);
    font-size: 0.78rem;
}

/* ---------- Booking detail page ---------- */

.dash-hint {
    font-size: 0.78rem;
    color: var(--dash-text-muted);
    font-weight: 400;
}

.dash-booking-detail-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-booking-detail-timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding-top: 8px;
    border-top: 1px dashed var(--dash-border);
}

.dash-copy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--dash-surface-soft);
    color: var(--dash-text-muted);
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.dash-copy-icon svg {
    width: 14px;
    height: 14px;
}

.dash-copy-icon:hover {
    background: var(--dash-border);
    color: var(--dash-navy);
}

.dash-copy-icon.is-copied {
    background: rgba(25, 199, 122, 0.16);
    color: var(--dash-emerald-dark);
}

.dash-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dash-border);
}

.dash-detail-row:last-of-type {
    border-bottom: none;
}

.dash-detail-label {
    font-size: 0.8rem;
    color: var(--dash-text-muted);
    flex-shrink: 0;
}

.dash-detail-value {
    font-size: 0.9rem;
    color: var(--dash-navy);
    font-weight: 600;
    text-align: left;
}

.dash-booking-detail-action {
    margin-top: 14px;
}

.dash-booking-address-tag {
    margin-bottom: 10px;
}

.dash-booking-address-text,
.dash-booking-notes-text {
    margin: 0;
    color: var(--dash-text);
    font-size: 0.92rem;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.dash-booking-notes-empty {
    color: var(--dash-text-muted);
    font-style: italic;
}

.dash-booking-back-link {
    margin-top: 8px;
}

@media (min-width: 1024px) {
    .dash-booking-card {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .dash-booking-top {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 6px;
        flex: 0 0 150px;
    }

    .dash-booking-name {
        flex: 0 0 200px;
    }

    .dash-booking-meta {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1;
        gap: 22px;
    }

    .dash-booking-actions {
        flex: 0 0 auto;
        border-top: none;
        padding-top: 0;
    }
}

/* ---------- Media grid ---------- */

.dash-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dash-media-item {
    border-radius: var(--dash-radius-md);
    overflow: hidden;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
}

.dash-media-thumb {
    aspect-ratio: 4 / 3;
    background: var(--dash-surface-soft);
}

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

.dash-media-info {
    padding: 10px 12px;
}

.dash-media-info strong {
    display: block;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-media-info small {
    color: var(--dash-text-muted);
    font-size: 0.72rem;
}

@media (min-width: 640px) {
    .dash-media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .dash-media-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ---------- Toasts ---------- */

.dash-toast-stack {
    position: fixed;
    top: calc(var(--dash-topbar-h) + 12px + env(safe-area-inset-top, 0px));
    inset-inline-end: 16px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
}

.dash-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--dash-radius-md);
    background: #fff;
    box-shadow: var(--dash-shadow-lift);
    border-inline-start: 4px solid var(--dash-emerald);
    font-size: 0.86rem;
    color: var(--dash-text);
    animation: dashToastIn 350ms var(--dash-ease) both;
}

.dash-toast-error {
    border-inline-start-color: var(--dash-red);
}

.dash-toast-icon {
    display: flex;
    flex-shrink: 0;
    color: var(--dash-emerald-dark);
}

.dash-toast-error .dash-toast-icon {
    color: var(--dash-red);
}

.dash-toast-icon svg {
    width: 19px;
    height: 19px;
}

.dash-toast.is-leaving {
    animation: dashToastOut 380ms ease both;
}

@keyframes dashToastIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dashToastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(24px); }
}

/* ---------- Modal ---------- */

.dash-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 30, 50, 0.4);
    backdrop-filter: blur(2px);
}

/* The [hidden] attribute is how dashboard.js shows/hides this overlay;
   without this rule, the plain class selector above (same specificity as
   the browser's own `[hidden] { display: none }` UA rule, but an author
   rule, so it wins the tie) would always beat it and the modal would
   never actually hide. */
.dash-modal-overlay[hidden] {
    display: none;
}

.dash-modal {
    width: 100%;
    max-width: 380px;
    padding: 24px;
    border-radius: var(--dash-radius-lg);
    background: #fff;
    box-shadow: var(--dash-shadow-lift);
    animation: dashModalIn 260ms var(--dash-ease) both;
}

.dash-modal h3 {
    margin: 0 0 8px;
    color: var(--dash-navy);
    font-size: 1.05rem;
}

.dash-modal p {
    margin: 0 0 18px;
    color: var(--dash-text-muted);
    font-size: 0.88rem;
}

.dash-modal-actions {
    display: flex;
    gap: 10px;
}

.dash-modal-actions .dash-btn {
    flex: 1;
}

@keyframes dashModalIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

/* ---------- Rating stars (testimonials) ---------- */

.dash-stars {
    color: var(--dash-amber);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .dash-body * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------- Standalone admin login page ---------- */

.dash-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    overflow-x: hidden;
}

.dash-login-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 60% 50% at 15% 10%, rgba(24, 199, 222, 0.10), transparent 60%),
        radial-gradient(ellipse 55% 50% at 90% 15%, rgba(22, 139, 255, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 55% at 50% 100%, rgba(25, 199, 122, 0.10), transparent 65%),
        #f5fafd;
}

.dash-login-glow {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
}

.dash-login-glow-1 { width: 340px; height: 340px; top: -60px; right: -60px; background: radial-gradient(circle, rgba(24, 199, 222, 0.5), transparent 70%); }
.dash-login-glow-2 { width: 300px; height: 300px; bottom: -80px; left: -60px; background: radial-gradient(circle, rgba(25, 199, 122, 0.45), transparent 70%); }
.dash-login-glow-3 { width: 260px; height: 260px; bottom: 20%; right: 8%; background: radial-gradient(circle, rgba(22, 139, 255, 0.4), transparent 70%); }

.dash-login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.dash-login-card {
    width: 100%;
    max-width: 430px;
    padding: 40px 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 70px rgba(11, 45, 77, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    animation: dashLoginIn 500ms var(--dash-ease) forwards;
}

@keyframes dashLoginIn {
    to { opacity: 1; transform: translateY(0); }
}

.dash-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.dash-login-brand strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0b2d4d;
}

.dash-login-card h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b2d4d;
    margin: 0 0 6px;
}

.dash-login-card > p {
    font-size: 0.88rem;
    color: var(--dash-text-muted);
    margin: 0 0 26px;
}

.dash-login-form {
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-login-password-wrap {
    position: relative;
}

.dash-login-password-wrap input {
    padding-left: 48px;
}

.dash-login-toggle-password {
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--dash-text-faint);
    cursor: pointer;
    border-radius: 50%;
}

.dash-login-toggle-password:hover {
    background: var(--dash-surface-soft);
    color: #0b2d4d;
}

.dash-login-toggle-password .icon-eye-off {
    display: none;
}

.dash-login-toggle-password.is-visible .icon-eye {
    display: none;
}

.dash-login-toggle-password.is-visible .icon-eye-off {
    display: block;
}

.dash-login-submit {
    margin-top: 6px;
    min-height: 50px;
    font-size: 0.95rem;
}

.dash-login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(224, 69, 92, 0.1);
    color: var(--dash-red);
    font-size: 0.85rem;
    text-align: center;
}

.dash-login-back {
    display: block;
    margin-top: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dash-text-muted);
    min-height: 44px;
    line-height: 44px;
}

.dash-login-back:hover {
    color: #0b2d4d;
}

@media (max-width: 480px) {
    .dash-login-card {
        padding: 32px 22px;
        border-radius: 24px;
    }
}
