@font-face {
    font-family: "The Seasons";
    src: local("The Seasons");
    font-display: swap;
}

:root {
    --ruby: #d20f28;
    --ruby-deep: #390716;
    --ruby-soft: #fff1f2;
    --night: #06131d;
    --wine: #3a0c18;
    --ember: #f28a10;
    --ink: #171923;
    --graphite: #303641;
    --muted: #6b7280;
    --line: #e5d9cb;
    --paper: #fffaf2;
    --mist: #f6f1ea;
    --gold: #f5b13d;
    --gold-soft: #ffe8a5;
    --green: #2f9e44;
    --yellow: #f2b705;
    --blue: #1769d1;
    --paid: #8b929c;
    --full: #d92d45;
    --shadow: 0 18px 44px rgba(23, 25, 35, 0.12);
    --display-font: "The Seasons", "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 86% 2%, rgba(242, 138, 16, 0.5), transparent 26%),
        radial-gradient(circle at 14% 18%, rgba(210, 15, 40, 0.28), transparent 32%),
        linear-gradient(145deg, #06131d 0%, #190817 38%, #07151f 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

.ruby-rain {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ruby-rain span {
    position: absolute;
    top: -18vh;
    left: var(--x);
    width: var(--size);
    aspect-ratio: 1.3 / 1;
    opacity: 0;
    background: url("/assets/rubi-fall.png") center / contain no-repeat;
    filter: blur(0.15px) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28));
    animation: ruby-fall var(--duration) linear infinite;
    animation-delay: var(--delay);
    will-change: transform, opacity;
}

@keyframes ruby-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -18vh, 0) rotate(var(--start-rotate)) scale(0.9);
    }

    12% {
        opacity: var(--alpha);
    }

    72% {
        opacity: var(--alpha);
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--drift), 118vh, 0) rotate(calc(var(--start-rotate) + var(--spin))) scale(1.08);
    }
}

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

a {
    color: var(--gold);
    text-decoration: none;
}

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

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d4dae3;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 10px 12px;
}

input[type="hidden"] {
    display: none;
    width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
}

textarea {
    resize: vertical;
}

label span {
    display: block;
    margin-bottom: 6px;
    font-weight: 750;
    font-size: 0.92rem;
}

main {
    min-height: calc(100vh - 140px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 66px;
    padding: 12px clamp(16px, 4vw, 48px);
    background: rgba(6, 19, 29, 0.9);
    border-bottom: 1px solid rgba(245, 177, 61, 0.24);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-soft);
    font-family: var(--display-font);
    font-weight: 600;
    letter-spacing: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 55%, rgba(245, 177, 61, 0.25), transparent 58%),
        #120811 url("/assets/rubi-icon.png") center / 112% auto no-repeat;
    box-shadow: 0 0 0 1px rgba(245, 177, 61, 0.35), 0 8px 22px rgba(210, 15, 40, 0.42);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
}

.topnav form {
    margin: 0;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(245, 177, 61, 0.34);
    border-radius: 999px;
    background: rgba(255, 232, 165, 0.1);
    color: var(--gold-soft);
    font-weight: 800;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid rgba(245, 177, 61, 0.34);
    border-radius: 999px;
    background: rgba(255, 232, 165, 0.08);
    color: var(--gold-soft);
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.site-footer {
    display: flex;
    justify-content: center;
    padding: 24px 16px 34px;
    color: rgba(255, 232, 165, 0.7);
    font-size: 0.92rem;
    text-align: center;
}

.site-footer a {
    color: var(--gold-soft);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(245, 177, 61, 0.35);
    text-underline-offset: 3px;
}

.flash {
    width: min(1120px, calc(100% - 28px));
    margin: 16px auto 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid;
    background: #fff;
}

.flash-success {
    border-color: #b8dfc0;
    color: #1f6f32;
}

.flash-error {
    border-color: #efb2bb;
    color: #a20f24;
}

.section-flash {
    width: 100%;
    margin: 0 0 16px;
}

.checkout-flow > .section-flash {
    margin: -4px 0 0;
    padding: 10px 14px;
    border-radius: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.btn-primary {
    background: linear-gradient(135deg, #ffcf72, var(--gold) 42%, #a65f0a);
    color: #241103;
}

.btn-success {
    background: #247a39;
}

.btn-warning {
    background: #c47f00;
}

.btn-danger {
    background: #a20f24;
}

.btn-secondary {
    background: #4a5b70;
}

.btn-ghost {
    border: 1px solid rgba(245, 177, 61, 0.32);
    background: rgba(255, 232, 165, 0.1);
    color: var(--gold-soft);
}

.btn-logout {
    border: 1px solid #6f0b1f;
    background: linear-gradient(135deg, #9f1730, #68091b);
    color: #fff;
    box-shadow: 0 8px 18px rgba(111, 11, 31, 0.24);
}

.btn-confirmation {
    border: 1px solid #6f0b1f;
    background: #6f0b1f;
    color: #fff;
    box-shadow: 0 7px 16px rgba(111, 11, 31, 0.2);
}

.btn-pay {
    border: 1px solid #b66b00;
    background: linear-gradient(135deg, #ffd16e, #e59615);
    color: #2b1700;
    box-shadow: 0 7px 16px rgba(181, 107, 0, 0.22);
}

.btn-logout:hover,
.btn-confirmation:hover,
.btn-pay:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.9rem;
}

.btn-wide {
    width: 100%;
}

.sales-page,
.admin-shell,
.admin-layout,
.checkout-page,
.page-narrow {
    width: min(1180px, calc(100% - 28px));
    margin: 28px auto 52px;
}

.admin-layout {
    width: min(1570px, calc(100% - 28px));
}

.page-narrow,
.auth-card,
.purchase-card,
.identity-card,
.order-summary-card {
    background: rgba(255, 250, 242, 0.96);
    border: 1px solid rgba(245, 177, 61, 0.18);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.page-narrow,
.auth-card {
    width: min(760px, calc(100% - 28px));
    padding: clamp(20px, 4vw, 34px);
}

.auth-card {
    margin: 54px auto;
}

.auth-card form,
.stack-form {
    display: grid;
    gap: 16px;
}

body.is-admin-login {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 20%, rgba(222, 20, 52, 0.28), transparent 28%),
        radial-gradient(circle at 92% 10%, rgba(245, 177, 61, 0.18), transparent 24%),
        linear-gradient(145deg, #040910 0%, #17050d 46%, #050b12 100%);
}

.is-admin-login .topbar {
    position: absolute;
    width: 100%;
    background: linear-gradient(180deg, rgba(4, 9, 16, 0.92), rgba(4, 9, 16, 0.18));
    border-bottom-color: rgba(255, 232, 165, 0.14);
    backdrop-filter: none;
}

.is-admin-login main {
    display: flex;
    min-height: calc(100vh - 82px);
}

.admin-login-page {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 86px clamp(16px, 4vw, 56px) 30px;
}

.admin-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    width: min(1220px, 100%);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(255, 232, 165, 0.24);
    border-radius: 30px;
    background: #fffaf2;
    box-shadow:
        0 42px 100px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(210, 15, 40, 0.12);
}

.admin-login-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    padding: clamp(36px, 5vw, 68px);
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 58px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 58px),
        radial-gradient(circle at 50% 53%, rgba(229, 22, 54, 0.28), transparent 31%),
        linear-gradient(155deg, #07141e 0%, #210710 48%, #470817 100%);
    background-size: 58px 58px, 58px 58px, auto, auto;
    color: #fff8e8;
}

.admin-login-showcase::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: -1;
    border: 1px solid rgba(255, 232, 165, 0.12);
    border-radius: 22px;
    pointer-events: none;
}

.admin-login-showcase::after {
    content: "";
    position: absolute;
    right: -12%;
    bottom: -22%;
    z-index: -2;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 36, 70, 0.33), transparent 68%);
    filter: blur(10px);
}

.admin-login-showcase-copy {
    position: relative;
    z-index: 3;
    max-width: 510px;
}

.admin-login-kicker,
.admin-login-restricted {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.admin-login-kicker::before,
.admin-login-restricted span {
    content: "";
    width: 28px;
    height: 2px;
    flex: 0 0 28px;
    background: linear-gradient(90deg, var(--gold), #fff0bd);
    box-shadow: 0 0 14px rgba(245, 177, 61, 0.55);
}

.admin-login-showcase-copy h2 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(2.8rem, 4.5vw, 4.75rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.035em;
}

.admin-login-showcase-copy h2 strong {
    color: #ffcf6c;
    font-weight: 500;
    text-shadow: 0 0 28px rgba(245, 177, 61, 0.2);
}

.admin-login-gem {
    position: absolute;
    top: 51%;
    left: 55%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: min(64%, 460px);
    aspect-ratio: 1;
    transform: translate(-50%, -36%);
}

.admin-login-gem::before {
    content: "";
    position: absolute;
    inset: 21%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 225, 156, 0.38), rgba(212, 15, 46, 0.18) 38%, transparent 70%);
    box-shadow: 0 0 90px rgba(210, 15, 40, 0.45);
    filter: blur(5px);
}

