@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sentient';
    src: url('../fonts/sentient/Sentient-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sentient';
    src: url('../fonts/sentient/Sentient-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f1faee;
    --page-bg: #eef3f6;
    --surface: #ffffff;
    --surface-muted: #f6f8fa;
    --text: #0f2740;
    --text-muted: #37536f;
    --primary: #1d3557;
    --on-primary: #ffffff;
    --primary-soft: #457b9d;
    --accent: #a8dadc;
    --accent-soft: #d9eef0;
    --success: #0f766e;
    --danger: #b91c1c;
    --border: #c3d2df;
    --focus: #0c4a6e;
    --shadow: 0 12px 34px rgba(13, 35, 60, 0.12);
    --section-gradient: linear-gradient(145deg, color-mix(in srgb, var(--primary) 12%, #ffffff 88%), color-mix(in srgb, var(--primary-soft) 20%, #ffffff 80%));
    --btn-radius: 0.65rem;
    --btn-font-size: 1rem;
    --btn-font-weight: 700;
}

html.theme-dark {
    --bg: #0d1726;
    --page-bg: #08101a;
    --surface: #142437;
    --surface-muted: #0f1d2d;
    --text: #edf5ff;
    --text-muted: #c0d2e5;
    --primary: #a8dadc;
    --on-primary: #08101a;
    --primary-soft: #8eb9cb;
    --accent: #1f3a5a;
    --accent-soft: #264463;
    --success: #14b8a6;
    --danger: #f87171;
    --border: #345474;
    --focus: #93ddff;
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
    --section-gradient: linear-gradient(145deg, color-mix(in srgb, #0f2840 86%, #000000 14%), color-mix(in srgb, #1c3f5d 78%, #000000 22%));
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.55;
}

h1,
h2,
h3 {
    font-family: 'Sentient', serif;
    letter-spacing: 0.01em;
}

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header,
.site-footer {
    padding: 1rem 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--surface) 88%, transparent 12%);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent 22%);
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-family: 'Sentient', serif;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-mark {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: var(--on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
}

.brand-text {
    font-size: 1.25rem;
}

.header-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.site-nav {
    justify-self: center;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.menu-list > li > a,
.menu-trigger {
    padding: 0.54rem 0.76rem;
    border-radius: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.menu-trigger {
    border: 0;
    background: transparent;
    font-family: 'Inter', sans-serif;
}

.menu-list > li > a[aria-current='page'] {
    background: color-mix(in srgb, var(--accent) 42%, var(--surface) 58%);
}

.menu-list > li > a:hover,
.menu-trigger:hover {
    background: color-mix(in srgb, var(--surface-muted) 76%, var(--accent) 24%);
}

.menu-item {
    position: relative;
}

.menu-caret {
    width: 0.95rem;
    height: 0.95rem;
    fill: currentColor;
    opacity: 0.72;
    transition: transform 0.18s ease;
}

.menu-item:hover .menu-caret,
.menu-item:focus-within .menu-caret,
.menu-item.is-open .menu-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    width: 208px;
    list-style: none;
    margin: 0;
    padding: 0.42rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 90;
}

.menu-item:focus-within > .dropdown-menu,
.menu-item.is-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 0.55rem;
    padding: 0.5rem 0.6rem;
}

.dropdown-menu a:hover {
    background: color-mix(in srgb, var(--surface-muted) 72%, var(--accent) 28%);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.mobile-menu-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--btn-radius);
    background: color-mix(in srgb, var(--surface-muted) 74%, var(--surface) 26%);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-toggle svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.theme-toggle,
.btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    min-height: 2.75rem;
    padding: 0.62rem 1rem;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.2s ease, color 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
}

.btn {
    background: linear-gradient(140deg, var(--primary), color-mix(in srgb, var(--primary-soft) 65%, var(--primary) 35%));
    color: var(--on-primary);
    border-color: color-mix(in srgb, var(--primary) 70%, #000000 30%);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-wide {
    width: 100%;
}

.btn:hover,
.theme-toggle:hover {
    transform: translateY(-1px);
}

.btn:focus-visible,
.theme-toggle:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.btn.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: color-mix(in srgb, var(--border) 68%, var(--primary) 32%);
}

.card form .btn,
.card form .btn.btn-outline {
    margin-top: 0.9rem;
}

.theme-toggle {
    background: color-mix(in srgb, var(--surface-muted) 74%, var(--surface) 26%);
    width: 2.75rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    display: inline-block;
}

.theme-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: currentColor;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-icon-moon {
    opacity: 0;
    transform: scale(0.7);
}

html.theme-dark .theme-icon-sun {
    opacity: 0;
    transform: scale(0.7);
}

html.theme-dark .theme-icon-moon {
    opacity: 1;
    transform: scale(1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(50%);
    overflow: hidden;
}

.user-avatar-link {
    text-decoration: none;
}

.user-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--border) 62%, var(--primary) 38%);
    background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface) 42%);
    color: var(--text);
}

