:root {
    --primary: #10254a;
    --secondary: #008fc7;
    --accent: #c79a2f;
    --event-red: #b91c1c;
    --event-green: #2f8f46;
    --bg-light: #f4f6f8;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --muted: #5d6a78;
    --border: rgba(16, 37, 74, 0.12);
    --shadow: 0 18px 48px rgba(7, 19, 41, 0.14);
    --radius: 18px;
    --radius-sm: 10px;
    --container: 1080px;
    --surface: rgba(255, 255, 255, 0.78);
    --header-offset: 0px;
    --app-vh: 1vh;
}

html[data-theme="dark"] {
    --bg-light: #071329;
    --text-dark: #edf3f8;
    --muted: #b9cadb;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    --surface: rgba(7, 19, 41, 0.78);
}

@supports (height: 100dvh) {
    :root {
        --app-vh: 1dvh;
    }
}

html {
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 143, 199, 0.22), transparent 30%),
        radial-gradient(circle at top right, rgba(199, 154, 47, 0.16), transparent 20%),
        linear-gradient(180deg, var(--bg-light), color-mix(in srgb, var(--bg-light) 88%, #ffffff 12%));
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: relative;
    top: 0;
    z-index: 8;
    background: transparent;
    border-bottom: 0;
}

.page-home .site-header {
    display: none;
}

.page-auth-admin .site-header,
.page-auth-admin .site-footer {
    display: none;
}

.page-auth-admin main {
    min-height: 100svh;
}

.header-shell, .footer-shell, .hero-grid, .split-grid, .cards-grid, .stats-grid {
    display: grid;
    gap: 1.5rem;
}

.header-shell {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 1rem 0 0.4rem;
}

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

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.hero, .section { padding: 5rem 0; }

.auth-admin-screen {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 143, 199, 0.22), transparent 22%),
        radial-gradient(circle at 82% 14%, rgba(199, 154, 47, 0.12), transparent 18%),
        radial-gradient(circle at 50% 120%, rgba(185, 28, 28, 0.14), transparent 34%),
        linear-gradient(160deg, #071329 0%, #0b1c36 56%, #10254a 100%);
}

.auth-admin-card {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    display: grid;
    gap: 1.15rem;
    padding: 1.45rem;
    border-radius: 26px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
        rgba(7, 18, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(22px);
}

.auth-admin-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.2rem;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.24));
}

.auth-admin-fields {
    display: grid;
    gap: 0.8rem;
}

.auth-admin-input {
    width: 100%;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fbff;
    outline: none;
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.auth-admin-input::placeholder {
    color: rgba(233, 242, 250, 0.58);
}

.auth-admin-input:focus {
    border-color: rgba(0, 143, 199, 0.72);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(0, 143, 199, 0.12);
}

.auth-admin-submit {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    font-size: 1rem;
}

.auth-admin-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.62;
    pointer-events: none;
}

.auth-admin-glow-a {
    width: min(36vw, 420px);
    height: min(36vw, 420px);
    top: -4%;
    left: -4%;
    background: rgba(0, 143, 199, 0.28);
}

.auth-admin-glow-b {
    width: min(26vw, 320px);
    height: min(26vw, 320px);
    top: 12%;
    right: 8%;
    background: rgba(199, 154, 47, 0.16);
}

.auth-admin-glow-c {
    width: min(38vw, 460px);
    height: min(38vw, 460px);
    right: -10%;
    bottom: -14%;
    background: rgba(185, 28, 28, 0.18);
}

.auth-admin-sparkles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.auth-admin-spark {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 72%);
    opacity: 0;
    animation: authSparkle 6.2s ease-in-out infinite;
}

.auth-admin-spark::before,
.auth-admin-spark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.74), transparent);
}

.auth-admin-spark::before {
    width: 1px;
    height: 18px;
}

.auth-admin-spark::after {
    width: 18px;
    height: 1px;
}

.auth-admin-spark-a {
    top: 18%;
    left: 22%;
    animation-delay: 0s;
}

.auth-admin-spark-b {
    top: 28%;
    right: 24%;
    animation-delay: 1.2s;
}

.auth-admin-spark-c {
    bottom: 24%;
    left: 28%;
    animation-delay: 2.4s;
}

.auth-admin-spark-d {
    bottom: 18%;
    right: 18%;
    animation-delay: 3.1s;
}

@keyframes authSparkle {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(0.7);
        opacity: 0;
    }

    22% {
        opacity: 0.9;
    }

    50% {
        transform: translate3d(8px, -12px, 0) scale(1);
        opacity: 0.54;
    }

    78% {
        opacity: 0.14;
    }
}

.admin-stack {
    display: grid;
    gap: 1.5rem;
}

.hero-grid, .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.hero-copy h1, .split-grid h1, .narrow-stack h1, .request-aside h2, .support-card h2 {
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: 0.95;
    margin: 0.35rem 0 1rem;
}

.hero-copy p,
.split-grid p,
.panel p,
.helper,
.brand span,
.feature-card p,
.receipt-row span,
.request-aside p,
.support-card p,
.request-note p {
    color: var(--muted);
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 143, 199, 0.14);
    color: var(--primary);
}

.hero-actions, .submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-points {
    padding-left: 1.1rem;
    line-height: 1.9;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: 180ms ease;
}

.btn-primary { background: var(--secondary); color: var(--text-light); }
.btn-primary:hover { background: #0479a8; }

.btn-secondary {
    background: transparent;
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: rgba(0, 143, 199, 0.42);
    background: rgba(0, 143, 199, 0.08);
}

.btn-danger {
    background: linear-gradient(135deg, #c0392b, #96281b);
    color: #fff;
    border-color: transparent;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d44334, #a93226);
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.32);
}

.btn-small {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 9px;
}

/* ─── Action icon column (Más) ───────────────────────────────── */
.td-actions {
    white-space: nowrap;
}

.td-actions .admin-delete-form {
    display: inline;
}

.action-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    transition: 160ms ease;
    vertical-align: middle;
}

.action-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.action-icon-history:not(:disabled):hover {
    background: rgba(0, 143, 199, 0.12);
    border-color: rgba(0, 143, 199, 0.4);
    color: var(--secondary);
}

.action-icon-delete:hover {
    background: rgba(192, 57, 43, 0.1);
    border-color: rgba(192, 57, 43, 0.35);
    color: #c0392b;
}

.action-icon-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--secondary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    padding: 0 3px;
    pointer-events: none;
}

/* ─── Admin AJAX toast ───────────────────────────────────────── */
.admin-toast {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1.1rem;
    border-radius: 14px;
    min-width: 260px;
    max-width: 380px;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid transparent;
    animation: toastIn 240ms ease forwards;
    pointer-events: none;
}

.admin-toast.is-success {
    background: #d4edda;
    border-color: #b6d4be;
    color: #1a5c31;
}

.admin-toast.is-error {
    background: #f8d7da;
    border-color: #f0b6bb;
    color: #7b1d24;
}

.admin-toast.is-hiding {
    animation: toastOut 240ms ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-12px); }
}

html[data-theme="dark"] .admin-toast.is-success {
    background: rgba(39, 174, 96, 0.18);
    border-color: rgba(39, 174, 96, 0.3);
    color: #74e4a2;
}

html[data-theme="dark"] .admin-toast.is-error {
    background: rgba(192, 57, 43, 0.18);
    border-color: rgba(192, 57, 43, 0.3);
    color: #f5b7b1;
}

/* ─── Request ID code style ──────────────────────────────────── */
.req-id {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 143, 199, 0.1);
    color: var(--secondary);
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
}

/* ─── Admin delete form ──────────────────────────────────────── */
.admin-delete-form {
    display: contents;
}

/* ─── History modal ──────────────────────────────────────────── */
.admin-history-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(4, 12, 22, 0.78);
    backdrop-filter: blur(12px);
}

.admin-history-modal.is-open {
    display: flex;
}