.admin-login-gem img {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: auto;
    filter:
        drop-shadow(0 32px 30px rgba(0, 0, 0, 0.58))
        drop-shadow(0 0 24px rgba(255, 42, 74, 0.38));
    animation: admin-login-gem-float 5.5s ease-in-out infinite;
}

.admin-login-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 232, 165, 0.18);
    border-radius: 50%;
    box-shadow: inset 0 0 24px rgba(255, 232, 165, 0.035);
}

.admin-login-orbit-one {
    inset: 1%;
}

.admin-login-orbit-two {
    inset: 13%;
    border-color: rgba(210, 15, 40, 0.36);
}

.admin-login-orbit-three {
    inset: 27%;
    border-color: rgba(255, 232, 165, 0.16);
}

.admin-login-orbit-one::after,
.admin-login-orbit-two::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 16px rgba(245, 177, 61, 0.9);
}

.admin-login-orbit-two::after {
    top: 16%;
    right: 5%;
    left: auto;
    background: #ff3551;
    box-shadow: 0 0 16px rgba(255, 53, 81, 0.9);
}

.admin-login-ruby {
    position: absolute;
    z-index: 1;
    width: 74px;
    aspect-ratio: 1.3 / 1;
    opacity: 0.26;
    background: url("/assets/rubi-fall.png") center / contain no-repeat;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.4));
}

.admin-login-ruby-one {
    top: 45%;
    left: 4%;
    transform: rotate(-28deg);
}

.admin-login-ruby-two {
    top: 20%;
    right: 3%;
    width: 54px;
    opacity: 0.2;
    transform: rotate(24deg);
}

.admin-login-ruby-three {
    right: 8%;
    bottom: 8%;
    width: 94px;
    opacity: 0.2;
    transform: rotate(14deg);
}

.admin-login-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.admin-login-glow-one {
    top: -170px;
    right: -140px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245, 177, 61, 0.25), transparent 67%);
}

.admin-login-glow-two {
    bottom: -220px;
    left: -190px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(210, 15, 40, 0.32), transparent 69%);
}

.admin-login-protected {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0;
    color: rgba(255, 248, 232, 0.58);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-login-protected span {
    position: relative;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(245, 177, 61, 0.42);
    border-radius: 50%;
}

.admin-login-protected span::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(245, 177, 61, 0.62);
}

.admin-login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px clamp(42px, 6vw, 82px);
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 177, 61, 0.12), transparent 25%),
        linear-gradient(145deg, #fffdf8, #f8efe5);
}

.admin-login-panel::after {
    content: "";
    position: absolute;
    top: 34px;
    right: 34px;
    width: 46px;
    aspect-ratio: 1.3 / 1;
    opacity: 0.12;
    background: url("/assets/rubi-fall.png") center / contain no-repeat;
    transform: rotate(18deg);
}

.admin-login-heading {
    max-width: 520px;
}

.admin-login-restricted {
    margin-bottom: 18px;
    color: #a50f28;
}

.admin-login-restricted span {
    background: linear-gradient(90deg, #7e0b20, #e22b45);
    box-shadow: 0 0 12px rgba(210, 15, 40, 0.24);
}

.admin-login-heading h1 {
    margin: 0;
    color: #260910;
    font-family: var(--display-font);
    font-size: clamp(3.4rem, 5.3vw, 5.5rem);
    font-weight: 500;
    line-height: 0.86;
    letter-spacing: -0.045em;
}

.admin-login-heading > p:last-child {
    max-width: 460px;
    margin: 18px 0 0;
    color: #74645d;
    font-size: 1rem;
}

.admin-login-form {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.admin-login-form label > span {
    margin-bottom: 8px;
    color: #38282a;
    font-size: 0.82rem;
    font-weight: 900;
}

.admin-login-field-heading {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-login-field-heading b {
    font: inherit;
}

.admin-login-field-heading a {
    color: #a20f2a;
    font-size: 0.78rem;
    font-weight: 850;
}

.admin-login-form input {
    min-height: 56px;
    border: 1px solid #dbcfc5;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    padding: 14px 16px;
    color: #2b1b1e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-login-form input::placeholder {
    color: #a79691;
}

.admin-login-form input:focus {
    outline: none;
    border-color: #bd1731;
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(210, 15, 40, 0.1),
        0 10px 26px rgba(73, 10, 23, 0.08);
}

.admin-login-recaptcha {
    min-height: 78px;
    overflow: hidden;
}

.admin-login-recaptcha .g-recaptcha {
    width: 304px;
    min-height: 78px;
}

.admin-login-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    overflow: hidden;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px 12px 20px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 38%),
        linear-gradient(135deg, #8f0c23, #d61231 55%, #750818);
    color: #fff9ed;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 15px 30px rgba(151, 10, 35, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-login-submit::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -30%;
    width: 24%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: rotate(18deg);
    transition: left 0.45s ease;
}

.admin-login-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 19px 38px rgba(151, 10, 35, 0.31),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.admin-login-submit:hover::before {
    left: 115%;
}

.admin-login-submit:focus-visible {
    outline: 3px solid rgba(245, 177, 61, 0.7);
    outline-offset: 3px;
}

.admin-login-submit i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.25rem;
    font-style: normal;
}

.admin-login-note {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 18px 0 0;
    color: #8a7972;
    font-size: 0.9rem;
}

.admin-login-note span {
    position: relative;
    width: 18px;
    height: 14px;
    flex: 0 0 18px;
    border: 2px solid #a50f28;
    border-radius: 4px;
}

.admin-login-note span::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 3px;
    width: 8px;
    height: 9px;
    border: 2px solid #a50f28;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

@keyframes admin-login-gem-float {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

.rubi-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    min-height: 430px;
    overflow: hidden;
    margin-bottom: 24px;
    padding: clamp(28px, 6vw, 64px);
    border-radius: 10px;
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 158, 18, 0.42), transparent 22%),
        radial-gradient(circle at 22% 22%, rgba(150, 14, 38, 0.46), transparent 36%),
        linear-gradient(135deg, #080f18 0%, #230913 46%, #091923 100%);
    border: 1px solid rgba(245, 177, 61, 0.24);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.rubi-hero::before,
.rubi-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.rubi-hero::before {
    width: 190px;
    height: 190px;
    top: -58px;
    right: 4%;
    background: radial-gradient(circle, rgba(255, 172, 28, 0.64), rgba(255, 172, 28, 0.08) 48%, transparent 70%);
    filter: blur(2px);
}

.rubi-hero::after {
    width: 420px;
    height: 420px;
    left: -160px;
    bottom: -170px;
    background: radial-gradient(circle, rgba(210, 15, 40, 0.32), transparent 64%);
}

.rubi-hero-copy,
.ruby-stage {
    position: relative;
    z-index: 1;
}

.hero-ruby-rain {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-ruby-rain span {
    position: absolute;
    top: -20%;
    left: var(--x);
    width: var(--size);
    aspect-ratio: 1.3 / 1;
    opacity: 0;
    background: url("/assets/rubi-fall.png") center / contain no-repeat;
    filter: blur(0.1px) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
    animation: hero-ruby-fall var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    will-change: transform, opacity;
}

@keyframes hero-ruby-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -30%, 0) rotate(var(--start-rotate)) scale(0.86);
    }

    16% {
        opacity: var(--alpha);
    }

    70% {
        opacity: var(--alpha);
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--drift), 560px, 0) rotate(calc(var(--start-rotate) + var(--spin))) scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ruby-rain span,
    .hero-ruby-rain span {
        display: none;
    }

    .confirmation-ruby-stage img,
    .admin-login-gem img {
        animation: none !important;
    }
}

