:root {
    --bg: #090b10;
    --bg-soft: #10131b;
    --panel: rgba(18, 22, 31, 0.88);
    --panel-strong: #151a24;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(228, 196, 140, 0.24);
    --text: #f2efe8;
    --muted: #a6abb9;
    --gold: #d8b474;
    --gold-strong: #f3cd82;
    --danger: #f26d75;
    --success: #77d8a7;
    --shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1200px;
    --body-gradient:
        radial-gradient(circle at top left, rgba(216, 180, 116, 0.16), transparent 26%),
        radial-gradient(circle at top right, rgba(68, 92, 138, 0.22), transparent 28%),
        linear-gradient(180deg, #0a0c12 0%, #090b10 100%);
    --header-bg: rgba(9, 11, 16, 0.76);
    --footer-bg: rgba(7, 8, 12, 0.8);
    --surface-soft: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.06);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.12);
    --field-label: #dfe3eb;
    --secondary-btn-bg: rgba(255, 255, 255, 0.08);
    --ghost-btn-bg: rgba(255, 255, 255, 0.06);
    --outline-border: rgba(255, 255, 255, 0.16);
    --badge-bg: rgba(255, 255, 255, 0.08);
    --empty-bg: rgba(255, 255, 255, 0.03);
    --empty-border: rgba(255, 255, 255, 0.14);
}

:root[data-theme="light"] {
    --bg: #f7f1e6;
    --bg-soft: #efe3d1;
    --panel: rgba(255, 251, 245, 0.92);
    --panel-strong: #fffaf2;
    --line: rgba(65, 42, 18, 0.12);
    --line-strong: rgba(176, 122, 38, 0.3);
    --text: #21170f;
    --muted: #6c6259;
    --gold: #b9812d;
    --gold-strong: #8d5c15;
    --danger: #bb4154;
    --success: #2f8f63;
    --shadow: 0 24px 60px rgba(103, 67, 21, 0.12);
    --body-gradient:
        radial-gradient(circle at top left, rgba(217, 162, 73, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(137, 182, 214, 0.16), transparent 24%),
        linear-gradient(180deg, #fbf7f1 0%, #efe5d6 100%);
    --header-bg: rgba(251, 247, 241, 0.86);
    --footer-bg: rgba(246, 238, 227, 0.95);
    --surface-soft: rgba(73, 45, 16, 0.04);
    --surface-strong: rgba(73, 45, 16, 0.08);
    --input-bg: rgba(255, 255, 255, 0.92);
    --input-border: rgba(73, 45, 16, 0.16);
    --field-label: #34261b;
    --secondary-btn-bg: rgba(73, 45, 16, 0.08);
    --ghost-btn-bg: rgba(73, 45, 16, 0.06);
    --outline-border: rgba(73, 45, 16, 0.16);
    --badge-bg: rgba(73, 45, 16, 0.08);
    --empty-bg: rgba(73, 45, 16, 0.03);
    --empty-border: rgba(73, 45, 16, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--body-gradient);
    font-family: "Manrope", sans-serif;
    line-height: 1.55;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(216, 180, 116, 0.22), rgba(243, 205, 130, 0.08));
    border: 1px solid var(--line-strong);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    font-weight: 700;
}

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

.brand-text strong,
h1,
h2,
h3,
h4 {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.02em;
}

.brand-text strong {
    font-size: 1.4rem;
}

.brand-text small {
    color: var(--muted);
}

.top-nav,
.header-actions,
.panel-nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.top-nav a,
.panel-nav a {
    color: var(--muted);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    transition: 0.2s ease;
}

.top-nav a:hover,
.top-nav a.is-active,
.panel-nav a:hover,
.panel-nav a.is-active {
    color: var(--text);
    background: var(--surface-strong);
}

.site-main {
    padding: 1.2rem 0 4rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.2rem 0 3rem;
    background: var(--footer-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2rem;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.footer-grid a,
.footer-grid span,
.footer-grid p {
    display: block;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.hero {
    padding: 5rem 0 3rem;
}

.hero-grid,
.split-grid,
.dashboard-grid,
.card-grid,
.stat-grid,
.form-grid {
    display: grid;
    gap: 1.4rem;
}

.hero-grid {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.92;
    margin: 0 0 1rem;
}

.hero-copy p {
    max-width: 64ch;
    color: var(--muted);
    font-size: 1.06rem;
}

.hero-badges,
.actions-inline,
.meta-list,
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pill,
.metric-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--line-strong);
    color: var(--gold-strong);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(216, 180, 116, 0.08);
}

.hero-card,
.panel,
.metric-card,
.card,
.table-card,
.form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-card,
.panel,
.form-card,
.table-card {
    padding: 1.35rem;
}

.card {
    padding: 1.1rem;
}

.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: auto -10% -25% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 180, 116, 0.24), transparent 70%);
}

.section {
    padding: 1.5rem 0 2rem;
}

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

.section-header h2,
.panel-title,
.page-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-header p,
.eyebrow,
.muted {
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    margin-bottom: 0.55rem;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
}