.admin-history-modal-panel {
    width: min(100%, 520px);
    max-height: calc(100svh - 2rem);
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 24px;
    background: color-mix(in srgb, var(--surface) 96%, #fff 4%);
    border: 1px solid var(--border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.admin-history-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem 0.8rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.admin-history-modal-header strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-history-modal-header small {
    font-size: 0.75rem;
    color: var(--muted);
    display: block;
    margin-top: 0.15rem;
}

.admin-history-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 160ms ease;
}

.admin-history-modal-close:hover {
    background: rgba(192, 57, 43, 0.1);
    border-color: rgba(192, 57, 43, 0.3);
    color: #c0392b;
}

.admin-history-modal-body {
    overflow-y: auto;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.admin-history-event {
    display: grid;
    gap: 0.2rem;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: rgba(63, 169, 245, 0.05);
    border: 1px solid var(--border);
}

.admin-history-event-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-history-event-meta {
    font-size: 0.73rem;
    color: var(--muted);
    line-height: 1.6;
}

.admin-history-event-comment {
    font-size: 0.76rem;
    color: var(--text-dark);
    margin-top: 0.15rem;
    padding-top: 0.3rem;
    border-top: 1px solid var(--border);
    line-height: 1.5;
    font-style: italic;
}

html[data-theme="dark"] .admin-history-modal-panel {
    background: color-mix(in srgb, var(--surface) 92%, #0a1a2f 8%);
}

html[data-theme="dark"] .admin-history-event {
    background: rgba(63, 169, 245, 0.07);
    border-color: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .admin-history-event-comment {
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255,255,255,0.75);
}

.panel, .feature-card, .stat-card, .support-card, .request-note {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel, .feature-card, .stat-card, .support-card { padding: 1.5rem; }

.banner-story {
    position: relative;
    min-height: 320svh;
    background:
        radial-gradient(circle at 18% 20%, rgba(63, 169, 245, 0.18), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(212, 175, 55, 0.14), transparent 24%),
        linear-gradient(180deg, #071121 0%, #0a1a2f 52%, #0d223a 100%);
    overflow: clip;
}

.banner-stage {
    position: sticky;
    top: calc(var(--header-offset) + 0.9rem);
    height: calc(100svh - var(--header-offset) - 1.4rem);
}

.banner-shell {
    position: relative;
    height: 100%;
    margin: 0 clamp(0.85rem, 2vw, 1.5rem) 1.5rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(7, 17, 33, 0.96), rgba(10, 26, 47, 0.88)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.26), transparent 34%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 82px rgba(2, 11, 22, 0.45);
    transform: translate3d(0, var(--banner-stage-shift, 0px), 0);
}

.banner-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.03)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.banner-grid {
    position: relative;
    display: grid;
    height: 100%;
    padding: clamp(0.5rem, 1.8vw, 1rem);
    isolation: isolate;
}

.banner-media,
.banner-copy-intro,
.banner-copy-outro {
    grid-area: 1 / 1;
}

.banner-media {
    position: relative;
    width: min(100%, 930px);
    height: min(68svh, 760px);
    justify-self: center;
    align-self: center;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 25%, rgba(63, 169, 245, 0.22), transparent 36%),
        linear-gradient(180deg, rgba(8, 19, 33, 0.92), rgba(7, 17, 33, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 36px 90px rgba(0, 0, 0, 0.38);
}

.banner-fallback,
.banner-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.banner-fallback {
    object-fit: cover;
    transform: scale(var(--banner-media-scale, 1.01)) translateY(var(--banner-media-shift, 0px));
    filter: saturate(1.03) contrast(1.02);
    transition: opacity 260ms ease;
}

.banner-canvas {
    display: block;
    opacity: 0;
    transition: opacity 280ms ease;
}

[data-banner-sequence][data-sequence-ready="true"] .banner-canvas {
    opacity: 1;
}

[data-banner-sequence][data-sequence-ready="true"] .banner-fallback {
    opacity: 0.16;
}

.banner-sheen {
    position: absolute;
    inset: -18%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 30%),
        linear-gradient(125deg, transparent 22%, rgba(255, 255, 255, 0.09) 48%, transparent 64%);
    mix-blend-mode: screen;
    opacity: calc(0.16 + var(--sequence-progress, 0) * 0.18);
    pointer-events: none;
}

.banner-aura {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.36;
}

.banner-aura-left {
    inset: -10% auto auto -4%;
    width: min(34vw, 420px);
    height: min(34vw, 420px);
    background: rgba(63, 169, 245, 0.34);
}

.banner-aura-right {
    inset: auto -3% -14% auto;
    width: min(30vw, 360px);
    height: min(30vw, 360px);
    background: rgba(212, 175, 55, 0.22);
}

.banner-copy {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    transition: opacity 180ms linear, transform 180ms linear;
    will-change: opacity, transform;
}

.banner-copy .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    backdrop-filter: blur(12px);
}

.banner-copy h1 {
    margin: 0.45rem 0 1rem;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.9;
    max-width: 12ch;
}

.banner-copy p {
    margin: 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.78);
}

.banner-copy .hero-actions {
    margin-top: 1.35rem;
}

.banner-copy .btn-secondary {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.16);
}

.banner-copy .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.banner-copy-intro {
    justify-self: start;
    align-self: end;
    max-width: min(42vw, 36rem);
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

.banner-copy-outro {
    justify-self: end;
    align-self: center;
    max-width: min(32vw, 24rem);
    padding: clamp(0.75rem, 2vw, 1.5rem);
    pointer-events: none;
}

.banner-outro-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.35rem;
    border-radius: 22px;
    background: rgba(8, 19, 33, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.banner-outro-card strong {
    font-size: 1.35rem;
    line-height: 1.15;
}

.banner-outro-card p {
    color: rgba(255, 255, 255, 0.74);
}

.banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.3rem;
}

.banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    backdrop-filter: blur(14px);
}

.banner-progress-track {
    position: absolute;
    left: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    bottom: 1.15rem;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.banner-progress-track span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.banner-hint {
    position: absolute;
    left: 50%;
    bottom: 2.45rem;
    transform: translateX(-50%);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    backdrop-filter: blur(16px);
    white-space: nowrap;
}

.request-section,
.section-tight {
    scroll-margin-top: calc(var(--header-offset) + 1rem);
}

.request-section {
    position: relative;
    padding-top: 4rem;
}

.request-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
    align-items: start;
}

.request-aside {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.request-aside h2 {
    max-width: 12ch;
}

.request-checklist {
    display: grid;
    gap: 1rem;
    margin-top: 0.6rem;
}

.request-note {
    padding: 1.2rem 1.25rem;
    background: color-mix(in srgb, var(--surface) 92%, #ffffff 8%);
}

.request-note strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.request-note p {
    margin: 0;
}

.request-form-panel {
    padding: clamp(1.35rem, 2vw, 2rem);
    background: color-mix(in srgb, var(--surface) 92%, #ffffff 8%);
    backdrop-filter: blur(16px);
}

.request-page {
    padding-top: 4.5rem;
}

.request-page-grid {
    align-items: start;
}

.request-page-copy {
    display: grid;
    gap: 1rem;
}

.request-page-copy p {
    max-width: 36rem;
}

.section-tight {
    padding-top: 1rem;
}

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

.support-card {
    display: grid;
    gap: 0.85rem;
    min-height: 100%;
}

.support-card h2 {
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    line-height: 1;
    margin: 0;
}

.support-card p {
    margin: 0;
}

.home-hero {
    position: relative;
    min-height: calc(var(--app-vh, 1vh) * 100);
    display: grid;
    align-items: center;
    padding: 0.9rem 0 2rem;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 143, 199, 0.24), transparent 26%),
        radial-gradient(circle at 82% 16%, rgba(199, 154, 47, 0.18), transparent 24%),
        radial-gradient(circle at 52% 100%, rgba(185, 28, 28, 0.14), transparent 34%),
        linear-gradient(180deg, #040c16 0%, #071329 50%, #10254a 100%);
    overflow: hidden;
}

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

.home-hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    min-height: min(760px, calc((var(--app-vh, 1vh) * 100) - 2.25rem));
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 34px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(145deg, rgba(7, 17, 33, 0.96), rgba(10, 26, 47, 0.9)),
        radial-gradient(circle at top left, rgba(0, 143, 199, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(185, 28, 28, 0.16), transparent 34%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 32px 90px rgba(2, 11, 22, 0.46);
}

.home-hero-panel::before,
.home-hero-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.home-hero-panel::before {
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.03)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.04));
}

.home-hero-panel::after {
    inset: -18% 36% auto -10%;
    height: min(44vw, 420px);
    border-radius: 999px;
    background: rgba(0, 143, 199, 0.16);
    filter: blur(70px);
    opacity: 0.8;
}

.home-hero-copy,
.home-hero-art {
    position: relative;
    z-index: 1;
}

.home-hero-copy {
    display: grid;
    gap: 1.15rem;
    max-width: 34rem;
}

.home-hero .eyebrow {
    width: fit-content;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    backdrop-filter: blur(12px);
}

.home-hero-copy h1 {
    margin: 0;
    max-width: 10ch;
    color: var(--text-light);
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.9;
}

.home-hero-copy p {
    margin: 0;
    max-width: 34rem;
    color: rgba(233, 241, 255, 0.78);
    line-height: 1.72;
}

.home-hero-actions {
    margin-top: 0.4rem;
}

.home-hero .btn-secondary {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.16);
}

.home-hero .btn-secondary:hover,
.home-hero .btn-secondary:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.home-hero-art {
    display: grid;
    place-items: center;
    min-height: min(60vh, 560px);
}

.home-hero-logo {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    height: auto;
    filter:
        drop-shadow(0 30px 64px rgba(0, 0, 0, 0.34))
        drop-shadow(0 0 38px rgba(0, 143, 199, 0.18));
}

.home-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(46px);
    pointer-events: none;
}

.home-hero-glow-a {
    width: min(26vw, 300px);
    height: min(26vw, 300px);
    top: 16%;
    left: 8%;
    background: rgba(0, 143, 199, 0.26);
}

.home-hero-glow-b {
    width: min(22vw, 240px);
    height: min(22vw, 240px);
    right: 12%;
    bottom: 14%;
    background: rgba(199, 154, 47, 0.18);
}

.home-hero-loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.06), transparent 18%),
        linear-gradient(180deg, rgba(6, 18, 31, 0.26), rgba(6, 18, 31, 0.46));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 320ms ease, visibility 320ms ease;
}

.home-hero[data-home-ready="false"] .home-hero-loader {
    opacity: 1;
    visibility: visible;
}

.home-hero-loader-core {
    position: relative;
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    min-width: min(70vw, 260px);
    padding: 1.35rem 1.4rem 1.2rem;
    border-radius: 28px;
    background: rgba(7, 18, 33, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.home-hero-loader-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.7;
    pointer-events: none;
}

.home-hero-loader-glow-a {
    width: 44px;
    height: 44px;
    top: 0.75rem;
    left: 0.8rem;
    background: rgba(0, 143, 199, 0.46);
    animation: loaderSpark 2.2s ease-in-out infinite;
}

.home-hero-loader-glow-b {
    width: 36px;
    height: 36px;
    right: 1rem;
    bottom: 2.4rem;
    background: rgba(199, 154, 47, 0.34);
    animation: loaderSpark 2.2s ease-in-out infinite 0.45s;
}

.home-hero-loader-logo {
    width: clamp(72px, 8vw, 96px);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.26));
    animation: loaderPulse 1.75s ease-in-out infinite;
}

.home-hero-loader-label {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-hero-loader-bar {
    width: min(44vw, 180px);
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-hero-loader-bar span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: inherit;
    animation: homeLoaderBar 1.4s ease-in-out infinite;
}

.home-hero-loader-dots {
    display: inline-flex;
    gap: 0.45rem;
}

.home-hero-loader-dots span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(205, 225, 255, 0.62));
    box-shadow: 0 0 14px rgba(0, 143, 199, 0.3);
    animation: loaderDot 1.2s ease-in-out infinite;
}

.home-hero-loader-dots span:nth-child(2) {
    animation-delay: 0.18s;
}

.home-hero-loader-dots span:nth-child(3) {
    animation-delay: 0.36s;
}

@media (max-width: 980px) {
    .home-hero-panel {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.4rem;
    }

    .home-hero-copy {
        order: 2;
        max-width: none;
        justify-items: center;
        text-align: center;
    }

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

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-art {
        order: 1;
        min-height: min(44vh, 420px);
    }

    .home-hero-logo {
        width: min(74vw, 420px);
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 0.55rem 0 1.5rem;
    }

    .home-hero-shell {
        width: min(calc(100% - 1rem), var(--container));
    }

    .home-hero-panel {
        min-height: calc((var(--app-vh, 1vh) * 100) - 1rem);
        gap: 1.2rem;
        padding: 1.2rem;
        border-radius: 26px;
    }

    .home-hero-copy h1 {
        font-size: clamp(2.45rem, 11vw, 3.9rem);
    }

    .home-hero-art {
        min-height: 280px;
    }

    .home-hero-logo {
        width: min(82vw, 360px);
    }

    .home-hero-actions {
        width: 100%;
    }

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

    .home-hero-loader-core {
        min-width: min(78vw, 220px);
        padding: 1.05rem 1rem 0.95rem;
        border-radius: 22px;
    }
}

@keyframes homeLoaderBar {
    0% {
        transform: scaleX(0.18);
        opacity: 0.7;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(0.24);
        opacity: 0.78;
    }
}

.hero-cinematic {
    position: relative;
    min-height: calc(var(--app-vh, 1vh) * 220);
    background:
        radial-gradient(circle at 20% 18%, rgba(63, 169, 245, 0.22), transparent 22%),
        radial-gradient(circle at 82% 20%, rgba(212, 175, 55, 0.16), transparent 20%),
        linear-gradient(180deg, #040c16 0%, #071828 48%, #0a2338 100%);
    overflow: clip;
}

.hero-cinematic-stage {
    position: sticky;
    top: var(--header-offset);
    height: calc((var(--app-vh, 1vh) * 100) - var(--header-offset));
    min-height: calc((var(--app-vh, 1vh) * 100) - var(--header-offset));
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 2vw, 1.8rem);
}

.hero-cinematic-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(63, 169, 245, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.hero-cinematic-stage::after {
    content: "";
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(circle at 50% 54%, rgba(255, 255, 255, calc(var(--banner-highlight, 0.16) * 0.42)), transparent 22%),
        radial-gradient(circle at 50% 54%, rgba(63, 169, 245, calc(var(--banner-highlight, 0.16) * 0.35)), transparent 34%);
    filter: blur(var(--banner-depth-blur, 10px));
    transform: translate3d(var(--banner-depth-shift, 0px), 0, 0);
    pointer-events: none;
    z-index: 1;
}

.hero-cinematic-aura {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0.46;
}

.hero-cinematic-aura-left {
    width: min(30vw, 420px);
    height: min(30vw, 420px);
    top: 14%;
    left: 6%;
    background: rgba(63, 169, 245, 0.26);
}

.hero-cinematic-aura-right {
    width: min(26vw, 360px);
    height: min(26vw, 360px);
    right: 8%;
    bottom: 16%;
    background: rgba(212, 175, 55, 0.18);
}

.hero-cinematic-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero-cinematic-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(63, 169, 245, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(5, 15, 28, 0.92) 0%, rgba(8, 24, 40, 0.88) 100%);
    transform: translate3d(0, var(--banner-stage-shift, 0px), 0) scale(var(--banner-media-scale, 1.01));
    transform-origin: center center;
    isolation: isolate;
}