.rubi-hero-copy h1,
.checkout-header h1,
.admin-heading h1,
.page-narrow h1,
.auth-card h1 {
    margin: 0 0 12px;
    font-size: clamp(2.05rem, 5vw, 4.65rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.rubi-hero-copy p {
    max-width: 680px;
    color: rgba(255, 244, 218, 0.82);
    font-size: 1.05rem;
}

.rubi-hero-copy h1 {
    font-family: var(--display-font);
    font-weight: 500;
    color: var(--gold-soft);
    letter-spacing: 0;
    text-shadow: 0 2px 24px rgba(245, 177, 61, 0.2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.sold-out-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(245, 177, 61, 0.4);
    border-radius: 999px;
    background: rgba(255, 232, 165, 0.12);
    color: var(--gold-soft);
    font-weight: 850;
}

.event-rules {
    margin-bottom: 24px;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 10px;
    border: 1px solid rgba(245, 177, 61, 0.22);
    background:
        linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(255, 245, 232, 0.93)),
        radial-gradient(circle at 96% 10%, rgba(245, 177, 61, 0.18), transparent 28%);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.event-rules-content {
    color: #3c2f2a;
    white-space: pre-line;
}

.event-rules-content :where(h2, h3, h4, p, ul, ol, blockquote, table) {
    margin-top: 0;
    margin-bottom: 12px;
}

.event-rules-content :where(ul, ol) {
    padding-left: 24px;
}

.event-rules-content a {
    color: var(--ruby);
    font-weight: 800;
}

.event-rules-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-rules-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
}

.event-rules-content th,
.event-rules-content td {
    border: 1px solid rgba(82, 59, 45, 0.18);
}

.privacy-page {
    width: min(1040px, calc(100% - 28px));
    margin: 28px auto 54px;
}

.privacy-hero,
.privacy-document {
    border: 1px solid rgba(245, 177, 61, 0.18);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.privacy-hero {
    padding: clamp(24px, 4vw, 42px);
    background:
        linear-gradient(135deg, rgba(58, 12, 24, 0.95), rgba(23, 8, 20, 0.98)),
        #2b0714;
    color: #fff4da;
}

.privacy-hero h1 {
    margin: 0;
    color: #fff4da;
    font-family: var(--display-font);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
}

.privacy-hero p {
    max-width: 780px;
    margin: 14px 0 0;
    color: rgba(255, 250, 242, 0.82);
}

.privacy-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.privacy-contact-strip span {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 232, 165, 0.22);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.08);
    color: #ffe8a5;
    font-weight: 800;
}

.privacy-contact-strip a {
    color: #fff4da;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-document {
    margin-top: 18px;
    padding: clamp(20px, 4vw, 34px);
    background: rgba(255, 250, 242, 0.97);
}

.privacy-document section + section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.privacy-document h2 {
    margin: 0 0 10px;
    color: #40101b;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.privacy-document p,
.privacy-document li {
    color: #4d4240;
}

.privacy-document p {
    margin: 0 0 12px;
}

.privacy-document ul {
    margin: 0;
    padding-left: 20px;
}

.privacy-document li + li {
    margin-top: 6px;
}

.privacy-document a {
    color: #8c0d22;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.privacy-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.92rem;
}

.privacy-table th,
.privacy-table td {
    padding: 12px;
    border: 1px solid #e7d8c3;
    vertical-align: top;
    text-align: left;
}

.privacy-table th {
    background: #40101b;
    color: #fff4da;
}

.privacy-table tbody tr:nth-child(even) {
    background: #f8f3ec;
}

.ruby-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.ruby-stage img {
    display: block;
    width: min(100%, 430px);
    height: auto;
    filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 26px rgba(210, 15, 40, 0.32));
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.purchase-card {
    padding: clamp(18px, 3vw, 30px);
}

.purchase-card-header,
.checkout-header,
.admin-heading,
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.purchase-card-header h2,
.panel-heading h2,
.page-narrow h2,
.identity-card h2,
.order-summary-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.purchase-mode {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 270px;
    padding: 5px;
    border-radius: 10px;
    background: #f1f3f7;
}

.purchase-mode input {
    position: absolute;
    width: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.purchase-mode label {
    display: block;
    cursor: pointer;
}

.purchase-mode span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    border-radius: 8px;
    color: #536071;
    font-weight: 850;
}

.purchase-mode input:checked + span {
    background: #fff;
    color: var(--ruby);
    box-shadow: 0 8px 18px rgba(23, 25, 35, 0.09);
}

.mode-panel {
    display: none;
    margin-top: 18px;
}

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

.venue-map {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 18px;
    overflow-x: auto;
    padding: 18px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, #fbfcfe, #f1f4f8);
    border: 1px solid #e0e6ef;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(var(--map-columns), minmax(48px, 64px));
    gap: 9px;
    align-content: start;
}

.table-tile,
.table-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 48px;
    min-height: 48px;
    border-radius: 9px;
}

.table-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.table-tile:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(23, 25, 35, 0.18);
}

.table-tile:disabled {
    cursor: not-allowed;
    opacity: 0.88;
}

.status-livre {
    background: var(--green);
}

.status-aguardando_pagamento {
    background: var(--yellow);
    color: #332500;
}

.status-ocupada_paga {
    background: var(--paid);
}

.status-cheia_paga {
    background: var(--full);
}

.status-bloqueada {
    background: #4b5563;
}

.status-selecionada,
.table-tile.is-selected {
    background: var(--blue);
    color: #fff;
    border-color: #0f4e9d;
}

.venue-side {
    display: grid;
    grid-template-columns: repeat(2, 42px);
    gap: 8px;
    flex: 0 0 auto;
}

.venue-side span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 10px 4px;
    border-radius: 9px;
    background: linear-gradient(180deg, #e7e9ed, #d6dbe2);
    color: #343a45;
    font-weight: 900;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    margin: 16px auto 22px;
    font-size: 0.94rem;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    display: inline-block;
}

.table-refresh-action {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: -8px auto 22px;
}

.table-refresh-action .section-flash {
    max-width: 720px;
    margin-bottom: 0;
    text-align: center;
}

.selection-panel,
.extra-only-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.compact-heading h3,
.extra-only-panel h3 {
    margin: 0;
    font-size: 1.2rem;
}

.selection-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff0cf;
    color: #754106;
    font-weight: 900;
}

.selected-tables {
    display: grid;
    gap: 10px;
}

.selected-table-row {
    display: grid;
    grid-template-columns: 86px minmax(170px, 1fr) minmax(160px, 0.8fr) minmax(160px, 1fr) 38px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfd;
}

.switch-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.switch-line input {
    width: 18px;
    min-height: 18px;
}

.switch-line span {
    margin: 0;
    font-size: 0.9rem;
}

.extra-choice {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 78px;
    gap: 8px;
}

.extra-choice input,
.extra-choice select {
    min-width: 0;
}

.remove-table {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #edf1f5;
    color: var(--graphite);
    cursor: pointer;
    font-weight: 900;
}

.empty-state {
    margin: 0;
    padding: 14px;
    border: 1px dashed #bec7d2;
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
}

.extra-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.full {
    grid-column: 1 / -1;
}

.purchase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.purchase-footer p {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
}

.purchase-payment-cta,
.checkout-payment-cta {
    position: relative;
    min-height: 52px;
    padding: 12px 46px 12px 20px;
    border: 1px solid #1f6f34;
    border-radius: 8px;
    background: linear-gradient(135deg, #2f9e44, #247a39);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(36, 122, 57, 0.22);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.purchase-payment-cta {
    width: min(100%, 300px);
}

.checkout-payment-cta {
    padding-right: 34px;
    padding-left: 14px;
    width: 100%;
    font-size: 0.9rem;
}

.purchase-payment-cta span,
.checkout-payment-cta span {
    position: relative;
    z-index: 1;
}

.purchase-payment-cta::before,
.checkout-payment-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 45%);
    opacity: 0.6;
}

.purchase-payment-cta::after,
.checkout-payment-cta::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 21px;
    z-index: 1;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.purchase-payment-cta:hover,
.checkout-payment-cta:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #35a94e, #25813b);
    box-shadow: 0 12px 22px rgba(36, 122, 57, 0.26);
}

.purchase-payment-cta:focus-visible,
.checkout-payment-cta:focus-visible {
    outline: 3px solid rgba(23, 105, 209, 0.35);
    outline-offset: 3px;
}

.checkout-header {
    align-items: center;
    margin-bottom: 22px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(245, 177, 61, 0.28);
    border-radius: 22px;
    background:
        radial-gradient(circle at 82% 18%, rgba(242, 138, 16, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(57, 7, 22, 0.94), rgba(6, 19, 29, 0.9));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.checkout-change-selection-cta {
    position: relative;
    width: min(100%, 260px);
    min-height: 52px;
    padding: 12px 20px 12px 46px;
    border: 1px solid #d99014;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffcf72, var(--gold));
    color: #241103;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(197, 127, 0, 0.2);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.checkout-change-selection-cta span {
    position: relative;
    z-index: 1;
}

.checkout-change-selection-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 45%);
    opacity: 0.6;
}

