/* ==========================================================================
   4399 小号补给站 — visual system
   ========================================================================== */

:root {
    --bg: #f4f7fd;
    --bg-soft: #eef3ff;
    --surface: #ffffff;
    --ink: #17223b;
    --ink-soft: #34425f;
    --muted: #6b7792;
    --line: rgba(23, 34, 59, 0.09);
    --line-strong: rgba(23, 34, 59, 0.14);
    --brand: #536bff;
    --brand-deep: #4055e8;
    --violet: #8465ff;
    --mint: #16c7a3;
    --mint-deep: #0da98a;
    --danger: #e05267;
    --warning: #d89a26;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-card: 0 30px 70px -38px rgba(30, 52, 120, 0.38), 0 8px 24px -18px rgba(30, 52, 120, 0.18);
    --shadow-hover: 0 38px 80px -40px rgba(30, 52, 120, 0.48), 0 12px 28px -18px rgba(30, 52, 120, 0.22);
    --font-sans: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: "SFMono-Regular", "Cascadia Code", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body.site-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: var(--ink);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: #fff;
    background: rgba(83, 107, 255, 0.82);
}

a {
    color: var(--brand-deep);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--violet);
}

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

code {
    font-family: var(--font-mono);
}

:focus-visible {
    outline: 3px solid rgba(83, 107, 255, 0.35);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 0.7rem 1rem;
    color: #fff;
    background: var(--ink);
    border-radius: 12px;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

/* ==========================================================================
   Ambient background
   ========================================================================== */

.page-backdrop {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 12% 6%, rgba(142, 190, 255, 0.35), transparent 34%),
        radial-gradient(circle at 88% 16%, rgba(177, 156, 255, 0.28), transparent 36%),
        radial-gradient(circle at 78% 90%, rgba(126, 237, 209, 0.2), transparent 34%),
        linear-gradient(180deg, #f9fbff 0%, #f2f6ff 48%, #f8fbff 100%);
}

.page-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(71, 95, 160, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 95, 160, 0.07) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 10%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 10%, #000 0%, transparent 72%);
    pointer-events: none;
}

.bg-orb {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
    opacity: 0.62;
    will-change: transform;
}

.bg-orb--one {
    top: -16vw;
    right: -9vw;
    width: 44vw;
    height: 44vw;
    background: radial-gradient(circle at 35% 35%, rgba(125, 151, 255, 0.46), rgba(125, 151, 255, 0) 68%);
    animation: orbFloatOne 18s ease-in-out infinite alternate;
}

.bg-orb--two {
    top: 34vh;
    left: -18vw;
    width: 38vw;
    height: 38vw;
    background: radial-gradient(circle at 60% 40%, rgba(112, 229, 204, 0.33), rgba(112, 229, 204, 0) 68%);
    animation: orbFloatTwo 22s ease-in-out infinite alternate;
}

.bg-orb--three {
    right: 4vw;
    bottom: -20vw;
    width: 36vw;
    height: 36vw;
    background: radial-gradient(circle at 45% 45%, rgba(179, 147, 255, 0.28), rgba(179, 147, 255, 0) 68%);
    animation: orbFloatThree 20s ease-in-out infinite alternate;
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0 0.35rem;
}

.site-nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.65rem 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    box-shadow: 0 15px 40px -28px rgba(30, 52, 110, 0.4);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.15rem;
    background: linear-gradient(145deg, var(--brand), var(--violet));
    border-radius: 14px;
    box-shadow: 0 12px 25px -14px rgba(70, 85, 220, 0.75);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: rotate(3deg) scale(1.03);
}

.brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.brand-copy strong {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-copy span {
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 600;
    letter-spacing: 0.13em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.nav-login {
    padding: 0.55rem 0.85rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
}

.nav-login:hover {
    color: var(--brand-deep);
    background: rgba(83, 107, 255, 0.07);
}

.btn.nav-register {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.62rem 0.95rem;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 13px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.nav-register:hover {
    color: #fff;
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -16px rgba(64, 85, 232, 0.75);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.65rem 0.3rem 0.32rem;
    background: rgba(244, 247, 255, 0.9);
    border: 1px solid rgba(83, 107, 255, 0.1);
    border-radius: 999px;
}

.user-avatar,
.claimer-avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--violet));
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.user-name {
    max-width: 130px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 0.87rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.32rem 0.55rem;
    color: #7b5610;
    background: #fff7df;
    border: 1px solid rgba(216, 154, 38, 0.18);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.nav-logout {
    display: inline-flex;
    margin: 0;
}

.nav-icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-icon-btn:hover {
    color: var(--danger);
    background: rgba(224, 82, 103, 0.06);
    border-color: rgba(224, 82, 103, 0.12);
}

/* ==========================================================================
   Page shell, cards, shared controls
   ========================================================================== */

.site-main {
    position: relative;
    z-index: 1;
    flex: 1;
    padding-top: 2.25rem;
    padding-bottom: 4rem;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 0 0 2.2rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0.35rem;
    border-top: 1px solid rgba(23, 34, 59, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(22, 199, 163, 0.12);
}

.footer-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.app-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.section-kicker,
.panel-kicker {
    display: inline-block;
    color: var(--brand-deep);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.2;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
}

.btn-main,
.btn-soft,
.btn-admin,
.btn-admin-ghost,
.filter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.72rem 1.2rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-main {
    color: #fff;
    background: linear-gradient(110deg, var(--brand), #6c5cf6 72%, #7660fb);
    border: 1px solid transparent;
    box-shadow: 0 16px 30px -18px rgba(71, 87, 230, 0.85);
}

.btn-main:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 22px 36px -20px rgba(71, 87, 230, 0.95);
}

.btn-soft {
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 34, 59, 0.1);
}

.btn-soft:hover {
    color: var(--ink);
    background: #fff;
    border-color: rgba(83, 107, 255, 0.24);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -18px rgba(30, 52, 110, 0.35);
}

.btn-admin {
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    box-shadow: 0 14px 28px -18px rgba(23, 34, 59, 0.8);
}

.btn-admin:hover {
    color: #fff;
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    transform: translateY(-1px);
}

.btn-admin-ghost {
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.82rem;
}

.btn-admin-ghost:hover {
    color: var(--danger);
    border-color: rgba(224, 82, 103, 0.2);
    background: #fff;
}

.btn.is-loading {
    opacity: 0.74;
    pointer-events: none;
}

.btn.is-loading .btn-label {
    opacity: 0.55;
}

.btn.is-loading::after {
    content: "";
    width: 1rem;
    height: 1rem;
    margin-left: 0.45rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Alerts */
.flash-stack {
    max-width: 980px;
    margin: 0 auto 1.15rem;
}

.app-alert {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    padding: 0.9rem 1rem;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 16px 32px -28px rgba(30, 52, 110, 0.45);
    animation: alertIn 0.38s ease both;
}

.app-alert__icon {
    flex: 0 0 auto;
    font-size: 1.05rem;
}

.app-alert__text {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
}

.app-alert--success {
    color: #116452;
    background: rgba(236, 253, 247, 0.96);
    border-color: rgba(22, 199, 163, 0.16);
}

.app-alert--danger {
    color: #882c3b;
    background: rgba(255, 241, 243, 0.97);
    border-color: rgba(224, 82, 103, 0.16);
}

.app-alert--warning {
    color: #75540e;
    background: rgba(255, 250, 234, 0.97);
    border-color: rgba(216, 154, 38, 0.18);
}

.app-alert--info {
    color: #274381;
    background: rgba(240, 245, 255, 0.97);
    border-color: rgba(83, 107, 255, 0.14);
}

.app-alert .btn-close {
    padding: 0.7rem;
    box-shadow: none;
    opacity: 0.45;
}

/* Surface reveal animation */
.js [data-reveal] {
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].reveal-pending {
    opacity: 0;
    transform: translateY(22px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Homepage hero
   ========================================================================== */

.hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.8rem 0 0;
}

.hero-heading {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.intro-sequence > * {
    animation: riseIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.intro-sequence > *:nth-child(1) {
    animation-delay: 0.04s;
}

.intro-sequence > *:nth-child(2) {
    animation-delay: 0.14s;
}

.intro-sequence > *:nth-child(3) {
    animation-delay: 0.24s;
}

.intro-sequence > *:nth-child(4) {
    animation-delay: 0.34s;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    padding: 0.46rem 0.78rem;
    color: #38518e;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(83, 107, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 8px 24px -20px rgba(30, 52, 110, 0.5);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(22, 199, 163, 0.12);
    animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-title {
    margin: 1.35rem 0 1.05rem;
    font-size: clamp(2.9rem, 6.3vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1.04;
}

.gradient-text {
    color: transparent;
    background: linear-gradient(96deg, #4d67ff 2%, #845cf2 48%, #16bfa2 94%);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 160% auto;
    animation: gradientShift 8s ease-in-out infinite alternate;
}

.hero-lead {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.08rem);
    line-height: 1.8;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.2rem;
    margin-top: 1.3rem;
    color: #617092;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-trust i {
    color: var(--brand);
}

.claim-stage {
    position: relative;
    max-width: 760px;
    margin: 2.8rem auto 0;
    animation: cardIn 0.8s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.claim-card {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
    padding: 1.35rem 2.55rem 2.25rem;
    overflow: hidden;
    background: linear-gradient(158deg, rgba(255, 255, 255, 0.97), rgba(249, 251, 255, 0.91));
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 36px;
    box-shadow:
        0 45px 90px -48px rgba(33, 51, 118, 0.55),
        0 15px 35px -26px rgba(33, 51, 118, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);
}

.claim-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background-image:
        radial-gradient(circle at 20% 2%, rgba(125, 151, 255, 0.17), transparent 28%),
        radial-gradient(circle at 88% 72%, rgba(101, 228, 199, 0.11), transparent 32%);
    pointer-events: none;
}

.claim-card__aurora {
    position: absolute;
    top: -220px;
    right: -140px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(115, 115, 255, 0.2), transparent 64%);
    filter: blur(2px);
    pointer-events: none;
    animation: auroraBreathe 7s ease-in-out infinite alternate;
}

.claim-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.online-pill,
.stock-pill,
.format-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.online-pill {
    color: #246b5a;
    background: rgba(233, 252, 246, 0.88);
    border: 1px solid rgba(22, 199, 163, 0.14);
}

.stock-pill {
    color: #4d5d8b;
    background: rgba(244, 247, 255, 0.95);
    border: 1px solid rgba(83, 107, 255, 0.11);
}

.stock-pill strong {
    color: var(--brand-deep);
    font-weight: 800;
}

.format-pill {
    color: #5d558c;
    background: rgba(247, 244, 255, 0.9);
    border: 1px solid rgba(132, 101, 255, 0.12);
    font-family: var(--font-mono);
}

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(22, 199, 163, 0.11);
    animation: pulseDot 2.4s ease-in-out infinite;
}

.claim-card__body {
    position: relative;
    z-index: 1;
    text-align: center;
}

.claim-illustration {
    position: relative;
    width: 102px;
    height: 102px;
    display: grid;
    place-items: center;
    margin: 0.25rem auto 0.8rem;
    animation: floatSoft 6.5s ease-in-out infinite;
}

.claim-illustration__core {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    background: linear-gradient(145deg, #5c74ff, #8261f5);
    border-radius: 25px;
    box-shadow: 0 19px 36px -17px rgba(75, 87, 235, 0.8);
    transform: rotate(-3deg);
}

.claim-illustration__ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(89, 108, 255, 0.18);
    border-radius: 50%;
    animation: ringPulse 4.2s ease-out infinite;
}

.claim-illustration__ring--delay {
    inset: 10px;
    animation-delay: 1.7s;
}

.claim-spark {
    position: absolute;
    z-index: 3;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(22, 199, 163, 0.08);
    animation: twinkle 3s ease-in-out infinite;
}

.claim-spark--one {
    top: 5px;
    right: 12px;
}

.claim-spark--two {
    bottom: 12px;
    left: 1px;
    width: 5px;
    height: 5px;
    background: var(--violet);
    box-shadow: 0 0 0 4px rgba(132, 101, 255, 0.08);
    animation-delay: 1.2s;
}

.claim-spark--three {
    right: -2px;
    bottom: 28px;
    width: 4px;
    height: 4px;
    background: #ffc65c;
    box-shadow: none;
    animation-delay: 2.1s;
}

.welcome-line {
    margin: 0 0 0.22rem;
    color: var(--muted);
    font-size: 0.79rem;
    font-weight: 600;
}

.welcome-line strong {
    color: var(--brand-deep);
    font-weight: 800;
}

.claim-title {
    margin: 0 0 0.55rem;
    color: var(--ink);
    font-size: clamp(1.65rem, 3.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.claim-copy {
    max-width: 440px;
    margin: 0 auto 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.result-panel {
    min-height: 102px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem 0 1rem;
    padding: 1rem;
    background: rgba(246, 249, 255, 0.75);
    border: 1px dashed rgba(83, 107, 255, 0.2);
    border-radius: 20px;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.result-panel.is-success {
    background: linear-gradient(135deg, rgba(236, 255, 250, 0.94), rgba(244, 248, 255, 0.94));
    border-style: solid;
    border-color: rgba(22, 199, 163, 0.28);
    box-shadow: 0 18px 32px -28px rgba(11, 141, 116, 0.45);
    animation: resultReveal 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}

.result-panel.is-error {
    background: rgba(255, 245, 246, 0.88);
    border-style: solid;
    border-color: rgba(224, 82, 103, 0.22);
    animation: resultReveal 0.45s ease both;
}

.result-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: left;
}

.result-empty__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #7b88a7;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 34, 59, 0.06);
    border-radius: 13px;
    font-size: 1.05rem;
}

.result-empty__copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.result-empty__copy strong {
    color: var(--ink-soft);
    font-size: 0.83rem;
    font-weight: 700;
}

.result-empty__copy span {
    color: var(--muted);
    font-size: 0.73rem;
}

.credential-result {
    width: 100%;
    text-align: left;
    animation: resultReveal 0.5s ease both;
}

.credential-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.62rem;
}

.credential-check {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: var(--mint);
    border-radius: 50%;
    font-size: 0.75rem;
    box-shadow: 0 6px 14px -8px rgba(13, 169, 138, 0.8);
}

.credential-heading strong {
    color: #116452;
    font-size: 0.88rem;
    font-weight: 800;
}

.credential-meta {
    margin-left: auto;
    color: #6a7b82;
    font-size: 0.7rem;
    white-space: nowrap;
}

.credential-code-row {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
}

.credential-code {
    min-width: 0;
    flex: 1;
    display: block;
    padding: 0.72rem 0.85rem;
    overflow-x: auto;
    color: #163f49;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(22, 199, 163, 0.15);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.copy-credential,
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    flex: 0 0 auto;
    padding: 0.62rem 0.82rem;
    color: #fff;
    background: var(--ink);
    border: 0;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.copy-credential:hover,
.copy-btn:hover {
    color: #fff;
    background: var(--brand-deep);
    transform: translateY(-1px);
}

.credential-hint {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.7rem;
}

.credential-hint i {
    margin-right: 0.2rem;
}

.credential-error {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
}

.credential-error__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--danger);
    background: rgba(224, 82, 103, 0.09);
    border-radius: 11px;
}

.credential-error__copy {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.credential-error__copy strong {
    color: #842c3b;
    font-size: 0.82rem;
}

.credential-error__copy span {
    color: #93616a;
    font-size: 0.74rem;
}

.btn-claim {
    position: relative;
    width: 100%;
    margin-top: 0.1rem;
    padding: 1.06rem 1.4rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(102deg, #4d64fb, #6b5bf4 55%, #13b99b 135%);
    border: 0;
    border-radius: 18px;
    box-shadow: 0 20px 36px -20px rgba(67, 82, 228, 0.88);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-claim:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 26px 45px -22px rgba(67, 82, 228, 0.98);
    filter: saturate(108%);
}

.btn-claim:active:not(:disabled) {
    transform: translateY(0) scale(0.995);
}

.btn-claim:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.btn-claim__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 23px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.claim-label,
.claim-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.claim-loading {
    display: none;
}

.btn-claim.is-loading .claim-label,
.btn-claim.is-loading .claim-arrow {
    display: none;
}

.btn-claim.is-loading .claim-loading {
    display: flex;
}

.claim-arrow {
    position: absolute;
    right: 0.1rem;
    color: rgba(255, 255, 255, 0.78);
    transition: transform 0.25s ease;
}

.btn-claim:hover:not(:disabled) .claim-arrow {
    transform: translateX(4px);
}

.btn-claim__shine {
    position: absolute;
    top: 0;
    left: -50%;
    width: 32%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    transform: skewX(-20deg);
    animation: buttonShine 5.6s ease-in-out infinite;
}

.btn-claim .spinner-border {
    --bs-spinner-width: 1rem;
    --bs-spinner-height: 1rem;
    --bs-spinner-border-width: 0.14em;
}

.claim-note {
    margin: 0.85rem 0 0;
    color: #7f8aa2;
    font-size: 0.72rem;
    line-height: 1.55;
}

.claim-note i {
    margin-right: 0.2rem;
}

.claim-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding: 0.6rem 0.72rem;
    color: #7a859b;
    background: rgba(246, 249, 255, 0.72);
    border: 1px solid rgba(83, 107, 255, 0.08);
    border-radius: 12px;
    font-size: 0.67rem;
    line-height: 1.5;
}

.claim-rate__rule,
.claim-rate__status {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.claim-rate__rule i {
    color: var(--brand);
}

.claim-rate__rule strong {
    color: var(--brand-deep);
    font-weight: 800;
}

.claim-rate__status {
    color: #506181;
    font-weight: 700;
    white-space: nowrap;
}

.claim-rate__status strong {
    color: var(--brand-deep);
    font-weight: 800;
}

.claim-rate__status.is-cooling {
    color: #9a6712;
}

.claim-rate__status.is-cooling strong {
    color: #b87812;
}

.floating-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.62rem 0.78rem;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.83);
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 20px 34px -24px rgba(37, 54, 113, 0.4);
    font-size: 0.71rem;
    font-weight: 700;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: floatSoft 5.7s ease-in-out infinite;
}

.floating-chip i {
    color: var(--brand);
    font-size: 0.85rem;
}

.floating-chip--left {
    top: 94px;
    left: -78px;
}

.floating-chip--right {
    right: -64px;
    top: 310px;
    animation-delay: 1.5s;
}

.floating-chip--right i {
    color: var(--mint-deep);
}

/* Guest state */
.guest-state .claim-title {
    margin-top: 0.25rem;
}

.guest-lock {
    position: relative;
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    margin: 0.2rem auto 0.8rem;
    color: var(--brand-deep);
    background: linear-gradient(145deg, rgba(234, 239, 255, 0.96), rgba(247, 250, 255, 0.96));
    border: 1px solid rgba(83, 107, 255, 0.12);
    border-radius: 29px;
    font-size: 1.9rem;
    box-shadow: 0 22px 38px -30px rgba(67, 82, 228, 0.55);
}

.guest-lock__halo {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(83, 107, 255, 0.1);
    border-radius: 36px;
    animation: haloPulse 4s ease-in-out infinite;
}

.guest-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 1.25rem 0 0.85rem;
}

.guest-actions .btn {
    min-width: 144px;
    min-height: 50px;
}

.guest-format {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.68rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(23, 34, 59, 0.06);
    border-radius: 10px;
    font-size: 0.68rem;
}

.guest-format code {
    color: #5c558b;
    font-size: 0.72rem;
    font-weight: 700;
}

/* ==========================================================================
   Process and assurance
   ========================================================================== */

.process-section {
    max-width: 1040px;
    margin: 4.8rem auto 0;
}

.section-heading {
    max-width: 640px;
    margin: 0 auto 1.8rem;
    text-align: center;
}

.section-heading h2 {
    margin: 0.55rem 0 0.4rem;
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.process-card {
    position: relative;
    height: 100%;
    padding: 1.65rem 1.55rem 1.5rem;
    overflow: hidden;
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.process-card:hover {
    transform: translateY(-6px);
    border-color: rgba(83, 107, 255, 0.16);
    box-shadow: var(--shadow-hover);
}

.process-grid .process-card:nth-child(2).is-visible {
    transition-delay: 0.08s;
}

.process-grid .process-card:nth-child(3).is-visible {
    transition-delay: 0.16s;
}

.process-index {
    position: absolute;
    top: 0.9rem;
    right: 1.1rem;
    color: rgba(83, 107, 255, 0.11);
    font-family: var(--font-mono);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
}

.process-icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    color: var(--brand-deep);
    background: rgba(83, 107, 255, 0.09);
    border-radius: 15px;
    font-size: 1.2rem;
}

.process-icon--mint {
    color: #0e8c72;
    background: rgba(22, 199, 163, 0.1);
}

.process-icon--violet {
    color: #6d4fd8;
    background: rgba(132, 101, 255, 0.1);
}

.process-card h3 {
    margin: 0 0 0.42rem;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.process-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.75;
}

.assurance-strip {
    max-width: 1040px;
    margin: 2.1rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.8rem 2rem;
    background: linear-gradient(115deg, rgba(83, 107, 255, 0.085), rgba(22, 199, 163, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 26px;
}

.assurance-copy h2 {
    margin: 0.32rem 0 0;
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.assurance-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem 1.2rem;
    color: #52617f;
    font-size: 0.78rem;
    font-weight: 700;
}

.assurance-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.assurance-list i {
    color: var(--brand);
}

/* ==========================================================================
   Auth pages
   ========================================================================== */

.auth-section {
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 0 3.5rem;
}

.auth-card {
    position: relative;
    width: min(100%, 474px);
    margin: 0 auto;
    padding: 2.25rem 2.35rem 2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 30px;
    animation: cardIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-card--admin {
    background:
        radial-gradient(circle at 100% 0%, rgba(83, 107, 255, 0.11), transparent 34%),
        rgba(255, 255, 255, 0.9);
}

.auth-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-orbit span {
    position: absolute;
    border: 1px solid rgba(83, 107, 255, 0.09);
    border-radius: 50%;
}

.auth-orbit span:nth-child(1) {
    top: -180px;
    right: -150px;
    width: 420px;
    height: 420px;
    animation: orbitFloat 12s ease-in-out infinite alternate;
}

.auth-orbit span:nth-child(2) {
    top: -125px;
    right: -95px;
    width: 310px;
    height: 310px;
    animation: orbitFloat 15s 1s ease-in-out infinite alternate-reverse;
}

.auth-orbit span:nth-child(3) {
    bottom: -220px;
    left: -190px;
    width: 380px;
    height: 380px;
    border-color: rgba(22, 199, 163, 0.1);
    animation: orbitFloat 13s 0.4s ease-in-out infinite alternate;
}

.auth-head {
    position: relative;
    z-index: 1;
    margin-bottom: 1.35rem;
    text-align: center;
}

.auth-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.85rem;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--violet));
    border-radius: 18px;
    box-shadow: 0 18px 30px -18px rgba(67, 82, 228, 0.7);
    font-size: 1.35rem;
    transform: rotate(-3deg);
}

.auth-icon--mint {
    background: linear-gradient(145deg, #15b99a, #0da98a);
    box-shadow: 0 18px 30px -18px rgba(14, 153, 127, 0.6);
}

.auth-icon--admin {
    background: linear-gradient(145deg, #1c2a50, #3b4e91);
    box-shadow: 0 18px 30px -18px rgba(21, 34, 68, 0.75);
}

.auth-head h1 {
    margin: 0.45rem 0 0.38rem;
    font-size: clamp(1.75rem, 4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.auth-head p {
    max-width: 340px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.auth-alert {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.app-form {
    position: relative;
    z-index: 1;
}

.field {
    margin-bottom: 1rem;
}

.field-label {
    display: block;
    margin-bottom: 0.42rem;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.input-shell {
    position: relative;
}

.input-shell__icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    color: #8b97ae;
    font-size: 0.95rem;
    transform: translateY(-50%);
    transition: color 0.2s ease;
    pointer-events: none;
}

.input-shell:focus-within .input-shell__icon {
    color: var(--brand);
}

.app-input {
    min-height: 53px;
    padding: 0.72rem 1rem 0.72rem 2.75rem;
    color: var(--ink);
    background: rgba(247, 250, 255, 0.82);
    border: 1px solid rgba(23, 34, 59, 0.09);
    border-radius: 14px;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-input::placeholder {
    color: #a2adc0;
    font-size: 0.84rem;
}

.app-input:focus {
    color: var(--ink);
    background: #fff;
    border-color: rgba(83, 107, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(83, 107, 255, 0.08);
}

.app-input--password {
    padding-right: 3.1rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.48rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #8b97ae;
    background: transparent;
    border: 0;
    border-radius: 10px;
    transform: translateY(-50%);
    transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover {
    color: var(--brand-deep);
    background: rgba(83, 107, 255, 0.06);
}

.field-hint {
    margin: 0.35rem 0 0;
    color: #929db1;
    font-size: 0.69rem;
}

.btn-auth {
    width: 100%;
    min-height: 53px;
    margin-top: 0.25rem;
    border-radius: 15px;
    font-size: 0.95rem;
}

.btn-admin {
    background: linear-gradient(110deg, #1b294e, #2f4380);
    border-color: transparent;
}

.btn-admin:hover {
    background: linear-gradient(110deg, #253760, #41599f);
}

.auth-switch {
    position: relative;
    z-index: 1;
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.auth-switch a {
    margin-left: 0.2rem;
    color: var(--brand-deep);
    font-weight: 700;
}

.auth-footnote {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    color: #909bb0;
    border-top: 1px solid rgba(23, 34, 59, 0.06);
    font-size: 0.68rem;
    line-height: 1.6;
}

.auth-footnote i {
    margin-top: 0.1rem;
    color: var(--mint-deep);
}

.auth-footnote--admin i {
    color: var(--brand);
}

/* ==========================================================================
   Admin gateway
   ========================================================================== */

.gateway-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 3rem;
}

.gateway-card {
    position: relative;
    width: min(100%, 820px);
    padding: 3rem;
    overflow: hidden;
    color: #eef4ff;
    background:
        radial-gradient(circle at 85% 15%, rgba(98, 130, 255, 0.32), transparent 38%),
        radial-gradient(circle at 5% 100%, rgba(20, 197, 168, 0.17), transparent 40%),
        linear-gradient(145deg, #111a38, #1d2c59 55%, #133a4b);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 36px;
    box-shadow: 0 45px 90px -42px rgba(15, 27, 64, 0.8);
    animation: cardIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.gateway-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(174, 199, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(174, 199, 255, 0.14) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(110deg, #000, transparent 68%);
    mask-image: linear-gradient(110deg, #000, transparent 68%);
    pointer-events: none;
}

.gateway-scan {
    position: absolute;
    top: -40%;
    left: 0;
    width: 100%;
    height: 26%;
    background: linear-gradient(180deg, transparent, rgba(107, 224, 205, 0.08), transparent);
    animation: scanLine 7s linear infinite;
    pointer-events: none;
}

.gateway-orbit {
    position: absolute;
    border: 1px solid rgba(163, 185, 255, 0.11);
    border-radius: 50%;
    pointer-events: none;
}

.gateway-orbit--one {
    top: -160px;
    right: -130px;
    width: 400px;
    height: 400px;
    animation: orbitFloat 14s ease-in-out infinite alternate;
}

.gateway-orbit--two {
    right: 80px;
    bottom: -190px;
    width: 310px;
    height: 310px;
    border-color: rgba(103, 224, 201, 0.12);
    animation: orbitFloat 17s 1s ease-in-out infinite alternate-reverse;
}

.gateway-content {
    position: relative;
    z-index: 2;
}

.gateway-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    padding: 0.42rem 0.7rem;
    color: #9cead9;
    background: rgba(17, 58, 65, 0.48);
    border: 1px solid rgba(90, 214, 189, 0.17);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.gateway-kicker .status-dot {
    background: #6de5c9;
    box-shadow: 0 0 0 4px rgba(109, 229, 201, 0.12);
}

.gateway-card h1 {
    margin: 1.2rem 0 0.55rem;
    color: #fff;
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.gateway-lead {
    max-width: 560px;
    margin: 0;
    color: #aab8d6;
    font-size: 0.91rem;
    line-height: 1.8;
}

.gateway-route {
    margin: 1.7rem 0 1.35rem;
    padding: 1.05rem 1.1rem;
    background: rgba(7, 14, 33, 0.52);
    border: 1px solid rgba(148, 173, 240, 0.13);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gateway-route__label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8292b9;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.gateway-route__row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gateway-route code {
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    color: #c8f5eb;
    font-size: clamp(0.85rem, 2.2vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.gateway-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: 0.55rem 0.7rem;
    color: #c3cdec;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.gateway-copy:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
}

.gateway-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.btn.gateway-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 49px;
    padding: 0.72rem 1.15rem;
    color: #0d2d2a;
    background: linear-gradient(110deg, #86f0d8, #60e0c4);
    border: 0;
    border-radius: 13px;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: 0 16px 30px -18px rgba(89, 228, 196, 0.65);
}

.btn.gateway-btn:hover {
    color: #0d2d2a;
    transform: translateY(-2px);
    box-shadow: 0 22px 35px -20px rgba(89, 228, 196, 0.75);
}

.gateway-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #a6b2ce;
    font-size: 0.79rem;
    font-weight: 600;
}

.gateway-back:hover {
    color: #fff;
}

.gateway-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1.65rem;
    padding: 0.9rem 1rem;
    color: #aebbd8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    font-size: 0.74rem;
    line-height: 1.7;
}

.gateway-note i {
    margin-top: 0.15rem;
    color: #f4c978;
    font-size: 0.9rem;
}

.gateway-note p {
    margin: 0;
}

.gateway-note strong {
    color: #f1f5ff;
    font-weight: 700;
}

.gateway-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.25rem;
    margin-top: 1.3rem;
    color: #7f8eb2;
    font-size: 0.68rem;
}

.gateway-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   Admin dashboard
   ========================================================================== */

.admin-dashboard {
    max-width: 1240px;
    margin: 0 auto;
}

.admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.55rem;
    padding: 0.6rem 0.2rem;
}

.admin-heading h1 {
    margin: 0.35rem 0 0.3rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.055em;
}

.admin-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-heading__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-signed {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.7rem 0.42rem 0.45rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    box-shadow: 0 13px 28px -26px rgba(30, 52, 110, 0.35);
}

.admin-signed__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--brand-deep);
    background: rgba(83, 107, 255, 0.09);
    border-radius: 10px;
}

.admin-signed small,
.admin-signed strong {
    display: block;
    line-height: 1.25;
}

.admin-signed small {
    color: var(--muted);
    font-size: 0.61rem;
}

.admin-signed strong {
    max-width: 130px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.05rem;
}

.stat-card {
    position: relative;
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.2rem 1.3rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    box-shadow: 0 20px 44px -36px rgba(30, 52, 110, 0.4);
}

.admin-stats .stat-card:nth-child(2).is-visible {
    transition-delay: 0.08s;
}

.admin-stats .stat-card:nth-child(3).is-visible {
    transition-delay: 0.16s;
}

.stat-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--brand-deep);
    background: rgba(83, 107, 255, 0.09);
    border-radius: 14px;
    font-size: 1.1rem;
}

.stat-card--available .stat-icon {
    color: #0c9a7f;
    background: rgba(22, 199, 163, 0.1);
}

.stat-card--claimed .stat-icon {
    color: #6e51d0;
    background: rgba(132, 101, 255, 0.1);
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.71rem;
    font-weight: 600;
}

.stat-value {
    display: block;
    margin-top: 0.05rem;
    color: var(--ink);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.stat-decoration {
    position: absolute;
    right: -25px;
    bottom: -35px;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(83, 107, 255, 0.09);
    border-radius: 50%;
}

.stat-card--available .stat-decoration {
    border-color: rgba(22, 199, 163, 0.11);
}

.stat-progress {
    position: absolute;
    left: 1.3rem;
    right: 1.3rem;
    bottom: 0.72rem;
    height: 4px;
    overflow: hidden;
    background: rgba(23, 34, 59, 0.06);
    border-radius: 999px;
}

.stat-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--brand));
    border-radius: inherit;
    transition: width 0.7s ease;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(310px, 355px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.panel-card {
    position: relative;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.admin-grid > .panel-card:nth-child(2).is-visible {
    transition-delay: 0.08s;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.panel-head h2 {
    margin: 0.22rem 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.panel-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--brand-deep);
    background: rgba(83, 107, 255, 0.08);
    border-radius: 11px;
    font-size: 0.95rem;
}

.panel-copy {
    margin: 0 0 0.8rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.panel-copy code,
.panel-tip code {
    padding: 0.08rem 0.28rem;
    color: #505a85;
    background: rgba(83, 107, 255, 0.07);
    border-radius: 5px;
    font-size: 0.9em;
}

.format-sample {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0.62rem;
    background: rgba(246, 249, 255, 0.8);
    border: 1px dashed rgba(83, 107, 255, 0.16);
    border-radius: 10px;
    overflow-x: auto;
}

.format-sample span {
    flex: 0 0 auto;
    color: #8c97aa;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.format-sample code {
    color: #53618d;
    font-size: 0.7rem;
    white-space: nowrap;
}

.admin-textarea {
    min-height: 218px;
    padding: 0.8rem 0.9rem;
    resize: vertical;
    color: var(--ink-soft);
    background: rgba(247, 250, 255, 0.82);
    border: 1px solid rgba(23, 34, 59, 0.09);
    border-radius: 14px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.7;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-textarea:focus {
    background: #fff;
    border-color: rgba(83, 107, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(83, 107, 255, 0.08);
}

.batch-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.7rem;
}

.batch-counter {
    color: #8b96aa;
    font-size: 0.66rem;
}

.batch-counter strong {
    color: var(--ink-soft);
    font-weight: 800;
}

.batch-footer .btn {
    min-height: 43px;
    padding: 0.58rem 0.9rem;
    border-radius: 12px;
    font-size: 0.78rem;
}

.panel-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    color: #8c97aa;
    border-top: 1px solid rgba(23, 34, 59, 0.06);
    font-size: 0.66rem;
    line-height: 1.65;
}

.panel-tip i {
    margin-top: 0.1rem;
    color: var(--brand);
}

.accounts-card {
    min-width: 0;
}

.accounts-head {
    align-items: center;
    margin-bottom: 0.9rem;
}

.inventory-count {
    padding: 0.32rem 0.58rem;
    color: #5c6c93;
    background: rgba(244, 247, 255, 0.84);
    border: 1px solid rgba(83, 107, 255, 0.08);
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 700;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.filter-search {
    position: relative;
    flex: 1 1 170px;
    min-width: 0;
}

.filter-search i {
    position: absolute;
    top: 50%;
    left: 0.72rem;
    color: #9aa5b8;
    font-size: 0.76rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.filter-search .form-control {
    min-height: 37px;
    padding: 0.4rem 0.65rem 0.4rem 2rem;
    color: var(--ink-soft);
    background: rgba(247, 250, 255, 0.82);
    border: 1px solid rgba(23, 34, 59, 0.08);
    border-radius: 10px;
    font-size: 0.73rem;
}

.filter-search .form-control:focus,
.filter-select:focus {
    background: #fff;
    border-color: rgba(83, 107, 255, 0.36);
    box-shadow: 0 0 0 3px rgba(83, 107, 255, 0.07);
}

.filter-select {
    flex: 0 0 auto;
    width: auto;
    min-height: 37px;
    padding: 0.35rem 2rem 0.35rem 0.65rem;
    color: var(--ink-soft);
    background-color: rgba(247, 250, 255, 0.82);
    border: 1px solid rgba(23, 34, 59, 0.08);
    border-radius: 10px;
    font-size: 0.73rem;
}

.filter-submit {
    min-height: 37px;
    padding: 0.4rem 0.7rem;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid rgba(23, 34, 59, 0.09);
    border-radius: 10px;
    font-size: 0.71rem;
}

.filter-submit:hover {
    color: var(--brand-deep);
    border-color: rgba(83, 107, 255, 0.22);
}

.filter-reset {
    padding: 0.3rem;
    color: #8b96aa;
    font-size: 0.69rem;
}

.filter-reset:hover {
    color: var(--danger);
}

.admin-table-wrap {
    margin: 0 -0.25rem;
    border: 1px solid rgba(23, 34, 59, 0.055);
    border-radius: 14px;
}

.admin-table {
    min-width: 890px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.73rem;
}

.admin-table thead th {
    padding: 0.68rem 0.62rem;
    color: #8994a9;
    background: rgba(247, 250, 255, 0.76);
    border-bottom: 1px solid rgba(23, 34, 59, 0.055);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table thead th:first-child {
    padding-left: 0.85rem;
}

.admin-table tbody td {
    padding: 0.72rem 0.62rem;
    border-bottom: 1px solid rgba(23, 34, 59, 0.045);
    vertical-align: middle;
}

.admin-table tbody td:first-child {
    padding-left: 0.85rem;
}

.admin-table tbody tr {
    transition: background 0.18s ease;
}

.admin-table tbody tr:hover {
    background: rgba(244, 247, 255, 0.62);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.cell-id {
    color: #a1aabd;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    white-space: nowrap;
}

.cell-code {
    display: inline-block;
    max-width: 170px;
    overflow: hidden;
    color: #36466c;
    font-size: 0.71rem;
    font-weight: 600;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.cell-code--muted {
    color: #65718b;
}

.password-cell {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 170px;
}

.password-cell .cell-code {
    min-width: 0;
    flex: 1;
}

.inline-copy,
.btn-delete {
    width: 27px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #97a2b5;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.69rem;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.inline-copy:hover {
    color: var(--brand-deep);
    background: rgba(83, 107, 255, 0.07);
    border-color: rgba(83, 107, 255, 0.1);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.28rem 0.52rem;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge .status-dot {
    width: 5px;
    height: 5px;
    box-shadow: none;
    animation: none;
}

.status-badge--available {
    color: #0b806a;
    background: rgba(22, 199, 163, 0.09);
    border: 1px solid rgba(22, 199, 163, 0.1);
}

.status-badge--claimed {
    color: #63708a;
    background: rgba(115, 128, 151, 0.08);
    border: 1px solid rgba(115, 128, 151, 0.08);
}

.status-badge--claimed .status-dot {
    background: #9ca6b9;
}

.claimer {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    max-width: 110px;
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.claimer-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.57rem;
}

.cell-empty {
    color: #b6bfcd;
}

.cell-time {
    color: #7d889d;
    font-size: 0.67rem;
    white-space: nowrap;
}

.inline-delete {
    display: inline-flex;
    margin: 0;
}

.btn-delete:hover {
    color: var(--danger);
    background: rgba(224, 82, 103, 0.06);
    border-color: rgba(224, 82, 103, 0.12);
}

.table-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.2rem 1rem;
    text-align: center;
}

.table-empty > span {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    margin-bottom: 0.6rem;
    color: #8f9bb1;
    background: rgba(244, 247, 255, 0.85);
    border-radius: 13px;
    font-size: 1.2rem;
}

.table-empty strong {
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.table-empty p {
    margin: 0.22rem 0 0;
    color: #99a3b5;
    font-size: 0.7rem;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(23, 34, 59, 0.055);
}

.pagination-info {
    color: #8d98ac;
    font-size: 0.66rem;
}

.app-pagination {
    gap: 0.22rem;
}

.app-pagination .page-link {
    min-width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    padding: 0 0.35rem;
    color: #71809c;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.app-pagination .page-link:hover {
    color: var(--brand-deep);
    background: rgba(83, 107, 255, 0.06);
    border-color: rgba(83, 107, 255, 0.08);
}

.app-pagination .active .page-link {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 6px 14px -9px rgba(83, 107, 255, 0.8);
}

.app-pagination .disabled .page-link {
    color: #c3cad6;
    pointer-events: none;
}

/* ==========================================================================
   Error page
   ========================================================================== */

.error-section {
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 3rem;
}

.error-card {
    position: relative;
    width: min(100%, 560px);
    padding: 2.6rem 2.2rem;
    overflow: hidden;
    text-align: center;
    animation: cardIn 0.6s ease both;
}

.error-glow {
    position: absolute;
    top: -140px;
    left: 50%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(83, 107, 255, 0.12), transparent 66%);
    transform: translateX(-50%);
    pointer-events: none;
}

.error-icon {
    position: relative;
    width: 57px;
    height: 57px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.8rem;
    color: var(--brand-deep);
    background: rgba(83, 107, 255, 0.09);
    border-radius: 18px;
    font-size: 1.45rem;
}

.error-code {
    position: relative;
    display: block;
    color: transparent;
    background: linear-gradient(100deg, var(--brand), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    font-family: var(--font-mono);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.error-card h1 {
    position: relative;
    margin: 0.25rem 0 0.55rem;
    font-size: clamp(1.55rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.error-card p {
    position: relative;
    max-width: 390px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.75;
}

.error-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Toast and particles
   ========================================================================== */

.app-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 300;
    max-width: min(90vw, 400px);
    padding: 0.72rem 1rem;
    color: #fff;
    background: rgba(19, 29, 55, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 36px -18px rgba(15, 28, 60, 0.6);
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.spark-particle {
    position: fixed;
    z-index: 400;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkFly 0.95s cubic-bezier(0.15, 0.7, 0.35, 1) forwards;
}

/* ==========================================================================
   Human verification
   ========================================================================== */

body.captcha-open {
    overflow: hidden;
}

.captcha-modal[hidden] {
    display: none;
}

.captcha-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.captcha-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 20, 42, 0.56);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    animation: captchaFadeIn 0.25s ease both;
}

.captcha-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 392px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(83, 107, 255, 0.1), transparent 33%),
        #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 27px;
    box-shadow: 0 40px 90px -35px rgba(10, 22, 56, 0.72);
    animation: captchaDialogIn 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.05) both;
}

.captcha-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #8b96aa;
    background: rgba(246, 249, 255, 0.85);
    border: 1px solid rgba(23, 34, 59, 0.06);
    border-radius: 10px;
    font-size: 0.82rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.captcha-close:hover {
    color: var(--danger);
    background: #fff2f4;
}

.captcha-head {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding-right: 1.7rem;
    text-align: left;
}

.captcha-shield {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--violet));
    border-radius: 15px;
    box-shadow: 0 14px 26px -16px rgba(67, 82, 228, 0.7);
    font-size: 1.15rem;
    transform: rotate(-3deg);
}

.captcha-head h2 {
    margin: 0.25rem 0 0.2rem;
    font-size: 1.38rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.captcha-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.6;
}

.captcha-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    margin-top: 1.1rem;
    padding: 0.25rem;
    background: rgba(244, 247, 255, 0.9);
    border: 1px solid rgba(23, 34, 59, 0.05);
    border-radius: 13px;
}

.captcha-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 38px;
    padding: 0.45rem 0.6rem;
    color: #7d88a0;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.captcha-tab i {
    font-size: 0.8rem;
}

.captcha-tab:hover {
    color: var(--brand-deep);
}

.captcha-tab.is-active {
    color: var(--ink-soft);
    background: #fff;
    box-shadow: 0 5px 14px -11px rgba(30, 52, 110, 0.5);
}

.captcha-stage {
    min-height: 208px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 0.75rem;
    padding: 0.7rem;
    background: rgba(246, 249, 255, 0.72);
    border: 1px solid rgba(23, 34, 59, 0.055);
    border-radius: 18px;
}

.captcha-loading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #8490a7;
    font-size: 0.76rem;
    font-weight: 600;
}

.captcha-loading .spinner-border {
    --bs-spinner-width: 1rem;
    --bs-spinner-height: 1rem;
    --bs-spinner-border-width: 0.15em;
    color: var(--brand) !important;
}

.puzzle-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.puzzle-board {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 320 / 180;
    overflow: hidden;
    background: #eef4ff;
    border-radius: 15px;
    box-shadow: 0 14px 28px -22px rgba(24, 38, 78, 0.5);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.puzzle-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.puzzle-piece {
    position: absolute;
    left: 0;
    z-index: 2;
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    background: linear-gradient(145deg, #778bff, #956cf8 58%, #25cfae);
    box-shadow: 0 12px 24px -10px rgba(24, 32, 70, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    pointer-events: none;
    will-change: left;
}

.puzzle-piece::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: inherit;
    transform: translateX(-50%);
}

.puzzle-tip {
    color: #8b96aa;
    font-size: 0.67rem;
    line-height: 1.5;
    text-align: center;
}

.captcha-slider-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-align: center;
}

.captcha-slider-visual__orb {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 0.35rem;
    color: var(--brand-deep);
    background: rgba(83, 107, 255, 0.09);
    border: 1px solid rgba(83, 107, 255, 0.1);
    border-radius: 21px;
    font-size: 1.55rem;
    box-shadow: 0 14px 28px -24px rgba(67, 82, 228, 0.55);
}

.captcha-slider-visual h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.captcha-slider-visual p {
    max-width: 230px;
    margin: 0.1rem 0 0;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.6;
}

.captcha-track {
    position: relative;
    height: 52px;
    margin: 0 0 0.7rem;
    overflow: hidden;
    background: rgba(246, 249, 255, 0.9);
    border: 1px solid rgba(23, 34, 59, 0.08);
    border-radius: 15px;
    user-select: none;
    touch-action: none;
}

.captcha-track__fill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    z-index: 0;
    width: 0;
    background: linear-gradient(100deg, rgba(83, 107, 255, 0.16), rgba(22, 199, 163, 0.17));
    border-radius: 11px;
    transition: width 0.08s linear;
}

.captcha-track__end {
    position: absolute;
    top: 50%;
    right: 13px;
    z-index: 1;
    color: #a9b4c7;
    font-size: 1rem;
    transform: translateY(-50%);
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.captcha-track.is-puzzle .captcha-track__end {
    opacity: 0;
}

.captcha-track.is-success .captcha-track__fill {
    background: linear-gradient(100deg, rgba(22, 199, 163, 0.22), rgba(22, 199, 163, 0.28));
}

.captcha-track.is-success .captcha-track__end {
    color: var(--mint-deep);
    opacity: 1;
}

.captcha-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #5a71ff, #8162f4);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 10px 20px -10px rgba(67, 82, 228, 0.85);
    cursor: grab;
    touch-action: none;
    will-change: transform;
}

.captcha-thumb.is-dragging {
    cursor: grabbing;
    transition: none;
}

.captcha-thumb:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.captcha-thumb i {
    font-size: 0.95rem;
}

.captcha-feedback {
    min-height: 1.3rem;
    color: #7d88a0;
    font-size: 0.69rem;
    font-weight: 600;
    line-height: 1.55;
}

.captcha-feedback[data-state="error"] {
    color: #b64255;
}

.captcha-feedback[data-state="success"] {
    color: #0c8f74;
}

.captcha-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 0.75rem;
    padding-top: 0.8rem;
    color: #98a2b4;
    border-top: 1px solid rgba(23, 34, 59, 0.055);
    font-size: 0.64rem;
}

.captcha-footer span,
.captcha-refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.captcha-refresh {
    padding: 0.28rem 0.4rem;
    color: var(--brand-deep);
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 0.67rem;
    font-weight: 700;
}

.captcha-refresh:hover {
    background: rgba(83, 107, 255, 0.06);
}

.captcha-refresh:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ==========================================================================
   Animation keyframes
   ========================================================================== */

@keyframes captchaFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes captchaDialogIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatSoft {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

@keyframes pulseDot {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(22, 199, 163, 0.1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(22, 199, 163, 0.035);
    }
}

@keyframes ringPulse {
    0% {
        opacity: 0.9;
        transform: scale(0.92);
    }
    75%,
    100% {
        opacity: 0;
        transform: scale(1.24);
    }
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.85);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes gradientShift {
    from {
        background-position: 0% center;
    }
    to {
        background-position: 100% center;
    }
}

@keyframes auroraBreathe {
    from {
        opacity: 0.7;
        transform: translate3d(0, 0, 0) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate3d(-18px, 12px, 0) scale(1.05);
    }
}

@keyframes buttonShine {
    0%,
    55% {
        left: -50%;
    }
    82%,
    100% {
        left: 135%;
    }
}

@keyframes haloPulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes resultReveal {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes orbFloatOne {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(-3vw, 4vh, 0) scale(1.08);
    }
}

@keyframes orbFloatTwo {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(4vw, -3vh, 0) scale(1.06);
    }
}

@keyframes orbFloatThree {
    from {
        transform: translate3d(0, 0, 0) scale(0.96);
    }
    to {
        transform: translate3d(-3vw, -4vh, 0) scale(1.08);
    }
}

@keyframes orbitFloat {
    from {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    to {
        transform: translate3d(-16px, 14px, 0) rotate(5deg);
    }
}

@keyframes scanLine {
    from {
        top: -30%;
    }
    to {
        top: 130%;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes sparkFly {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--spark-x), var(--spark-y), 0) scale(0.1);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1299.98px) {
    .floating-chip {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .admin-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .admin-textarea {
        min-height: 160px;
    }
}

@media (max-width: 991.98px) {
    .site-main {
        padding-top: 1.7rem;
    }

    .hero {
        padding-top: 1.7rem;
    }

    .claim-stage {
        margin-top: 2.3rem;
    }

    .process-card {
        padding: 1.4rem 1.25rem;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .admin-heading__actions {
        width: 100%;
        justify-content: space-between;
    }

    .gateway-card {
        padding: 2.4rem;
    }
}

@media (max-width: 767.98px) {
    .site-nav {
        min-height: 62px;
        padding: 0.45rem 0.5rem 0.45rem 0.65rem;
        border-radius: 18px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

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

    .brand-copy span {
        font-size: 0.61rem;
    }

    .nav-login {
        padding: 0.45rem 0.5rem;
        font-size: 0.8rem;
    }

    .btn.nav-register {
        padding: 0.52rem 0.68rem;
        font-size: 0.78rem;
    }

    .btn.nav-register i {
        display: none;
    }

    .user-name {
        display: none;
    }

    .user-chip {
        padding: 0.22rem;
        border: 0;
        background: transparent;
    }

    .admin-chip {
        display: none;
    }

    .site-main {
        padding-bottom: 2.6rem;
    }

    .hero-title {
        font-size: clamp(2.4rem, 11.5vw, 3.4rem);
        letter-spacing: -0.058em;
    }

    .hero-lead {
        font-size: 0.9rem;
        line-height: 1.75;
    }

    .hero-trust {
        gap: 0.45rem 0.8rem;
        font-size: 0.72rem;
    }

    .claim-card {
        padding: 1.2rem 1.2rem 1.55rem;
        border-radius: 28px;
    }

    .claim-card__top {
        margin-bottom: 0.8rem;
    }

    .online-pill,
    .stock-pill,
    .format-pill {
        padding: 0.36rem 0.55rem;
        font-size: 0.64rem;
    }

    .claim-title {
        font-size: 1.6rem;
    }

    .claim-copy {
        font-size: 0.83rem;
    }

    .result-panel {
        min-height: 96px;
        padding: 0.85rem;
    }

    .credential-code-row {
        flex-direction: column;
    }

    .copy-credential {
        width: 100%;
        min-height: 38px;
    }

    .claim-note {
        font-size: 0.67rem;
    }

    .claim-rate {
        font-size: 0.63rem;
    }

    .captcha-modal {
        padding: 0.7rem;
    }

    .captcha-dialog {
        padding: 1.2rem;
        border-radius: 23px;
    }

    .captcha-head h2 {
        font-size: 1.25rem;
    }

    .captcha-stage {
        min-height: 190px;
        padding: 0.55rem;
        border-radius: 15px;
    }

    .captcha-track {
        height: 50px;
    }

    .captcha-thumb {
        width: 42px;
        height: 42px;
    }

    .guest-actions {
        flex-direction: column;
    }

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

    .process-section {
        margin-top: 3.4rem;
    }

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

    .process-card {
        padding: 1.35rem 1.3rem;
    }

    .assurance-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.4rem;
        margin-top: 1.4rem;
    }

    .assurance-list {
        justify-content: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .auth-section {
        min-height: auto;
        padding: 1.5rem 0 2.5rem;
    }

    .auth-card {
        padding: 1.8rem 1.35rem 1.6rem;
        border-radius: 25px;
    }

    .auth-head h1 {
        font-size: 1.8rem;
    }

    .gateway-section {
        padding: 1rem 0 2rem;
    }

    .gateway-card {
        padding: 1.6rem 1.2rem;
        border-radius: 25px;
    }

    .gateway-route__row {
        align-items: stretch;
        flex-direction: column;
    }

    .gateway-copy {
        justify-content: center;
    }

    .gateway-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn.gateway-btn {
        width: 100%;
    }

    .gateway-back {
        justify-content: center;
        padding: 0.3rem;
    }

    .gateway-note {
        margin-top: 1.2rem;
    }

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

    .stat-card {
        min-height: 100px;
    }

    .admin-signed {
        display: none;
    }

    .admin-heading__actions {
        justify-content: flex-end;
    }

    .main-filter-form {
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .filter-submit {
        flex: 1;
    }

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

    .error-card {
        padding: 2rem 1.3rem;
    }

    .app-toast {
        bottom: 16px;
    }
}

@media (max-width: 419.98px) {
    .brand-copy span {
        display: none;
    }

    .site-nav {
        gap: 0.4rem;
    }

    .nav-actions {
        gap: 0.28rem;
    }

    .nav-login {
        padding-right: 0.25rem;
        padding-left: 0.25rem;
    }

    .hero-title {
        font-size: 2.35rem;
    }

    .claim-card {
        padding-right: 0.95rem;
        padding-left: 0.95rem;
    }

    .claim-illustration {
        width: 88px;
        height: 88px;
    }

    .claim-illustration__core {
        width: 67px;
        height: 67px;
        border-radius: 21px;
        font-size: 1.7rem;
    }

    .result-empty {
        align-items: flex-start;
    }

    .batch-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .batch-footer .btn {
        width: 100%;
    }

    .filter-form {
        align-items: stretch;
    }

    .filter-search {
        flex-basis: 100%;
    }

    .claim-rate {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.18rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .bg-orb,
    .claim-illustration,
    .floating-chip,
    .gradient-text,
    .gateway-scan {
        animation: none !important;
    }

    [data-reveal],
    [data-reveal].reveal-pending {
        opacity: 1 !important;
        transform: none !important;
    }
}