.dashboard-sidebar {
    position: sticky;
    top: 6.5rem;
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    padding: 1.2rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 0.45rem;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full,
.form-grid > .table-card,
.form-grid > .panel,
.card.full {
    grid-column: 1 / -1;
}

.field,
.field-stack {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field label,
.field-stack label {
    color: var(--field-label);
    font-size: 0.95rem;
    font-weight: 600;
}

input,
textarea,
select,
button {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text);
    padding: 0.9rem 1rem;
    outline: none;
    transition: 0.2s ease;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(216, 180, 116, 0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #f0c878, #c89545);
    color: #14110c;
    font-weight: 800;
}

.btn-secondary {
    background: var(--secondary-btn-bg);
    color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--outline-border);
}

.btn-ghost {
    background: var(--ghost-btn-bg);
    color: var(--text);
}

.btn-theme-toggle {
    background: var(--ghost-btn-bg);
    color: var(--text);
    border: 1px solid var(--outline-border);
    min-width: 110px;
}

.theme-toggle-label {
    opacity: 0.72;
}

.btn-danger {
    background: rgba(242, 109, 117, 0.18);
    color: #ffd5d8;
    border: 1px solid rgba(242, 109, 117, 0.26);
}

.validation-home {
    padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.validation-shell {
    display: grid;
    gap: 1.2rem;
}

.validation-hero,
.validation-card,
.validation-note {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.validation-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.3rem, 4vw, 2.4rem);
}

.validation-hero h1 {
    max-width: 12ch;
    margin: 0 0 0.75rem;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 0.94;
}

.validation-hero p {
    max-width: 64ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.validation-flow {
    display: grid;
    gap: 0.65rem;
}

.validation-flow span,
.validation-flow strong,
.validation-note {
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.validation-flow span {
    color: var(--gold-strong);
    font-weight: 900;
}

.validation-flow strong {
    color: var(--text);
    font-weight: 700;
}

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

.validation-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

.validation-card-header {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.validation-icon {
    width: 48px;
    height: 48px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(216, 180, 116, 0.1);
    color: var(--gold-strong);
    font-weight: 900;
}

.validation-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1;
}

.validation-card p {
    margin: 0;
    color: var(--muted);
}

.validation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: auto;
}

.validation-note {
    color: var(--muted);
    box-shadow: none;
}

.validation-note strong {
    color: var(--text);
}

.flash {
    margin: 1rem 0 0;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.flash-success {
    background: rgba(119, 216, 167, 0.1);
    color: #d8ffee;
}

.flash-error {
    background: rgba(242, 109, 117, 0.12);
    color: #ffd6d9;
}

.flash-info {
    background: rgba(99, 151, 255, 0.12);
    color: #dde8ff;
}

.table-card {
    overflow: hidden;
}

.admin-table-card {
    padding: 0;
}

.admin-table-card .panel-header {
    padding: 1.25rem 1.35rem 0;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

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

th,
td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

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

.admin-metric-link {
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.admin-metric-link:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cell-clamp {
    max-width: 320px;
    color: var(--muted);
}

.cell-clamp strong,
td strong {
    display: block;
}

.app-modal {
    width: min(640px, calc(100% - 2rem));
    max-height: min(760px, calc(100vh - 2rem));
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background: transparent;
    color: var(--text);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.app-modal[open],
.app-modal.is-open {
    display: block;
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.app-modal::backdrop {
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(7px);
}

.modal-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(216, 180, 116, 0.16), transparent 34%),
        var(--panel-strong);
    border-radius: 28px;
}

.modal-header,
.modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.modal-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.functioning-modal {
    width: min(720px, calc(100% - 1.5rem));
}

.functioning-modal::backdrop {
    background: rgba(8, 10, 15, 0.68);
    backdrop-filter: blur(8px);
}

.functioning-modal-card {
    max-height: min(760px, calc(100vh - 1.5rem));
    overflow-y: auto;
    background:
        radial-gradient(circle at top right, rgba(216, 180, 116, 0.16), transparent 34%),
        #fffaf2;
    color: #21170f;
    border: 1px solid rgba(176, 122, 38, 0.24);
}

.functioning-modal-card .eyebrow,
.functioning-modal-card .functioning-copy h4 {
    color: #8d5c15;
}

.functioning-modal-card .modal-close {
    background: rgba(73, 45, 16, 0.06);
    color: #21170f;
    border-color: rgba(73, 45, 16, 0.14);
}

.functioning-copy {
    display: grid;
    gap: 0.9rem;
    font-size: 1rem;
}

.functioning-copy p,
.functioning-copy h4 {
    margin: 0;
}

.functioning-copy p {
    color: #3f3329;
}

.functioning-copy strong {
    color: #21170f;
}

.functioning-copy ol {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.35rem;
}

.functioning-copy li {
    padding-left: 0.25rem;
    color: #3f3329;
}

.functioning-modal-card .btn-primary {
    color: #14110c;
}

@media (max-width: 640px) {
    .functioning-modal-card {
        border-radius: 22px;
        padding: 1rem;
    }

    .functioning-modal-card .modal-header,
    .functioning-modal-card .modal-actions {
        align-items: stretch;
    }

    .functioning-modal-card .modal-actions .btn {
        width: 100%;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--badge-bg);
    color: var(--text);
    font-size: 0.82rem;
}

.status-active,
.status-confirmado,
.status-confirmado-publico,
.status-aprovado-pelo-bar,
.status-realizado,
.status-aprovado {
    background: rgba(119, 216, 167, 0.12);
    color: #d8ffee;
}

.status-cancelado,
.status-blocked,
.status-inactive,
.status-recusado-pelo-bar,
.status-recusado {
    background: rgba(242, 109, 117, 0.14);
    color: #ffd5d8;
}

.status-pending,
.status-rascunho,
.status-em,
.status-em-analise,
.status-enviado-para-aprovacao,
.status-ajuste-solicitado {
    background: rgba(243, 205, 130, 0.14);
    color: #ffe9ba;
}

.approval-note {
    padding: 0.9rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(216, 180, 116, 0.1), rgba(255, 255, 255, 0.025)),
        var(--surface-soft);
    color: var(--muted);
}

.approval-note strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--text);
}

.approval-note-success {
    border-color: rgba(119, 216, 167, 0.28);
    background: rgba(119, 216, 167, 0.09);
    color: #d8ffee;
}

.approval-note-warning {
    border-color: rgba(243, 205, 130, 0.34);
    background: rgba(243, 205, 130, 0.1);
}

.approval-note-danger {
    border-color: rgba(242, 109, 117, 0.32);
    background: rgba(242, 109, 117, 0.1);
    color: #ffd5d8;
}

.notification-center {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.notification-center summary {
    list-style: none;
}

.notification-center summary::-webkit-details-marker {
    display: none;
}

.notification-bell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    color: var(--text);
}

.notification-bell-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    border: 2px solid currentColor;
    border-radius: 10px 10px 7px 7px;
    position: relative;
}

.notification-bell-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 7px;
    height: 5px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    transform: translateX(-50%);
}

.notification-bell-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 6px;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: currentColor;
    transform: translateX(-50%);
}