.hero-cinematic-media::before {
    content: "";
    position: absolute;
    inset: -8%;
    background:
        radial-gradient(circle at 28% 34%, rgba(63, 169, 245, 0.14), transparent 20%),
        radial-gradient(circle at 72% 62%, rgba(212, 175, 55, 0.1), transparent 24%);
    mix-blend-mode: screen;
    opacity: 0.42;
    pointer-events: none;
    z-index: 1;
}

.hero-cinematic-media::after {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, calc(var(--banner-highlight, 0.18) * 0.4)), transparent 16%),
        radial-gradient(circle at 50% 50%, rgba(63, 169, 245, calc(var(--banner-highlight, 0.18) * 0.3)), transparent 28%),
        linear-gradient(180deg, rgba(5, 15, 28, 0.06), transparent 18%, transparent 82%, rgba(5, 15, 28, 0.14));
    filter: blur(calc(var(--banner-depth-blur, 10px) * 0.75));
    transform: translate3d(calc(var(--banner-depth-shift, 0px) * -0.35), 0, 0);
    pointer-events: none;
    z-index: 2;
}

.hero-cinematic-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(63, 169, 245, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(10, 26, 47, 0.34), rgba(15, 42, 68, 0.26));
    pointer-events: none;
}

.hero-cinematic-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 18, 31, 0.18), rgba(6, 18, 31, 0.34)),
        radial-gradient(circle at 50% 50%, rgba(63, 169, 245, 0.08), transparent 30%);
    z-index: 1;
}

.hero-cinematic-backdrop-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(68vw, 520px);
    max-width: 68vh;
    height: auto;
    opacity: 0.14;
    transform:
        translate3d(
            calc(-50% + var(--banner-backdrop-shift-x, 0px)),
            calc(-50% + var(--banner-backdrop-shift-y, 0px)),
            0
        )
        rotateX(var(--banner-backdrop-rotate-x, 0deg))
        rotateY(var(--banner-backdrop-rotate-y, 0deg))
        rotateZ(var(--banner-backdrop-rotate-z, 0deg))
        scale(var(--banner-backdrop-scale, 1.04));
    transform-style: preserve-3d;
    transform-origin: center center;
    filter:
        blur(var(--banner-backdrop-blur, 1px))
        saturate(0.92)
        brightness(0.82)
        drop-shadow(0 0 32px rgba(63, 169, 245, 0.14));
    transition:
        transform 3200ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 320ms ease,
        filter 320ms ease;
    will-change: transform;
    z-index: 0;
}

.hero-cinematic-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: translate3d(0, var(--banner-video-shift, 0px), 0) scale(var(--banner-video-scale, 1.02));
    filter: saturate(1.08) contrast(1.04) brightness(1.04);
    opacity: 0;
    transition: opacity 420ms ease;
    z-index: 1;
}

.hero-cinematic[data-banner-ready="true"] .hero-cinematic-video {
    opacity: 1;
}

.hero-cinematic[data-banner-mode="mobile"] .hero-cinematic-video {
    opacity: 0;
}

.hero-cinematic-mobile-mark {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    z-index: 2;
    perspective: 1200px;
    pointer-events: none;
}

.hero-cinematic[data-banner-mode="mobile"] .hero-cinematic-mobile-mark {
    display: grid;
}

.hero-cinematic[data-banner-mode="mobile"] .hero-cinematic-mobile-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at var(--banner-mobile-light-x, 50%) var(--banner-mobile-light-y, 50%),
            rgba(255, 255, 255, 0.16),
            transparent 34%
        );
    opacity: 0.9;
    pointer-events: none;
}

.hero-cinematic-mobile-logo {
    width: min(74vw, 420px);
    max-width: 74vh;
    height: auto;
    opacity: 0.96;
    transform:
        translate3d(
            var(--banner-mobile-logo-shift-x, 0px),
            var(--banner-mobile-logo-shift-y, 0px),
            0
        )
        rotateX(var(--banner-mobile-logo-rotate-x, 0deg))
        rotateY(var(--banner-mobile-logo-rotate-y, 0deg))
        rotateZ(var(--banner-mobile-logo-rotate-z, 0deg))
        scale(var(--banner-mobile-logo-scale, 1));
    transform-origin: center center;
    transform-style: preserve-3d;
    filter:
        drop-shadow(0 22px 46px rgba(0, 0, 0, 0.28))
        drop-shadow(0 0 38px rgba(63, 169, 245, 0.14))
        saturate(1.05)
        brightness(1.04);
    transition:
        filter 320ms ease,
        opacity 320ms ease;
    pointer-events: none;
    touch-action: auto;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform, filter;
}

.hero-cinematic .banner-fallback,
.hero-cinematic .banner-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-cinematic .banner-fallback {
    object-fit: cover;
    transform: translate3d(0, var(--banner-media-shift, 0px), 0);
    filter: saturate(1.16) contrast(1.08) brightness(1.18);
}

.hero-cinematic .banner-canvas {
    display: block;
    opacity: 0;
    filter: saturate(1.18) contrast(1.08) brightness(1.16);
    transition: opacity 260ms ease;
}

[data-banner-sequence][data-sequence-ready="true"] .banner-canvas,
.hero-cinematic[data-sequence-ready="true"] .banner-canvas {
    opacity: 1;
}

[data-banner-sequence][data-sequence-ready="true"] .banner-fallback,
.hero-cinematic[data-sequence-ready="true"] .banner-fallback {
    opacity: 0.04;
}

.hero-cinematic-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 44%, rgba(4, 12, 22, 0.02) 74%, rgba(4, 12, 22, 0.12) 100%),
        linear-gradient(180deg, rgba(4, 12, 22, 0.04), transparent 18%, transparent 82%, rgba(4, 12, 22, 0.16));
    pointer-events: none;
    z-index: 3;
}

.hero-cinematic-glass {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 18%, transparent 84%, rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 24%, transparent 72%, rgba(255, 255, 255, 0.03));
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 4;
}

.hero-cinematic-sparkles {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.hero-cinematic-spark {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.42) 38%, transparent 72%);
    filter: blur(0.4px);
    opacity: 0;
    animation: sparkleFloat 5.6s ease-in-out infinite;
}

.hero-cinematic-spark::before,
.hero-cinematic-spark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 18px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: translate(-50%, -50%);
}

.hero-cinematic-spark::after {
    width: 18px;
    height: 1px;
}

.hero-cinematic-spark-a {
    top: 24%;
    left: 18%;
    animation-delay: 0s;
}

.hero-cinematic-spark-b {
    top: 34%;
    right: 21%;
    animation-delay: 1.1s;
}

.hero-cinematic-spark-c {
    bottom: 26%;
    left: 30%;
    animation-delay: 2.1s;
}

.hero-cinematic-spark-d {
    bottom: 18%;
    right: 28%;
    animation-delay: 3.2s;
}

.hero-cinematic-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.06), transparent 18%),
        linear-gradient(180deg, rgba(6, 18, 31, 0.22), rgba(6, 18, 31, 0.38));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 360ms ease, visibility 360ms ease;
}

.hero-cinematic[data-sequence-loading="true"] .hero-cinematic-loader,
.hero-cinematic[data-banner-loading="true"] .hero-cinematic-loader {
    opacity: 1;
    visibility: visible;
}

.hero-cinematic-loader-core {
    position: relative;
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    min-width: min(62vw, 240px);
    padding: 1.35rem 1.4rem 1.2rem;
    border-radius: 28px;
    background: rgba(7, 18, 33, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.hero-cinematic-loader-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.7;
    pointer-events: none;
}

.hero-cinematic-loader-glow-a {
    width: 44px;
    height: 44px;
    top: 0.75rem;
    left: 0.8rem;
    background: rgba(63, 169, 245, 0.46);
    animation: loaderSpark 2.2s ease-in-out infinite;
}

.hero-cinematic-loader-glow-b {
    width: 36px;
    height: 36px;
    right: 1rem;
    bottom: 2.4rem;
    background: rgba(212, 175, 55, 0.34);
    animation: loaderSpark 2.2s ease-in-out infinite 0.45s;
}

.hero-cinematic-loader-logo {
    width: clamp(72px, 8vw, 96px);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.26));
    animation: loaderPulse 1.75s ease-in-out infinite;
}

.hero-cinematic-loader-bar {
    width: min(44vw, 180px);
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-cinematic-loader-bar span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(var(--sequence-load-progress, 0.02));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: inherit;
}

.hero-cinematic-loader-dots {
    display: inline-flex;
    gap: 0.45rem;
}

.hero-cinematic-loader-dots span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(205, 225, 255, 0.62));
    box-shadow: 0 0 14px rgba(63, 169, 245, 0.3);
    animation: loaderDot 1.2s ease-in-out infinite;
}

.hero-cinematic-loader-dots span:nth-child(2) {
    animation-delay: 0.18s;
}

.hero-cinematic-loader-dots span:nth-child(3) {
    animation-delay: 0.36s;
}

.hero-cinematic-dock {
    position: absolute;
    left: 50%;
    bottom: clamp(1rem, 2vw, 1.6rem);
    z-index: 5;
    display: grid;
    gap: 0.65rem;
    width: min(90vw, 520px);
    transform: translateX(-50%);
    justify-items: center;
    transition: opacity 300ms ease, transform 300ms ease;
}

.hero-cinematic-motion-control {
    display: none;
    gap: 0.45rem;
    justify-items: center;
}

.hero-cinematic-motion-button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: rgba(7, 18, 33, 0.58);
    color: rgba(255, 255, 255, 0.96);
    font: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1;
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-cinematic-motion-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-cinematic-motion-status {
    max-width: min(86vw, 320px);
    color: rgba(233, 241, 255, 0.76);
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
}

.hero-cinematic[data-sequence-loading="true"] .hero-cinematic-dock,
.hero-cinematic[data-banner-loading="true"] .hero-cinematic-dock {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
}

.hero-cinematic-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-cinematic-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.hero-cinematic-motion-control[hidden] {
    display: none !important;
}

.hero-cinematic-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border-radius: 999px;
    background: rgba(8, 19, 33, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-cinematic-cue-arrows {
    position: relative;
    width: 1.3rem;
    height: 1.5rem;
}

.hero-cinematic-cue-arrows span {
    position: absolute;
    left: 50%;
    width: 0.78rem;
    height: 0.78rem;
    border-right: 2px solid rgba(255, 255, 255, 0.88);
    border-bottom: 2px solid rgba(255, 255, 255, 0.88);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 0.08rem;
    animation: cueArrowBounce 1.8s ease-in-out infinite;
}

.hero-cinematic-cue-arrows span:last-child {
    top: 0.42rem;
    opacity: 0.5;
    animation-delay: 0.14s;
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.92;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes loaderSpark {
    0%, 100% {
        transform: scale(0.86);
        opacity: 0.26;
    }

    50% {
        transform: scale(1.18);
        opacity: 0.82;
    }
}

@keyframes loaderDot {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@keyframes cueArrowBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(45deg);
        opacity: 0.58;
    }

    45% {
        transform: translateX(-50%) translateY(4px) rotate(45deg);
        opacity: 1;
    }

    70% {
        transform: translateX(-50%) translateY(1px) rotate(45deg);
        opacity: 0.82;
    }
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(0.7);
        opacity: 0;
    }

    18% {
        opacity: 0.88;
    }

    50% {
        transform: translate3d(8px, -14px, 0) scale(1);
        opacity: 0.6;
    }

    78% {
        opacity: 0.2;
    }
}

