body {
    background:
        radial-gradient(circle at top left, rgba(96, 239, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 72, 196, 0.15), transparent 24%),
        radial-gradient(circle at bottom center, rgba(168, 85, 247, 0.14), transparent 26%),
        #090b14;
    color: #f4f6fb;
    min-height: 100vh;
}

:root {
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --surface-card: var(--surface-bg);
    --shadow-card: 0 18px 45px rgba(0,0,0,.24);
}

html {
    scroll-behavior: smooth;
}

.site-nav {
    background: rgba(10, 14, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 14px;
    clip-path: inset(0 round 14px);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    color: #081018;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    box-shadow: 0 0 18px color-mix(in srgb, var(--theme-primary) 45%, transparent);
}

.brand-text {
    font-weight: 800;
    letter-spacing: .04em;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
}
.nav-link:hover {
    color: #fff !important;
}

.site-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.75rem 0 2.5rem;
    background: rgba(10, 14, 30, 0.6);
}

.navbar.sticky-top {
    position: fixed !important;
    top: 0 !important;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body {
    padding-top: 78px;
}

html {
    scroll-padding-top: 92px;
}

.footer-brand {
    font-weight: 700;
    color: #fff;
}

.footer-muted {
    color: rgba(255,255,255,0.6);
    font-size: .95rem;
}

.footer-credit {
    margin: .4rem 0 0;
    color: var(--text-muted);
    font-size: .82rem;
    letter-spacing: .01em;
}

.purple-heart {
    color: #b45cff;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(180, 92, 255, .45);
}

.footer-contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .85rem;
    max-width: 760px;
    margin-top: .45rem;
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.35;
}

.footer-legal,
.payment-legal-note {
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.footer-legal {
    margin-top: .35rem;
}

.payment-legal-note {
    padding-top: .65rem;
    border-top: 1px solid var(--border-soft);
}

.payment-legal-note span {
    display: block;
    margin-top: .2rem;
}

.business-legal-panel {
    border-style: dashed;
}

.branding-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 108px;
    padding: .75rem;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 44%),
        var(--surface-soft);
}

.branding-preview-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.branding-preview-logo {
    background:
        radial-gradient(circle at 35% 20%, rgba(255,255,255,.22), transparent 42%),
        rgba(11, 15, 24, .92);
}

.branding-preview-logo .branding-preview-img,
.branding-preview-secondary .branding-preview-img {
    max-height: 92px;
    width: auto;
    object-fit: contain;
}

.branding-preview-cover {
    min-height: 112px;
    padding: 0;
}

.branding-preview-cover .branding-preview-img {
    width: 100%;
    height: 112px;
    object-fit: cover;
}

.branding-preview-secondary {
    min-height: 108px;
}

[data-theme="light"] .branding-preview {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.74), transparent 44%),
        rgba(255,255,255,.78);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

[data-theme="light"] .branding-preview-logo {
    background: rgba(15, 23, 42, .06);
}

.about-chillok-card {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.about-chillok-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 0%, rgba(96,239,255,.12), transparent 32%),
        radial-gradient(circle at 96% 100%, rgba(255,72,196,.10), transparent 35%);
}

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

.about-chillok-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.35rem;
    align-items: center;
}

.about-chillok-copy {
    min-width: 0;
}

.about-chillok-card p {
    max-width: 72ch;
    margin: .65rem 0 0;
    color: var(--text-muted);
    font-size: clamp(1rem, 1vw, 1.08rem);
    line-height: 1.72;
}

.about-chillok-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    max-width: 220px;
    min-height: 96px;
    padding: .85rem;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 42%),
        var(--surface-soft);
    box-shadow: 0 18px 36px rgba(0,0,0,.16);
}

.about-chillok-accent img {
    display: block;
    max-width: 180px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

[data-theme="light"] .about-chillok-accent {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.72), transparent 44%),
        rgba(255,255,255,.86);
    box-shadow: 0 16px 34px rgba(19, 28, 45, .10);
}

@media (max-width: 768px) {
    .about-chillok-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-chillok-accent {
        width: 100%;
        min-height: 82px;
        max-width: 100%;
        justify-content: flex-start;
        padding: .75rem;
    }

    .about-chillok-accent img {
        max-width: 150px;
        max-height: 88px;
    }
}

[data-theme="light"] .purple-heart {
    color: #8b2cff;
    text-shadow: 0 0 10px rgba(139, 44, 255, .28);
}

.glass-panel,
.glass-card {
    background: rgba(15, 19, 36, 0.78);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.28),
        0 0 26px rgba(96, 239, 255, 0.04),
        0 0 32px rgba(255, 72, 196, 0.03);
    backdrop-filter: blur(16px);
}

.glass-panel.compact {
    border-radius: 18px;
}

.btn-neon,
.btn-outline-neon:hover {
    color: #07131d;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    border: none;
    box-shadow:
        0 0 20px color-mix(in srgb, var(--theme-primary) 45%, transparent),
        0 0 30px color-mix(in srgb, var(--theme-secondary) 25%, transparent);
}

.btn-outline-neon {
    color: var(--theme-primary);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 70%, transparent);
}

.text-neon {
    color: var(--theme-primary) !important;
    text-shadow: 0 0 10px color-mix(in srgb, var(--theme-primary) 35%, transparent);
}

.text-magenta {
    color: var(--theme-secondary) !important;
    text-shadow: 0 0 10px color-mix(in srgb, var(--theme-secondary) 28%, transparent);
}

.text-purple {
    color: var(--theme-accent) !important;
    text-shadow: 0 0 10px color-mix(in srgb, var(--theme-accent) 24%, transparent);
}

.badge-soft {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
}

.gateway-provider-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
}

.gateway-provider-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.gateway-provider-card {
    min-height: 150px;
    width: 100%;
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 10%, rgba(111, 232, 255, 0.12), transparent 40%),
        rgba(10, 15, 30, 0.7);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gateway-provider-card:hover,
.gateway-provider-card:focus {
    border-color: color-mix(in srgb, var(--theme-primary) 55%, transparent);
    box-shadow: 0 0 24px color-mix(in srgb, var(--theme-primary) 18%, transparent);
    transform: translateY(-1px);
    outline: none;
}

.gateway-provider-card.is-selected {
    border-color: color-mix(in srgb, var(--theme-primary) 80%, transparent);
    box-shadow:
        0 0 26px color-mix(in srgb, var(--theme-primary) 24%, transparent),
        inset 0 0 0 1px rgba(255,255,255,0.08);
}

.gateway-provider-title,
.gateway-provider-copy,
.gateway-provider-status {
    display: block;
}

.gateway-provider-title {
    font-weight: 800;
    color: #fff;
    margin-bottom: .45rem;
}

.gateway-provider-copy {
    color: rgba(255,255,255,0.68);
    font-size: .88rem;
    line-height: 1.35;
}

.gateway-provider-status {
    margin-top: .85rem;
    color: var(--theme-primary);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (max-width: 991.98px) {
    .gateway-provider-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .gateway-provider-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .gateway-provider-grid {
        grid-template-columns: 1fr;
    }
}

.section-overline {
    color: var(--theme-secondary);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .5rem;
    text-shadow: 0 0 12px color-mix(in srgb, var(--theme-secondary) 24%, transparent);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.section-title-sm {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.hero-shell {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    min-height: 420px;
    padding: 2.2rem;
    display: flex;
    align-items: stretch;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.32),
        0 0 30px rgba(96,239,255,0.06),
        0 0 45px rgba(255,72,196,0.06);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .25;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7,10,20,.94), rgba(13,18,38,.78));
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.hero-glow-a {
    width: 240px;
    height: 240px;
    left: -20px;
    top: 10px;
    background: var(--theme-primary);
}

.hero-glow-b {
    width: 260px;
    height: 260px;
    right: -30px;
    bottom: -10px;
    background: var(--theme-secondary);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.homepage-section {
    scroll-margin-top: 96px;
}

.homepage-hero-content {
    display: flex;
    align-items: center;
    min-height: 380px;
}

.homepage-hero-copy {
    width: min(100%, 840px);
}

.hero-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.5rem;
}

.hero-chip {
    display: inline-flex;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #dce8ff;
    font-size: .9rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.04;
    color: #fff;
    margin-top: 1rem;
    text-shadow:
        0 0 14px rgba(96,239,255,0.10),
        0 0 22px rgba(255,72,196,0.06);
}

.hero-text {
    max-width: 58ch;
    color: rgba(255,255,255,0.76);
    font-size: 1.05rem;
}

.hero-stats .stat-pill {
    min-width: 150px;
    padding: .9rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.02),
        0 0 18px rgba(96,239,255,0.04);
}

