:root {
    --sa-purple: #23085a;
    --sa-purple-2: #3a1a86;
    --sa-gold: #ffdd09;
    --sa-ink: #241433;
    --sa-muted: #5c5670;
    --sa-line: #e4e4ea;
    --sa-page: #f4f2f8;
}

.sa-body {
    background: var(--sa-page);
    color: var(--sa-ink);
    min-height: 100vh;
}

.sa-nav {
    background: var(--sa-purple);
}

.sa-nav .navbar-brand,
.sa-nav .nav-link,
.sa-logo {
    color: #fff;
    font-weight: 700;
}

.sa-nav .nav-link.disabled {
    color: rgba(255, 255, 255, 0.75);
}

.sa-nav .nav-link:hover,
.sa-logo:hover {
    color: var(--sa-gold);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.btn-gold {
    background: var(--sa-gold);
    color: var(--sa-purple);
    font-weight: 700;
    border: 0;
}

.btn-gold:hover {
    background: #ffe95a;
    color: var(--sa-purple);
}

.btn-primary {
    background: var(--sa-purple);
    border-color: var(--sa-purple);
}

.btn-primary:hover {
    background: var(--sa-purple-2);
    border-color: var(--sa-purple-2);
}

.sa-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(35, 8, 90, 0.08);
}

.media-preview {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    background: #111;
}

.sa-hero {
    background: linear-gradient(135deg, var(--sa-purple), var(--sa-purple-2));
    color: #fff;
    border-radius: 20px;
    padding: 28px 20px;
}

.sa-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
}

.sa-footer {
    color: var(--sa-muted);
    padding: 28px 0 36px;
    font-size: 0.95rem;
}

.sa-footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 28px;
}

.sa-footer-copy {
    margin: 0;
}

.sa-nav-logo,
.sa-guest-logo {
    display: block;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.sa-nav-logo {
    height: 42px;
    padding: 4px 8px;
    border-radius: 10px;
    background: #fff;
}

.sa-guest-logo {
    height: 56px;
    margin-inline: auto;
}

.sa-site-contact {
    color: var(--sa-ink);
}

.sa-site-address {
    margin: 0 0 8px;
    white-space: pre-line;
}

.sa-site-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-site-contact-list a {
    color: var(--sa-purple);
    font-weight: 700;
    text-decoration: none;
}

.sa-site-contact-list a:hover {
    color: var(--sa-purple-2);
}

.sa-guest-contact {
    margin-top: 18px;
    text-align: center;
}

.sa-guest-contact .sa-site-contact-list {
    justify-content: center;
}

.sa-asset-preview {
    display: block;
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    padding: 8px;
    border: 1px solid var(--sa-line);
    border-radius: 12px;
    background: #fff;
}

.sa-asset-preview-sm {
    width: 64px;
    height: 64px;
}

.sa-logo {
    font-size: 1.6rem;
    text-decoration: none;
    color: var(--sa-purple);
}

.pay-account {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid var(--sa-line);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    min-height: 44px;
}

.pay-account input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
}

.payment-shot {
    max-height: 420px;
}

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

.sa-password {
    position: relative;
    width: 100%;
}

.sa-password .form-control {
    padding-right: 3.25rem;
}

.sa-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.3rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--sa-muted);
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease;
}

.sa-password-toggle:hover {
    color: var(--sa-purple);
    background: rgba(35, 8, 90, 0.06);
}

.sa-password.is-visible .sa-password-toggle {
    color: var(--sa-purple);
}

.sa-password-toggle:focus-visible {
    outline: 2px solid var(--sa-gold);
    outline-offset: 2px;
}