.request-section {
    position: relative;
    z-index: 5;
    margin-top: 0;
    padding: 4rem 0 5rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-light) 88%, #dce5ee 12%), var(--bg-light));
}

.request-shell {
    width: min(100%, 980px);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.request-shell-head {
    display: grid;
    gap: 0.45rem;
    justify-items: start;
    padding-inline: 0.35rem;
}

.request-shell-head h1 {
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 4rem);
    line-height: 0.95;
}

.cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.filters-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: end;
}

.reset-orders-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
    gap: 1rem;
    align-items: end;
    margin-top: 1.4rem;
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(192, 57, 43, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 245, 244, 0.94), rgba(255, 250, 250, 0.9)),
        radial-gradient(circle at top left, rgba(192, 57, 43, 0.12), transparent 30%);
}

.reset-orders-copy {
    display: grid;
    gap: 0.5rem;
}

.reset-orders-copy h3,
.reset-orders-copy p {
    margin: 0;
}

.reset-orders-copy p {
    color: var(--muted);
    line-height: 1.7;
}

.reset-orders-copy strong {
    color: #96281b;
}

.reset-orders-form {
    display: grid;
    gap: 0.85rem;
}

.reset-orders-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

.filters-search {
    grid-column: span 2;
}

.filters-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.request-toolbar {
    display: grid;
    gap: 1rem;
}

.request-toolbar-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.request-toolbar-head h2 {
    margin: 0;
}

.inline-search {
    display: grid;
    gap: 0.55rem;
    min-width: min(100%, 320px);
    font-weight: 600;
}

.inline-search input {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-dark);
}

.bulk-form {
    display: grid;
    gap: 1rem;
}

.bulk-bar {
    display: grid;
    grid-template-columns: auto auto 200px 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.bulk-bar select,
.bulk-bar input {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-dark);
}

.bulk-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.form-grid label {
    display: grid;
    gap: 0.55rem;
    font-weight: 600;
}

.filters-grid label {
    display: grid;
    gap: 0.55rem;
    font-weight: 600;
}

.form-grid input, .form-grid select, .form-grid textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-dark);
}

.request-form-panel {
    gap: 1.15rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, #ffffff 6%), color-mix(in srgb, var(--surface) 90%, #eef4fb 10%));
}

.request-summary-card,
.request-upload-card,
.request-pin-card,
.receipt-hero,
.receipt-detail-card,
.receipt-proof-card,
.receipt-side-note,
.receipt-pin-card,
.invoice-pin-card {
    position: relative;
    overflow: hidden;
}

.request-summary-card,
.request-upload-card,
.request-pin-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(0, 143, 199, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(242, 247, 252, 0.86)),
        radial-gradient(circle at top left, rgba(0, 143, 199, 0.12), transparent 28%);
}

.request-summary-card::before,
.request-upload-card::before,
.request-pin-card::before,
.receipt-hero::before,
.receipt-detail-card::before,
.receipt-proof-card::before,
.receipt-side-note::before,
.receipt-pin-card::before,
.invoice-pin-card::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 44%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 143, 199, 0.4), transparent);
    pointer-events: none;
}

.request-summary-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(16, 37, 74, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.request-pin-card {
    grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1fr);
    align-items: center;
    border-color: rgba(185, 28, 28, 0.18);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(249, 244, 236, 0.9)),
        radial-gradient(circle at top left, rgba(199, 154, 47, 0.18), transparent 32%);
}

.request-pin-media {
    overflow: hidden;
    border-radius: 18px;
    background: #071329;
    box-shadow: 0 18px 34px rgba(16, 37, 74, 0.16);
}

.request-pin-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.request-pin-copy {
    display: grid;
    gap: 0.45rem;
}

.request-pin-copy h3,
.receipt-pin-card h2,
.invoice-pin-card h2 {
    margin: 0;
}

.request-pin-copy p,
.receipt-pin-card p,
.invoice-pin-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.request-summary-head,
.request-upload-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.request-summary-head h3,
.request-upload-top h3 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.request-summary-head p,
.request-upload-top p,
.request-upload-copy span {
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.request-summary-total {
    min-width: 210px;
    display: grid;
    gap: 0.4rem;
    justify-items: end;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(16, 37, 74, 0.96), rgba(25, 62, 104, 0.92));
    color: var(--text-light);
    box-shadow: 0 18px 34px rgba(16, 37, 74, 0.18);
}

.request-summary-total small {
    opacity: 0.72;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.request-summary-total strong {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    line-height: 1;
}

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

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

.request-summary-stat {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(16, 37, 74, 0.08);
}

.request-summary-stat span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.request-summary-stat strong {
    font-size: 1.3rem;
    line-height: 1.1;
}

.request-summary-stat-accent {
    background: linear-gradient(145deg, rgba(255, 242, 219, 0.96), rgba(255, 250, 240, 0.92));
}

.request-upload-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 42, 68, 0.08);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.request-upload-status.is-ready {
    background: rgba(24, 153, 91, 0.14);
    color: #1a7f47;
}

.request-deposit-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(199, 154, 47, 0.24);
    background:
        linear-gradient(145deg, rgba(255, 250, 233, 0.96), rgba(255, 246, 222, 0.92)),
        radial-gradient(circle at top left, rgba(199, 154, 47, 0.12), transparent 24%);
}

.request-deposit-head {
    display: grid;
    gap: 0.35rem;
}

.request-deposit-head h3 {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.request-deposit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.request-deposit-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.request-deposit-item span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
}

.request-deposit-item strong {
    line-height: 1.45;
}

.request-upload-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.request-upload-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0;
    cursor: pointer;
}

.request-upload-control input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.request-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 52px;
    padding: 0.85rem 1.2rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #7b4fdf, #9b6dff);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 30px rgba(123, 79, 223, 0.2);
}

.request-upload-copy {
    display: grid;
    gap: 0.25rem;
}

.request-upload-copy strong {
    font-size: 1rem;
}

.request-proof-preview {
    border-radius: 18px;
    border: 1px dashed rgba(15, 42, 68, 0.14);
    background: rgba(15, 42, 68, 0.04);
    overflow: hidden;
}

.request-proof-gallery,
.receipt-proof-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.request-proof-card,
.receipt-proof-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 42, 68, 0.08);
    background: rgba(255, 255, 255, 0.74);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.request-proof-card:hover,
.receipt-proof-item:hover {
    transform: translateY(-2px);
    border-color: rgba(63, 169, 245, 0.28);
    box-shadow: 0 18px 34px rgba(15, 42, 68, 0.12);
}

.request-proof-card {
    overflow: hidden;
}

.request-proof-card-media {
    position: relative;
    min-height: 148px;
    margin: -0.2rem -0.25rem 0.15rem;
    border-radius: 15px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 26, 47, 0.08), rgba(10, 26, 47, 0.02)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.18), transparent 30%);
    display: grid;
    place-items: center;
}

.request-proof-card-media img {
    width: 100%;
    height: 158px;
    object-fit: cover;
    display: block;
}

.request-proof-card-media.is-document {
    background:
        linear-gradient(160deg, rgba(123, 79, 223, 0.18), rgba(63, 169, 245, 0.14)),
        rgba(15, 42, 68, 0.04);
}

.request-proof-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow:
        0 18px 28px rgba(15, 42, 68, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.request-proof-card-type,
.receipt-proof-item-type {
    display: inline-flex;
    width: fit-content;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(123, 79, 223, 0.12);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.request-proof-card strong,
.receipt-proof-item strong {
    line-height: 1.5;
}

.request-proof-card small {
    color: var(--muted);
    line-height: 1.55;
}

.request-proof-preview[hidden] {
    display: none;
}

.request-proof-preview-media {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(10, 26, 47, 0.08), rgba(10, 26, 47, 0.02)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.1), transparent 24%);
}

.request-proof-preview-media.is-file {
    min-height: 96px;
}

.request-proof-preview-label {
    color: var(--muted);
    font-weight: 600;
    text-align: center;
}

.request-proof-preview img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 42, 68, 0.16);
}

.request-submit-row {
    justify-content: space-between;
    align-items: center;
    padding-top: 0.35rem;
}

.request-submit-row .helper {
    margin: 0;
    max-width: 32rem;
}

.swal-request-summary {
    display: grid;
    gap: 1rem;
    text-align: left;
}

.swal-request-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.swal-request-summary__grid div,
.swal-request-summary__proof {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    background: rgba(63, 169, 245, 0.08);
}

.swal-request-summary__proof ul {
    margin: 0.2rem 0 0;
    padding-left: 1rem;
}

.swal-request-summary__proof li {
    color: var(--text-dark);
    line-height: 1.55;
}

.swal-request-summary span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.swal-request-summary strong {
    color: var(--text-dark);
    line-height: 1.45;
}

.swal-request-summary__totals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.swal-request-summary__totals span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 42, 68, 0.06);
}

.filters-grid input,
.filters-grid select,
.settings-grid input,
.reset-orders-form input,
.catalog-form input,
.catalog-form select,
.catalog-item input,
.catalog-item select {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-dark);
}

.inline-status-form {
    display: grid;
    gap: 0.5rem;
    min-width: 220px;
}

.inline-status-form select,
.inline-status-form input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-dark);
}

.btn-small {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

html[data-theme="dark"] .form-grid input,
html[data-theme="dark"] .form-grid select,
html[data-theme="dark"] .form-grid textarea,
html[data-theme="dark"] .filters-grid input,
html[data-theme="dark"] .filters-grid select,
html[data-theme="dark"] .settings-grid input,
html[data-theme="dark"] .reset-orders-form input,
html[data-theme="dark"] .inline-search input,
html[data-theme="dark"] .bulk-bar select,
html[data-theme="dark"] .bulk-bar input,
html[data-theme="dark"] .catalog-form input,
html[data-theme="dark"] .catalog-form select,
html[data-theme="dark"] .catalog-item input,
html[data-theme="dark"] .catalog-item select,
html[data-theme="dark"] .inline-status-form select,
html[data-theme="dark"] .inline-status-form input {
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .request-form-panel,
html[data-theme="dark"] .request-summary-card,
html[data-theme="dark"] .request-pin-card,
html[data-theme="dark"] .request-upload-card,
html[data-theme="dark"] .request-deposit-card,
html[data-theme="dark"] .receipt-hero,
html[data-theme="dark"] .receipt-detail-card,
html[data-theme="dark"] .receipt-proof-card,
html[data-theme="dark"] .receipt-pin-card,
html[data-theme="dark"] .receipt-side-note,
html[data-theme="dark"] .receipt-info-box,
html[data-theme="dark"] .receipt-notes-card,
html[data-theme="dark"] .receipt-proof-file,
html[data-theme="dark"] .request-summary-stat,
html[data-theme="dark"] .request-proof-preview,
html[data-theme="dark"] .request-proof-preview-media,
html[data-theme="dark"] .receipt-order-table-row {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .request-summary-kicker {
    background: rgba(0, 143, 199, 0.16);
    color: #9be4ff;
}

html[data-theme="dark"] .request-deposit-card {
    border-color: rgba(199, 154, 47, 0.18);
    background:
        linear-gradient(145deg, rgba(71, 58, 18, 0.28), rgba(48, 38, 10, 0.34)),
        rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .request-deposit-item,
html[data-theme="dark"] .request-proof-card,
html[data-theme="dark"] .receipt-proof-item {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .request-proof-card-media {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 16, 28, 0.06)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.18), transparent 28%);
}

html[data-theme="dark"] .request-proof-card-media.is-document {
    background:
        linear-gradient(160deg, rgba(123, 79, 223, 0.28), rgba(63, 169, 245, 0.18)),
        rgba(8, 16, 28, 0.18);
}

html[data-theme="dark"] .request-proof-card-icon {
    background: rgba(10, 18, 31, 0.92);
    color: #d6cbff;
    box-shadow:
        0 18px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .request-summary-total,
html[data-theme="dark"] .receipt-code-band,
html[data-theme="dark"] .receipt-order-table-head {
    box-shadow: none;
}

html[data-theme="dark"] .request-upload-status {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
}

html[data-theme="dark"] .request-upload-status.is-ready {
    background: rgba(24, 153, 91, 0.18);
    color: #86ddb6;
}

.full-span { grid-column: 1 / -1; }
.narrow-stack { width: min(100%, 820px); }
.receipt-card, .callout, .chart-card { display: grid; gap: 1rem; }

.receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.receipt-row:last-child { border-bottom: 0; padding-bottom: 0; }
.receipt-screen {
    display: grid;
    gap: 1.5rem;
}

.receipt-hero {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.88)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.14), transparent 28%);
}