.notification-count {
    min-width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.notification-list {
    display: grid;
    gap: 0.7rem;
    padding: 0 0.75rem 0.75rem;
}

.notification-actions .btn {
    width: 100%;
    min-height: 38px;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
}

.notification-item {
    display: grid;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.notification-item.is-read {
    opacity: 0.72;
}

.notification-item strong,
.notification-item p {
    margin: 0;
}

.notification-item p,
.notification-item span {
    color: var(--muted);
    font-size: 0.84rem;
}

.notification-item .btn {
    width: 100%;
    min-height: 36px;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
}

.approval-actions {
    display: grid;
    grid-template-columns: minmax(190px, 0.7fr) minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 0.75rem;
    align-items: stretch;
}

.approval-actions-compact {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.inline-approval-form {
    display: flex;
    gap: 0.6rem;
}

.inline-approval-form input {
    min-height: 44px;
}

.event-approval-section {
    gap: 1rem;
}

.approval-inbox {
    border-color: rgba(216, 180, 116, 0.26);
    box-shadow: 0 22px 65px rgba(216, 180, 116, 0.08);
}

.approval-list {
    display: grid;
    gap: 1rem;
}

.event-decision-card {
    border-color: var(--line);
}

.approval-details {
    position: relative;
}

.approval-details summary {
    justify-content: center;
    list-style: none;
    cursor: pointer;
}

.approval-details summary::-webkit-details-marker {
    display: none;
}

.approval-details-body {
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.approval-details-body p {
    margin: 0 0 0.55rem;
}

.approval-details-body p:last-child {
    margin-bottom: 0;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-thumb {
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.detail-cover {
    width: 100%;
    aspect-ratio: 1.28;
    object-fit: cover;
    border-radius: 26px;
    border: 1px solid var(--line-strong);
    background: var(--surface-soft);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.bar-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.bar-directory-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    min-height: 100%;
    border-radius: 30px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        var(--panel);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bar-directory-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 34px 78px rgba(0, 0, 0, 0.32);
}

.bar-directory-media {
    display: block;
    padding: 0.72rem 0.72rem 0;
}

.bar-directory-thumb {
    width: 100%;
    aspect-ratio: 1.38;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.bar-directory-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.05rem 1.15rem;
}

.bar-directory-body strong {
    color: var(--text);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1;
}

.bar-address {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.42;
}

.gallery-fallback-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.gallery-fallback-card .media-thumb {
    aspect-ratio: 1.8;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.kicker {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    margin-bottom: 0.55rem;
}

.note {
    color: var(--muted);
    font-size: 0.92rem;
}

.speaker-location-status {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
    margin-top: -0.25rem;
}

.empty-state {
    padding: 1.4rem;
    border-radius: var(--radius-md);
    background: var(--empty-bg);
    border: 1px dashed var(--empty-border);
    color: var(--muted);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.hero-stat {
    padding: 0.9rem;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

:root[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #bf812a, #8d5918);
    color: #fff8ef;
}

:root[data-theme="light"] .brand-mark {
    background: linear-gradient(135deg, rgba(217, 162, 73, 0.2), rgba(255, 255, 255, 0.65));
}

:root[data-theme="light"] .flash-success {
    color: #155638;
}

:root[data-theme="light"] .flash-error {
    color: #842637;
}

:root[data-theme="light"] .flash-info {
    color: #1e4d8e;
}

.hero-stat strong {
    display: block;
    font-size: 1.6rem;
}

.auth-shell {
    width: min(980px, calc(100% - 2rem));
    margin: 2rem auto 0;
}

.auth-shell .form-card {
    padding: 1.6rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-link:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--surface-strong);
}

.social-link-site {
    border-style: solid;
}

.social-link-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-strong);
}

.social-link-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    background: var(--surface-soft);
    box-shadow: var(--shadow);
}

.profile-avatar-md {
    width: 88px;
    height: 88px;
}

.profile-avatar-lg {
    width: 118px;
    height: 118px;
}

.profile-avatar-xl {
    width: 180px;
    height: 180px;
}

.profile-highlight,
.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 1.4rem;
    align-items: start;
}

.profile-media,
.detail-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-copy {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.profile-inline-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.checkbox-row {
    display: flex;
    align-items: start;
    gap: 0.7rem;
    color: var(--text);
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
    accent-color: var(--gold);
}

.info-tile {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-card p {
    margin: 0;
}

.hr {
    height: 1px;
    background: var(--line);
    margin: 0.6rem 0;
}

@media (max-width: 1080px) {
    .hero-grid,
    .dashboard-grid,
    .footer-grid,
    .card-grid,
    .stat-grid,
    .two-col,
    .profile-highlight,
    .detail-hero,
    .testimonial-grid,
    .gallery-fallback-card {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }

    .bar-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .top-nav,
    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .btn-theme-toggle {
        min-width: 98px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 2.8rem;
    }

    .site-main {
        padding-top: 0.7rem;
    }

    .bar-directory-grid {
        grid-template-columns: 1fr;
    }

    th,
    td {
        padding: 0.8rem 0.75rem;
    }
}

/* Premium layout refresh */
:root {
    --panel-glass: rgba(18, 22, 31, 0.78);
    --panel-glass-strong: rgba(20, 25, 35, 0.92);
    --panel-highlight: rgba(216, 180, 116, 0.11);
    --focus-ring: rgba(243, 205, 130, 0.16);
    --deep-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
    --soft-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    --inner-line: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] {
    --panel-glass: rgba(255, 251, 245, 0.82);
    --panel-glass-strong: rgba(255, 250, 242, 0.96);
    --panel-highlight: rgba(185, 129, 45, 0.1);
    --focus-ring: rgba(185, 129, 45, 0.16);
    --deep-shadow: 0 30px 90px rgba(126, 87, 35, 0.16);
    --soft-shadow: 0 18px 48px rgba(126, 87, 35, 0.12);
    --inner-line: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background-color: var(--bg);
    letter-spacing: -0.01em;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body::before {
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 80px),
        radial-gradient(circle at 14% 18%, rgba(216, 180, 116, 0.18), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(70, 111, 158, 0.18), transparent 28%),
        radial-gradient(circle at 52% 92%, rgba(216, 180, 116, 0.08), transparent 34%);
    opacity: 0.86;
}

body::after {
    width: 42rem;
    height: 42rem;
    right: -18rem;
    top: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(216, 180, 116, 0.12), transparent 68%);
    filter: blur(4px);
}

.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    top: 0.8rem;
    width: min(calc(100% - 1.4rem), calc(var(--container) + 2rem));
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
        var(--header-bg);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.header-inner {
    width: 100%;
    padding: 0.72rem 1rem;
}

.brand {
    min-width: max-content;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    box-shadow:
        0 14px 34px rgba(216, 180, 116, 0.12),
        var(--inner-line);
}

.brand-text strong {
    line-height: 1;
}

.brand-text small {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.top-nav {
    padding: 0.28rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.top-nav a,
.panel-nav a {
    font-weight: 700;
    font-size: 0.9rem;
}

.top-nav a:hover,
.top-nav a.is-active {
    background:
        linear-gradient(135deg, rgba(216, 180, 116, 0.18), rgba(255, 255, 255, 0.05));
    box-shadow: var(--inner-line);
}

.site-main {
    padding-top: 2.1rem;
}

.hero {
    padding: clamp(4rem, 7vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-grid {
    gap: clamp(1.4rem, 4vw, 3rem);
}

.hero-copy h1,
.section-header h2,
.panel-title,
.page-title {
    text-wrap: balance;
}

.hero-copy h1 {
    max-width: 12ch;
    letter-spacing: -0.055em;
    font-size: clamp(3.2rem, 7.2vw, 6.9rem);
}

.hero-copy p {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.kicker,
.eyebrow {
    color: var(--gold-strong);
    font-weight: 800;
}

.hero-badges,
.actions-inline {
    margin-top: 1.25rem;
}

.hero-card,
.panel,
.metric-card,
.card,
.table-card,
.form-card {
    position: relative;
    border-color: var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.025)),
        var(--panel-glass);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.hero-card,
.panel,
.form-card,
.table-card {
    padding: clamp(1.15rem, 2vw, 1.75rem);
}

.hero-card::after,
.panel::before,
.card::before,
.form-card::before,
.table-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: var(--inner-line);
}

.hero-card {
    border-color: var(--line-strong);
    box-shadow: var(--deep-shadow);
}

.card,
.metric-card,
.info-tile,
.profile-inline-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card:hover,
.metric-card:hover,
.info-tile:hover,
.profile-inline-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--soft-shadow);
}

.card h3,
.panel h3,
.table-card h3,
.form-card h3 {
    margin-top: 0;
}

.card p:last-child,
.panel p:last-child,
.form-card p:last-child {
    margin-bottom: 0;
}

.pill,
.badge,
.metric-label {
    background:
        linear-gradient(135deg, rgba(216, 180, 116, 0.13), rgba(255, 255, 255, 0.035));
    box-shadow: var(--inner-line);
}

.section {
    padding: clamp(1.6rem, 4vw, 3.2rem) 0;
}

.section-header {
    align-items: flex-end;
    padding-bottom: 0.15rem;
}

.section-header > p {
    max-width: 46ch;
}

.card-grid {
    gap: clamp(1rem, 2vw, 1.45rem);
}

.dashboard-grid {
    gap: clamp(1rem, 2.2vw, 1.7rem);
}

.dashboard-sidebar {
    top: 7.2rem;
}

.dashboard-sidebar .panel-nav,
.dashboard-sidebar.panel-nav,
.panel .panel-nav {
    align-items: stretch;
}

.dashboard-sidebar .panel-nav,
.panel .panel-nav {
    flex-direction: column;
}

.dashboard-sidebar .panel-nav a,
.panel .panel-nav a {
    border: 1px solid transparent;
}

.dashboard-sidebar .panel-nav a:hover,
.dashboard-sidebar .panel-nav a.is-active,
.panel .panel-nav a:hover,
.panel .panel-nav a.is-active {
    border-color: var(--line);
    background:
        linear-gradient(135deg, rgba(216, 180, 116, 0.12), rgba(255, 255, 255, 0.035));
}

.metric-card {
    overflow: hidden;
    min-height: 132px;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.7;
}

.metric-value {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: -0.04em;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.form-grid {
    gap: 1rem 1.1rem;
}

.field,
.field-stack {
    gap: 0.5rem;
}

.field label,
.field-stack label {
    letter-spacing: 0.01em;
}

input,
textarea,
select {
    min-height: 48px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        var(--input-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

textarea {
    line-height: 1.5;
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--outline-border);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold-strong);
    box-shadow:
        0 0 0 4px var(--focus-ring),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 0.72;
}

.checkbox-row {
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.btn {
    min-height: 44px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: var(--inner-line);
}

.btn-primary {
    box-shadow:
        0 14px 34px rgba(216, 180, 116, 0.2),
        var(--inner-line);
}

.btn-outline:hover,
.btn-ghost:hover,
.btn-secondary:hover,
.btn-theme-toggle:hover {
    border-color: var(--line-strong);
    background: var(--surface-strong);
}

.flash {
    border-color: var(--line-strong);
    box-shadow: var(--soft-shadow);
}

.table-card {
    padding: 0;
}

.table-card > .panel-header,
.table-card > .section-header,
.admin-table-card .panel-header {
    padding: 1.25rem 1.35rem 0.75rem;
    margin-bottom: 0;
}

.table-scroll {
    border-top: 1px solid var(--line);
}

table {
    min-width: 760px;
}

th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--gold-strong);
    font-size: 0.78rem;
}

tbody tr {
    transition: background 0.18s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

td {
    color: var(--text);
}

.cell-clamp,
td .muted,
td small {
    color: var(--muted);
}

.row-actions .btn {
    min-height: 38px;
    padding: 0.62rem 0.88rem;
}

.app-modal {
    border-color: var(--line-strong);
}

.modal-card {
    padding: clamp(1.1rem, 2vw, 1.55rem);
    background:
        radial-gradient(circle at top right, rgba(216, 180, 116, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
        var(--panel-glass-strong);
    backdrop-filter: blur(18px);
}

.modal-close:hover {
    border-color: var(--line-strong);
    background: var(--surface-strong);
}

.auth-shell {
    margin-top: clamp(1.5rem, 4vw, 3.2rem);
}

.auth-shell .form-card {
    border-color: var(--line-strong);
    box-shadow: var(--deep-shadow);
}

.media-thumb,
.detail-cover,
.bar-directory-thumb,
.profile-avatar {
    box-shadow: var(--soft-shadow);
}

.detail-cover,
.bar-directory-thumb {
    background:
        radial-gradient(circle at 35% 25%, rgba(216, 180, 116, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
        var(--panel-strong);
}

.bar-directory-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
        var(--panel-glass);
    backdrop-filter: blur(16px);
}

.bar-directory-card:hover .bar-directory-thumb {
    transform: scale(1.015);
}

.bar-directory-thumb {
    transition: transform 0.25s ease;
}

.bar-directory-body strong {
    letter-spacing: -0.02em;
}

.bar-address {
    padding-top: 0.1rem;
}

.profile-highlight,
.detail-hero {
    gap: clamp(1rem, 2.4vw, 1.8rem);
}

.profile-avatar {
    background:
        radial-gradient(circle at 35% 20%, rgba(216, 180, 116, 0.25), transparent 42%),
        var(--panel-strong);
}

.social-link {
    font-weight: 800;
}

.social-link:hover {
    box-shadow: var(--soft-shadow);
}

.empty-state {
    min-height: 92px;
    display: grid;
    place-items: center start;
    background:
        linear-gradient(135deg, rgba(216, 180, 116, 0.07), rgba(255, 255, 255, 0.02)),
        var(--empty-bg);
}

.site-footer {
    margin-top: 2rem;
    border-top-color: var(--line-strong);
    background:
        radial-gradient(circle at 18% 0%, rgba(216, 180, 116, 0.12), transparent 34%),
        var(--footer-bg);
}

@media (max-width: 1080px) {
    .site-header {
        border-radius: 28px;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand {
        flex: 1 1 100%;
        justify-content: center;
    }

    .top-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-actions {
        justify-content: center;
    }

    .hero-copy h1 {
        max-width: 13ch;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 800px) {
    .container {
        width: min(calc(100% - 1.1rem), var(--container));
    }

    .site-header {
        top: 0.45rem;
        width: min(calc(100% - 0.8rem), var(--container));
        border-radius: 24px;
    }

    .header-inner {
        padding: 0.75rem;
    }

    .brand {
        justify-content: flex-start;
    }

    .brand-text strong {
        font-size: 1.18rem;
    }

    .brand-text small {
        font-size: 0.72rem;
    }

    .top-nav {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
        padding-bottom: 0.35rem;
    }

    .top-nav a {
        white-space: nowrap;
    }

    .header-actions {
        justify-content: stretch;
    }

    .header-actions .btn,
    .header-actions form,
    .actions-inline .btn {
        flex: 1 1 auto;
    }

    .header-actions form {
        display: flex;
    }

    .header-actions form .btn,
    .header-actions form button {
        width: 100%;
    }

    .site-main {
        padding-top: 1rem;
    }

    .hero {
        padding-top: 2.6rem;
    }

    .validation-hero,
    .validation-options {
        grid-template-columns: 1fr;
    }

    .validation-hero h1 {
        max-width: 100%;
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    .validation-actions .btn {
        width: 100%;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.75rem, 14vw, 4.2rem);
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .panel,
    .form-card,
    .table-card,
    .card {
        border-radius: 22px;
    }

    .table-card {
        margin-inline: -0.15rem;
    }

    .panel-header,
    .modal-header,
    .modal-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal-actions,
    .modal-actions .btn {
        width: 100%;
    }

    .footer-grid {
        gap: 1.1rem;
    }
}

/* Larger operational forms */
.dashboard-grid > .stack:not(.dashboard-sidebar) {
    min-width: 0;
}

.dashboard-grid > .stack:not(.dashboard-sidebar) > .form-card,
.dashboard-grid .panel .form-card,
.auth-shell .form-card {
    padding: clamp(1.45rem, 2.7vw, 2.25rem);
}

.dashboard-grid .form-card.form-grid,
.auth-shell .form-card.form-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.15rem 1.25rem;
}

.dashboard-grid .form-card.stack {
    gap: 1.25rem;
}

.dashboard-grid .form-card .two-col,
.auth-shell .form-card .two-col {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.15rem;
}

.form-card .full > .eyebrow,
.form-card > .eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(216, 180, 116, 0.08);
}

.form-card .field,
.form-card .field-stack {
    min-width: 0;
}

.form-card input,
.form-card select,
.form-card textarea {
    min-height: 56px;
    padding: 1rem 1.08rem;
    font-size: 0.98rem;
}

.form-card textarea {
    min-height: 156px;
}

.form-card input[type="file"] {
    min-height: 74px;
    padding: 0.9rem;
    cursor: pointer;
    border-style: dashed;
    border-color: var(--line-strong);
    background:
        radial-gradient(circle at 12% 18%, rgba(216, 180, 116, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)),
        var(--input-bg);
}

.form-card input[type="file"]::file-selector-button {
    margin-right: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(243, 205, 130, 0.95), rgba(200, 149, 69, 0.95));
    color: #14110c;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.form-card .note {
    font-size: 0.96rem;
    line-height: 1.55;
}

.form-card .actions-inline {
    padding-top: 0.35rem;
}

.form-card .actions-inline .btn,
.form-card > .btn {
    min-height: 52px;
    padding-inline: 1.55rem;
}

.dashboard-grid .table-card {
    width: 100%;
}

.dashboard-grid .table-card table {
    min-width: 820px;
}

@media (min-width: 1081px) {
    .dashboard-grid {
        grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    }

    .dashboard-grid > .stack:not(.dashboard-sidebar) > .form-card.form-grid {
        grid-template-columns: repeat(2, minmax(310px, 1fr));
    }

    .dashboard-grid > .stack:not(.dashboard-sidebar) > .form-card.stack .two-col {
        grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
    }
}

@media (max-width: 800px) {
    .dashboard-grid > .stack:not(.dashboard-sidebar) > .form-card,
    .dashboard-grid .panel .form-card,
    .auth-shell .form-card {
        padding: 1.15rem;
    }

    .dashboard-grid .form-card.form-grid,
    .auth-shell .form-card.form-grid,
    .dashboard-grid .form-card .two-col,
    .auth-shell .form-card .two-col {
        grid-template-columns: 1fr;
    }

    .form-card input,
    .form-card select,
    .form-card textarea {
        min-height: 54px;
    }

    .form-card input[type="file"] {
        min-height: 78px;
    }

    .form-card input[type="file"]::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 0.7rem;
    }

    .form-card .actions-inline .btn,
    .form-card > .btn {
        width: 100%;
    }
}

/* Dashboard grid correction: keep sidebar and main content in the intended columns. */
@media (min-width: 1081px) {
    .dashboard-grid > .dashboard-sidebar.panel {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: none;
    }

    .dashboard-grid > .stack:not(.dashboard-sidebar) {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-width: none;
    }

    .dashboard-grid > .stack:not(.dashboard-sidebar) > .form-card,
    .dashboard-grid > .stack:not(.dashboard-sidebar) > .panel,
    .dashboard-grid > .stack:not(.dashboard-sidebar) > .table-card {
        width: 100%;
        max-width: none;
    }

    .dashboard-grid > .stack:not(.dashboard-sidebar) > .form-card.form-grid {
        grid-template-columns: repeat(2, minmax(340px, 1fr));
    }
}

/* Professional composition pass */
:root {
    --container: 1320px;
    --page-gutter: clamp(1rem, 2.8vw, 2rem);
    --content-gap: clamp(1rem, 2vw, 1.6rem);
    --dashboard-sidebar: 286px;
}

:root[data-theme="light"] {
    --bg: #f4efe6;
    --bg-soft: #eee4d5;
    --panel: rgba(255, 252, 246, 0.94);
    --panel-strong: #fffaf2;
    --panel-glass: rgba(255, 252, 246, 0.86);
    --panel-glass-strong: rgba(255, 250, 242, 0.98);
    --text: #21190f;
    --muted: #665f55;
    --line: rgba(58, 43, 25, 0.13);
    --line-strong: rgba(151, 101, 31, 0.28);
    --input-bg: rgba(255, 255, 255, 0.96);
    --input-border: rgba(58, 43, 25, 0.18);
    --header-bg: rgba(255, 250, 242, 0.88);
    --footer-bg: rgba(247, 239, 227, 0.96);
    --surface-soft: rgba(58, 43, 25, 0.045);
    --surface-strong: rgba(58, 43, 25, 0.075);
}

body.is-dashboard,
body.is-admin {
    --container: 1520px;
}

.container {
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
}

.site-main {
    min-height: calc(100vh - 220px);
}

body.is-dashboard .site-main,
body.is-admin .site-main {
    padding-top: clamp(1.15rem, 2vw, 1.75rem);
}

body.is-dashboard .section,
body.is-admin .section {
    padding: clamp(1rem, 2vw, 1.8rem) 0 clamp(2.2rem, 4vw, 4rem);
}

body.is-public .section:first-child {
    padding-top: clamp(2rem, 4vw, 3.5rem);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(248px, var(--dashboard-sidebar)) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.1rem, 2.2vw, 2rem);
}

.dashboard-grid > .dashboard-sidebar {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
}

.dashboard-grid > .dashboard-sidebar.panel,
.dashboard-grid > .dashboard-sidebar > .panel {
    padding: 1.15rem;
    border-radius: 28px;
}

.dashboard-grid > .dashboard-sidebar.panel,
.dashboard-grid > .dashboard-sidebar.stack {
    position: sticky;
    top: 6.8rem;
    max-height: calc(100vh - 8.2rem);
    overflow: auto;
    scrollbar-width: thin;
}

.dashboard-grid > .dashboard-sidebar h2 {
    margin: 0.15rem 0 0.45rem;
    font-size: clamp(1.65rem, 2vw, 2.15rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.dashboard-grid > .dashboard-sidebar .note,
.dashboard-grid > .dashboard-sidebar .muted {
    font-size: 0.9rem;
}

.dashboard-grid > .dashboard-sidebar .list-inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin: 0.9rem 0 0.2rem;
}

.dashboard-grid > .dashboard-sidebar .badge {
    justify-content: space-between;
    width: 100%;
}

.dashboard-grid > .stack:not(.dashboard-sidebar) {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
    gap: var(--content-gap);
}

.dashboard-grid > .form-card,
.dashboard-grid > .table-card,
.dashboard-grid > .panel:not(.dashboard-sidebar) {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.dashboard-sidebar .panel-nav {
    display: grid;
    width: 100%;
    gap: 0.42rem;
    margin-top: 1rem;
}

.dashboard-sidebar .panel-nav a {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    border-radius: 15px;
    padding: 0.78rem 0.9rem;
    border: 1px solid transparent;
}

.dashboard-sidebar .panel-nav a.is-active {
    color: var(--text);
    border-color: var(--line-strong);
    background:
        linear-gradient(135deg, rgba(216, 180, 116, 0.2), rgba(255, 255, 255, 0.04));
}

.dashboard-grid > .stack:not(.dashboard-sidebar) > .form-card,
.dashboard-grid > .stack:not(.dashboard-sidebar) > .panel,
.dashboard-grid > .stack:not(.dashboard-sidebar) > .table-card,
.dashboard-grid > .stack:not(.dashboard-sidebar) > .stat-grid {
    width: 100%;
    max-width: none;
}

.form-card.form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.15rem 1.2rem;
}

.form-card.form-grid > .field {
    grid-column: span 6;
}

.form-card.form-grid > .field.full,
.form-card.form-grid > .full {
    grid-column: 1 / -1;
}

body.is-dashboard .form-card.form-grid > .actions-inline.full,
body.is-admin .form-card.form-grid > .actions-inline.full,
.auth-shell .form-card.form-grid > .actions-inline.full {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.2rem;
}

body.is-public .container.stack > .form-card.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    align-items: end;
    padding: clamp(1rem, 1.6vw, 1.35rem);
}

body.is-public .container.stack > .form-card.form-grid > .field {
    grid-column: auto;
}

body.is-public .container.stack > .form-card.form-grid > .full {
    grid-column: 1 / -1;
}

.form-card input,
.form-card select,
.form-card textarea {
    border-radius: 18px;
}

.form-card input[type="date"],
.form-card input[type="time"],
.form-card input[type="number"],
.form-card select {
    min-height: 58px;
}

.form-card textarea {
    min-height: 150px;
}

.dashboard-grid .form-card textarea {
    min-height: 168px;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--content-gap);
}

.dashboard-grid .two-col {
    align-items: stretch;
}

.dashboard-grid .two-col > .form-card,
.dashboard-grid .two-col > .panel,
.dashboard-grid .two-col > .table-card,
.auth-shell .two-col > .form-card,
.auth-shell .two-col > .panel {
    min-width: 0;
    height: 100%;
}

.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-card {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

body.is-public .card-grid {
    gap: clamp(1rem, 2vw, 1.5rem);
}

body.is-public .card.stack {
    padding: 0.85rem;
    gap: 0.9rem;
}

body.is-public .card.stack h3 {
    margin-bottom: 0;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1;
}

body.is-public .card.stack p {
    margin-top: 0;
}

body.is-public .media-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 24px;
}

.bar-directory-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: clamp(1rem, 2vw, 1.45rem);
}

.bar-directory-card {
    border-radius: 28px;
}

.table-card {
    border-radius: 28px;
}

.table-card .table-scroll,
.admin-table-card .table-scroll {
    max-width: 100%;
}

.table-card > table,
.table-card > .table-scroll table {
    min-width: 840px;
}

.table-card > table {
    display: table;
}

.panel-header {
    margin-bottom: 1.05rem;
}

.panel-header h3,
.panel-header .panel-title {
    line-height: 1;
}

.detail-hero,
.profile-highlight {
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
}

.auth-shell {
    width: min(1120px, calc(100% - 2rem));
}

.auth-shell .two-col {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    align-items: stretch;
}

.auth-shell .form-card,
.auth-shell .panel {
    border-radius: 32px;
}

@media (min-width: 1280px) {
    .dashboard-grid {
        grid-template-columns: var(--dashboard-sidebar) minmax(0, 1fr);
    }

    body.is-dashboard .form-card.form-grid > .field,
    body.is-admin .form-card.form-grid > .field {
        grid-column: span 6;
    }

    body.is-dashboard .form-card.form-grid > .field:nth-of-type(1):last-child,
    body.is-admin .form-card.form-grid > .field:nth-of-type(1):last-child {
        grid-column: 1 / -1;
    }
}

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

    .dashboard-grid > .dashboard-sidebar,
    .dashboard-grid > .stack:not(.dashboard-sidebar) {
        grid-column: 1;
        grid-row: auto;
    }

    .dashboard-grid > .form-card,
    .dashboard-grid > .table-card,
    .dashboard-grid > .panel:not(.dashboard-sidebar) {
        grid-column: 1;
        grid-row: auto;
    }

    .dashboard-grid > .dashboard-sidebar.panel,
    .dashboard-grid > .dashboard-sidebar.stack {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .dashboard-sidebar .panel-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .dashboard-sidebar .panel-nav a {
        width: auto;
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    .form-card.form-grid > .field,
    body.is-dashboard .form-card.form-grid > .field,
    body.is-admin .form-card.form-grid > .field,
    .auth-shell .form-card.form-grid > .field {
        grid-column: 1 / -1;
    }

    .two-col,
    .auth-shell .two-col,
    .detail-hero,
    .profile-highlight {
        grid-template-columns: 1fr;
    }

    body.is-dashboard .form-card.form-grid > .actions-inline.full,
    body.is-admin .form-card.form-grid > .actions-inline.full,
    .auth-shell .form-card.form-grid > .actions-inline.full {
        justify-content: stretch;
    }
}

/* Public discovery home */
.is-hidden {
    display: none !important;
}

.home-discovery {
    padding: clamp(2.3rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
    align-items: stretch;
    gap: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.home-hero-copy,
.location-console,
.home-panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.024)),
        var(--panel-glass);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.home-hero-copy::before,
.location-console::before,
.home-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: var(--inner-line);
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(440px, 54vw, 640px);
    padding: clamp(1.4rem, 4vw, 3.2rem);
    overflow: hidden;
    border-color: var(--line-strong);
    background:
        radial-gradient(circle at 18% 18%, rgba(243, 205, 130, 0.2), transparent 25%),
        radial-gradient(circle at 88% 0%, rgba(73, 112, 160, 0.18), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--panel-glass);
}

.home-hero-copy h1 {
    max-width: 12ch;
    margin: 0 0 1rem;
    font-size: clamp(3.3rem, 7vw, 7.2rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.home-hero-copy p {
    max-width: 62ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.location-console {
    align-self: end;
    padding: clamp(1.25rem, 2.4vw, 1.85rem);
}

.location-console h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.95;
}

.location-form {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.25rem;
}

.location-form .btn {
    width: 100%;
}

.location-status {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    color: var(--muted);
}

.location-status strong {
    color: var(--text);
}

.home-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.45rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: var(--soft-shadow);
}

.home-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 56px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    transition: 0.18s ease;
}

.home-tab strong {
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text);
}

.home-tab.is-active {
    color: var(--text);
    border-color: var(--line-strong);
    background:
        linear-gradient(135deg, rgba(216, 180, 116, 0.2), rgba(255, 255, 255, 0.045));
    box-shadow: var(--inner-line);
}

.home-panel {
    display: none;
    padding: clamp(1rem, 2vw, 1.55rem);
}

.home-panel.is-active {
    display: block;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
}

.home-showcase-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    min-height: 100%;
    padding: 0.72rem;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024)),
        var(--panel-glass);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-showcase-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--deep-shadow);
}

.home-showcase-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 35% 20%, rgba(216, 180, 116, 0.18), transparent 36%),
        var(--surface-soft);
}