.stat-label {
    display:block;
    font-size:.78rem;
    color: rgba(255,255,255,0.58);
}

.stat-value {
    display:block;
    margin-top:.1rem;
    font-weight: 700;
    color: #fff;
}

.booking-quick-card {
    margin-top: 1.5rem;
}

.booking-center-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.25rem;
}

.booking-date-form {
    width: min(100%, 420px);
}

.room-command-card {
    position: relative;
}

.room-command-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 1.25rem;
    align-items: start;
}

.room-command-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.room-metric {
    min-height: 82px;
    padding: .8rem;
    border-radius: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

.room-metric span {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: .78rem;
}

.room-metric strong {
    display: block;
    margin-top: .2rem;
    color: #fff;
    font-size: 1rem;
}

.feature-banner {
    position: relative;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 18px 40px rgba(0,0,0,.25),
        0 0 22px rgba(255,72,196,.06);
}

.feature-banner__overlay {
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(7,10,20,.15), rgba(7,10,20,.78));
}

.feature-banner__content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem;
    z-index:1;
}

.feature-banner__content h3 {
    color:#fff;
    font-weight:800;
}

.feature-banner__content p {
    color: rgba(255,255,255,0.72);
}

.promo-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
}

.promo-card,
.promo-banner-card {
    position: relative;
}

.promo-code {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: .06em;
    color: #fff;
    text-shadow:
        0 0 18px color-mix(in srgb, var(--theme-secondary) 35%, transparent),
        0 0 24px color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

.room-card__image {
    height: 210px;
    background-size: cover;
    background-position: center;
}

.room-price-box {
    min-width: 180px;
}

.room-meta {
    display:flex;
    gap:.65rem;
    flex-wrap:wrap;
}

.meta-pill {
    padding: .45rem .8rem;
    border-radius: 999px;
    font-size: .85rem;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.05);
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: .85rem;
}

.slot {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 700;
    color:#fff;
    background: rgba(255,255,255,0.04);
    transition: .18s ease;
}

.slot-available {
    background: linear-gradient(135deg, rgba(96,239,255,0.18), rgba(255,72,196,0.12));
    border-color: rgba(96,239,255,0.25);
    box-shadow:
        0 0 14px rgba(96,239,255,0.08),
        0 0 22px rgba(255,72,196,0.04);
}

.slot-available:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 18px rgba(96,239,255,0.14),
        0 0 26px rgba(255,72,196,0.08);
}

.slot-booked {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.42);
    text-decoration: line-through;
}

.auth-shell {
    min-height: calc(100vh - 220px);
    display:flex;
    align-items:center;
    justify-content:center;
}

.auth-card {
    width:100%;
    max-width: 640px;
    padding: 2rem;
}

.auth-title {
    color:#fff;
    font-weight: 800;
}

.form-control,
.form-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 14px;
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255,255,255,0.08);
    color:#fff;
    border-color: color-mix(in srgb, var(--theme-primary) 65%, transparent);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--theme-primary) 14%, transparent);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-label {
    color: rgba(255,255,255,0.78);
    font-size: .92rem;
}

.avatar-lg {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

.avatar-fallback {
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
    font-weight:800;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
    color:#081018;
}

.booking-summary-card {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-tabs .nav-link {
    border-radius: 999px;
    padding: .55rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}

.admin-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(96,239,255,0.18), rgba(255,72,196,0.18));
    border-color: rgba(255,255,255,0.18);
    color: #fff !important;
    box-shadow:
        0 0 14px rgba(96,239,255,0.10),
        0 0 22px rgba(255,72,196,0.08);
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    --bs-table-hover-bg: rgba(255,255,255,0.04);
    color: #e9efff;
}

.alert {
    border-radius: 18px;
}

@media (max-width: 768px) {
    .hero-shell {
        padding: 1.25rem;
        min-height: auto;
    }

    .auth-card {
        padding: 1.35rem;
    }

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

/* Phase 6C.4 immersive landing and editorial refinement */
.hero-shell {
    isolation: isolate;
}

.hero-glow-cyan,
.hero-glow-magenta {
    width: 340px;
    height: 340px;
    opacity: .16;
    animation: floatGlow 13s ease-in-out infinite alternate;
}

.hero-glow-cyan {
    left: 18%;
    bottom: -120px;
    background: radial-gradient(circle, rgba(96,239,255,.82), rgba(96,239,255,0) 70%);
}

.hero-glow-magenta {
    top: -130px;
    right: 18%;
    background: radial-gradient(circle, rgba(255,72,196,.74), rgba(255,72,196,0) 70%);
    animation-duration: 15s;
    animation-delay: -4s;
}

@keyframes floatGlow {
    from { transform: translate3d(0, 0, 0) scale(.98); }
    to { transform: translate3d(18px, -16px, 0) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-glow-cyan,
    .hero-glow-magenta {
        animation: none;
    }
}

.quick-stats-dock {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .45rem;
    width: fit-content;
    max-width: 100%;
    margin-top: 1.1rem;
    padding: .45rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045)),
        rgba(7,10,20,.34);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 18px 48px rgba(0,0,0,.22);
    backdrop-filter: blur(16px);
}

.quick-stats-dock .stat-pill {
    min-width: 136px;
    padding: .72rem .85rem;
    border-radius: 16px;
    background: rgba(255,255,255,.075);
    box-shadow: none;
}