.checkout-change-selection-cta::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 21px;
    z-index: 1;
    width: 9px;
    height: 9px;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(135deg);
}

.checkout-change-selection-cta:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffd783, #f5b13d);
    box-shadow: 0 12px 22px rgba(197, 127, 0, 0.24);
}

.checkout-change-selection-cta:focus-visible {
    outline: 3px solid rgba(23, 105, 209, 0.35);
    outline-offset: 3px;
}

.checkout-header h1 {
    max-width: 900px;
    color: #fffaf2;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.36);
}

.checkout-heading-copy > p:last-child {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 244, 218, 0.82);
    font-size: 1.03rem;
}

.checkout-flow {
    display: grid;
    gap: 22px;
}

.order-summary-card,
.identity-card {
    padding: clamp(18px, 3vw, 28px);
}

.checkout-summary-card {
    border-radius: 18px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.2);
}

.summary-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.summary-secure-badge {
    display: inline-flex;
    align-items: center;
    max-width: 300px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #d8e8d9;
    border-radius: 999px;
    background: #f2faf3;
    color: #236b34;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.checkout-summary-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 26px;
    align-items: start;
}

.summary-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.summary-item {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.summary-item span,
.summary-item small,
.summary-note {
    color: var(--muted);
}

.summary-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.checkout-summary-content .summary-totals {
    margin-top: 18px;
}

.summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.summary-totals span,
.summary-list span {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 10px;
    background: #f5f7fa;
    color: var(--muted);
}

.summary-totals strong,
.summary-list strong {
    color: var(--ink);
}

.summary-totals .summary-total-value {
    border: 1px solid rgba(245, 177, 61, 0.34);
    background: #fff7e6;
}

.summary-total-value strong {
    color: #8a4c06;
    font-size: 1.12rem;
}

.identity-choice-section {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(245, 177, 61, 0.22);
    border-radius: 18px;
    background: rgba(16, 8, 18, 0.74);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.identity-choice-heading {
    margin-bottom: 20px;
}

.identity-choice-heading h2 {
    margin: 0 0 6px;
    color: #fffaf2;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.identity-choice-heading > p:last-child {
    margin: 0;
    color: rgba(255, 244, 218, 0.72);
}

.identity-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.identity-choice-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 28px;
    gap: 16px;
    align-items: center;
    min-height: 142px;
    padding: 22px;
    border: 1px solid rgba(245, 177, 61, 0.25);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 177, 61, 0.16), transparent 34%),
        #fffaf2;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.identity-choice-card:hover,
.identity-choice-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(245, 177, 61, 0.72);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
    outline: none;
}

.identity-choice-card.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 177, 61, 0.18), 0 20px 42px rgba(0, 0, 0, 0.22);
}

.identity-choice-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffcf72, var(--gold));
    color: #4a2402;
    font-size: 2rem;
    font-weight: 700;
}