.user-avatar svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 10, 20, 0.55);
    backdrop-filter: blur(3px);
    z-index: 105;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    transform: translateX(-102%);
    transition: transform 0.24s ease;
    z-index: 110;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.mobile-sidebar.is-open {
    transform: translateX(0);
}

.mobile-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-sidebar-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.mobile-sidebar-close {
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    background: var(--surface-muted);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-close svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.mobile-sidebar-nav {
    padding: 0.9rem;
    display: grid;
    gap: 0.15rem;
}

.mobile-sidebar-nav > a {
    color: var(--text);
    text-decoration: none;
    border-radius: 0.55rem;
    padding: 0.52rem 0.62rem;
    font-weight: 600;
    background: transparent;
}

.mobile-sidebar-nav > a:hover,
.mobile-sidebar-nav > a:focus-visible {
    background: color-mix(in srgb, var(--surface-muted) 76%, var(--accent) 24%);
}

.mobile-menu-item {
    border-radius: 0.55rem;
    padding: 0;
    background: transparent;
}

.mobile-submenu-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: 0.55rem;
    padding: 0.52rem 0.62rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.mobile-submenu-trigger:hover,
.mobile-submenu-trigger:focus-visible,
.mobile-submenu-trigger[aria-expanded='true'] {
    background: color-mix(in srgb, var(--surface-muted) 76%, var(--accent) 24%);
}

.mobile-submenu-caret {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    opacity: 0.78;
    transition: transform 0.18s ease;
}

.mobile-submenu-trigger[aria-expanded='true'] .mobile-submenu-caret {
    transform: rotate(180deg);
}

.mobile-submenu-list {
    list-style: none;
    margin: 0.1rem 0 0.35rem;
    padding: 0 0 0 0.72rem;
    display: grid;
    gap: 0.15rem;
}

.mobile-submenu-list[hidden] {
    display: none;
}

.mobile-submenu-list a {
    color: var(--text);
    text-decoration: none;
    border-radius: 0.5rem;
    padding: 0.42rem 0.5rem;
    font-weight: 600;
    background: transparent;
}

.mobile-submenu-list a:hover,
.mobile-submenu-list a:focus-visible {
    background: color-mix(in srgb, var(--surface-muted) 76%, var(--accent) 24%);
}

.mobile-sidebar-footer {
    margin-top: auto;
    padding: 0.95rem;
    border-top: 1px solid var(--border);
}

.mobile-theme-toggle {
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid color-mix(in srgb, var(--border) 65%, var(--primary) 35%);
    border-radius: 0.7rem;
    background: color-mix(in srgb, var(--surface-muted) 80%, var(--surface) 20%);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    font-weight: 700;
    padding: 0.55rem 0.8rem;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 160px);
    padding: 1.25rem;
}

.auth-layout {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
    align-items: stretch;
}

.auth-panel {
    background:
        linear-gradient(155deg, color-mix(in srgb, var(--primary) 86%, #ffffff 14%), color-mix(in srgb, var(--primary-soft) 82%, #ffffff 18%));
    color: var(--on-primary);
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--primary) 65%, #ffffff 35%);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    animation: fadeUp 420ms ease;
}

.eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-bottom: 0.45rem;
}