.quick-stats-dock .stat-label {
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.quick-stats-dock .stat-value {
    font-size: .98rem;
}

.editorial-detail-card {
    color: var(--text-main);
}

.editorial-body-container {
    max-width: 72ch;
    margin-right: auto;
    margin-left: auto;
    text-align: left !important;
    color: var(--text-main);
    font-size: clamp(1rem, .98rem + .25vw, 1.1rem);
    font-weight: 400;
    line-height: 1.72;
}

.editorial-body-container p {
    margin-bottom: 1.45rem;
}

.editorial-body-container h3,
.editorial-body-container h4 {
    margin-top: 2rem;
    margin-bottom: .8rem;
    color: var(--text-main);
    line-height: 1.22;
}

.editorial-back-link {
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.editorial-back-link:hover,
.editorial-back-link:focus {
    transform: translateX(-4px);
}

.event-detail-image-frame {
    border-radius: 24px 24px 0 0;
    border-right: 0;
    border-left: 0;
    border-top: 0;
}

.event-detail-image-frame .event-detail-image {
    border-radius: 0;
    box-shadow: none;
}

.story-detail-media-frame {
    border-radius: 24px 24px 0 0;
    border-right: 0;
    border-left: 0;
    border-top: 0;
}

.story-detail-media-frame .story-detail-hero {
    border-radius: 0;
}

.songbook-table td,
.songbook-table th {
    padding: .875rem 1rem;
}

.songbook-table th:last-child,
.songbook-table td:last-child {
    padding-right: 1.15rem;
}

[data-theme="light"] .hero-glow-cyan,
[data-theme="light"] .hero-glow-magenta {
    opacity: .08;
    filter: blur(72px);
}

[data-theme="light"] .quick-stats-dock {
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
        rgba(255,255,255,.72);
    border-color: rgba(15,23,42,.12);
    box-shadow: 0 18px 42px rgba(15,23,42,.10);
}

[data-theme="light"] .quick-stats-dock .stat-pill {
    background: rgba(15,23,42,.04);
    border-color: rgba(15,23,42,.08);
}

[data-theme="light"] .editorial-detail-card,
[data-theme="light"] .editorial-body-container,
[data-theme="light"] .editorial-body-container h3,
[data-theme="light"] .editorial-body-container h4 {
    color: var(--text-main) !important;
}

[data-theme="light"] .editorial-body-container {
    text-shadow: none;
}

@media (max-width: 768px) {
    .hero-shell {
        min-height: auto;
        padding: 1.1rem;
        border-radius: 24px;
    }

    .homepage-hero-content {
        min-height: 0;
        padding: 1.1rem .15rem;
    }

    .hero-title {
        font-size: clamp(2.05rem, 12vw, 3.05rem);
        line-height: 1.03;
    }

    .hero-text {
        font-size: .98rem;
        margin-bottom: 0;
    }

    .quick-stats-dock {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        margin-top: .9rem;
        padding: .35rem;
        border-radius: 18px;
    }

    .quick-stats-dock .stat-pill {
        min-width: 0;
        padding: .58rem .5rem;
        border-radius: 14px;
    }

    .quick-stats-dock .stat-label {
        font-size: .64rem;
    }

    .quick-stats-dock .stat-value {
        font-size: .9rem;
    }

    .hero-action-row {
        margin-top: 1rem;
    }

    .hero-action-row .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .editorial-body-container {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.68;
    }

    .editorial-body-container p {
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 430px) {
    .quick-stats-dock {
        gap: .32rem;
    }

    .quick-stats-dock .stat-pill {
        padding: .5rem .4rem;
    }
}

/* Phase 6C.5 premium content hub and navigation polish */
.logo-wrap,
.brand-logo-frame,
.brand-logo-surface {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 20px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.logo-wrap img,
.brand-logo-frame img,
.brand-logo-surface img,
.brand-logo-img {
    display: block;
    object-fit: contain;
    border-radius: 17px !important;
    clip-path: inset(0 round 17px);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.logo-wrap::before,
.brand-logo-frame::before,
.brand-logo-surface::before {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: -1;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 35% 20%, rgba(111,232,255,.22), rgba(111,232,255,.10) 42%, transparent 74%),
        radial-gradient(ellipse at 80% 75%, rgba(255,79,216,.14), transparent 62%);
    filter: blur(1px);
}

.live-now-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(96,239,255,.12), rgba(255,72,196,.08)),
        rgba(13,19,38,.72);
    box-shadow: 0 18px 48px rgba(0,0,0,.22);
    backdrop-filter: blur(16px);
}

.live-now-label {
    flex: 0 0 auto;
    color: var(--theme-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.live-now-main {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    flex: 1 1 auto;
}

.live-now-main h2 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.2;
}

.live-now-meta {
    color: var(--text-muted);
    font-size: .85rem;
}

.content-type-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: .28rem .58rem;
    border: 1px solid color-mix(in srgb, var(--theme-primary) 48%, transparent);
    border-radius: 999px;
    color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hub-section > .row.g-4 {
    display: none;
}

.premium-content-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.premium-content-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 8%, rgba(96,239,255,.08), transparent 35%),
        rgba(13,19,38,.76);
    box-shadow: 0 20px 52px rgba(0,0,0,.22);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.premium-content-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--theme-primary) 36%, rgba(255,255,255,.1));
    box-shadow: 0 26px 68px rgba(0,0,0,.28);
}

.premium-content-card--featured {
    grid-column: span 2;
}

.premium-content-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}

.premium-content-media--placeholder {
    background:
        radial-gradient(circle at 25% 18%, rgba(96,239,255,.20), transparent 38%),
        radial-gradient(circle at 80% 85%, rgba(255,72,196,.18), transparent 44%),
        rgba(255,255,255,.055);
}

.premium-content-media--placeholder span {
    color: var(--text-main);
    font-weight: 800;
}

.premium-content-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .65rem;
    padding: 1rem;
}

.premium-content-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    color: var(--text-muted);
    font-size: .78rem;
}

.premium-content-card h3,
.cms-list-card.premium-content-card h2 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    line-height: 1.22;
}

.premium-content-actions {
    margin-top: auto;
    padding-top: .25rem;
}

.hub-view-links {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1rem;
}

.hub-view-links a {
    color: var(--theme-primary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
}

.editorial-detail-card {
    position: relative;
    overflow: hidden;
}

.editorial-detail-card > *:not(.detail-backdrop) {
    position: relative;
    z-index: 1;
}

.detail-backdrop {
    position: absolute;
    inset: -8% -6% auto -6%;
    height: 280px;
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    filter: blur(38px) saturate(1.08);
    opacity: .15;
    transform: scale(1.08);
    mask-image: linear-gradient(180deg, black 0%, transparent 86%);
}

.content-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: .82rem;
}

.content-breadcrumb a {
    color: var(--theme-primary);
    text-decoration: none;
}

.content-breadcrumb a:hover {
    text-decoration: underline;
}

.back-nav-btn,
.editorial-back-link {
    will-change: transform;
}

[data-theme="light"] .logo-wrap::before,
[data-theme="light"] .brand-logo-frame::before,
[data-theme="light"] .brand-logo-surface::before {
    background:
        radial-gradient(ellipse at 35% 20%, rgba(255,255,255,1), rgba(255,255,255,.82) 48%, transparent 76%),
        radial-gradient(ellipse at 85% 80%, rgba(0,127,156,.12), transparent 62%);
}

[data-theme="light"] .live-now-ribbon,
[data-theme="light"] .premium-content-card {
    background: rgba(255,255,255,.92);
    border-color: rgba(15,23,42,.12);
    box-shadow: 0 18px 42px rgba(15,23,42,.09);
}

[data-theme="light"] .premium-content-card:hover {
    border-color: rgba(0,127,156,.24);
    box-shadow: 0 24px 54px rgba(15,23,42,.12);
}

[data-theme="light"] .premium-content-media--placeholder {
    background:
        radial-gradient(circle at 20% 15%, rgba(0,127,156,.10), transparent 42%),
        radial-gradient(circle at 85% 85%, rgba(139,44,255,.10), transparent 46%),
        rgba(15,23,42,.035);
}

[data-theme="light"] .detail-backdrop {
    opacity: .08;
}

@media (max-width: 991px) {
    .premium-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .live-now-ribbon {
        align-items: stretch;
        flex-direction: column;
        gap: .75rem;
    }

    .live-now-main {
        align-items: flex-start;
        flex-direction: column;
        gap: .55rem;
    }

    .premium-content-grid {
        grid-template-columns: 1fr;
    }

    .premium-content-card--featured {
        grid-column: auto;
    }

    .premium-content-body {
        padding: .95rem;
    }

    .premium-content-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }
}
/* Phase 4E UI/UX hardening */
.form-select,
.form-select:focus {
    color: #f8fbff !important;
    background-color: rgba(24, 29, 51, 0.94) !important;
}

.form-select option,
.form-select optgroup {
    background: #151a2e !important;
    color: #f8fbff !important;
}