.home-speaker-card img {
    aspect-ratio: 1;
    border-radius: 999px;
    width: min(190px, 62%);
    justify-self: center;
    margin-top: 0.8rem;
}

.home-showcase-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 0.35rem 0.3rem;
}

.home-showcase-body strong {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.home-address,
.home-topic {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-height: 3.2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.home-event-chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding: 0.42rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(216, 180, 116, 0.1);
    color: var(--gold-strong);
    font-size: 0.84rem;
    font-weight: 900;
}

.home-discovery.is-loading .home-panel,
.home-discovery.is-loading .location-console {
    opacity: 0.68;
}

@media (max-width: 1000px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        min-height: auto;
    }

    .home-hero-copy h1 {
        max-width: 13ch;
    }
}

@media (max-width: 720px) {
    .home-discovery {
        padding-top: 1.4rem;
    }

    .home-hero-copy,
    .location-console,
    .home-panel {
        border-radius: 24px;
    }

    .home-hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.75rem, 14vw, 4.2rem);
    }

    .home-tabs {
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .home-tab {
        justify-content: space-between;
        padding-inline: 1rem;
    }
}

/* Premium home refinement */
.home-discovery {
    padding-top: clamp(1.6rem, 3.6vw, 3.2rem);
}

.home-premium-stage {
    position: relative;
    overflow: hidden;
    padding: clamp(0.85rem, 1.6vw, 1.25rem);
    margin-bottom: clamp(1.25rem, 3vw, 2.2rem);
    border: 1px solid var(--line-strong);
    border-radius: clamp(28px, 4vw, 46px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
        radial-gradient(circle at 12% 16%, rgba(243, 205, 130, 0.16), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(70, 111, 158, 0.18), transparent 30%),
        var(--panel-glass);
    box-shadow: var(--deep-shadow);
    backdrop-filter: blur(22px);
}

.home-premium-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.home-stage-glow {
    position: absolute;
    width: 34rem;
    height: 34rem;
    right: -12rem;
    top: -16rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(216, 180, 116, 0.2), transparent 67%);
    pointer-events: none;
}