.receipt-hero h1,
.receipt-proof-card h2 {
    margin: 0;
}

.receipt-hero p,
.receipt-proof-card p,
.receipt-side-note p,
.receipt-notes-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.receipt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.receipt-detail-card,
.receipt-proof-card,
.receipt-side-note,
.receipt-pin-card {
    padding: 1.35rem;
}

.receipt-pin-card,
.invoice-pin-card {
    display: grid;
    gap: 0.85rem;
}

.receipt-pin-card img,
.invoice-pin-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(16, 37, 74, 0.14);
}

.receipt-detail-card {
    display: grid;
    gap: 1.2rem;
}

.receipt-code-band {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--event-red));
    color: #fff;
}

.receipt-code-band span {
    opacity: 0.8;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.receipt-code-band strong {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1;
}

.receipt-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.receipt-info-box,
.receipt-notes-card,
.receipt-proof-file {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 42, 68, 0.08);
    background: rgba(255, 255, 255, 0.78);
}

.receipt-info-box span,
.receipt-notes-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.receipt-info-box strong,
.receipt-proof-file strong {
    font-size: 1rem;
    line-height: 1.45;
}

.receipt-order-summary {
    display: grid;
    gap: 0.85rem;
}

.receipt-order-summary-head {
    display: grid;
    gap: 0.35rem;
}

.receipt-order-summary-head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.receipt-order-summary-head p {
    margin: 0;
    color: var(--muted);
}

.receipt-order-table {
    display: grid;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(16, 37, 74, 0.08);
}

.receipt-order-table-head,
.receipt-order-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
    gap: 0.8rem;
    align-items: center;
    padding: 0.95rem 1rem;
}

.receipt-order-table-head {
    background: linear-gradient(135deg, var(--primary), var(--event-red));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.receipt-order-table-row {
    background: rgba(255, 255, 255, 0.82);
}

.receipt-order-table-row span,
.receipt-order-table-row strong {
    line-height: 1.45;
}

.receipt-total-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--event-green), #166534);
    color: #fff;
}

.receipt-total-card div {
    display: grid;
    gap: 0.35rem;
}

.receipt-total-card span {
    opacity: 0.8;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
}

.receipt-total-card strong {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    line-height: 1.1;
}

.receipt-side-stack {
    display: grid;
    gap: 1rem;
}

.receipt-proof-preview {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 42, 68, 0.05);
    border: 1px solid rgba(15, 42, 68, 0.08);
}

.receipt-proof-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.request-history-screen {
    display: grid;
    gap: 1.5rem;
    width: min(100%, 1040px);
}

.request-history-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1.2rem;
    align-items: end;
    padding: 1.6rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.88)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.14), transparent 28%);
}

.request-history-copy {
    display: grid;
    gap: 0.55rem;
}

.request-history-copy h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 20ch;
}

.request-history-copy h1,
.request-history-empty h2,
.invoice-brand-copy h1,
.invoice-block-head h2,
.invoice-side-card h2 {
    margin: 0;
}

.request-history-copy p,
.request-history-empty p,
.request-history-item span,
.invoice-brand-copy p,
.invoice-block-head p,
.invoice-token-box small,
.invoice-slip-image span {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.request-history-copy p {
    max-width: 46rem;
    font-size: 1.02rem;
}

.invoice-brand-copy h1 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.invoice-brand-copy p {
    font-size: 1rem;
}

.request-history-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.request-history-stat {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 42, 68, 0.08);
    box-shadow:
        0 18px 34px rgba(15, 42, 68, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.request-history-stat span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.request-history-stat strong {
    font-size: 1.4rem;
    line-height: 1.1;
}

.request-history-stat-accent {
    background: linear-gradient(145deg, rgba(255, 242, 219, 0.94), rgba(255, 250, 240, 0.9));
}

.request-history-empty {
    display: grid;
    gap: 0.8rem;
    justify-items: start;
    padding: 1.6rem;
}

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

.request-history-card {
    display: grid;
    gap: 1rem;
    padding: 1.3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 42, 68, 0.08);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.9)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.12), transparent 28%);
    box-shadow:
        0 22px 44px rgba(15, 42, 68, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.request-history-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #008fc7, #c79a2f, rgba(0, 143, 199, 0.2));
}

.request-history-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.request-history-id {
    display: grid;
    gap: 0.25rem;
}

.request-history-id span,
.request-history-item span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.request-history-id strong {
    font-size: 1.45rem;
    line-height: 1.1;
    word-break: break-word;
}

.request-history-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.request-history-item {
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 42, 68, 0.08);
    min-height: 88px;
}

.request-history-item strong {
    line-height: 1.45;
}

.request-history-card-head .status-pill {
    align-self: start;
}

.request-history-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.request-history-card-actions .btn {
    min-width: 148px;
}

.request-history-pending {
    color: var(--muted);
    font-weight: 600;
}

.invoice-section {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-light) 90%, #dfe7f0 10%), var(--bg-light));
}

.invoice-screen {
    width: min(100%, 1100px);
}

.invoice-shell {
    display: grid;
    gap: 1.35rem;
    padding: 1.55rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 42, 68, 0.08);
    box-shadow:
        0 28px 56px rgba(15, 42, 68, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.92)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.12), transparent 30%);
}

.invoice-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #008fc7, #c79a2f, rgba(0, 143, 199, 0.18));
}

.invoice-topbar,
.invoice-brand,
.invoice-layout {
    display: grid;
}

.invoice-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
}

.invoice-brand {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.invoice-brand-copy {
    display: grid;
    gap: 0.45rem;
}

.invoice-brand-mark {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(16, 37, 74, 0.05);
    border: 1px solid rgba(16, 37, 74, 0.08);
    box-shadow:
        0 18px 34px rgba(16, 37, 74, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.invoice-brand-mark img {
    width: 72px;
    height: auto;
    display: block;
}

.invoice-code-band {
    display: grid;
    gap: 0.3rem;
    padding: 1.1rem 1.2rem;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--event-red));
    color: #fff;
    box-shadow: 0 20px 40px rgba(16, 37, 74, 0.22);
}

.invoice-code-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.18) 50%, transparent 72%);
    transform: translateX(-42%);
}

.invoice-code-band span {
    opacity: 0.78;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.invoice-code-band strong {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    line-height: 1;
    word-break: break-all;
}

.invoice-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.35rem;
    align-items: start;
}

.invoice-main,
.invoice-side,
.invoice-side-actions,
.invoice-slip-files {
    display: grid;
}

.invoice-main,
.invoice-side {
    gap: 1rem;
}

.invoice-block,
.invoice-side-card {
    display: grid;
    gap: 0.9rem;
}

.invoice-block {
    padding: 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(16, 37, 74, 0.08);
    background: rgba(255, 255, 255, 0.76);
    box-shadow:
        0 18px 36px rgba(16, 37, 74, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.invoice-block-head {
    display: grid;
    gap: 0.35rem;
}

.invoice-block-head h2,
.invoice-side-card h2 {
    font-size: 1.4rem;
    line-height: 1.1;
}

.invoice-side-card {
    padding: 1.2rem;
    border: 1px solid rgba(16, 37, 74, 0.08);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 255, 0.82)),
        radial-gradient(circle at top left, rgba(0, 143, 199, 0.12), transparent 34%);
    box-shadow:
        0 18px 36px rgba(16, 37, 74, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.invoice-side-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.invoice-side-actions {
    gap: 0.7rem;
}

.invoice-side-actions .btn {
    width: 100%;
}

.invoice-token-box {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 42, 68, 0.08);
}

.invoice-token-box strong {
    font-size: 1.08rem;
    line-height: 1.35;
    word-break: break-all;
}

.invoice-slip-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.95rem;
}

.invoice-slip-image {
    display: grid;
    gap: 0.6rem;
    padding: 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 42, 68, 0.08);
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 16px 32px rgba(15, 42, 68, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.invoice-slip-image:hover {
    transform: translateY(-2px);
    border-color: rgba(63, 169, 245, 0.26);
    box-shadow: 0 18px 34px rgba(15, 42, 68, 0.12);
}

.invoice-slip-image img {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 360px;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    padding: 0.55rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(233, 239, 247, 0.82)),
        rgba(15, 42, 68, 0.04);
}

.invoice-slip-files {
    gap: 0.85rem;
}

.invoice-slip-files .receipt-proof-item {
    background: rgba(255, 255, 255, 0.84);
}

.app-lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(4, 12, 22, 0.82);
    backdrop-filter: blur(14px);
}

.app-lightbox.is-open {
    display: flex;
}

.app-lightbox-panel {
    width: min(100%, 980px);
    max-height: calc(100svh - 3rem);
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 26px;
    background: rgba(8, 19, 33, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.app-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
}

.app-lightbox-header strong {
    line-height: 1.45;
}

.app-lightbox-close {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.app-lightbox-body {
    min-height: 200px;
    max-height: calc(100svh - 8rem);
    border-radius: 20px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-lightbox-body img {
    display: block;
    max-width: 100%;
    max-height: calc(100svh - 9rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    border: 0;
}

.app-lightbox-body iframe {
    width: 100%;
    height: calc(100svh - 9rem);
    min-height: 400px;
    border: 0;
    background: #fff;
    border-radius: 14px;
}

.receipt-proof-file span {
    color: var(--muted);
    line-height: 1.7;
}

.receipt-side-note {
    display: grid;
    gap: 0.85rem;
}
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.table-card {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

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

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

.section-head h2 {
    margin: 0;
}

.catalog-form,
.catalog-item {
    display: grid;
    gap: 0.75rem;
}

.catalog-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.catalog-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .catalog-item {
    background: rgba(255, 255, 255, 0.03);
}

.catalog-list {
    display: grid;
    gap: 0.85rem;
    max-height: 640px;
    overflow: auto;
}

.catalog-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.settings-actions {
    display: flex;
    align-items: center;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pagination-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.history-stack {
    display: grid;
    gap: 0.5rem;
    min-width: 220px;
}

.history-item {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(63, 169, 245, 0.08);
}

.history-item span,
.history-item em {
    color: var(--muted);
    font-size: 0.85rem;
}

.history-item em {
    font-style: normal;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(63, 169, 245, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.stat-card strong {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    display: block;
    margin-top: 0.45rem;
}

.site-footer {
    position: relative;
    padding: 2.5rem 0 3.5rem;
    background:
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.1), transparent 24%),
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 20%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg-light) 92%, #dfe7ef 8%), var(--bg-light));
}

.footer-shell {
    position: relative;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.12), transparent 28%);
    box-shadow: 0 26px 70px rgba(10, 26, 47, 0.12);
    overflow: hidden;
}

.footer-shell::before {
    content: "";
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(63, 169, 245, 0.78), rgba(212, 175, 55, 0.58), rgba(63, 169, 245, 0));
    pointer-events: none;
}

.footer-shell::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(63, 169, 245, 0.12);
    filter: blur(60px);
    pointer-events: none;
}

.footer-brand img {
    width: 46px;
    height: 46px;
}

.footer-brand {
    position: relative;
    z-index: 1;
    padding-right: 1rem;
}

.footer-brand strong {
    font-size: 1.2rem;
}

.footer-brand span {
    display: block;
    margin-top: 0.1rem;
}

.footer-controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(63, 169, 245, 0.14);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.footer-nav a,
.footer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font-weight: 600;
    transition: 180ms ease;
}