.form-select option:checked,
.form-select option:hover,
.form-select option:focus {
    background: color-mix(in srgb, var(--theme-primary) 34%, #151a2e) !important;
    color: #ffffff !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.3);
    opacity: .85;
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.admin-tabs {
    position: sticky;
    top: 74px;
    z-index: 10;
    padding: .55rem;
    margin-left: -.55rem;
    margin-right: -.55rem;
    background: rgba(8, 11, 24, .78);
    border-radius: 22px;
    backdrop-filter: blur(14px);
}

.admin-nav-shell {
    position: sticky;
    top: 74px;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
    padding: .75rem;
    background: rgba(8, 11, 24, .78);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 22px;
    backdrop-filter: blur(14px);
}

.admin-nav-group {
    min-width: 0;
}

.admin-nav-shell .admin-tabs {
    position: static;
    top: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
}

.admin-tabs .nav-link {
    cursor: pointer;
}

.admin-panel-hidden {
    display: none !important;
}

.admin-panel-active {
    display: block !important;
}

.admin-nav-label {
    color: rgba(255,255,255,.52);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 .35rem .2rem;
}

/* Phase 6C.2 admin light mode and event UX polish */
.event-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.event-list-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.event-card-media,
.event-card-thumb,
.event-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    overflow: hidden;
}

.event-card-placeholder {
    background:
        radial-gradient(circle at 22% 20%, color-mix(in srgb, var(--theme-primary) 28%, transparent), transparent 36%),
        linear-gradient(135deg, rgba(111,232,255,.15), rgba(255,79,216,.16)),
        rgba(255,255,255,.05);
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .55rem;
    padding: 1.15rem;
}

.event-date-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .32rem .65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-primary) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 24%, transparent);
    color: var(--theme-primary);
    font-size: .76rem;
    font-weight: 800;
}

.event-card-title,
.event-detail-title {
    color: #fff;
    font-weight: 850;
    line-height: 1.12;
}

.event-card-title {
    margin: 0;
    font-size: 1.12rem;
}

.event-card-text {
    color: rgba(255,255,255,.72);
    line-height: 1.62;
    margin: 0 0 .45rem;
}

.event-card-body .btn {
    align-self: flex-start;
    margin-top: auto;
}

.event-detail-shell {
    max-width: 980px;
    margin: 0 auto 4rem;
}

.event-detail-card {
    border-radius: 24px;
}

.event-detail-image {
    max-height: 520px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.event-detail-body {
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.event-detail-title {
    max-width: 820px;
    margin: .15rem 0 .7rem;
    font-size: clamp(2rem, 5vw, 4rem);
}

.event-detail-meta {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 1.35rem;
}

.event-detail-text {
    max-width: 760px;
    color: var(--text-main);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    font-weight: 400;
    line-height: 1.72;
    text-align: left;
}

[data-theme="light"] .text-neon:first-child,
[data-theme="light"] h2.text-neon,
[data-theme="light"] h5.text-neon,
[data-theme="light"] .admin-section-heading h4,
[data-theme="light"] .admin-panel-active h4,
[data-theme="light"] .admin-panel-active h5 {
    color: var(--text-main) !important;
    text-shadow: none !important;
}

[data-theme="light"] .admin-nav-shell,
[data-theme="light"] .admin-tabs {
    background: rgba(255,255,255,.88) !important;
    border-color: rgba(15,23,42,.12) !important;
    box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

[data-theme="light"] .admin-nav-label {
    color: rgba(31,41,55,.68);
}

[data-theme="light"] .admin-tabs .nav-link {
    color: var(--text-main) !important;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(15,23,42,.035);
}

[data-theme="light"] .admin-tabs .nav-link.active {
    color: #06121c !important;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(0,127,156,.14);
}

[data-theme="light"] .admin-panel-active .glass-panel,
[data-theme="light"] .admin-panel-active .table-responsive {
    border-color: rgba(15,23,42,.12) !important;
}

[data-theme="light"] .table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-border-color: rgba(15,23,42,.10);
    --bs-table-striped-bg: rgba(15,23,42,.025);
    --bs-table-hover-bg: rgba(0,127,156,.055);
}

[data-theme="light"] .table-dark,
[data-theme="light"] .table-dark td,
[data-theme="light"] .table-dark th {
    border-color: rgba(15,23,42,.10) !important;
}

[data-theme="light"] .event-list-card,
[data-theme="light"] .event-detail-card {
    background: var(--surface-card) !important;
    border-color: rgba(15,23,42,.12) !important;
    box-shadow: var(--shadow-card) !important;
}

[data-theme="light"] .event-card-title,
[data-theme="light"] .event-detail-title {
    color: var(--text-main) !important;
    text-shadow: none !important;
}

[data-theme="light"] .event-card-text,
[data-theme="light"] .event-detail-text,
[data-theme="light"] .event-detail-meta {
    color: var(--text-muted) !important;
}

[data-theme="light"] .event-card-placeholder {
    background:
        radial-gradient(circle at 22% 20%, rgba(0,127,156,.12), transparent 36%),
        linear-gradient(135deg, rgba(0,127,156,.10), rgba(176,24,143,.10)),
        rgba(255,255,255,.72);
    color: #075766;
}

.glass-modal {
    color: #f8fbff;
    background:
        linear-gradient(180deg, rgba(18, 23, 42, .96), rgba(9, 13, 28, .98)),
        rgba(10, 14, 28, .96);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.admin-modal-open {
    display: block !important;
    background: rgba(0,0,0,.58);
}

.admin-modal-open .modal-dialog {
    pointer-events: auto;
}

body.admin-modal-lock {
    overflow: hidden;
}

.booking-modal-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.booking-modal-summary div {
    padding: .75rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.04);
}

.booking-modal-summary span,
.empty-state-text {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: .84rem;
}

.booking-modal-summary strong,
.empty-state-title {
    display: block;
    color: #fff;
    font-weight: 800;
}

.empty-state-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(111,232,255,.10);
    color: var(--theme-primary);
    margin-bottom: .45rem;
}

.table-responsive {
    border-radius: 18px;
}

.table td,
.table th {
    vertical-align: middle;
}

.btn-outline-danger {
    border-color: rgba(255, 108, 132, .6);
    color: #ffb4c0;
    background: rgba(255, 76, 110, .04);
}

.btn-outline-danger:hover {
    border-color: rgba(255, 108, 132, .95);
    color: #26040b;
    background: #ff9aad;
}

.update-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.update-item {
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.update-item:last-child {
    border-bottom: 0;
}

.cms-card-thumb {
    display: block;
    width: 100%;
    height: 142px;
    object-fit: cover;
    border-radius: 10px;
}

.hub-section .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hub-section .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
}

.hub-section .glass-panel {
    border-radius: 22px;
}

.hub-card-actions {
    padding-top: .35rem;
}

.hub-section .btn {
    white-space: nowrap;
}

/* Phase 6B.4 Hub CTA alignment polish */
.hub-section .update-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    min-height: 100%;
}

.hub-section .update-item {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-height: 0;
}

.hub-section .update-item .small.text-secondary,
.hub-section .story-preview-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-section .update-item .small.text-secondary {
    -webkit-line-clamp: 3;
}

.hub-section .story-preview-text {
    -webkit-line-clamp: 4;
    margin-bottom: 1rem;
}

.hub-section .cms-card-thumb,
.hub-section .story-preview-media {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 132px;
}

.hub-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: auto;
    padding-top: .9rem;
}

.hub-card-actions .btn,
.hub-section .update-card > .btn,
.story-card-actions .btn {
    margin-top: 0 !important;
}

.hub-section .update-card > .btn:first-of-type,
.story-card-actions {
    margin-top: auto !important;
    align-self: flex-start;
}

.story-preview-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.story-preview-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.story-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding-top: .95rem;
    padding-bottom: .25rem;
}

/* Phase 6B.5 final public content polish */
.hub-section .update-card {
    padding-bottom: 1.35rem !important;
}

.hub-section .story-preview-card {
    margin-bottom: .1rem;
}

.hub-section .story-preview-body {
    padding: 0 .9rem 1.05rem;
}

.hub-section .story-card-actions .btn {
    min-height: 40px;
}

.hub-section .hub-card-actions {
    padding-bottom: .1rem;
}

.article-detail-card .content-prose,
.story-detail-card .content-prose {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: 0;
}

.article-detail-card .content-prose,
.article-detail-card .content-prose p,
.story-detail-card .content-prose,
.story-detail-card .content-prose p {
    text-align: left;
}