.home-premium-stage .home-hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.64fr);
    align-items: stretch;
    margin-bottom: clamp(0.9rem, 1.8vw, 1.25rem);
}

.home-premium-stage .home-hero-copy,
.home-premium-stage .location-console {
    border-radius: clamp(24px, 3vw, 36px);
}

.home-premium-stage .home-hero-copy {
    min-height: clamp(440px, 48vw, 620px);
    padding: clamp(1.45rem, 4vw, 3.7rem);
    border-color: rgba(243, 205, 130, 0.26);
    background:
        linear-gradient(180deg, rgba(7, 9, 14, 0.1), rgba(7, 9, 14, 0.34)),
        radial-gradient(circle at 18% 18%, rgba(243, 205, 130, 0.22), transparent 27%),
        radial-gradient(circle at 72% 10%, rgba(80, 116, 158, 0.15), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.018)),
        var(--panel-glass);
}

.home-premium-stage .home-hero-copy h1 {
    max-width: 11.5ch;
    font-size: clamp(3.5rem, 7.7vw, 8rem);
}

.home-premium-stage .home-hero-copy p {
    max-width: 54ch;
    color: var(--muted);
}

.home-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0 0.2rem;
}

.home-hero-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.48rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.home-premium-stage .location-console {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.2rem, 2.7vw, 2.15rem);
    border-color: rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.026)),
        rgba(13, 16, 23, 0.66);
}