.auth-panel h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.panel-copy {
    margin: 0.85rem 0 0;
    color: color-mix(in srgb, var(--on-primary) 84%, #64748b 16%);
}

.panel-list {
    margin: 1rem 0 0;
    padding-left: 1rem;
}

.panel-list li {
    margin: 0.42rem 0;
}

.card {
    width: min(560px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    animation: fadeUp 420ms ease;
}

.auth-card {
    width: 100%;
}

.auth-card h2 {
    margin: 0;
    font-size: 1.8rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

label {
    display: block;
    margin-top: 0.8rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 84%, #ffffff 16%);
    color: var(--text);
    padding: 0.65rem 0.75rem;
    font-family: 'Inter', sans-serif;
}

textarea,
select,
button {
    font-family: 'Inter', sans-serif;
}

textarea,
select {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 84%, #ffffff 16%);
    color: var(--text);
    padding: 0.65rem 0.75rem;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 2.9rem;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-muted);
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    cursor: pointer;
}

.password-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.password-toggle:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 1px;
}

.turnstile-wrap {
    margin-top: 1rem;
}

.auth-links {
    margin-top: 0.45rem;
}

small,
.muted {
    color: var(--text-muted);
}

a {
    color: var(--primary-soft);
}

.alert {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    color: #0b1320;
}

.alert-success {
    border: 1px solid color-mix(in srgb, var(--success) 50%, #ffffff 50%);
    background: #9ec8d4;
    color: #0b1320;
}

.alert-error {
    border: 1px solid color-mix(in srgb, var(--danger) 50%, #ffffff 50%);
    background: color-mix(in srgb, var(--danger) 12%, #ffffff 88%);
    color: #0b1320;
}

.cooldown-copy {
    margin-top: 0.7rem;
    font-weight: 600;
    color: var(--text);
}

.home-main {
    padding-bottom: 2.2rem;
}

.hero {
    padding: 2.3rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.2rem;
    align-items: stretch;
}

.home-eyebrow {
    color: var(--text-muted);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
}

.hero-copy {
    font-size: 1.08rem;
    margin-top: 0.8rem;
    max-width: 62ch;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-highlights {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-highlights span {
    background: color-mix(in srgb, var(--surface) 80%, var(--accent) 20%);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.92rem;
}

.hero-showcase {
    display: grid;
    gap: 0.8rem;
}

.featured-mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 0.9rem;
    box-shadow: var(--shadow);
}

.featured-mini-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--border) 60%, transparent 40%);
}

.featured-mini-card h3 {
    margin: 0.7rem 0 0.3rem;
}

.featured-mini-card p {
    margin: 0;
}

.home-section {
    padding: 2.4rem 0;
}

.section-plain {
    background: var(--surface);
}

.section-mist {
    background: var(--surface-muted);
}

.section-gradient {
    background: var(--section-gradient);
}

.section-soft {
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 72%, transparent 28%), color-mix(in srgb, var(--surface) 88%, transparent 12%));
    border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent 30%);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent 30%);
}

.section-head {
    margin-bottom: 0.85rem;
}

.section-head h2,
.home-section h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.business-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    box-shadow: var(--shadow);
    padding: 0.9rem;
}

.business-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0.7rem;
    border: 1px solid color-mix(in srgb, var(--border) 62%, transparent 38%);
}

.business-card h3 {
    margin: 0.65rem 0 0.2rem;
}

.business-card p {
    margin: 0.3rem 0 0;
}

.category-grid {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.pill {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 0.75rem;
    padding: 0.7rem 0.75rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.city-grid {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.city-chip {
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border) 72%);
    background: color-mix(in srgb, var(--surface) 85%, var(--accent) 15%);
    color: var(--text);
    border-radius: 999px;
    padding: 0.56rem 0.75rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.top-business-list {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.top-business-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.8rem;
}

.about-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.about-panel p {
    margin: 0.7rem 0 0;
}

.top-business-item h3 {
    margin: 0;
    font-size: 1.08rem;
}

.top-business-item p {
    margin: 0.35rem 0 0;
}

.cta-banner {
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border) 75%);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 1.25rem;
    background: linear-gradient(140deg, color-mix(in srgb, var(--surface) 82%, var(--accent) 18%), color-mix(in srgb, var(--surface) 90%, var(--primary-soft) 10%));
}

.cta-banner h2 {
    margin: 0;
}

.cta-banner p {
    margin: 0.55rem 0 0;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent 25%);
    background: color-mix(in srgb, var(--surface) 78%, var(--surface-muted) 22%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.footer-grid h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.footer-grid p {
    margin: 0.25rem 0;
}

.footer-copy {
    margin-top: 0.95rem;
    padding-top: 0.7rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent 30%);
}

.dashboard-main {
    padding: 1.4rem 0 2rem;
}

.dashboard-layout {
    width: min(1220px, calc(100% - 2rem));
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.05rem;
}

.dashboard-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 0.95rem;
    align-self: start;
    position: sticky;
    top: 88px;
}

.dashboard-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.75rem;
    background: color-mix(in srgb, var(--surface) 87%, var(--accent) 13%);
}