.article-detail-card .content-prose p,
.story-detail-card .content-prose p {
    margin-bottom: 1.2em;
}

.article-detail-card h1,
.story-detail-title {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.cms-list-card {
    border-radius: 8px;
}

.cms-list-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
}

.cms-detail-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

.cms-text-content {
    line-height: 1.8;
    white-space: pre-wrap;
    color: rgba(255,255,255,.86);
}

.cms-video,
.cms-embed {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;
}

.notification-feed-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.notification-feed-item:last-child {
    border-bottom: 0;
}

.story-preview-card,
.profile-story-card {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.04);
    overflow: hidden;
}

.story-preview-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: .9rem;
}

.story-preview-title {
    color: #fff;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: .25rem;
}

.story-preview-text,
.story-body-text {
    color: rgba(255,255,255,.74);
    line-height: 1.7;
    white-space: pre-wrap;
}

.story-preview-text {
    font-size: .9rem;
    margin-bottom: .35rem;
}

.story-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .25rem .6rem;
    border: 1px solid rgba(111,232,255,.28);
    border-radius: 999px;
    background: rgba(111,232,255,.10);
    color: var(--theme-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.story-detail-shell {
    max-width: 980px;
    margin: 0 auto 4rem;
}

.story-detail-card {
    border-radius: 24px;
}

.story-detail-hero {
    min-height: clamp(260px, 42vw, 520px);
    background-size: cover;
    background-position: center;
}

.story-detail-title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.02;
    margin-bottom: 1rem;
}

.story-detail-text {
    font-size: 1.05rem;
}

.empty-state {
    border: 1px dashed rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.03);
}

.song-search {
    min-width: min(100%, 420px);
}

.songbook-table tbody tr:hover td {
    color: #fff;
}

.song-player-shell {
    max-width: 980px;
    margin: 0 auto 4rem;
}

.local-media-player {
    width: 100%;
    max-height: 68vh;
    border-radius: 8px;
    background: #000;
    border: 1px solid rgba(255,255,255,.12);
}

.song-lyrics {
    color: rgba(255,255,255,.82);
    line-height: 1.8;
    white-space: pre-wrap;
}

.song-queue-room-select {
    width: auto;
    min-height: 34px;
    max-width: 180px;
}

.player-panel {
    min-height: 420px;
}

.player-queue-list {
    display: grid;
    gap: .85rem;
}

.player-queue-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    padding: .9rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
}

.player-queue-position {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(111,232,255,.12);
    color: var(--theme-primary);
    font-weight: 800;
}

.song-request-list {
    display: grid;
    gap: .75rem;
}

.song-request-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
}

.request-reject-form {
    align-items: center;
    gap: .35rem;
}

.request-reject-form .form-control {
    width: min(220px, 100%);
    min-height: 34px;
}

.room-display-shell {
    min-height: calc(100vh - 150px);
    display: grid;
    gap: 1.2rem;
    padding-bottom: 2rem;
}

.room-display-hero,
.room-display-request,
.room-display-card,
.room-display-now,
.room-display-empty {
    background: rgba(15, 19, 36, .78);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,.32), 0 0 34px rgba(111,232,255,.05);
    backdrop-filter: blur(16px);
}

.room-display-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
}

.room-display-brand {
    color: #fff;
    font-weight: 900;
    letter-spacing: .08em;
    font-size: clamp(1.2rem, 2.4vw, 2.2rem);
}

.display-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 64px;
    padding: .55rem 1rem;
    border: 1px solid rgba(111,232,255,.24);
    border-radius: 18px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,.22), transparent 42%),
        rgba(255,255,255,.09);
    box-shadow:
        0 0 28px rgba(111,232,255,.16),
        0 0 34px rgba(255,79,216,.10),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.display-logo-img {
    color: #fff;
    font-size: clamp(1.35rem, 2.8vw, 2.5rem);
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-shadow:
        0 0 14px rgba(111,232,255,.32),
        0 0 20px rgba(255,79,216,.18);
}

.room-display-room {
    color: rgba(255,255,255,.68);
    font-size: clamp(.9rem, 1.4vw, 1.2rem);
}

.room-display-live {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem .9rem;
    border-radius: 999px;
    color: var(--theme-primary);
    background: rgba(111,232,255,.10);
    border: 1px solid rgba(111,232,255,.25);
    font-weight: 800;
}

.room-display-live span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--theme-primary);
    box-shadow: 0 0 16px var(--theme-primary);
}

.room-display-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .8fr);
    gap: 1.2rem;
    align-items: stretch;
}

.room-display-now {
    min-height: 52vh;
    padding: clamp(1.4rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-display-now h1,
.room-display-empty h1 {
    color: #fff;
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: .96;
    margin: .4rem 0 1rem;
    text-shadow: 0 0 24px rgba(111,232,255,.16), 0 0 34px rgba(255,79,216,.10);
}

.room-display-artist {
    color: rgba(255,255,255,.74);
    font-size: clamp(1.25rem, 3vw, 2.5rem);
}

.room-display-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.5rem;
}

.room-display-tags span {
    padding: .5rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.84);
    font-weight: 700;
}

.room-display-side {
    display: grid;
    gap: 1.2rem;
}

.room-display-card,
.room-display-request,
.room-display-empty {
    padding: 1.2rem;
}

.room-display-list {
    display: grid;
    gap: .75rem;
}

.room-display-list-item {
    padding: .75rem;
    border-radius: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
}

.room-display-list-item strong,
.room-display-list-item span {
    display: block;
}

.room-display-list-item strong {
    color: #fff;
    font-size: 1.05rem;
}

.room-display-list-item span,
.room-display-muted {
    color: rgba(255,255,255,.62);
}