:root[data-theme="light"] .home-premium-stage .location-console {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
        var(--panel-glass);
}

.home-premium-stage .location-console h2 {
    max-width: 12ch;
    margin-bottom: 0.7rem;
    font-size: clamp(2.2rem, 3.2vw, 3.35rem);
}

.home-premium-stage .location-form {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-premium-stage .location-form .field {
    gap: 0.38rem;
}

.home-premium-stage .location-form label {
    color: var(--gold-strong);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-premium-stage .location-form select {
    min-height: 58px;
    border-radius: 18px;
    font-weight: 800;
}

.home-premium-stage .location-status {
    border-color: var(--line-strong);
    background:
        linear-gradient(135deg, rgba(216, 180, 116, 0.1), rgba(255, 255, 255, 0.025)),
        var(--surface-soft);
}

.home-premium-stage .home-tabs {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0.5rem;
    border-color: rgba(243, 205, 130, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.035);
}

.home-premium-stage .home-tab {
    min-height: 62px;
    font-size: 0.98rem;
}

.home-premium-stage .home-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
}

.home-premium-stage .home-tab.is-active {
    background:
        radial-gradient(circle at 12% 20%, rgba(243, 205, 130, 0.24), transparent 40%),
        linear-gradient(135deg, rgba(216, 180, 116, 0.24), rgba(255, 255, 255, 0.05));
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.18),
        var(--inner-line);
}

.home-results-container {
    margin-top: clamp(1rem, 2vw, 1.35rem);
}

.home-panel {
    border-color: rgba(255, 255, 255, 0.11);
}

.home-panel .section-header {
    padding: 0.35rem 0.2rem 1rem;
}

.home-panel .section-header h2 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.home-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 315px), 1fr));
}

.home-showcase-card {
    padding: 0.82rem;
    border-color: rgba(255, 255, 255, 0.105);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.022)),
        var(--panel-glass);
}

.home-showcase-card img {
    aspect-ratio: 1.45;
    border-radius: 26px;
}

.home-speaker-card {
    text-align: center;
}

.home-speaker-card img {
    width: min(176px, 58%);
    border: 1px solid var(--line-strong);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.home-showcase-body {
    padding: 1.05rem 0.45rem 0.45rem;
}

.home-showcase-body strong {
    font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

.home-event-chip {
    align-self: flex-start;
}

.home-speaker-card .home-event-chip {
    align-self: center;
}

@media (max-width: 1080px) {
    .home-premium-stage .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-premium-stage .home-hero-copy {
        min-height: clamp(390px, 58vw, 520px);
    }

    .home-premium-stage .home-hero-copy h1 {
        max-width: 13ch;
    }

    .home-premium-stage .location-console h2 {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .home-premium-stage {
        padding: 0.62rem;
        border-radius: 26px;
    }

    .home-stage-glow {
        width: 22rem;
        height: 22rem;
        right: -10rem;
        top: -8rem;
    }

    .home-premium-stage .home-hero-copy {
        min-height: auto;
        padding: 1.25rem;
    }

    .home-premium-stage .home-hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.9rem, 14vw, 4.45rem);
    }

    .home-hero-badges span {
        flex: 1 1 auto;
        justify-content: center;
    }

    .home-premium-stage .location-console {
        padding: 1rem;
    }

    .home-premium-stage .home-tabs {
        border-radius: 24px;
    }

    .home-premium-stage .home-tab {
        min-height: 56px;
    }

    .home-showcase-card {
        border-radius: 26px;
    }
}

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

    .inline-approval-form {
        flex-direction: column;
    }
}