.footer-nav a:hover,
.footer-action:hover {
    background: rgba(63, 169, 245, 0.14);
    border-color: rgba(63, 169, 245, 0.28);
    transform: translateY(-1px);
}

.footer-session-form {
    margin: 0;
}

.theme-switch {
    position: relative;
    border: 1px solid rgba(63, 169, 245, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: inherit;
    cursor: pointer;
    padding: 0.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.theme-switch-track {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 76px;
    height: 42px;
    padding: 0 10px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(180deg, rgba(244, 246, 248, 0.92), rgba(223, 231, 239, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
    overflow: hidden;
}

.theme-switch-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 220ms ease, opacity 220ms ease, color 220ms ease;
}

.theme-switch-sun {
    color: #d78f18;
    opacity: 1;
    transform: translateX(0);
}

.theme-switch-moon {
    position: relative;
    justify-self: end;
    color: #5b6ea6;
    opacity: 0.56;
    transform: translateX(0);
}

.theme-switch-moon::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(6, 16, 31, 0.22);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.theme-switch-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff, #dce8f2);
    box-shadow: 0 6px 14px rgba(15, 42, 68, 0.16);
    transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

html[data-theme="dark"] .theme-switch-sun {
    opacity: 0.5;
    transform: translateX(-2px) scale(0.92);
}

html[data-theme="dark"] .theme-switch-moon {
    opacity: 1;
    color: #d7def8;
    transform: translateX(2px);
}

html[data-theme="dark"] .theme-switch-moon::before {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .theme-switch-track {
    background: linear-gradient(180deg, rgba(8, 19, 33, 0.88), rgba(16, 34, 56, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .theme-switch-knob {
    transform: translateX(34px);
    background: linear-gradient(180deg, #d7def8, #9ca8c9);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.theme-switch:hover .theme-switch-track,
.theme-switch:focus-visible .theme-switch-track {
    background: linear-gradient(180deg, rgba(232, 242, 250, 0.96), rgba(214, 230, 243, 0.96));
}

.theme-switch:focus-visible {
    outline: none;
}

html[data-theme="dark"] .site-footer {
    background:
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.14), transparent 24%),
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 18%),
        linear-gradient(180deg, #091727 0%, #081321 100%);
}

html[data-theme="dark"] .request-section {
    background: linear-gradient(180deg, #0d2740 0%, #081321 100%);
}

html[data-theme="dark"] .request-form-panel {
    background:
        linear-gradient(145deg, rgba(14, 32, 54, 0.92), rgba(10, 26, 47, 0.84)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.08), transparent 28%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .footer-shell {
    background:
        linear-gradient(145deg, rgba(10, 26, 47, 0.86), rgba(8, 19, 33, 0.72)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.14), transparent 28%);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .footer-nav,
html[data-theme="dark"] .theme-switch {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .footer-nav a:hover,
html[data-theme="dark"] .footer-action:hover {
    background: rgba(63, 169, 245, 0.14);
}

.page-admin-panel .site-header,
.page-admin-panel .site-footer {
    display: none;
}

.page-invoice .site-header,
.page-invoice .site-footer {
    display: none;
}

.page-admin-panel {
    font-size: 0.875rem;
}

.page-invoice main {
    min-height: 100svh;
}

.page-admin-panel main {
    min-height: 100svh;
}

.admin-workspace {
    min-height: 100svh;
    padding: 0.9rem 0.75rem;
    background:
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 18%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg-light) 94%, #ffffff 6%), var(--bg-light));
}

.admin-app-shell {
    width: min(100%, 1340px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-sidebar,
.admin-hero-panel,
.admin-console-card {
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 92%, #ffffff 8%);
    box-shadow: var(--shadow);
}

.admin-sidebar {
    position: sticky;
    top: 0.9rem;
    min-height: calc(100svh - 1.8rem);
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding: 0.9rem;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(222, 240, 252, 0.8), rgba(255, 255, 255, 0.74)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.2), transparent 32%);
    overflow: hidden;
}

.admin-sidebar::after {
    content: "";
    position: absolute;
    inset: auto -15% -20% auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(63, 169, 245, 0.16);
    filter: blur(56px);
    pointer-events: none;
}

.admin-sidebar > * {
    position: relative;
    z-index: 1;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0.9rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.admin-sidebar-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.admin-sidebar-brand strong,
.admin-sidebar-profile strong {
    display: block;
    font-size: 1.05rem;
}

.admin-sidebar-brand span,
.admin-sidebar-profile p,
.admin-user-copy span,
.admin-user-copy p,
.admin-user-copy small,
.admin-template-card p {
    color: var(--muted);
}

.admin-sidebar-profile {
    display: grid;
    gap: 0.6rem;
    padding: 0.95rem;
    border-radius: 22px;
    background: rgba(15, 42, 68, 0.06);
}

.admin-sidebar-profile p {
    margin: 0;
    line-height: 1.7;
}

.admin-sidebar-nav {
    display: grid;
    gap: 0.45rem;
}

.admin-sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 46px;
    padding: 0.78rem 0.9rem;
    border-radius: 16px;
    font-weight: 700;
    color: var(--primary);
    background: transparent;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.admin-sidebar-nav a::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(63, 169, 245, 0.32);
    box-shadow: 0 0 0 6px rgba(63, 169, 245, 0.08);
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.is-active,
.admin-sidebar-nav a:focus-visible {
    color: var(--text-light);
    background: linear-gradient(135deg, #143b73, #10254a);
    box-shadow: 0 16px 30px rgba(15, 42, 68, 0.2);
    transform: translateX(2px);
}

.admin-sidebar-actions {
    margin-top: auto;
    display: grid;
    gap: 0.85rem;
}

.admin-sidebar-actions .theme-switch {
    width: 100%;
    justify-content: center;
    display: inline-flex;
}

.admin-sidebar-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-sidebar-action-row form {
    margin: 0;
}

.admin-sidebar-action-row .btn {
    width: 100%;
}

.admin-main {
    display: grid;
    gap: 1rem;
}

@media (min-width: 1181px) {
    .admin-workspace {
        padding: 0 0.9rem 0.9rem 0;
    }

    .admin-app-shell {
        width: 100%;
        max-width: none;
        margin: 0;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 0.9rem;
    }

    .admin-sidebar {
        top: 0;
        min-height: 100svh;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .admin-main {
        padding: 1rem 0 0;
        gap: 0.9rem;
    }

    .filters-grid {
        grid-template-columns:
            minmax(130px, 0.78fr)
            minmax(130px, 0.78fr)
            minmax(148px, 0.82fr)
            minmax(148px, 0.82fr)
            minmax(260px, 1.35fr)
            auto;
        gap: 0.75rem;
    }

    .filters-search {
        grid-column: auto;
    }

    .filters-actions {
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-self: end;
    }

    .filters-actions .btn {
        white-space: nowrap;
    }
}

.admin-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 0.9rem;
    padding: 1.1rem;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 253, 0.78)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.18), transparent 32%);
}

.admin-hero-copy h1,
.admin-section-head h2,
.admin-template-card h3,
.request-toolbar-head h3 {
    margin: 0;
    line-height: 0.98;
}

.admin-hero-copy h1 {
    font-size: clamp(1.7rem, 2.8vw, 2.9rem);
    margin-top: 0.3rem;
}

.admin-hero-copy p {
    max-width: 52rem;
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.admin-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.admin-hero-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.58rem 0.82rem;
    border-radius: 999px;
    background: rgba(15, 42, 68, 0.06);
    border: 1px solid rgba(15, 42, 68, 0.08);
    font-weight: 600;
}

.admin-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.admin-metric-card {
    min-height: 116px;
    display: grid;
    align-content: start;
    gap: 0.5rem;
    padding: 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.admin-metric-card span,
.admin-user-summary span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}

.admin-metric-card strong {
    font-size: clamp(1.55rem, 2.2vw, 2.1rem);
    line-height: 1;
}

.admin-metric-card small {
    color: var(--muted);
    line-height: 1.6;
}

.admin-metric-blue {
    background: linear-gradient(145deg, rgba(215, 231, 255, 0.9), rgba(237, 246, 255, 0.84));
}

.admin-metric-green {
    background: linear-gradient(145deg, rgba(223, 244, 234, 0.94), rgba(244, 253, 247, 0.9));
}

.admin-metric-gold {
    background: linear-gradient(145deg, rgba(255, 238, 204, 0.96), rgba(255, 248, 232, 0.9));
}

.admin-metric-cyan {
    background: linear-gradient(145deg, rgba(221, 244, 255, 0.95), rgba(242, 250, 255, 0.92));
}

.admin-overview-grid,
.admin-split-grid {
    display: grid;
    gap: 1rem;
}

.admin-overview-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

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

.admin-console-card {
    padding: 0.95rem;
    border-radius: 22px;
}

.admin-section-block,
.admin-chart-card,
.admin-quick-card {
    display: grid;
    gap: 0.9rem;
}

.admin-module-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
}

.admin-module-banner-copy h1 {
    margin: 0.3rem 0 0;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 0.98;
}

.admin-module-banner-copy p {
    margin: 0.7rem 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.admin-module-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.admin-module-banner-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 42, 68, 0.06);
    font-weight: 600;
}

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

.admin-section-head h2 {
    margin-top: 0.25rem;
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
}

.admin-quick-links {
    display: grid;
    gap: 0.75rem;
}

.admin-quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(63, 169, 245, 0.08);
    border: 1px solid rgba(63, 169, 245, 0.14);
    font-weight: 600;
    transition: transform 180ms ease, background 180ms ease;
}

.admin-quick-links a::after {
    content: ">";
    color: var(--secondary);
    font-weight: 800;
}

.admin-quick-links a:hover {
    transform: translateY(-1px);
    background: rgba(63, 169, 245, 0.12);
}

.admin-quick-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding-top: 0.35rem;
}

.admin-form-grid,
.admin-upload-form {
    display: grid;
    gap: 0.85rem;
}

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

.admin-form-grid label,
.admin-upload-form label {
    display: grid;
    gap: 0.55rem;
    font-weight: 600;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-upload-form input {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-dark);
}

.admin-form-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
}

.admin-user-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.admin-user-summary span {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 42, 68, 0.06);
}

.admin-user-list,
.admin-catalog-grid {
    display: grid;
    gap: 0.9rem;
}

.admin-user-list {
    max-height: 620px;
    overflow: auto;
}

.admin-user-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.58);
}

.admin-user-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #143b73, #008fc7);
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.admin-user-copy {
    display: grid;
    gap: 0.2rem;
}

.admin-user-copy strong {
    font-size: 1rem;
}

.admin-user-copy p,
.admin-user-copy small {
    margin: 0;
    line-height: 1.6;
}

.admin-user-state,
.status-pill {
    white-space: nowrap;
}

.admin-user-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-user-state.is-active {
    background: rgba(30, 160, 92, 0.14);
    color: #1a7f47;
}