.sa-password-toggle svg {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.sa-password-toggle .sa-eye-off {
    opacity: 0;
    transform: scale(0.86);
}

.sa-password.is-visible .sa-password-toggle .sa-eye {
    opacity: 0;
    transform: scale(0.86);
}

.sa-password.is-visible .sa-password-toggle .sa-eye-off {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .sa-password-toggle,
    .sa-password-toggle svg {
        transition: none;
    }
}

.btn-sm {
    min-height: 38px;
}

@media (max-width: 575.98px) {
    .sa-hero {
        padding: 22px 16px;
    }

    .card-body {
        padding: 1rem;
    }
}

html:has(body.sa-shell) {
    height: 100%;
    overflow: hidden;
}

.sa-shell {
    display: flex;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 100% -8%, rgba(255, 221, 9, 0.18), transparent 52%),
        #f6f4fa;
    color: var(--sa-ink);
    font-family: Nunito, "Segoe UI", sans-serif;
}

.sa-skip {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 80;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--sa-gold);
    color: var(--sa-purple);
    font-weight: 800;
    text-decoration: none;
}

.sa-skip:focus {
    top: 12px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.sa-sidebar {
    display: flex;
    flex-direction: column;
    width: min(86vw, 320px);
    height: 100dvh;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(130% 58% at 0% 0%, rgba(255, 221, 9, 0.2), transparent 46%),
        linear-gradient(180deg, #31107a 0%, #16043d 74%);
    box-shadow: 16px 0 40px rgba(22, 4, 61, 0.18);
}

.sa-brand-row {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding: 18px 14px 10px;
}

.sa-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.sa-brand:hover {
    color: #fff;
}

.sa-mark {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--sa-gold);
    color: var(--sa-purple);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.sa-mark img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.sa-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sa-brand-name,
.sa-user-name,
.sa-side-label,
.sa-topbar-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-brand-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sa-brand-sub,
.sa-user-role {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.75rem;
    font-weight: 700;
}

.sa-icon-btn,
.sa-signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: inherit;
}

.sa-icon-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
}

.sa-icon-btn svg,
.sa-ico svg {
    width: 22px;
    height: 22px;
}

.sa-icon-btn:hover,
.sa-signout:hover,
.sa-side-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sa-collapse {
    margin-left: auto;
}

.sa-drawer-close,
.sa-topbar,
.sa-backdrop {
    display: none;
}

.sa-sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 12px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 221, 9, 0.45) transparent;
}

.sa-sidebar-scroll::-webkit-scrollbar,
.sa-main::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.sa-sidebar-scroll::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 99px;
    background: rgba(255, 221, 9, 0.45);
    background-clip: padding-box;
}

.sa-nav-group {
    margin: 16px 10px 6px;
    color: rgba(255, 221, 9, 0.78);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sa-nav-group:first-child {
    margin-top: 4px;
}

.sa-nav-list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-side-link,
.sa-signout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

.sa-side-link.is-active,
.sa-side-link.is-active:hover {
    background: var(--sa-gold);
    color: var(--sa-purple);
}

.sa-ico {
    display: inline-flex;
    flex-shrink: 0;
}

.sa-sidebar-foot {
    display: grid;
    flex-shrink: 0;
    gap: 8px;
    padding: 10px 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sa-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 4px 6px;
}

.sa-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sa-user-name {
    font-weight: 800;
}

.sa-avatar {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 221, 9, 0.16);
    color: var(--sa-gold);
    font-size: 0.82rem;
    font-weight: 800;
}

.sa-signout {
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.sa-workspace {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100dvh;
    overflow: hidden;
}

.sa-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(35, 8, 90, 0.28) transparent;
}

.sa-main:focus {
    outline: none;
}

.sa-main::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 99px;
    background: rgba(35, 8, 90, 0.28);
    background-clip: padding-box;
}

.sa-main-inner {
    width: min(1180px, 100%);
    margin-inline: auto;
    padding: 32px 28px 72px;
}