/* Event discovery and management refinement */
:root {
    --event-teal: #65d6c4;
    --event-blue: #7fa9ff;
    --event-ink: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] {
    --event-teal: #0d8f82;
    --event-blue: #2f66b3;
    --event-ink: rgba(33, 25, 15, 0.7);
}

.event-discovery-page .container.stack {
    gap: 1.25rem;
}

.event-discovery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
    gap: 1rem;
    align-items: stretch;
}

.event-discovery-copy,
.event-feature-card,
.event-search-panel,
.event-results-toolbar,
.public-event-card,
.event-workspace-head,
.event-management-card,
.event-mini-form,
.event-upload-row {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0.024)),
        var(--panel-glass);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.event-discovery-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    padding: 1.5rem;
    border-radius: 28px;
}

.event-discovery-copy .page-title {
    max-width: 12ch;
    margin: 0;
    font-size: 4rem;
    line-height: 0.95;
}

.event-discovery-copy p {
    max-width: 62ch;
    color: var(--muted);
}

.event-hero-stats,
.event-summary-grid,
.event-filter-primary,
.event-filter-secondary,
.event-upload-fields {
    display: grid;
    gap: 0.8rem;
}

.event-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.2rem;
}

.event-hero-stats span,
.event-summary-tile {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.event-hero-stats strong,
.event-summary-tile strong {
    display: block;
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.event-hero-stats small,
.event-summary-tile span {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.event-feature-card {
    position: relative;
    display: block;
    min-height: 360px;
    overflow: hidden;
    border-radius: 28px;
    color: var(--text);
}

.event-feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 11, 0.06), rgba(5, 7, 11, 0.78));
    pointer-events: none;
}

.event-feature-overlay {
    position: absolute;
    inset: auto 1rem 1rem;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: end;
}

.event-feature-overlay > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.45rem;
}

.event-feature-overlay strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    line-height: 0.98;
}

.event-feature-overlay small {
    color: rgba(255, 255, 255, 0.78);
}

.event-feature-empty {
    display: grid;
    place-items: end start;
    padding: 1.25rem;
    background:
        linear-gradient(135deg, rgba(101, 214, 196, 0.12), rgba(127, 169, 255, 0.09)),
        var(--panel-glass);
}

.event-feature-empty::after {
    display: none;
}

.event-feature-empty strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    line-height: 1;
}

.event-search-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 24px;
}

.event-filter-primary {
    grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.7fr) minmax(220px, 1fr);
    align-items: end;
}

.event-filter-more {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-soft);
}

.event-filter-more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    list-style: none;
    cursor: pointer;
    color: var(--text);
    font-weight: 800;
}

.event-filter-more summary::-webkit-details-marker {
    display: none;
}

.event-filter-more summary small {
    color: var(--muted);
    font-weight: 700;
}

.event-filter-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 1rem 1rem;
}

.event-search-actions,
.event-card-actions,
.public-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.event-search-actions .btn {
    flex: 1 1 170px;
}

.event-results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 24px;
}

.event-results-toolbar h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
}

.active-filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.active-filter-list span,
.distance-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.84rem;
}

.active-filter-list strong {
    color: var(--text);
}

.public-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 1rem;
}

.public-event-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: 24px;
}

.public-event-media {
    position: relative;
    display: block;
    min-height: 220px;
    overflow: hidden;
}

.public-event-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.public-event-card:hover .public-event-media img {
    transform: scale(1.025);
}

.event-date-badge {
    width: 58px;
    min-height: 66px;
    display: inline-grid;
    place-items: center;
    align-content: center;
    gap: 0.1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(8, 10, 15, 0.74);
    color: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.public-event-media .event-date-badge {
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
}

.event-date-badge strong {
    font-size: 1.45rem;
    line-height: 1;
}

.event-date-badge small {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.public-event-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

.event-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: flex-start;
}

.public-event-body h3,
.event-management-card h3 {
    margin: 0;
    line-height: 1;
}

.public-event-body h3 {
    font-size: 2rem;
}

.public-event-body p,
.event-management-card p {
    margin: 0;
    color: var(--muted);
}

.event-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
}

.event-facts div {
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.event-facts dt {
    color: var(--gold-strong);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-facts dd {
    margin: 0.18rem 0 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.public-event-actions {
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.15rem;
}

.public-event-actions > span {
    min-width: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.event-workspace {
    gap: 1rem;
}

.event-workspace-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
    gap: 1rem;
    align-items: end;
    padding: 1.2rem;
    border-radius: 26px;
}

.event-workspace-title h2 {
    margin: 0;
    font-size: 2.6rem;
    line-height: 0.95;
}

.event-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-summary-tile {
    display: block;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.event-summary-tile:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background:
        linear-gradient(135deg, rgba(101, 214, 196, 0.1), rgba(216, 180, 116, 0.08)),
        var(--surface-soft);
}

.event-inbox-grid,
.event-board-list {
    display: grid;
    gap: 0.9rem;
}

.event-inbox-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.event-management-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 22px;
}

.event-management-card-priority {
    border-color: rgba(101, 214, 196, 0.28);
}

.event-card-header,
.event-form-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.event-card-header > div,
.event-form-heading > div {
    min-width: 0;
}

.event-card-id {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--event-teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.event-facts-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-action-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.55fr) minmax(240px, 1fr) minmax(240px, 1fr) auto;
    gap: 0.65rem;
    align-items: stretch;
}

.event-action-grid .btn,
.event-action-grid form,
.event-action-grid input {
    width: 100%;
}

.event-form-card {
    scroll-margin-top: 7.5rem;
}

.event-form-heading {
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--line);
}

.event-form-heading h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
}

.event-upload-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
}

.event-upload-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-board-section {
    scroll-margin-top: 7.5rem;
}

.event-card-actions {
    padding-top: 0.1rem;
}

.event-card-actions form {
    margin: 0;
}

.event-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 0.85rem;
}

.event-mini-form {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: 18px;
    box-shadow: none;
}

.event-mini-form textarea {
    min-height: 96px;
}

.event-mini-form .btn {
    width: 100%;
}

.event-image-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.event-image-strip figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.event-image-strip img {
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: cover;
}

.event-image-strip figcaption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.event-image-strip .btn {
    min-height: 34px;
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
}

@media (max-width: 1180px) {
    .event-discovery-hero,
    .event-workspace-head,
    .event-upload-row {
        grid-template-columns: 1fr;
    }

    .event-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .event-discovery-copy {
        min-height: auto;
    }

    .event-discovery-copy .page-title {
        max-width: 100%;
        font-size: 3rem;
    }

    .event-feature-card {
        min-height: 300px;
    }

    .event-filter-primary,
    .event-filter-secondary,
    .event-hero-stats,
    .event-facts,
    .event-facts-compact,
    .event-upload-fields {
        grid-template-columns: 1fr;
    }

    .event-results-toolbar,
    .event-card-header,
    .event-form-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .active-filter-list {
        justify-content: flex-start;
    }

    .event-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .event-discovery-copy,
    .event-feature-card,
    .event-search-panel,
    .event-results-toolbar,
    .public-event-card,
    .event-workspace-head,
    .event-management-card {
        border-radius: 20px;
    }

    .event-summary-grid {
        grid-template-columns: 1fr;
    }

    .public-event-actions,
    .event-card-actions,
    .event-search-actions {
        align-items: stretch;
    }

    .public-event-actions .btn,
    .event-card-actions .btn,
    .event-card-actions form,
    .event-search-actions .btn {
        width: 100%;
    }
}