.admin-user-state.is-inactive {
    background: rgba(15, 42, 68, 0.08);
    color: var(--muted);
}

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

.admin-catalog-card {
    background: rgba(255, 255, 255, 0.56);
}

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

.admin-template-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
}

.admin-template-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(63, 169, 245, 0.12);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-template-card p {
    margin: 0;
    line-height: 1.7;
}

.admin-template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-create-inline {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    gap: 0.75rem;
    align-items: center;
}

.admin-create-inline.is-with-field {
    grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1fr) 180px auto;
}

.admin-create-inline input,
.admin-create-inline select {
    width: 100%;
    min-height: 44px;
    padding: 0.82rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-dark);
}

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

.admin-crud-input {
    width: 100%;
    min-height: 42px;
    padding: 0.75rem 0.82rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-dark);
}

.admin-crud-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 42, 68, 0.06);
    font-weight: 700;
}

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

.admin-crud-actions form {
    margin: 0;
}

.admin-proof-stack {
    display: grid;
    gap: 0.6rem;
    min-width: 240px;
}

.admin-proof-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.7rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 42, 68, 0.08);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 255, 0.82)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.1), transparent 32%);
}

.admin-proof-preview {
    display: grid;
    gap: 0.3rem;
    color: inherit;
    text-decoration: none;
}

.admin-proof-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(15, 42, 68, 0.08);
    background: rgba(15, 42, 68, 0.04);
}

.admin-proof-preview strong {
    line-height: 1.4;
    word-break: break-word;
}

.admin-proof-preview-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 26px;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(63, 169, 245, 0.12);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.admin-proof-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-proof-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    background: rgba(15, 42, 68, 0.06);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}

.admin-proof-actions a:hover,
.admin-proof-actions a:focus-visible {
    background: rgba(63, 169, 245, 0.14);
    transform: translateY(-1px);
}

.admin-proof-empty {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 42, 68, 0.06);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.admin-upload-form input[type="file"] {
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.72);
}