.identity-choice-icon-login {
    background: linear-gradient(135deg, #9f1730, #5c0a1d);
    color: #fff5e5;
}

.identity-choice-copy {
    display: grid;
    gap: 3px;
}

.identity-choice-copy small {
    color: #9f1730;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.identity-choice-copy strong {
    font-size: clamp(1.18rem, 2.5vw, 1.5rem);
}

.identity-choice-copy > span {
    color: var(--muted);
    font-size: 0.9rem;
}

.identity-choice-arrow {
    color: #9f1730;
    font-size: 1.5rem;
    font-weight: 900;
}

.identity-form-card {
    width: min(820px, 100%);
    margin: 0 auto;
    scroll-margin-top: 82px;
    border-radius: 18px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.identity-form-card.is-active {
    animation: identity-form-in 220ms ease-out;
}

@keyframes identity-form-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.identity-form-heading {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.identity-form-heading h2 {
    margin-bottom: 6px;
}

.identity-form-heading > p:last-child {
    margin: 0;
    color: var(--muted);
}

.identity-connected-card {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    gap: 28px;
    align-items: center;
    border-radius: 18px;
}

.identity-connected-copy {
    display: flex;
    align-items: center;
    gap: 16px;
}

.identity-connected-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    background: #e9f8ec;
    color: #247a39;
    font-size: 1.5rem;
    font-weight: 900;
}

.checkout-recaptcha {
    min-height: 78px;
    overflow: hidden;
}

.checkout-recaptcha .g-recaptcha {
    transform-origin: top left;
}

.checkline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0;
}

.checkline input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.checkline a {
    color: #8c0d22;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.login-narrow {
    width: min(520px, 100%);
}

.password-help-link {
    justify-self: end;
    margin-top: -8px;
    color: #a20f2a;
    font-size: 0.88rem;
    font-weight: 850;
}

.password-reset-page {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: calc(100vh - 210px);
    padding: 54px 16px;
}

.is-admin-login .password-reset-page {
    padding-top: 132px;
}

.password-reset-card {
    width: min(540px, 100%);
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid rgba(245, 177, 61, 0.28);
    border-radius: 22px;
    background: rgba(255, 250, 242, 0.98);
    box-shadow: 0 28px 70px rgba(15, 6, 12, 0.2);
}

.password-reset-card h1 {
    margin: 4px 0 12px;
    color: #350711;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 7vw, 3.5rem);
    line-height: 0.98;
}

.password-reset-card .stack-form {
    margin-top: 24px;
}

.password-reset-recaptcha {
    min-height: 78px;
    overflow: hidden;
}

.password-reset-invalid {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #efb2bb;
    border-radius: 14px;
    background: #fff4f5;
}

.password-reset-invalid strong {
    color: #8f0c23;
    font-size: 1.05rem;
}

.password-reset-invalid p {
    margin: 8px 0 16px;
}

.password-reset-back {
    display: inline-flex;
    margin-top: 22px;
    color: #8f0c23;
    font-weight: 850;
}

.purchases-page {
    width: min(1380px, calc(100% - 28px));
}

.purchases-hero {
    border: 1px solid rgba(245, 177, 61, 0.38);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}

.purchases-new-button {
    position: relative;
    min-height: 48px;
    padding: 12px 22px 12px 48px;
    border: 1px solid #d99014;
    background: linear-gradient(135deg, #ffcf72, var(--gold));
    color: #241103;
    box-shadow: 0 10px 20px rgba(197, 127, 0, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.purchases-new-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 23px;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(135deg);
}

.purchases-new-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffd783, #f5b13d);
    box-shadow: 0 12px 22px rgba(197, 127, 0, 0.24);
}

.purchases-panel {
    overflow: hidden;
    padding: 0;
    border-color: rgba(111, 11, 31, 0.2);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
}

.purchases-customer-heading {
    padding: clamp(22px, 3vw, 34px);
    border-bottom: 4px solid var(--gold);
    background:
        radial-gradient(circle at 88% 18%, rgba(245, 177, 61, 0.2), transparent 24%),
        linear-gradient(135deg, #fffaf2, #fff4df);
}

.purchases-customer-heading .muted {
    margin-bottom: 0;
}

.purchase-history-table {
    overflow-x: auto;
    padding: clamp(16px, 2.5vw, 28px);
    background: #f4eee8;
}

.purchase-history-table table {
    width: 100%;
    min-width: 1160px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.purchase-history-table th {
    padding: 12px 14px;
    background: #230914;
    color: #ffd47c;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

.purchase-history-table th:first-child {
    border-radius: 10px 0 0 10px;
}

.purchase-history-table th:last-child {
    border-radius: 0 10px 10px 0;
}

.purchase-history-table td {
    padding: 16px 14px;
    border-top: 1px solid #e1d2c3;
    border-bottom: 1px solid #e1d2c3;
    background: #fff;
    color: #25252d;
    vertical-align: middle;
}

.purchase-history-table td:first-child {
    border-left: 4px solid var(--gold);
    border-radius: 12px 0 0 12px;
}

.purchase-history-table td:last-child {
    border-right: 1px solid #e1d2c3;
    border-radius: 0 12px 12px 0;
}

.purchase-history-table td small {
    display: block;
    margin-top: 4px;
    color: #697386;
}

.purchase-code {
    color: #4e0a19;
    font-size: 0.9rem;
    letter-spacing: 0.015em;
}

.purchase-table-number {
    color: #191923;
    font-size: 1.04rem;
}

.purchase-type {
    display: grid;
    gap: 4px;
}

.purchase-type small {
    margin-top: 0;
}

.occupancy-value {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 8px 11px;
    border-radius: 9px;
    background: #edf3ee;
    color: #42604a;
}

.occupancy-value strong {
    color: #17612a;
    font-size: 1.16rem;
}

.purchase-value {
    color: #191923;
    font-size: 1.04rem;
    white-space: nowrap;
}

.purchase-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.purchase-action {
    display: flex;
    align-items: center;
}

.purchases-page .btn-confirmation,
.purchases-page .btn-pay {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 900;
}

.purchases-page .btn-confirmation {
    border: 1px solid var(--gold);
    background: linear-gradient(135deg, #9f1730, #6f0b1f);
    color: #fffaf2;
    box-shadow: 0 8px 18px rgba(111, 11, 31, 0.24);
}

.purchases-page .btn-pay {
    position: relative;
    padding-right: 34px;
    border: 1px solid #1f6f34;
    background: linear-gradient(135deg, #2f9e44, #247a39);
    color: #fff;
    box-shadow: 0 8px 18px rgba(36, 122, 57, 0.22);
}

.purchases-page .btn-pay::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.purchases-page .btn-confirmation:hover,
.purchases-page .btn-pay:hover {
    transform: translateY(-1px);
    filter: none;
}

.purchases-page .btn-confirmation:hover {
    background: linear-gradient(135deg, #b51b37, #7d0d24);
    box-shadow: 0 10px 20px rgba(111, 11, 31, 0.28);
}

.purchases-page .btn-pay:hover {
    background: linear-gradient(135deg, #35a94e, #25813b);
    box-shadow: 0 10px 20px rgba(36, 122, 57, 0.26);
}

.purchase-no-action {
    color: #7b7180;
    font-size: 0.82rem;
    font-weight: 800;
}

.purchase-status.status-pago {
    background: #dff3e4;
    color: #17612a;
}

.purchase-status.status-aguardando_pagamento {
    background: #fff0bd;
    color: #754b00;
}

.purchase-status.status-falha,
.purchase-status.status-cancelado,
.purchase-status.status-expirado {
    background: #fbe1e5;
    color: #8d1025;
}

.admin-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.admin-sidebar {
    position: sticky;
    top: 88px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100vh - 110px);
    overflow: hidden auto;
    border: 1px solid rgba(245, 177, 61, 0.34);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 8%, rgba(245, 177, 61, 0.18), transparent 32%),
        linear-gradient(180deg, #fffaf2, #fff2e4);
    box-shadow:
        0 22px 48px rgba(23, 5, 13, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(245, 177, 61, 0.26);
    background:
        radial-gradient(circle at 92% 0%, rgba(245, 177, 61, 0.26), transparent 34%),
        linear-gradient(135deg, #091823 0%, #3a0c18 68%, #5d101f 100%);
}

.admin-sidebar-brand div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.admin-sidebar-brand strong {
    overflow: hidden;
    color: #ffe8a5;
    font-size: 1.02rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sidebar-brand small {
    overflow: hidden;
    color: rgba(255, 250, 242, 0.78);
    font-size: 0.84rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sidebar-action small {
    color: var(--muted);
}

.admin-menu {
    display: grid;
    align-content: start;
    min-height: 0;
    overflow-y: auto;
    gap: 4px;
    padding: 10px 12px 16px;
    scrollbar-color: rgba(143, 12, 35, 0.34) transparent;
    scrollbar-width: thin;
}

.admin-menu a,
.admin-menu .admin-menu-section {
    display: flex;
    align-items: center;
}

.admin-menu a {
    position: relative;
    min-height: 43px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 9px 12px 9px 38px;
    color: var(--graphite);
    font-weight: 800;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-menu a::before {
    content: "";
    position: absolute;
    left: 16px;
    width: 8px;
    height: 8px;
    border: 2px solid rgba(151, 10, 35, 0.48);
    border-radius: 3px;
    transform: rotate(45deg);
}

.admin-menu a:hover {
    border-color: rgba(177, 18, 43, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: #8f0c23;
    transform: translateX(2px);
}

.admin-menu a.is-active {
    border-color: rgba(151, 10, 35, 0.2);
    background: linear-gradient(135deg, #8f0c23, #bd1731);
    color: #fffaf2;
    box-shadow: 0 10px 22px rgba(143, 12, 35, 0.2);
}

.admin-menu a.is-active::before {
    border-color: #ffd66f;
    background: #f5b13d;
    box-shadow: 0 0 0 4px rgba(245, 177, 61, 0.13);
}

.admin-menu .admin-menu-section {
    min-height: 28px;
    margin-top: 6px;
    padding: 6px 12px 2px;
    color: #9c5b0a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-sidebar-action {
    display: grid;
    gap: 8px;
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(177, 18, 43, 0.1);
    background: rgba(255, 255, 255, 0.42);
}

.admin-content {
    min-width: 0;
}

.admin-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: clamp(20px, 4vw, 34px);
    border-radius: 10px;
    border: 1px solid rgba(245, 177, 61, 0.24);
    background:
        radial-gradient(circle at 90% 10%, rgba(242, 138, 16, 0.36), transparent 24%),
        linear-gradient(135deg, #091823 0%, #3a0c18 58%, #130712 100%);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.admin-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1;
    color: var(--gold-soft);
}

.admin-hero p {
    margin: 0;
    color: rgba(255, 244, 218, 0.78);
}

.admin-user-card {
    display: grid;
    align-content: center;
    min-width: 190px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 250, 242, 0.95);
    border: 1px solid rgba(245, 177, 61, 0.24);
}

.admin-user-card span {
    color: var(--muted);
}

.admin-user-card strong {
    color: #9c5b0a;
    text-transform: none;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-kpi {
    display: grid;
    gap: 7px;
    min-height: 120px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 26px rgba(23, 25, 35, 0.06);
}

.admin-kpi span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.admin-kpi strong {
    font-size: 1.85rem;
    line-height: 1;
}

.admin-kpi small {
    color: var(--muted);
}

.kpi-ruby {
    background:
        linear-gradient(135deg, var(--ruby), var(--ruby-deep));
    color: #fff;
}

.kpi-ruby span,
.kpi-ruby small {
    color: rgba(255, 255, 255, 0.82);
}

.admin-finance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.admin-finance-card {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    min-height: 120px;
    overflow: hidden;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 25, 35, 0.08);
}

.admin-finance-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    pointer-events: none;
}

.admin-finance-card > div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
}

.admin-finance-label {
    color: var(--graphite);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.admin-finance-card strong {
    color: var(--ink);
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    line-height: 1;
}

.admin-finance-card small {
    color: var(--muted);
    font-size: 0.8rem;
}

.admin-finance-symbol {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
}

.admin-finance-symbol::before,
.admin-finance-symbol::after {
    content: "";
    position: absolute;
}

.finance-received {
    border-color: rgba(47, 158, 68, 0.26);
    background:
        linear-gradient(135deg, rgba(47, 158, 68, 0.07), transparent 48%),
        #fff;
}

.finance-received::after {
    background: radial-gradient(circle, rgba(47, 158, 68, 0.15), transparent 68%);
}

.finance-received .admin-finance-symbol {
    background: linear-gradient(145deg, #36a94e, #19722e);
    box-shadow: 0 14px 28px rgba(47, 158, 68, 0.23);
}

.finance-received .admin-finance-symbol::before {
    width: 20px;
    height: 11px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translateY(-3px) rotate(-45deg);
}

.finance-received .admin-finance-label {
    color: #237638;
}

.finance-waiting {
    border-color: rgba(196, 127, 0, 0.26);
    background:
        linear-gradient(135deg, rgba(245, 177, 61, 0.09), transparent 48%),
        #fff;
}

.finance-waiting::after {
    background: radial-gradient(circle, rgba(245, 177, 61, 0.18), transparent 68%);
}

.finance-waiting .admin-finance-symbol {
    border: 1px solid rgba(156, 91, 10, 0.15);
    background: linear-gradient(145deg, #ffc85f, #d4880a);
    box-shadow: 0 14px 28px rgba(196, 127, 0, 0.2);
}

.finance-waiting .admin-finance-symbol::before {
    width: 23px;
    height: 23px;
    border: 3px solid #fff;
    border-radius: 50%;
}

.finance-waiting .admin-finance-symbol::after {
    width: 3px;
    height: 11px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 6px 8px 0 -0.5px #fff;
    transform: translateY(-5px);
    transform-origin: bottom center;
}

.finance-waiting .admin-finance-label {
    color: #9c5b0a;
}

.admin-panel {
    margin-top: 22px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(229, 217, 203, 0.9);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 25, 35, 0.07);
    scroll-margin-top: 90px;
}

.danger-panel {
    border-color: #efb2bb;
    background: #fff8f8;
}

.admin-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-panel-heading h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f3f7;
    color: var(--graphite);
    font-weight: 800;
    font-size: 0.82rem;
}

.thumbnail-preview {
    display: grid;
    gap: 8px;
    width: min(260px, 100%);
}

.thumbnail-preview span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.thumbnail-preview img {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f7f7;
}

.order-status-badge {
    white-space: nowrap;
}

.order-status-badge.status-waiting {
    background: #fff3cd;
    color: #7a4f00;
}

.order-status-badge.status-paid {
    background: #d9f7e4;
    color: #176a37;
}

.order-status-badge.status-expired,
.order-status-badge.status-neutral {
    background: #eceff3;
    color: #5f6673;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--graphite);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.pagination-wide {
    min-width: 82px;
}

.pagination-link.is-current {
    border-color: var(--ruby);
    background: var(--ruby);
    color: #fff;
}

.pagination-link.is-disabled {
    cursor: default;
    opacity: 0.48;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric,
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(23, 25, 35, 0.07);
}

.metric {
    min-height: 96px;
    padding: 16px;
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.metric strong {
    display: block;
    margin-top: 8px;
    font-size: 1.65rem;
}

.panel {
    margin-top: 22px;
    padding: clamp(18px, 3vw, 30px);
}

.admin-form-row,
.inline-action {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-form-row label {
    flex: 1 1 220px;
}

.transfer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.transfer-block {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbfc;
}

.transfer-block h3 {
    margin: 0;
}

.transfer-block .admin-form-row {
    margin-top: 16px;
}

.transfer-block .admin-form-row label {
    flex-basis: 100%;
}

.settings-form {
    align-items: flex-start;
}

.settings-form .full {
    flex-basis: 100%;
}

.settings-form textarea {
    min-height: 160px;
}

.settings-checkline {
    flex: 1 1 100%;
    align-items: center;
}

.admin-user-create {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid rgba(177, 18, 43, 0.16);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff9ef, #fff);
}

.admin-user-create h3,
.admin-user-editor h3 {
    margin: 0;
}

.admin-user-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    margin-top: 16px;
}

.admin-user-form label {
    min-width: 0;
}

.admin-user-active {
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d4dae3;
    border-radius: 8px;
    background: #fff;
}

.admin-user-active input {
    margin: 0;
}

.admin-user-active span {
    margin: 0;
}

.admin-users-list {
    display: grid;
    gap: 14px;
}

.admin-user-editor {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fafbfc;
}

.admin-user-editor-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-user-editor-heading small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.admin-current-user {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f7e6b5;
    color: #7d4a08;
    font-size: 0.78rem;
    font-weight: 900;
}

.admin-user-delete {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.checkin-table td small,
.checkin-action small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.checkin-action {
    display: grid;
    gap: 6px;
}

.checkin-layout {
    width: min(1880px, calc(100% - 28px));
    grid-template-columns: 250px minmax(0, 1fr);
}

.checkin-panel {
    margin-top: 0;
    padding: clamp(16px, 2vw, 28px);
}

.courtesy-panel {
    margin-top: 0;
}

.courtesy-panel h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.courtesy-form {
    display: grid;
    gap: 18px;
}

.courtesy-kind {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.courtesy-kind legend {
    margin-bottom: 8px;
    font-weight: 850;
}

.courtesy-choice {
    margin-top: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf2;
}

.courtesy-confirmation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(37, 129, 59, 0.25);
    border-radius: 12px;
    background: #f1fbf3;
}

.courtesy-confirmation span,
.courtesy-label {
    color: var(--muted);
    font-size: 0.82rem;
}

.courtesy-label {
    display: block;
    margin-top: 4px;
    font-weight: 800;
}

.checkin-heading h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.checkin-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.checkin-search {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf2;
}

.checkin-search label {
    font-weight: 850;
}

.checkin-search > div {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 10px;
}

.checkin-search-feedback {
    color: var(--muted);
}

.checkin-search [hidden],
.checkin-table [hidden] {
    display: none !important;
}

.checkin-table {
    width: 100%;
    overflow: visible;
}

.checkin-table table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.88rem;
}

.checkin-table th,
.checkin-table td {
    padding: 10px 8px;
    overflow-wrap: anywhere;
}

.checkin-table td {
    vertical-align: top;
}

.checkin-table tbody tr.is-delivered {
    background: #f1fbf3;
}

.checkin-table tbody tr.was-unmarked {
    background: #f8f9fb;
}

.checkin-col-table {
    width: 7%;
}

.checkin-col-order {
    width: 10%;
}

.checkin-col-buyer {
    width: 16%;
}

.checkin-col-contact {
    width: 14%;
}

.checkin-col-occupancy {
    width: 10%;
}

.checkin-col-ticket {
    width: 12%;
}

.checkin-col-notes {
    width: 19%;
}

.checkin-col-delivery {
    width: 12%;
}

.checkin-observation {
    min-width: 0;
    white-space: normal;
}

.checkin-delivery-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.checkin-delivery-status.is-delivered {
    border: 2px solid #c99424;
    background: #25813b;
    color: #fff;
}

.checkin-delivery-status.is-unmarked {
    border: 1px solid #aeb5c0;
    background: #eef0f3;
    color: #394150;
}

.checkin-delivery-status.is-pending {
    border: 1px solid #c9ced6;
    background: #fff;
    color: var(--muted);
}

.history-total {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.payment-success-page {
    width: min(1100px, calc(100% - 28px));
    margin: 38px auto 64px;
}

.payment-success-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 46px);
    border-radius: 12px;
    border: 1px solid rgba(245, 177, 61, 0.3);
    background:
        radial-gradient(circle at 90% 6%, rgba(242, 138, 16, 0.28), transparent 28%),
        linear-gradient(135deg, rgba(255, 250, 242, 0.98), rgba(255, 245, 232, 0.96));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.payment-state-card {
    width: min(760px, 100%);
    margin: 0 auto;
}

.payment-success-card h1,
.confirmation-ruby-panel h1 {
    margin: 8px 0 12px;
    font-family: var(--display-font);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500;
    color: #4a1018;
}

.payment-success-card p {
    max-width: 650px;
    margin: 10px auto;
    color: #3c2f2a;
    font-size: 1.05rem;
}

.payment-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    margin-bottom: 12px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, #ff4b5e, var(--ruby) 54%, #5d0717);
    color: var(--gold-soft);
    font-size: 3.2rem;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(210, 15, 40, 0.26);
}

.payment-state-icon.is-pending {
    background: linear-gradient(135deg, #4a5b70, #202b38);
    font-size: 2rem;
}

.payment-confirmation {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    width: min(780px, 100%);
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(245, 177, 61, 0.36);
    border-radius: 24px;
    background: #fffaf2;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.confirmation-ruby-panel {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vw, 34px);
    min-height: 0;
    overflow: hidden;
    padding: clamp(22px, 4vw, 36px);
    background:
        radial-gradient(circle at 24% 50%, rgba(216, 27, 57, 0.24), transparent 22%),
        radial-gradient(circle at 15% 5%, rgba(245, 177, 61, 0.22), transparent 26%),
        linear-gradient(155deg, #07151f 0%, #260812 50%, #4a0a1b 100%);
    color: #fff4da;
    text-align: left;
}

.confirmation-ruby-panel::before,
.confirmation-ruby-panel::after {
    content: "";
    position: absolute;
    width: 90px;
    aspect-ratio: 1.3 / 1;
    background: url("/assets/rubi-fall.png") center / contain no-repeat;
    opacity: 0.18;
    filter: blur(0.2px);
}

.confirmation-ruby-panel::before {
    top: 9%;
    left: -22px;
    transform: rotate(-24deg);
}

.confirmation-ruby-panel::after {
    right: -28px;
    bottom: 8%;
    transform: rotate(28deg) scale(1.2);
}

.ruby-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.ruby-glow-one {
    width: 220px;
    height: 220px;
    top: -120px;
    right: -100px;
    background: radial-gradient(circle, rgba(245, 177, 61, 0.34), transparent 68%);
}

.ruby-glow-two {
    width: 260px;
    height: 260px;
    left: -160px;
    bottom: -140px;
    background: radial-gradient(circle, rgba(210, 15, 40, 0.35), transparent 68%);
}

.confirmation-ruby-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(118px, 22vw, 168px);
    aspect-ratio: 1 / 1;
    margin: 0;
}

.confirmation-ruby-stage::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 232, 165, 0.2), rgba(210, 15, 40, 0.08) 48%, transparent 70%);
    box-shadow: 0 0 70px rgba(210, 15, 40, 0.34);
}

.confirmation-ruby-stage img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 18px rgba(255, 50, 78, 0.24));
    animation: confirmation-ruby-float 5s ease-in-out infinite;
}

.confirmation-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(245, 177, 61, 0.24);
    border-radius: 50%;
}

.orbit-one {
    inset: 2%;
}

.orbit-two {
    inset: 16%;
    border-color: rgba(255, 232, 165, 0.16);
}

.confirmation-check {
    position: absolute;
    right: 4%;
    bottom: 10%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid #ffe8a5;
    border-radius: 50%;
    background: linear-gradient(145deg, #f5b13d, #b51026 70%);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

@keyframes confirmation-ruby-float {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.confirmation-kicker {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.confirmation-ruby-panel h1 {
    position: relative;
    z-index: 2;
    margin: 8px 0 4px;
    color: #fff4da;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 0.95;
    overflow-wrap: normal;
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}

.confirmation-event {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255, 232, 165, 0.72);
    font-family: var(--display-font);
    font-size: 1.12rem;
}

.confirmation-receipt {
    padding: clamp(28px, 5vw, 54px);
}

.confirmation-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.confirmation-heading h2 {
    max-width: 520px;
    margin: 0;
    color: #40101b;
    font-family: var(--display-font);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1;
}

.confirmation-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #a8dbb3;
    border-radius: 999px;
    background: #eefaf0;
    color: #216b32;
    font-size: 0.82rem;
    font-weight: 900;
}

.confirmation-status i {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2f9e44;
    color: #fff;
    font-size: 0.72rem;
    font-style: normal;
}

.confirmation-lead {
    margin: 18px 0 22px;
    color: #65574f;
}

.confirmation-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding: 14px 16px;
    border: 1px dashed rgba(181, 16, 38, 0.34);
    border-radius: 12px;
    background: #fff4ed;
}

.confirmation-code span {
    color: #806b60;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.confirmation-code strong {
    color: #7f0b20;
    font-size: clamp(0.92rem, 2vw, 1.08rem);
    letter-spacing: 0.03em;
}

.confirmation-items h3 {
    margin: 0 0 10px;
    color: #40101b;
    font-size: 1rem;
}

.confirmation-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eadfd3;
}

.confirmation-item-gem {
    width: 26px;
    height: 22px;
    background: url("/assets/rubi-fall.png") center / contain no-repeat;
    filter: drop-shadow(0 5px 7px rgba(181, 16, 38, 0.22));
}

.confirmation-item div {
    display: grid;
    gap: 3px;
}

.confirmation-item strong {
    color: #34221d;
}

.confirmation-item small {
    color: #7b6d65;
}

.confirmation-item b {
    color: #7f0b20;
    white-space: nowrap;
}

.confirmation-totals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.confirmation-totals span {
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 12px;
    border-radius: 10px;
    background: #f5efe8;
}

.confirmation-totals small {
    color: #7b6d65;
}

.confirmation-totals strong {
    color: #34221d;
}

.confirmation-totals .confirmation-total-value {
    background: linear-gradient(135deg, #4a0a1b, #260812);
}

.confirmation-total-value small {
    color: rgba(255, 232, 165, 0.72);
}

.confirmation-total-value strong {
    color: #ffe8a5;
}

.confirmation-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 12px;
    border: 1px solid #d8e8d9;
    border-radius: 8px;
    background: #f2faf3;
}

.confirmation-footer-note {
    width: min(780px, 100%);
    margin: 18px auto 0;
}

.confirmation-note p {
    flex: 1;
    margin: 0;
    color: #36533d;
    font-size: 0.88rem;
    line-height: 1.45;
}

.confirmation-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #25813b;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(36, 122, 57, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.confirmation-whatsapp-button:hover {
    transform: translateY(-1px);
    background: #2f9e44;
    box-shadow: 0 10px 18px rgba(36, 122, 57, 0.24);
}

.confirmation-actions {
    margin-top: 22px;
}

.confirmation-hashtags {
    margin: 14px 0 0;
    color: rgba(95, 68, 72, 0.68);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
}

.btn-confirmation-ghost {
    border: 1px solid #d7c4b2;
    background: transparent;
    color: #5b4339;
}

.inline-action {
    margin-top: 14px;
}

.audit-table small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.audit-table details {
    min-width: 160px;
}

.audit-table summary {
    cursor: pointer;
    color: var(--ruby);
    font-weight: 800;
}

.audit-table pre {
    max-width: 420px;
    max-height: 220px;
    overflow: auto;
    padding: 10px;
    border-radius: 8px;
    background: #24161a;
    color: #fff;
    font-size: .78rem;
    white-space: pre-wrap;
}

.category-editor {
    display: grid;
    gap: 8px;
    overflow-x: auto;
}

.category-editor-head,
.category-editor-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.3fr) 84px 110px 130px 120px 120px 72px 88px;
    gap: 8px;
    align-items: center;
    min-width: 930px;
}

.table-category-head,
.table-category-row {
    grid-template-columns: minmax(180px, 1.4fr) 90px 170px 130px 72px 90px;
    min-width: 760px;
}

.extra-category-head,
.extra-category-row {
    grid-template-columns: minmax(220px, 1.4fr) 120px 130px 72px 90px;
    min-width: 650px;
}

.category-editor-head {
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 900;
    padding: 0 4px;
}

.category-editor-row {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfd;
}

.center-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-check input {
    width: 18px;
    min-height: 18px;
}

.compatibility-editor {
    display: grid;
    gap: 14px;
}

.compatibility-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfd;
}

.compatibility-card > div:first-child {
    display: grid;
    align-content: start;
    gap: 4px;
}

.compatibility-card span {
    color: var(--muted);
}

.compatibility-options {
    display: grid;
    gap: 8px;
}

.compatibility-option {
    display: grid;
    grid-template-columns: 20px minmax(180px, 1fr) 96px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #edf0f4;
}

.compatibility-option.is-disabled {
    opacity: .55;
    background: #f6f7f9;
}

.compatibility-option input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
}

.compatibility-option input[type="number"] {
    min-height: 38px;
}

.table-status-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
}

.table-status-list form {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfd;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.responsive-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
}

.cookie-banner p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .admin-login-shell {
        grid-template-columns: 1fr;
        width: min(720px, 100%);
    }

    .admin-login-showcase {
        min-height: 500px;
    }

    .admin-login-gem {
        top: 52%;
        left: 62%;
        width: min(54%, 410px);
    }

    .admin-login-panel {
        padding: clamp(42px, 8vw, 72px);
    }

    .rubi-hero,
    .admin-layout,
    .payment-confirmation {
        grid-template-columns: 1fr;
    }

    .confirmation-ruby-stage {
        width: clamp(118px, 22vw, 168px);
    }

    .admin-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        min-height: auto;
    }

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

    .admin-menu {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
        overflow-x: auto;
    }

    .admin-menu .admin-menu-section {
        grid-column: 1 / -1;
    }

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

    .admin-finance-card {
        grid-template-columns: 52px minmax(0, 1fr);
        min-height: 120px;
        padding: 16px 20px;
    }

    .admin-finance-symbol {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .ruby-stage {
        min-height: 180px;
    }

    .purchase-card-header,
    .checkout-header,
    .summary-heading,
    .admin-heading,
    .panel-heading,
    .admin-panel-heading,
    .admin-hero,
    .purchase-footer {
        flex-direction: column;
    }

    .purchase-footer {
        align-items: stretch;
    }

    .purchase-footer p {
        text-align: center;
    }

    .purchase-payment-cta {
        width: 100%;
    }

    .checkout-summary-content,
    .identity-connected-card {
        grid-template-columns: 1fr;
    }

    .summary-secure-badge {
        max-width: none;
    }

    .metric-grid,
    .table-status-list,
    .two-column,
    .courtesy-confirmation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selected-table-row {
        grid-template-columns: 80px 1fr;
    }

    .remove-table {
        grid-column: 2;
        justify-self: end;
    }

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

    .compatibility-card {
        grid-template-columns: 1fr;
    }

    .checkin-table table {
        font-size: 0.8rem;
    }

    .checkin-table th,
    .checkin-table td {
        padding: 8px 5px;
    }

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

@media (max-width: 680px) {
    .is-admin-login main {
        min-height: auto;
    }

    .admin-login-page {
        padding: 148px 12px 30px;
    }

    .admin-sidebar-brand {
        padding: 18px;
    }

    .admin-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        padding: 10px;
    }

    .admin-menu a {
        min-height: 46px;
        padding: 9px 10px 9px 34px;
    }

    .admin-menu a::before {
        left: 14px;
    }

    .is-admin-login .password-reset-page {
        padding-top: 150px;
    }

    .admin-login-shell {
        min-height: 0;
        border-radius: 20px;
    }

    .admin-login-showcase {
        min-height: 350px;
        padding: 30px 28px;
    }

    .admin-login-showcase::before {
        inset: 12px;
        border-radius: 14px;
    }

    .admin-login-kicker {
        margin-bottom: 12px;
    }

    .admin-login-showcase-copy h2 {
        font-size: clamp(2.35rem, 11.5vw, 3.25rem);
    }

    .admin-login-gem {
        top: auto;
        right: -26px;
        bottom: 6px;
        left: auto;
        width: min(70%, 280px);
        transform: none;
    }

    .admin-login-ruby-one {
        top: 49%;
        left: 2%;
        width: 48px;
    }

    .admin-login-ruby-two,
    .admin-login-ruby-three {
        display: none;
    }

    .admin-login-protected {
        max-width: 155px;
        font-size: 0.67rem;
    }

    .admin-login-panel {
        padding: 42px 22px;
    }

    .admin-login-panel::after {
        top: 22px;
        right: 20px;
        width: 34px;
    }

    .admin-login-restricted {
        margin-bottom: 18px;
    }

    .admin-login-heading h1 {
        font-size: clamp(3.1rem, 15vw, 4.25rem);
    }

    .admin-login-heading > p:last-child {
        margin-top: 20px;
    }

    .admin-login-form {
        margin-top: 28px;
    }

    .admin-login-recaptcha {
        max-width: 100%;
    }

    .ruby-rain span:nth-child(n+17),
    .hero-ruby-rain span:nth-child(n+13) {
        display: none;
    }

    .ruby-rain span {
        max-width: 46px;
    }

    .hero-ruby-rain span {
        max-width: 40px;
    }

    .topbar {
        align-items: center;
        flex-direction: row;
        gap: 10px;
        padding: 10px 12px;
    }

    .brand {
        min-width: 0;
        flex: 1 1 auto;
        gap: 8px;
        font-size: clamp(0.92rem, 4vw, 1rem);
        line-height: 1.1;
    }

    .brand > span:last-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .checkout-page {
        width: min(100% - 20px, 1180px);
        margin-top: 16px;
    }

    .checkout-header {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .checkout-header h1 {
        font-size: clamp(2.35rem, 13vw, 3.6rem);
    }

    .identity-choice-grid,
    .summary-items {
        grid-template-columns: 1fr;
    }

    .identity-choice-card {
        grid-template-columns: 50px minmax(0, 1fr) 20px;
        min-height: 126px;
        padding: 18px 15px;
        gap: 12px;
    }

    .identity-choice-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .identity-choice-section,
    .order-summary-card,
    .identity-card {
        padding: 20px 16px;
    }

    .checkout-recaptcha {
        min-height: 70px;
    }

    .checkout-recaptcha .g-recaptcha {
        transform: scale(0.9);
    }

    .confirmation-ruby-panel {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding: 18px 14px;
    }

    .confirmation-ruby-stage {
        width: 72px;
    }

    .confirmation-check {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .confirmation-kicker {
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }

    .confirmation-ruby-panel h1 {
        font-size: clamp(1.72rem, 7.1vw, 2.3rem);
        line-height: 1;
    }

    .confirmation-event {
        font-size: 0.94rem;
    }

    .checkin-search > div {
        grid-template-columns: 1fr;
    }

    .checkin-table colgroup,
    .checkin-table thead {
        display: none;
    }

    .checkin-table table,
    .checkin-table tbody,
    .checkin-table tr,
    .checkin-table td {
        display: block;
        width: 100%;
    }

    .checkin-table tr {
        margin-bottom: 14px;
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
    }

    .checkin-table td {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 10px;
        border-bottom: 1px dashed var(--line);
    }

    .checkin-table td:last-child {
        border-bottom: 0;
    }

    .checkin-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.76rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .purchase-history-table {
        padding: 10px;
    }

    .purchase-history-table thead {
        display: none;
    }

    .purchase-history-table table,
    .purchase-history-table tbody,
    .purchase-history-table tr,
    .purchase-history-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .purchase-history-table tr {
        margin-bottom: 14px;
        overflow: hidden;
        border: 1px solid #dbc9b8;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(42, 18, 23, 0.08);
    }

    .purchase-history-table td,
    .purchase-history-table td:first-child,
    .purchase-history-table td:last-child {
        display: grid;
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        border: 0;
        border-bottom: 1px dashed #ded1c5;
        border-radius: 0;
    }

    .purchase-history-table td:first-child {
        border-left: 4px solid var(--gold);
    }

    .purchase-history-table td:last-child {
        border-bottom: 0;
    }

    .purchase-history-table td::before {
        content: attr(data-label);
        color: #776a62;
        font-size: 0.72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .purchase-code {
        overflow-wrap: anywhere;
    }

    .purchase-action {
        display: block;
    }

    .purchase-status,
    .purchase-action .btn {
        justify-content: center;
        width: 100%;
    }

    .topnav {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 6px;
    }

    .nav-pill {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .link-button {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 0.86rem;
    }

    .rubi-hero {
        min-height: auto;
        padding: 24px;
    }

    .sales-page {
        width: min(1180px, calc(100% - 12px));
    }

    .purchase-card {
        padding: 14px 10px;
    }

    .ruby-stage {
        display: none;
    }

    .purchase-mode,
    .extra-grid,
    .form-grid,
    .summary-list,
    .summary-totals,
    .admin-kpi-grid,
    .admin-finance-grid,
    .metric-grid,
    .table-status-list,
    .two-column,
    .courtesy-confirmation {
        grid-template-columns: 1fr;
    }

    .admin-finance-card {
        grid-template-columns: 46px minmax(0, 1fr);
        min-height: 112px;
        padding: 15px;
    }

    .admin-finance-symbol {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .admin-finance-card strong {
        font-size: clamp(1.65rem, 8vw, 2.1rem);
    }

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

    .confirmation-heading {
        flex-direction: column;
    }

    .confirmation-code {
        align-items: flex-start;
        flex-direction: column;
    }

    .confirmation-item {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .confirmation-item b {
        grid-column: 2;
    }

    .venue-map {
        align-items: stretch;
        justify-content: center;
        flex-direction: row;
        gap: 6px;
        overflow-x: hidden;
        padding: 8px;
    }

    .table-grid {
        width: 100%;
        flex: 1 1 auto;
        grid-template-columns: repeat(var(--map-columns), minmax(0, 1fr));
        gap: clamp(2px, 0.9vw, 4px);
    }

    .table-tile,
    .table-placeholder {
        min-width: 0;
        min-height: 0;
        border-radius: 7px;
        font-size: clamp(0.56rem, 2.65vw, 0.78rem);
    }

    .venue-side {
        grid-template-columns: repeat(2, minmax(22px, 1fr));
        width: clamp(44px, 14vw, 58px);
        flex: 0 0 clamp(44px, 14vw, 58px);
        gap: 5px;
    }

    .venue-side span {
        min-height: 100%;
        padding: 6px 2px;
        font-size: clamp(0.56rem, 2.25vw, 0.68rem);
        line-height: 1.1;
        white-space: nowrap;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }

    .selected-table-row {
        grid-template-columns: minmax(0, 1fr) 38px;
        align-items: stretch;
        gap: 8px;
    }

    .selected-table-row > strong,
    .selected-table-row > select,
    .selected-table-row > .extra-choice,
    .selected-table-row > input[type="text"] {
        grid-column: 1 / -1;
    }

    .selected-table-row > strong {
        font-size: 1rem;
    }

    .selected-table-row > input[type="text"] {
        min-height: 48px;
    }

    .extra-choice {
        grid-template-columns: minmax(0, 1fr) 72px;
    }

    .remove-table {
        grid-column: 2;
        justify-self: end;
    }

    .admin-form-row,
    .inline-action,
    .identity-tabs {
        align-items: stretch;
        flex-direction: column;
    }

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

    .admin-user-editor-heading {
        flex-direction: column;
    }

    .admin-user-delete {
        justify-content: stretch;
    }

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

    .btn {
        width: 100%;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .compatibility-option {
        grid-template-columns: 20px 1fr;
    }

    .compatibility-option input[type="number"] {
        grid-column: 2;
    }
}

@media (max-width: 360px) {
    .purchase-payment-cta {
        min-height: 50px;
        padding-right: 40px;
        padding-left: 18px;
        font-size: 0.9rem;
    }

    .admin-login-recaptcha {
        min-height: 68px;
    }

    .admin-login-recaptcha .g-recaptcha {
        transform: scale(0.86);
        transform-origin: top left;
    }
}

@media (max-width: 330px) {
    .admin-login-showcase-copy h2 {
        font-size: 2.2rem;
    }

    .admin-login-recaptcha .g-recaptcha {
        transform: scale(0.76);
    }
}