.sa-topbar {
    align-items: center;
    gap: 10px;
    height: 60px;
    padding: 0 12px;
    border-bottom: 1px solid var(--sa-line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.sa-topbar .sa-icon-btn {
    color: var(--sa-purple);
}

.sa-topbar .sa-icon-btn:hover {
    background: rgba(35, 8, 90, 0.06);
    color: var(--sa-purple);
}

.sa-topbar-title {
    margin: 0;
    min-width: 0;
    font-weight: 800;
}

.sa-page-head {
    margin-bottom: 22px;
}

.sa-kicker {
    margin: 0 0 6px;
    color: var(--sa-purple-2);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sa-page-head h1,
.sa-shell .h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.sa-page-head h1 {
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2.15rem);
}

.sa-lead {
    max-width: 42rem;
    margin: 8px 0 0;
    color: var(--sa-muted);
}

.sa-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.sa-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.sa-status.is-live {
    background: #e7f8ee;
    color: #0a7a32;
}

.sa-status.is-off {
    background: #fff1e8;
    color: #9a3412;
}

.sa-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.sa-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 176px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(35, 8, 90, 0.07);
}

.sa-stat:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(35, 8, 90, 0.12);
}

.sa-stat-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 221, 9, 0.28);
    color: var(--sa-purple);
}

.sa-stat-icon svg {
    width: 22px;
    height: 22px;
}

.sa-stat-value {
    margin-top: 8px;
    color: var(--sa-purple);
    font-size: 2.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1;
}

.sa-stat-label {
    font-weight: 800;
}

.sa-stat-hint {
    color: var(--sa-muted);
    font-size: 0.92rem;
}

.sa-stat-go {
    margin-top: auto;
    color: var(--sa-purple);
    font-weight: 800;
}

.sa-stat-go::after {
    content: " →";
}

.sa-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 20px 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(35, 8, 90, 0.07);
}

.sa-panel h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
}

.sa-panel p {
    margin: 0;
    color: var(--sa-muted);
}

.sa-shell .sa-card {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(35, 8, 90, 0.07);
}

.sa-shell .alert {
    border: 0;
    border-radius: 14px;
}

.sa-shell .sa-side-link:focus-visible,
.sa-shell .sa-signout:focus-visible,
.sa-shell .sa-icon-btn:focus-visible,
.sa-shell .sa-brand:focus-visible,
.sa-shell .sa-stat:focus-visible,
.sa-shell .btn:focus-visible {
    outline: 2px solid var(--sa-gold);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .sa-sidebar {
        position: fixed;
        z-index: 40;
        inset: 0 auto 0 0;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }

    .sa-sidebar.is-open {
        transform: none;
    }

    .sa-collapse {
        display: none;
    }

    .sa-drawer-close,
    .sa-topbar {
        display: inline-flex;
    }

    .sa-topbar {
        display: flex;
        flex-shrink: 0;
    }

    .sa-backdrop:not([hidden]) {
        position: fixed;
        z-index: 30;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(16, 6, 36, 0.48);
    }

    .sa-main-inner {
        padding: 20px 16px 48px;
    }
}

@media (min-width: 992px) {
    .sa-sidebar {
        position: relative;
        z-index: 2;
        flex: 0 0 280px;
        width: 280px;
        box-shadow: none;
        transition: flex-basis 0.2s ease, width 0.2s ease;
    }

    html.sa-collapsed .sa-sidebar {
        flex-basis: 88px;
        width: 88px;
    }

    html.sa-collapsed .sa-brand-text,
    html.sa-collapsed .sa-nav-group,
    html.sa-collapsed .sa-side-label,
    html.sa-collapsed .sa-user-meta {
        display: none;
    }

    html.sa-collapsed .sa-brand-row,
    html.sa-collapsed .sa-user,
    html.sa-collapsed .sa-side-link,
    html.sa-collapsed .sa-signout {
        justify-content: center;
    }

    html.sa-collapsed .sa-brand-row {
        flex-direction: column;
        padding-inline: 10px;
    }

    html.sa-collapsed .sa-collapse {
        margin-left: 0;
    }

    html.sa-collapsed .sa-collapse svg {
        transform: rotate(180deg);
    }

    html.sa-collapsed .sa-side-link,
    html.sa-collapsed .sa-signout {
        padding-inline: 0;
    }

    html.sa-collapsed .sa-sidebar-foot {
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sa-sidebar,
    .sa-stat,
    .sa-collapse svg {
        transition: none;
    }

    .sa-stat:hover {
        transform: none;
    }
}