.room-display-request {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.room-display-request h2 {
    color: #fff;
    margin: 0 0 .3rem;
}

.room-display-request p {
    color: rgba(255,255,255,.68);
    margin: 0;
}

.room-display-request-box {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: min(100%, 360px);
}

.room-display-qr {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #06121c;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    font-weight: 900;
    font-size: 1.5rem;
}

.room-display-url {
    color: #fff;
    font-weight: 800;
    word-break: break-word;
}

.room-display-empty {
    text-align: center;
}

@media (max-width: 991px) {
    .event-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-center-head,
    .room-command-top {
        grid-template-columns: 1fr;
        display: grid;
    }

    .booking-date-form {
        width: 100%;
    }

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

    .admin-tabs {
        position: static;
        padding: 0;
        background: transparent;
    }

    .admin-nav-shell {
        position: static;
        grid-template-columns: 1fr;
    }

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

    .room-display-grid,
    .room-display-request {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 576px) {
    .homepage-hero-content {
        min-height: auto;
    }

    .hero-action-row .btn,
    .booking-date-form .btn {
        width: 100%;
    }

    .booking-date-form .d-flex {
        flex-direction: column;
    }

    .room-command-metrics,
    .hub-section .row {
        grid-template-columns: 1fr;
    }

    .song-search {
        width: 100%;
        flex-direction: column;
    }

    .song-search .btn {
        width: 100%;
    }

    .song-queue-room-select {
        width: 100%;
        max-width: none;
    }

    .player-queue-item {
        grid-template-columns: 1fr;
    }

    .song-request-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-reject-form,
    .request-reject-form .form-control {
        width: 100%;
    }

    .display-logo-wrap {
        min-width: 140px;
        min-height: 52px;
    }
}


/* Phase 5A.2 admin interaction contract hardening */
.tab-content > .admin-tab-panel,
.tab-content > .tab-pane {
    display: none;
}

.tab-content > .admin-tab-panel.admin-panel-active,
.tab-content > .admin-tab-panel.show.active,
.tab-content > .tab-pane.admin-panel-active,
.tab-content > .tab-pane.show.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.tab-content > .admin-tab-panel.admin-panel-hidden,
.tab-content > .tab-pane.admin-panel-hidden,
[data-admin-panel].admin-panel-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.admin-nav-shell [data-admin-tab] {
    cursor: pointer;
    user-select: none;
}

.admin-nav-shell [data-admin-tab].active {
    box-shadow: 0 0 0 1px rgba(111,232,255,.25), 0 0 24px rgba(255,79,216,.22);
}

.modal[hidden],
.modal.admin-modal-hidden {
    display: none !important;
}

.modal.admin-modal-open {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: block !important;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(10px);
    opacity: 1 !important;
    visibility: visible !important;
}

.modal.admin-modal-open .modal-dialog {
    transform: none !important;
    pointer-events: auto;
}

.modal .btn-close,
.modal [data-modal-close] {
    cursor: pointer;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

.admin-actions form {
    display: inline-flex;
}

/* Phase 6B.1 light-mode contrast repair. Dark mode keeps the existing neon/glass styling. */
[data-theme="light"] body {
    color: var(--text-main);
}

[data-theme="light"] .glass-panel,
[data-theme="light"] .glass-card,
[data-theme="light"] .story-preview-card,
[data-theme="light"] .profile-story-card,
[data-theme="light"] .room-display-hero,
[data-theme="light"] .room-display-request,
[data-theme="light"] .room-display-card,
[data-theme="light"] .room-display-now,
[data-theme="light"] .room-display-empty,
[data-theme="light"] .player-queue-item,
[data-theme="light"] .song-request-item,
[data-theme="light"] .update-item,
[data-theme="light"] .empty-state,
[data-theme="light"] .gateway-provider-summary,
[data-theme="light"] .gateway-provider-card,
[data-theme="light"] .room-metric,
[data-theme="light"] .hero-stats .stat-pill,
[data-theme="light"] .booking-modal-summary div {
    background: var(--surface-bg);
    border-color: var(--border-soft);
    color: var(--text-main);
}

[data-theme="light"] .hero-shell {
    color: #f8fbff;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-chip,
[data-theme="light"] .hero-text,
[data-theme="light"] .hero-stats .stat-label,
[data-theme="light"] .hero-stats .stat-value {
    color: #f8fbff;
}

[data-theme="light"] .section-title,
[data-theme="light"] .section-title-sm,
[data-theme="light"] .auth-title,
[data-theme="light"] .story-preview-title,
[data-theme="light"] .story-detail-title,
[data-theme="light"] .room-display-now h1,
[data-theme="light"] .room-display-empty h1,
[data-theme="light"] .room-display-list-item strong,
[data-theme="light"] .room-display-request h2,
[data-theme="light"] .room-display-url,
[data-theme="light"] .footer-brand,
[data-theme="light"] .update-item .fw-semibold,
[data-theme="light"] .promo-code,
[data-theme="light"] .room-metric strong,
[data-theme="light"] .booking-modal-summary strong,
[data-theme="light"] .empty-state-title,
[data-theme="light"] .gateway-provider-title,
[data-theme="light"] .notification-feed-item .text-white,
[data-theme="light"] .player-queue-item .text-white,
[data-theme="light"] .song-request-item .text-white,
[data-theme="light"] .songbook-table .text-white,
[data-theme="light"] .table .text-white {
    color: var(--text-main) !important;
    text-shadow: none;
}

[data-theme="light"] .text-secondary,
[data-theme="light"] .small.text-secondary,
[data-theme="light"] .footer-muted,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-credit,
[data-theme="light"] .cms-text-content,
[data-theme="light"] .story-preview-text,
[data-theme="light"] .story-body-text,
[data-theme="light"] .story-detail-text,
[data-theme="light"] .room-display-artist,
[data-theme="light"] .room-display-room,
[data-theme="light"] .room-display-list-item span,
[data-theme="light"] .room-display-muted,
[data-theme="light"] .room-display-request p,
[data-theme="light"] .room-metric span,
[data-theme="light"] .meta-pill,
[data-theme="light"] .gateway-provider-copy,
[data-theme="light"] .booking-modal-summary span,
[data-theme="light"] .empty-state-text,
[data-theme="light"] .song-lyrics,
[data-theme="light"] .notification-feed-item,
[data-theme="light"] .form-label,
[data-theme="light"] .form-text {
    color: var(--text-muted) !important;
}

[data-theme="light"] .cms-text-content,
[data-theme="light"] .story-body-text,
[data-theme="light"] .story-detail-text,
[data-theme="light"] .article-content,
[data-theme="light"] .cms-body,
[data-theme="light"] .article-body,
[data-theme="light"] .story-body {
    color: var(--text-main) !important;
}

[data-theme="light"] .badge-soft,
[data-theme="light"] .room-display-tags span,
[data-theme="light"] .meta-pill,
[data-theme="light"] .admin-tabs .nav-link,
[data-theme="light"] .slot,
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background: rgba(15, 23, 42, 0.045) !important;
    border-color: var(--border-soft) !important;
    color: var(--text-main) !important;
}

[data-theme="light"] .form-control::placeholder {
    color: rgba(31, 41, 55, .48);
}

[data-theme="light"] .form-select option,
[data-theme="light"] .form-select optgroup {
    background: #ffffff !important;
    color: #111827 !important;
}

[data-theme="light"] .btn-outline-light {
    color: var(--text-main);
    border-color: rgba(15, 23, 42, .32);
    background: rgba(255,255,255,.3);
}

[data-theme="light"] .btn-outline-light:hover {
    color: #fff;
    background: #111827;
    border-color: #111827;
}

[data-theme="light"] .btn-outline-neon {
    color: #006a80;
    border-color: color-mix(in srgb, var(--theme-primary) 60%, #0f172a);
    background: rgba(255,255,255,.36);
}

[data-theme="light"] .text-neon,
[data-theme="light"] .text-magenta,
[data-theme="light"] .text-purple,
[data-theme="light"] .section-overline,
[data-theme="light"] .story-tag,
[data-theme="light"] .gateway-provider-status,
[data-theme="light"] .player-queue-position {
    text-shadow: none;
}

[data-theme="light"] .story-tag,
[data-theme="light"] .player-queue-position,
[data-theme="light"] .room-display-live {
    background: color-mix(in srgb, var(--theme-primary) 13%, white);
}

[data-theme="light"] .feature-banner__content h3,
[data-theme="light"] .feature-banner__content p,
[data-theme="light"] .feature-banner .badge {
    color: #fff !important;
}

[data-theme="light"] .table-dark,
[data-theme="light"] .table-dark td,
[data-theme="light"] .table-dark th {
    color: var(--text-main);
}

[data-theme="light"] .display-logo-wrap {
    background: var(--logo-plate-bg);
    border-color: var(--logo-plate-border);
    box-shadow: var(--logo-shadow);
}

[data-theme="light"] .display-logo-img {
    color: #111827;
    text-shadow: none;
}

/* Phase 6B.2 mobile-first polish and light-mode readability hardening */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
audio,
iframe {
    max-width: 100%;
}

@media (max-width: 1200px) and (min-width: 992px) {
    .nav-link-top {
        padding-inline: .62rem;
        font-size: .9rem;
    }

    .nav-book-cta,
    .theme-toggle {
        padding-inline: .68rem;
        font-size: .84rem;
    }
}

.btn,
.nav-link-top,
.slot,
.theme-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

.theme-toggle {
    min-width: 58px;
    padding: 0 .85rem;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}

.nav-link-top.is-active {
    color: var(--text-main);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 14%, transparent), color-mix(in srgb, var(--theme-secondary) 10%, transparent)),
        var(--surface-soft);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 28%, var(--border-soft));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.nav-book-cta {
    min-height: 40px;
    padding-inline: .9rem;
    white-space: nowrap;
}

.content-prose,
.article-body,
.story-body,
.cms-text-content,
.story-body-text {
    overflow-wrap: anywhere;
    word-break: normal;
}

.songbook-mobile-list {
    display: none;
}

.song-card-mobile {
    display: grid;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

.song-card-mobile + .song-card-mobile {
    margin-top: .85rem;
}

.song-card-mobile__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
}

.song-card-mobile h3 {
    margin: 0;
    color: #fff;
    font-size: 1.03rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.song-card-mobile__artist,
.song-card-mobile__meta {
    color: rgba(255,255,255,.68);
    font-size: .9rem;
}

.song-card-mobile__meta,
.song-card-mobile__badges,
.song-card-mobile__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
}

.song-card-mobile__meta span {
    padding: .24rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
}

.song-card-mobile__actions {
    align-items: stretch;
}

.song-card-action-form {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: stretch;
}

.song-card-action-form .form-select {
    width: auto;
    min-width: 92px;
}

[data-theme="light"] .hero-stats .stat-pill {
    background: rgba(255,255,255,.88);
    border-color: rgba(15,23,42,.14);
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
}

[data-theme="light"] .hero-stats .stat-label,
[data-theme="light"] .hero-stats .stat-value {
    color: var(--text-main) !important;
}

[data-theme="light"] .song-card-mobile,
[data-theme="light"] .promo-card,
[data-theme="light"] .promo-banner-card,
[data-theme="light"] .update-card {
    background: var(--surface-bg);
    border-color: var(--border-soft);
    color: var(--text-main);
}

[data-theme="light"] .song-card-mobile h3,
[data-theme="light"] .song-card-mobile .btn,
[data-theme="light"] .song-card-mobile__artist,
[data-theme="light"] .song-card-mobile__meta,
[data-theme="light"] .song-card-mobile__meta span {
    color: var(--text-main);
}

[data-theme="light"] .song-card-mobile__artist,
[data-theme="light"] .song-card-mobile__meta {
    color: var(--text-muted);
}

[data-theme="light"] .song-card-mobile__meta span {
    background: rgba(15,23,42,.045);
    border-color: var(--border-soft);
}

[data-theme="light"] .hub-section .small,
[data-theme="light"] .hub-section p,
[data-theme="light"] .hub-section .story-preview-text,
[data-theme="light"] .hub-section .text-secondary {
    color: var(--text-muted) !important;
}

[data-theme="light"] .hub-section h2,
[data-theme="light"] .hub-section h3,
[data-theme="light"] .hub-section h4,
[data-theme="light"] .hub-section .fw-semibold {
    color: var(--text-main) !important;
}

[data-theme="light"] footer {
    color: var(--text-muted);
    background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.72));
    border-top-color: rgba(15,23,42,.1);
}