/* Compact public cards for bars and speakers */
.home-card-grid,
.bar-directory-grid,
.speaker-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 200px));
    justify-content: start;
    gap: 0.9rem;
}

.home-showcase-card,
.bar-directory-card,
.speaker-directory-card {
    width: 200px;
    height: 200px;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)),
        var(--panel-glass);
    box-shadow: var(--soft-shadow);
}

.home-showcase-card,
.bar-directory-card {
    padding: 0.5rem;
}

.home-showcase-card img,
.bar-directory-thumb {
    width: 100%;
    height: 96px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 13px;
    border: 1px solid var(--line);
}

.home-showcase-body,
.bar-directory-body {
    gap: 0.35rem;
    padding: 0.55rem 0.1rem 0;
}

.home-showcase-body strong,
.bar-directory-body strong,
.speaker-directory-card h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-address,
.home-topic,
.bar-address {
    min-height: 0;
    max-height: 2.55rem;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.home-address span:nth-child(n+3),
.bar-address span:nth-child(n+3) {
    display: none;
}

.home-event-chip {
    margin-top: auto;
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
}

.home-speaker-card {
    text-align: center;
}

.home-speaker-card img {
    width: 82px;
    height: 82px;
    margin: 0.45rem auto 0;
    border-radius: 999px;
}

.home-speaker-card .home-showcase-body {
    align-items: center;
    padding-top: 0.45rem;
}

.home-speaker-card .home-topic {
    max-width: 100%;
    text-align: center;
}

.bar-directory-media {
    display: block;
    padding: 0;
}

.speaker-directory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem;
    text-align: center;
}

.speaker-directory-card .media-thumb {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 999px;
}

.speaker-directory-card .pill {
    max-width: 100%;
    min-height: 28px;
    padding: 0.24rem 0.48rem;
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.speaker-directory-card p,
.speaker-directory-card .meta-row {
    display: none;
}

.speaker-directory-card .actions-inline {
    width: 100%;
    margin-top: auto;
}

.speaker-directory-card .btn {
    width: 100%;
    min-height: 34px;
    padding: 0.42rem 0.55rem;
    font-size: 0.74rem;
}

@media (max-width: 520px) {
    .home-card-grid,
    .bar-directory-grid,
    .speaker-directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    }

    .home-showcase-card,
    .bar-directory-card,
    .speaker-directory-card {
        width: min(100%, 200px);
    }
}

/* Compact public event listing */
.event-discovery-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.event-discovery-copy {
    min-height: 260px;
}

.event-discovery-copy .page-title {
    font-size: 3.15rem;
}

.event-feature-card {
    min-height: 260px;
}

.event-feature-overlay strong {
    font-size: 1.45rem;
}

.event-feature-overlay .pill {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-event-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
    justify-content: start;
}

.public-event-card {
    min-height: 0;
    border-radius: 20px;
}

.public-event-media {
    min-height: 0;
    height: 145px;
}

.public-event-media img {
    height: 145px;
    aspect-ratio: auto;
}

.public-event-body {
    gap: 0.62rem;
    padding: 0.85rem;
}

.public-event-body h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.42rem;
    line-height: 1;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.public-event-body p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.public-event-body .pill,
.distance-chip {
    max-width: 100%;
    min-height: 28px;
    padding: 0.24rem 0.5rem;
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-event-body .event-facts {
    grid-template-columns: 1fr 1fr;
    gap: 0.48rem;
}

.public-event-body .event-facts div {
    padding: 0.52rem;
    border-radius: 12px;
}

.public-event-body .event-facts dt {
    font-size: 0.64rem;
}

.public-event-body .event-facts dd {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.22;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.public-event-actions {
    gap: 0.55rem;
}

.public-event-actions > span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.public-event-actions .btn {
    min-height: 34px;
    padding: 0.48rem 0.7rem;
    font-size: 0.78rem;
}

.public-event-media .event-date-badge,
.event-feature-overlay .event-date-badge {
    width: 48px;
    min-height: 54px;
    border-radius: 13px;
}

.event-date-badge strong {
    font-size: 1.18rem;
}

.event-date-badge small {
    font-size: 0.68rem;
}

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

    .event-discovery-copy,
    .event-feature-card {
        min-height: 220px;
    }

    .public-event-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    }
}

/* Public index: location/date event showcase */
:root[data-theme="light"] {
    --bg: #f7f9fc;
    --bg-soft: #eef3f8;
    --panel: rgba(255, 255, 255, 0.94);
    --panel-strong: #ffffff;
    --panel-glass: rgba(255, 255, 255, 0.9);
    --panel-glass-strong: rgba(255, 255, 255, 0.98);
    --line: rgba(23, 37, 54, 0.12);
    --line-strong: rgba(29, 111, 122, 0.24);
    --text: #17212f;
    --muted: #5d6b7c;
    --gold: #167d89;
    --gold-strong: #0d6270;
    --shadow: 0 22px 58px rgba(29, 55, 84, 0.12);
    --soft-shadow: 0 18px 44px rgba(29, 55, 84, 0.12);
    --body-gradient: linear-gradient(180deg, #fbfdff 0%, #eef4f8 100%);
    --header-bg: rgba(255, 255, 255, 0.88);
    --footer-bg: rgba(244, 248, 251, 0.96);
    --surface-soft: rgba(22, 125, 137, 0.06);
    --surface-strong: rgba(22, 125, 137, 0.1);
    --input-bg: #ffffff;
    --input-border: rgba(23, 37, 54, 0.16);
    --field-label: #243244;
    --secondary-btn-bg: rgba(23, 37, 54, 0.07);
    --ghost-btn-bg: rgba(23, 37, 54, 0.06);
    --outline-border: rgba(23, 37, 54, 0.16);
    --badge-bg: rgba(22, 125, 137, 0.1);
    --empty-bg: rgba(23, 37, 54, 0.03);
    --empty-border: rgba(23, 37, 54, 0.14);
}

.home-search-stage {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.home-search-copy {
    display: grid;
    gap: 0.35rem;
}

.home-search-copy h1 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 0.96;
}

.home-search-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.home-filter-bar {
    display: grid;
    grid-template-columns: minmax(170px, 0.9fr) minmax(190px, 1fr) minmax(150px, 0.7fr) auto;
    gap: 0.8rem;
    align-items: end;
}

.home-filter-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.home-filter-actions .btn {
    min-height: 50px;
    white-space: nowrap;
}

.home-results-container {
    margin-top: 1rem;
}

.home-panel {
    display: none;
}

.home-panel.is-active {
    display: block;
}

.home-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
}

.home-event-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--soft-shadow);
}

.home-event-media {
    position: relative;
    display: block;
    min-height: 180px;
    overflow: hidden;
    background: var(--surface-soft);
}

.home-event-media img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.home-event-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

.home-event-kicker {
    color: var(--gold-strong);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-event-body h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: 0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-event-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
}

.home-event-facts div {
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}

.home-event-facts dt {
    color: var(--gold-strong);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-event-facts dd {
    display: -webkit-box;
    margin: 0.16rem 0 0;
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-event-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.home-event-actions span {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-event-actions .btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
}

@media (max-width: 980px) {
    .home-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-filter-actions {
        grid-column: 1 / -1;
        align-items: stretch;
    }
}

@media (max-width: 620px) {
    .home-search-stage,
    .home-event-card {
        border-radius: 18px;
    }

    .home-filter-bar,
    .home-event-facts {
        grid-template-columns: 1fr;
    }

    .home-filter-actions,
    .home-event-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-event-actions .btn {
        width: 100%;
    }
}

/* Fixed global header */
:root {
    --fixed-header-space: 6.75rem;
}

html {
    scroll-padding-top: var(--fixed-header-space);
}

body {
    padding-top: var(--fixed-header-space);
}

.site-header {
    position: fixed;
    top: 0.8rem;
    left: 50%;
    z-index: 100;
    transform: translateX(-50%);
}

@media (max-width: 1080px) {
    :root {
        --fixed-header-space: 12rem;
    }
}

@media (max-width: 800px) {
    :root {
        --fixed-header-space: 14rem;
    }

    .site-header {
        top: 0.45rem;
    }
}