.dashboard-avatar,
.dashboard-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: color-mix(in srgb, var(--primary) 20%, var(--surface) 80%);
    color: var(--text);
}

.dashboard-user-card h2 {
    margin: 0;
    font-size: 1.08rem;
}

.dashboard-user-card p {
    margin: 0.2rem 0 0;
}

.dashboard-nav {
    margin-top: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    overflow: hidden;
}

.dashboard-nav-item {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    font-size: 1.02rem;
}

.dashboard-nav > :first-child .dashboard-nav-item,
.dashboard-nav > :first-child.dashboard-nav-item {
    border-top: 0;
}

.dashboard-nav-item.is-active {
    border-left: 3px solid #14b8a6;
    background: color-mix(in srgb, var(--accent) 32%, var(--surface) 68%);
    font-weight: 600;
}

.dashboard-nav-item:hover {
    background: color-mix(in srgb, var(--surface) 75%, var(--accent) 25%);
}

.dashboard-nav-icon {
    width: 1rem;
    height: 1rem;
    border-radius: 0.2rem;
    border: 2px solid currentColor;
    opacity: 0.75;
}

.dashboard-nav-logout {
    margin: 0;
}

.dashboard-cta {
    margin-top: 0.9rem;
}

.dashboard-content {
    display: grid;
    gap: 0.95rem;
}

.dashboard-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 1rem;
}

.dashboard-panel h1,
.dashboard-panel h2 {
    margin: 0;
}

.dashboard-profile-panel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dashboard-profile-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.45rem;
}

.dashboard-profile-panel p {
    margin: 0.3rem 0 0;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dashboard-stat-icon {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    border: 1px solid var(--border);
    flex: 0 0 auto;
}

.icon-blue {
    background: color-mix(in srgb, #38bdf8 22%, var(--surface) 78%);
}

.icon-green {
    background: color-mix(in srgb, #4ade80 22%, var(--surface) 78%);
}

.icon-amber {
    background: color-mix(in srgb, #f59e0b 22%, var(--surface) 78%);
}

.icon-red {
    background: color-mix(in srgb, #ef4444 18%, var(--surface) 82%);
}

.dashboard-stat-value {
    margin: 0.3rem 0 0;
    font-size: clamp(1.9rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
}

.admin-main .dashboard-layout {
    grid-template-columns: 290px 1fr;
}

.admin-form-grid {
    display: grid;
    gap: 0.55rem;
}

.admin-inline-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.admin-inline-form .btn {
    margin-top: 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 0.62rem;
    vertical-align: top;
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 700;
}

.admin-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.admin-actions .btn {
    margin-top: 0;
}

.admin-actions form {
    margin: 0;
}

.seo-page-main .dashboard-panel {
    margin-top: 0;
}

@media (max-width: 640px) {
    .header-shell {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.55rem;
    }

    .site-nav {
        display: none;
    }

    .brand-text {
        font-size: 1.12rem;
    }

    .header-tools {
        justify-self: end;
        gap: 0.4rem;
    }

    .desktop-theme-toggle {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .user-avatar,
    .mobile-menu-toggle {
        width: 2.5rem;
        height: 2.5rem;
    }

    .user-avatar svg,
    .mobile-menu-toggle svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding: 1.2rem;
    }

    .card {
        padding: 1.2rem;
    }

    .hero {
        padding-top: 1.1rem;
    }

    .hero-grid,
    .business-grid,
    .category-grid,
    .city-grid,
    .top-business-list,
    .footer-grid,
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-inline-form {
        grid-template-columns: 1fr;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        width: min(1220px, calc(100% - 1rem));
    }

    .dashboard-sidebar {
        position: static;
    }

    .admin-main .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 980px) {
    .header-shell {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            'brand tools'
            'nav nav';
    }

    .brand {
        grid-area: brand;
    }

    .site-nav {
        grid-area: nav;
        justify-self: stretch;
    }

    .header-tools {
        grid-area: tools;
        justify-self: end;
    }

    .menu-list {
        justify-content: center;
    }

    .menu-item {
        position: static;
    }

    .dropdown-menu {
        left: 0;
        width: min(260px, 100%);
    }

    .mobile-nav-backdrop,
    .mobile-sidebar,
    .mobile-menu-toggle {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .business-grid,
    .top-business-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid,
    .city-grid,
    .footer-grid,
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }
}

@media (min-width: 981px) {
    .mobile-nav-backdrop,
    .mobile-sidebar,
    .mobile-menu-toggle {
        display: none;
    }
}