/* Phase 6C public launch UX hardening */
.card-snippet,
.cms-list-card p,
.hub-section .update-item .small.text-secondary,
.story-preview-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-snippet,
.cms-list-card p {
    -webkit-line-clamp: 3;
}

.cms-card-thumb,
.cms-list-image,
.promo-thumb {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    object-fit: cover;
    overflow: hidden;
}

.cms-list-card {
    display: flex;
    flex-direction: column;
}

.cms-list-card > .p-4 {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.cms-list-card > .p-4 .btn {
    align-self: flex-start;
    margin-top: auto;
}

.guest-slot-trigger {
    cursor: pointer;
}

[data-theme="light"] {
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --surface-card: rgba(255,255,255,.9);
    --shadow-card: 0 14px 34px rgba(15,23,42,.09);
}

[data-theme="light"] .glass-panel,
[data-theme="light"] .glass-card,
[data-theme="light"] .cms-list-card,
[data-theme="light"] .update-card,
[data-theme="light"] .story-preview-card,
[data-theme="light"] .promo-card,
[data-theme="light"] .promo-banner-card,
[data-theme="light"] .room-card,
[data-theme="light"] .auth-card,
[data-theme="light"] .modal-content {
    background: var(--surface-card) !important;
    border-color: rgba(15,23,42,.12) !important;
    box-shadow: var(--shadow-card) !important;
}

[data-theme="light"] .text-neon,
[data-theme="light"] .text-magenta,
[data-theme="light"] .text-purple,
[data-theme="light"] .section-overline {
    text-shadow: none !important;
}

[data-theme="light"] .btn-neon {
    box-shadow: 0 10px 22px rgba(0,127,156,.16) !important;
}

[data-theme="light"] .btn-outline-neon,
[data-theme="light"] .theme-toggle {
    box-shadow: none !important;
}

[data-theme="light"] .theme-toggle {
    background: rgba(255,255,255,.75);
    border-color: rgba(15,23,42,.16);
    color: var(--text-main);
}

[data-theme="light"] .navbar {
    box-shadow: 0 10px 26px rgba(15,23,42,.10);
}

[data-theme="light"] .card-snippet,
[data-theme="light"] .cms-list-card p,
[data-theme="light"] .update-card p,
[data-theme="light"] .modal-content .text-secondary {
    color: var(--text-muted) !important;
}

[data-theme="light"] .nav-link-top:hover {
    color: var(--text-main);
    background: rgba(15,23,42,.055);
}

/* Phase 6C.1 launch QA regression fixes */
.guest-auth-modal {
    color: var(--text-main);
}

.guest-auth-modal .modal-title,
.guest-auth-modal .section-overline {
    color: var(--text-main);
}

.guest-auth-modal .modal-body,
.guest-auth-modal .modal-body p {
    color: var(--text-muted);
}

.article-detail-card,
.story-detail-card {
    text-align: left;
}

.article-detail-title,
.story-detail-title {
    text-align: left;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 1.08;
}

.article-detail-card .content-prose,
.story-detail-card .content-prose,
.article-detail-card .content-prose *,
.story-detail-card .content-prose * {
    text-align: left !important;
    font-weight: 400;
    word-spacing: normal;
}

.article-detail-card .content-prose,
.story-detail-card .content-prose {
    max-width: 740px;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.7;
}

[data-theme="light"] .guest-auth-modal {
    background: rgba(255,255,255,.97) !important;
    color: var(--text-main) !important;
    border-color: rgba(15,23,42,.16) !important;
    box-shadow: 0 24px 60px rgba(15,23,42,.18) !important;
}

[data-theme="light"] .guest-auth-modal .modal-title,
[data-theme="light"] .guest-auth-modal .section-overline {
    color: var(--text-main) !important;
    text-shadow: none !important;
}

[data-theme="light"] .guest-auth-modal .modal-body,
[data-theme="light"] .guest-auth-modal .modal-body p {
    color: var(--text-muted) !important;
}

[data-theme="light"] .guest-auth-modal .btn-close {
    filter: none !important;
    opacity: .72;
}

[data-theme="light"] .modal-backdrop.show {
    opacity: .42;
}

[data-theme="light"] .article-detail-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

[data-theme="light"] .article-detail-card .section-overline {
    color: #9b2fb3 !important;
}

[data-theme="light"] .hero-action-row .btn-outline-neon {
    color: #075766;
    background: rgba(255,255,255,.92);
    border-color: rgba(0,127,156,.55);
    box-shadow: 0 10px 24px rgba(15,23,42,.10) !important;
}

[data-theme="light"] .hero-action-row .btn-outline-neon:hover {
    color: #06121c;
    background: color-mix(in srgb, var(--theme-primary) 26%, white);
    border-color: var(--theme-primary);
}

@media (max-width: 768px) {
    .event-card-grid {
        grid-template-columns: 1fr;
    }

    .event-filter-form {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .event-detail-title {
        font-size: clamp(1.7rem, 9vw, 2.35rem);
    }

    body {
        padding-top: 62px;
    }

    html {
        scroll-padding-top: 78px;
    }

    .main-shell {
        padding-top: 1.15rem;
        padding-bottom: 2rem;
    }

    .navbar .container {
        gap: .6rem;
    }

    .navbar-brand {
        max-width: calc(100% - 96px);
    }

    .navbar-toggler {
        min-height: 42px;
        padding-inline: .85rem;
    }

    .navbar-collapse {
        width: 100%;
    }

    .navbar-collapse .ms-auto {
        align-items: stretch !important;
        width: 100%;
        padding-top: .8rem !important;
    }

    .navbar-collapse .nav-link-top,
    .navbar-collapse .btn,
    .navbar-collapse .theme-toggle {
        width: 100%;
        justify-content: center;
    }

    .logo-wrap,
    .brand-logo-frame,
    .brand-logo-surface {
        min-width: 70px;
        height: 46px;
        padding: 3px;
        border-radius: 18px;
    }

    .brand-logo {
        max-height: 42px;
        max-width: 88px;
        border-radius: 15px;
        clip-path: inset(0 round 15px);
    }

    .logo-wrap img,
    .brand-logo-frame img,
    .brand-logo-surface img,
    .brand-logo-img {
        border-radius: 15px !important;
        clip-path: inset(0 round 15px);
    }

    .hero-shell {
        min-height: auto;
        border-radius: 22px;
    }

    .hero-content {
        padding: 2rem 1.1rem;
    }

    .hero-title {
        font-size: clamp(2.15rem, 12vw, 3.25rem);
        line-height: 1.02;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-action-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: .7rem;
    }

    .hero-action-row .btn,
    .booking-date-form .btn,
    .song-search .btn,
    .song-search .form-control,
    .song-search .form-select {
        min-height: 46px;
    }

    .hero-stats {
        gap: .65rem !important;
    }

    .hero-stats .stat-pill {
        flex: 1 1 100%;
        min-width: 0;
        padding: .8rem .95rem;
    }

    .booking-center-head,
    .room-card .p-4,
    .update-card,
    .glass-panel {
        border-radius: 18px;
    }

    .booking-center-head {
        padding: 1.15rem !important;
    }

    .booking-date-form .d-flex {
        flex-direction: column;
    }

    .room-card .p-4 {
        padding: 1.1rem !important;
    }

    .room-command-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    .room-metric {
        padding: .8rem;
    }

    .room-meta {
        gap: .45rem;
    }

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

    .slot {
        min-height: 46px;
        padding: .7rem .55rem;
        font-size: .96rem;
    }

    .hub-section .d-flex.justify-content-between {
        align-items: flex-start !important;
        flex-direction: column;
        gap: .45rem;
    }

    .hub-section .row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hub-section .row > [class*="col-"] {
        width: 100%;
    }

    .update-card {
        padding: 1.1rem !important;
    }

    .cms-card-thumb,
    .story-preview-media,
    .promo-thumb {
        aspect-ratio: 16 / 9;
        width: 100%;
        object-fit: cover;
    }

    .section-title {
        font-size: clamp(1.45rem, 8vw, 2.15rem);
        line-height: 1.12;
    }

    .hero-title {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .auth-title,
    .article-detail-title,
    .story-detail-title {
        font-size: clamp(1.55rem, 8vw, 2.2rem) !important;
        line-height: 1.12;
    }

    .section-title-sm {
        font-size: 1.12rem;
        line-height: 1.25;
    }

    .article-detail h1,
    .story-detail-title,
    .auth-title {
        font-size: clamp(1.65rem, 9vw, 2.35rem);
        line-height: 1.12;
    }

    .article-body,
    .story-body,
    .content-prose,
    .cms-text-content,
    .story-body-text,
    .story-detail-text {
        font-size: 1.02rem !important;
        line-height: 1.68 !important;
        letter-spacing: 0;
    }

    .article-content p,
    .story-body p,
    .content-prose p {
        margin-bottom: 1rem;
    }

    .song-search {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .songbook-table-desktop {
        display: none;
    }

    .songbook-mobile-list {
        display: block;
    }

    .song-card-mobile__actions .btn,
    .song-card-action-form,
    .song-card-action-form .btn,
    .song-card-action-form .form-select {
        width: 100%;
    }

    .modal-dialog {
        margin: .75rem;
    }

    .modal-body,
    .modal-header,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    footer {
        padding: 1rem 0 1.35rem !important;
    }

    .footer-brand {
        font-size: .95rem;
        line-height: 1.25;
    }

    .footer-credit {
        margin-top: .25rem;
        font-size: .72rem;
        line-height: 1.35;
        letter-spacing: 0;
    }

    .purple-heart {
        color: #b45cff;
        font-size: .86em;
        text-shadow: 0 0 10px rgba(180, 92, 255, .48);
    }

    .footer-links {
        gap: .65rem !important;
    }

    .footer-contact-grid,
    .footer-legal {
        font-size: .72rem;
        gap: .25rem .55rem;
    }

    .story-card-actions {
        align-self: stretch;
        width: 100%;
        margin-top: 1rem !important;
        padding-top: .35rem;
        padding-bottom: 1.15rem;
    }

    .story-card-actions .btn {
        min-height: 44px;
        width: 100%;
    }

    .hub-section .story-preview-body {
        padding-bottom: 0;
    }

    .room-display-hero {
        padding: 1rem;
    }

    .room-display-now h1 {
        font-size: clamp(1.75rem, 10vw, 3rem);
    }

    .room-display-request-box {
        min-width: 0;
        width: 100%;
    }
}

@media (min-width: 769px) {
    .songbook-table-desktop {
        display: block;
    }
}

@media (max-width: 430px) {
    .container {
        padding-left: .9rem;
        padding-right: .9rem;
    }

    .btn,
    .slot,
    .form-control,
    .form-select {
        font-size: .95rem;
    }

    .room-command-metrics,
    .slot-grid {
        grid-template-columns: 1fr;
    }

    .hero-chip,
    .section-overline {
        font-size: .72rem;
    }
}

/* Phase 6C.3 production-readiness polish */
.card-summary-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
}

.card-snippet {
    color: var(--text-muted);
}

.detail-image-container {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    box-shadow: 0 18px 44px rgba(0,0,0,.20);
}

.detail-image-container .cms-detail-image,
.detail-image-container img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.article-detail-title,
.story-detail-title {
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.story-detail-title {
    line-height: 1.12;
}

.songbook-table td,
.songbook-table th {
    vertical-align: middle;
    padding: .85rem 1rem;
}

.songbook-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    flex-wrap: wrap;
    padding-right: .25rem;
}

.songbook-actions form {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
}

.songbook-actions .btn {
    min-height: 38px;
}

[data-theme="light"] .detail-image-container {
    background: rgba(255,255,255,.94);
    border-color: rgba(15,23,42,.12);
    box-shadow: 0 16px 36px rgba(15,23,42,.11);
}

[data-theme="light"] .card-summary-text,
[data-theme="light"] .card-snippet,
[data-theme="light"] .cms-text-content,
[data-theme="light"] .article-body,
[data-theme="light"] .story-body,
[data-theme="light"] .story-body-text,
[data-theme="light"] .songbook-table td,
[data-theme="light"] .songbook-table .text-secondary,
[data-theme="light"] .dashboard-card,
[data-theme="light"] .profile-card {
    color: var(--text-muted) !important;
}

[data-theme="light"] .article-body,
[data-theme="light"] .story-body,
[data-theme="light"] .story-body-text,
[data-theme="light"] .cms-text-content {
    color: var(--text-main) !important;
}

[data-theme="light"] .songbook-table .text-white,
[data-theme="light"] .admin-tab-panel .text-white,
[data-theme="light"] .glass-panel .text-white {
    color: var(--text-main) !important;
}

[data-theme="light"] .songbook-table .table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(15,23,42,.025);
    --bs-table-hover-bg: rgba(15,23,42,.055);
    --bs-table-color: var(--text-main);
    border-color: var(--border-soft);
}

@media (max-width: 768px) {
    .songbook-actions {
        justify-content: flex-start;
        padding-right: 0;
    }

    .songbook-actions form {
        width: 100%;
    }

    .songbook-actions .form-select,
    .songbook-actions .btn {
        flex: 1 1 auto;
    }
}