.admin-table-shell {
    background: color-mix(in srgb, var(--surface) 94%, #ffffff 6%);
}

html[data-theme="dark"] .admin-workspace {
    background:
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 18%),
        linear-gradient(180deg, #081321 0%, #0b1c30 100%);
}

html[data-theme="dark"] .admin-sidebar,
html[data-theme="dark"] .admin-hero-panel,
html[data-theme="dark"] .admin-console-card,
html[data-theme="dark"] .admin-user-card,
html[data-theme="dark"] .admin-catalog-card,
html[data-theme="dark"] .admin-template-card,
html[data-theme="dark"] .admin-form-grid input,
html[data-theme="dark"] .admin-form-grid select,
html[data-theme="dark"] .admin-create-inline input,
html[data-theme="dark"] .admin-create-inline select,
html[data-theme="dark"] .admin-crud-input,
html[data-theme="dark"] .admin-upload-form input[type="file"] {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .admin-sidebar {
    background:
        linear-gradient(180deg, rgba(10, 26, 47, 0.92), rgba(8, 19, 33, 0.88)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.12), transparent 28%);
}

html[data-theme="dark"] .admin-sidebar-brand,
html[data-theme="dark"] .admin-sidebar-profile,
html[data-theme="dark"] .admin-hero-tags span,
html[data-theme="dark"] .admin-user-summary span,
html[data-theme="dark"] .admin-proof-card,
html[data-theme="dark"] .admin-proof-empty,
html[data-theme="dark"] .admin-proof-actions a {
    background: rgba(255, 255, 255, 0.04);
}

/* ─── Dark mode: fix invisible text on badge/pill elements ──── */
html[data-theme="dark"] .eyebrow {
    background: rgba(63, 169, 245, 0.22);
    color: #90cdf4;
}

html[data-theme="dark"] .status-pill {
    background: rgba(63, 169, 245, 0.2);
    color: #90cdf4;
}

html[data-theme="dark"] .admin-proof-preview-type {
    background: rgba(63, 169, 245, 0.22);
    color: #90cdf4;
}

html[data-theme="dark"] .admin-proof-actions a {
    color: #90cdf4;
}

html[data-theme="dark"] .admin-module-banner-meta span {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .admin-hero-tags span {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .admin-sidebar-profile strong,
html[data-theme="dark"] .admin-sidebar-profile p {
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .data-table th {
    color: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .req-id {
    background: rgba(63, 169, 245, 0.18);
    color: #90cdf4;
}

html[data-theme="dark"] .admin-proof-empty {
    color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .action-icon-btn {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .admin-sidebar-nav a {
    color: var(--text-dark);
}

html[data-theme="dark"] .admin-sidebar-nav a:hover,
html[data-theme="dark"] .admin-sidebar-nav a.is-active,
html[data-theme="dark"] .admin-sidebar-nav a:focus-visible {
    background: linear-gradient(135deg, #2455ab, #12315f);
}

html[data-theme="dark"] .admin-hero-panel {
    background:
        linear-gradient(145deg, rgba(10, 26, 47, 0.88), rgba(11, 28, 48, 0.82)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.12), transparent 26%);
}

html[data-theme="dark"] .admin-metric-blue {
    background: linear-gradient(145deg, rgba(30, 57, 107, 0.58), rgba(18, 41, 78, 0.72));
}

html[data-theme="dark"] .admin-metric-green {
    background: linear-gradient(145deg, rgba(23, 74, 52, 0.58), rgba(10, 47, 33, 0.72));
}

html[data-theme="dark"] .admin-metric-gold {
    background: linear-gradient(145deg, rgba(113, 84, 20, 0.54), rgba(82, 58, 12, 0.72));
}

html[data-theme="dark"] .admin-metric-cyan {
    background: linear-gradient(145deg, rgba(20, 77, 102, 0.56), rgba(10, 43, 58, 0.72));
}

html[data-theme="dark"] .admin-quick-links a,
html[data-theme="dark"] .admin-user-card,
html[data-theme="dark"] .admin-catalog-card,
html[data-theme="dark"] .admin-template-card,
html[data-theme="dark"] .admin-proof-card {
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .request-history-hero,
html[data-theme="dark"] .request-history-card,
html[data-theme="dark"] .request-history-empty,
html[data-theme="dark"] .invoice-shell,
html[data-theme="dark"] .invoice-block,
html[data-theme="dark"] .invoice-side-card,
html[data-theme="dark"] .invoice-token-box,
html[data-theme="dark"] .invoice-brand-mark,
html[data-theme="dark"] .invoice-slip-image,
html[data-theme="dark"] .invoice-slip-files .receipt-proof-item {
    background:
        linear-gradient(145deg, rgba(10, 26, 47, 0.88), rgba(11, 28, 48, 0.82)),
        radial-gradient(circle at top left, rgba(0, 143, 199, 0.12), transparent 28%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

html[data-theme="dark"] .request-history-stat,
html[data-theme="dark"] .request-history-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

html[data-theme="dark"] .request-history-stat-accent {
    background: linear-gradient(145deg, rgba(78, 59, 12, 0.54), rgba(55, 41, 10, 0.7));
}

html[data-theme="dark"] .invoice-section {
    background: linear-gradient(180deg, #081321 0%, #0b1c30 100%);
}

html[data-theme="dark"] .invoice-slip-image img {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 19, 33, 0.12)),
        rgba(8, 19, 33, 0.42);
}

/* ─── Mobile sidebar toggle ─────────────────────────────────── */
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    z-index: 50;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(135deg, #143b73, #10254a);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 12px 32px rgba(15,42,68,0.28);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.admin-sidebar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15,42,68,0.34);
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(4, 12, 22, 0.56);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 260ms ease;
}

.admin-sidebar-overlay.is-open {
    opacity: 1;
}

/* ─── 1180px tablet breakpoint ───────────────────────────────── */
@media (max-width: 1180px) {
    .admin-app-shell {
        grid-template-columns: 1fr;
    }

    .admin-hero-panel,
    .admin-overview-grid,
    .admin-split-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .admin-module-banner {
        grid-template-columns: 1fr;
    }

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

    .hero-cinematic-frame {
        width: 100%;
        height: 100%;
    }
}


@media (max-width: 980px) {
    .hero-grid,
    .split-grid,
    .cards-grid,
    .stats-grid,
    .form-grid,
    .request-pin-card,
    .footer-shell,
    .header-shell,
    .request-stage,
    .support-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-sidebar-action-row,
    .admin-form-grid,
    .admin-create-inline,
    .admin-create-inline.is-with-field,
    .admin-catalog-grid,
    .admin-template-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-card {
        grid-template-columns: auto 1fr;
    }

    .admin-user-state {
        justify-self: start;
    }

    .admin-proof-stack {
        min-width: 0;
    }

    .filters-grid,
    .settings-grid,
    .reset-orders-card,
    .admin-grid,
    .catalog-form {
        grid-template-columns: 1fr;
    }

    .request-toolbar-head,
    .bulk-bar {
        grid-template-columns: 1fr;
    }

    .request-toolbar-head {
        align-items: stretch;
    }

    .pagination-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters-search {
        grid-column: auto;
    }

    .hero-cinematic {
        min-height: calc(var(--app-vh, 1vh) * 180);
    }

    .hero-cinematic-stage {
        top: var(--header-offset);
        height: calc((var(--app-vh, 1vh) * 100) - var(--header-offset));
        min-height: calc((var(--app-vh, 1vh) * 100) - var(--header-offset));
        padding: 0.9rem;
    }

    .hero-cinematic-frame {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 0;
    }

    .hero-cinematic-media {
        border-radius: 0;
    }

    .hero-cinematic .banner-fallback {
        object-fit: contain;
    }

    .hero-cinematic-video {
        object-fit: contain;
        object-position: center center;
    }

    .hero-cinematic-backdrop {
        background:
            radial-gradient(circle at 50% 50%, rgba(63, 169, 245, 0.14), transparent 38%),
            linear-gradient(180deg, rgba(10, 26, 47, 0.5), rgba(15, 42, 68, 0.42));
    }

    .hero-cinematic-backdrop-logo {
        width: min(88vw, 520px);
        max-width: none;
        opacity: 0.22;
        --banner-backdrop-blur: 0.4px;
    }

    .hero-cinematic[data-banner-mode="mobile"] .hero-cinematic-video {
        display: none;
    }

    .hero-cinematic[data-banner-mode="mobile"] .hero-cinematic-motion-control:not([hidden]) {
        display: grid;
    }

    .hero-cinematic-mobile-mark {
        display: grid;
    }

    .hero-cinematic-mobile-logo {
        width: min(76vw, 420px);
        opacity: 0.98;
    }

    .hero-cinematic-loader-core {
        min-width: min(74vw, 220px);
        padding: 1.15rem 1.15rem 1rem;
    }

    .hero-cinematic-cue {
        width: 3.5rem;
        height: 3.5rem;
    }

    .request-section {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }

    .footer-controls {
        justify-content: flex-start;
    }

    .footer-shell {
        padding: 1.25rem;
    }

    .hero,
    .section {
        padding: 3.6rem 0;
    }

    .request-history-hero,
    .invoice-topbar,
    .invoice-layout {
        grid-template-columns: 1fr;
    }

    .request-history-copy h1 {
        max-width: none;
    }

    .request-history-stats,
    .request-history-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-history-card-actions,
    .invoice-actions {
        justify-content: flex-start;
    }

    .invoice-slip-gallery {
        grid-template-columns: 1fr;
    }

    .request-summary-head,
    .request-upload-top,
    .request-upload-body,
    .receipt-layout,
    .receipt-total-card {
        grid-template-columns: 1fr;
    }

    .request-summary-head,
    .request-upload-top,
    .request-upload-body {
        display: grid;
    }

    .request-summary-total {
        justify-items: start;
        min-width: 0;
    }

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

    .request-deposit-grid,
    .request-proof-gallery,
    .receipt-proof-gallery {
        grid-template-columns: 1fr;
    }
}

/* ─── 860px: mid-tablet ──────────────────────────────────────── */
@media (max-width: 860px) {
    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-app-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 45;
        width: min(290px, 86vw);
        min-height: 100svh;
        border-radius: 0 28px 28px 0;
        transform: translateX(-110%);
        transition: transform 300ms cubic-bezier(0.22,1,0.36,1);
        overflow-y: auto;
    }

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

    .admin-sidebar-overlay {
        display: block;
    }

    .admin-main {
        padding: 0;
    }

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

    .admin-hero-copy h1 {
        font-size: clamp(1.55rem, 3.5vw, 2.2rem);
    }

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

    .admin-overview-grid,
    .admin-split-grid {
        grid-template-columns: 1fr;
    }

    .admin-module-banner {
        grid-template-columns: 1fr;
    }

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

/* ─── 640px: small mobile ─────────────────────────────────────── */
@media (max-width: 640px) {
    .auth-admin-screen {
        padding: 1rem;
    }

    .admin-workspace {
        padding: 0.75rem;
    }

    .admin-hero-panel,
    .admin-console-card {
        border-radius: 20px;
    }

    .admin-sidebar {
        border-radius: 0 20px 20px 0;
    }

    .admin-sidebar-nav {
        grid-template-columns: 1fr;
    }

    .admin-sidebar-brand {
        padding: 0.75rem;
    }

    .admin-sidebar-brand img {
        width: 46px;
        height: 46px;
    }

    .admin-hero-copy h1 {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

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

    .auth-admin-card {
        padding: 1.1rem;
        border-radius: 20px;
    }

    .auth-admin-logo {
        width: 60px;
        height: 60px;
    }

    .hero-cinematic {
        min-height: calc(var(--app-vh, 1vh) * 160);
    }

    .hero-cinematic-stage {
        padding: 0.65rem;
    }

    .hero-cinematic-frame {
        height: 100%;
        padding: 0;
        border-radius: 0;
    }

    .hero-cinematic-media {
        border-radius: 0;
    }

    .hero-cinematic-dock {
        width: calc(100% - 1.2rem);
        bottom: 0.75rem;
    }

    .hero-cinematic-backdrop {
        background:
            radial-gradient(circle at 50% 50%, rgba(63, 169, 245, 0.16), transparent 42%),
            linear-gradient(180deg, rgba(10, 26, 47, 0.62), rgba(15, 42, 68, 0.48));
    }

    .hero-cinematic-backdrop-logo {
        width: 92vw;
        opacity: 0.26;
        --banner-backdrop-blur: 0.25px;
    }

    .hero-cinematic-mobile-logo {
        width: 80vw;
        max-width: none;
        filter:
            drop-shadow(0 18px 36px rgba(0, 0, 0, 0.24))
            drop-shadow(0 0 34px rgba(63, 169, 245, 0.16))
            saturate(1.06)
            brightness(1.06);
    }

    .hero-cinematic-loader-core {
        min-width: min(78vw, 210px);
        gap: 0.8rem;
        padding: 1rem 1rem 0.9rem;
        border-radius: 22px;
    }

    .hero-cinematic-loader-logo {
        width: 70px;
    }

    .hero-cinematic-cue {
        width: 3.2rem;
        height: 3.2rem;
    }

    .request-form-panel {
        padding: 1.2rem;
    }

    .request-history-hero,
    .request-history-card,
    .request-history-empty,
    .invoice-shell,
    .invoice-block,
    .invoice-side-card {
        padding: 1.15rem;
        border-radius: 24px;
    }

    .request-history-copy h1,
    .invoice-brand-copy h1 {
        font-size: clamp(1.35rem, 5.5vw, 1.9rem);
    }

    .request-history-stats,
    .request-history-card-grid {
        grid-template-columns: 1fr;
    }

    .request-history-card-actions .btn,
    .invoice-actions .btn {
        width: 100%;
    }

    .invoice-brand {
        grid-template-columns: 1fr;
    }

    .invoice-brand-mark {
        width: 78px;
        height: 78px;
        justify-self: start;
    }

    .invoice-brand-mark img {
        width: 60px;
    }

    .invoice-code-band strong {
        font-size: clamp(1.25rem, 7vw, 1.8rem);
        word-break: break-word;
    }

    .invoice-slip-image img {
        height: auto;
        min-height: 160px;
        max-height: 280px;
    }

    .request-summary-grid,
    .receipt-info-grid,
    .receipt-total-card,
    .receipt-order-table-head,
    .receipt-order-table-row,
    .swal-request-summary__grid {
        grid-template-columns: 1fr;
    }

    .request-upload-button {
        width: 100%;
        min-width: 0;
    }

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

    .request-shell-head h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .footer-shell {
        padding: 1rem;
        border-radius: 22px;
    }

    .footer-nav {
        width: 100%;
        justify-content: center;
    }

    .footer-nav a,
    .footer-action {
        flex: 1 1 auto;
    }

    .theme-switch {
        width: 100%;
        justify-content: center;
        display: inline-flex;
    }

    .inline-status-form,
    .history-stack {
        min-width: 180px;
    }
}

@media print {
    .page-invoice .site-header,
    .page-invoice .site-footer,
    .page-invoice .invoice-actions,
    .page-invoice .invoice-side,
    .page-invoice .app-lightbox {
        display: none !important;
    }

    .page-invoice,
    .page-invoice main,
    .page-invoice .invoice-section {
        background: #fff !important;
    }

    .page-invoice .section {
        padding: 0;
    }

    .page-invoice .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .page-invoice .invoice-shell,
    .page-invoice .invoice-block,
    .page-invoice .receipt-info-box,
    .page-invoice .receipt-order-table-row,
    .page-invoice .receipt-notes-card,
    .page-invoice .invoice-slip-image {
        background: #fff !important;
        box-shadow: none !important;
    }

    .page-invoice .invoice-shell {
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    .page-invoice .invoice-layout {
        grid-template-columns: 1fr;
    }

    .page-invoice .invoice-slip-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-invoice .invoice-slip-image {
        break-inside: avoid;
        border-color: #d8e0eb;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SOLICITUDES PERIOD TOGGLE  (admin → configuracion)
═══════════════════════════════════════════════════════════════ */
.sol-period-card {
    display: grid;
    gap: 1.2rem;
    padding: 1.4rem;
    border-radius: 22px;
    border: 2px solid rgba(15, 42, 68, 0.08);
    margin-bottom: 1.4rem;
    transition: border-color 300ms ease, background 300ms ease;
}
.sol-period-card--on {
    background: linear-gradient(135deg, rgba(16, 165, 107, 0.08), rgba(16, 165, 107, 0.03));
    border-color: rgba(16, 165, 107, 0.28);
}
.sol-period-card--off {
    background: linear-gradient(135deg, rgba(220, 50, 50, 0.07), rgba(220, 50, 50, 0.02));
    border-color: rgba(220, 50, 50, 0.24);
}
.sol-period-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.sol-period-label {
    display: grid;
    gap: 0.3rem;
}
.sol-period-label strong {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}
.sol-period-label p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    max-width: 44ch;
}
/* Toggle Button */
.sol-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.1rem 0.65rem 0.75rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 200ms ease, background 240ms ease;
    white-space: nowrap;
    user-select: none;
}
.sol-toggle-btn:hover { transform: translateY(-1px); }
.sol-toggle-btn:active { transform: scale(0.97); }
.sol-toggle-btn--on {
    background: linear-gradient(135deg, #10a56b, #0d8f5c);
    color: #fff;
    box-shadow: 0 8px 24px rgba(16, 165, 107, 0.34);
}
.sol-toggle-btn--off {
    background: linear-gradient(135deg, #dc3232, #b82a2a);
    color: #fff;
    box-shadow: 0 8px 24px rgba(220, 50, 50, 0.3);
}
.sol-toggle-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    position: relative;
}
.sol-toggle-btn--on .sol-toggle-dot::after,
.sol-toggle-btn--off .sol-toggle-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}
.sol-toggle-btn--on .sol-toggle-dot::after {
    animation: solPulseOn 1.6s ease-in-out infinite;
}
.sol-toggle-btn--off .sol-toggle-dot::after {
    animation: solPulseOff 2.2s ease-in-out infinite;
}
@keyframes solPulseOn {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%       { transform: scale(1.7); opacity: 0; }
}
@keyframes solPulseOff {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.55); opacity: 0; }
}
/* Date range inputs */
.sol-period-dates {
    border-top: 1px solid rgba(15, 42, 68, 0.08);
    padding-top: 1rem;
}
.sol-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}
.sol-date-label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
}
.sol-date-input {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1.5px solid rgba(15, 42, 68, 0.15);
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    color: var(--text);
    transition: border-color 150ms ease;
}
.sol-date-input:focus {
    outline: none;
    border-color: rgba(63, 169, 245, 0.5);
    box-shadow: 0 0 0 3px rgba(63, 169, 245, 0.12);
}
.sol-dates-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 0.85rem;
    line-height: 1.55;
    max-width: 58ch;
}

/* ═══════════════════════════════════════════════════════════════
   PERIOD CLOSED CARD  (home page)
═══════════════════════════════════════════════════════════════ */
.period-closed-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.6rem 2.4rem;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.9)),
        radial-gradient(circle at top left, rgba(63, 169, 245, 0.1), transparent 32%);
    border: 1.5px solid rgba(63, 169, 245, 0.18);
    box-shadow:
        0 28px 56px rgba(15, 42, 68, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 740px;
    margin: 0 auto;
    animation: periodSlideIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes periodSlideIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.period-closed-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(63, 169, 245, 0.14), rgba(63, 169, 245, 0.06));
    border: 1.5px solid rgba(63, 169, 245, 0.2);
    color: #008fc7;
}
.period-closed-icon svg {
    width: 30px;
    height: 30px;
}
.period-closed-copy {
    display: grid;
    gap: 0.7rem;
}
.period-closed-copy h2 {
    font-size: clamp(1.25rem, 2.6vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}
.period-closed-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.98rem;
    max-width: 50ch;
}
.period-closed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
}
.btn-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
/* Dark mode */
html[data-theme="dark"] .sol-period-card--on {
    background: linear-gradient(135deg, rgba(16, 165, 107, 0.14), rgba(16, 165, 107, 0.06));
    border-color: rgba(16, 165, 107, 0.35);
}
html[data-theme="dark"] .sol-period-card--off {
    background: linear-gradient(135deg, rgba(220, 50, 50, 0.14), rgba(220, 50, 50, 0.05));
    border-color: rgba(220, 50, 50, 0.32);
}
html[data-theme="dark"] .reset-orders-card {
    background:
        linear-gradient(145deg, rgba(75, 22, 22, 0.28), rgba(34, 12, 18, 0.34)),
        rgba(255, 255, 255, 0.04);
    border-color: rgba(220, 50, 50, 0.32);
}
html[data-theme="dark"] .reset-orders-copy strong {
    color: #f5b7b1;
}
html[data-theme="dark"] .sol-date-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
    color-scheme: dark;
}
html[data-theme="dark"] .period-closed-card {
    background: linear-gradient(145deg, rgba(18, 28, 48, 0.96), rgba(12, 20, 36, 0.92));
    border-color: rgba(63, 169, 245, 0.15);
}
@media (max-width: 600px) {
    .period-closed-card {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.6rem;
    }
    .sol-period-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .sol-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}
