:root {
    color-scheme: light;
    --ink: #0b1426;
    --ink-strong: #071228;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --blue: #2f6ff0;
    --blue-deep: #194fae;
    --blue-soft: #eff6ff;
    --indigo: #4f46e5;
    --cyan: #06b6d4;
    --green: #059669;
    --rose: #e11d48;
    --amber: #b45309;
    --line: rgba(148, 163, 184, 0.22);
    --panel: rgba(255, 255, 255, 0.76);
    --panel-strong: rgba(255, 255, 255, 0.9);
    --shadow: 0 22px 55px rgba(30, 64, 175, 0.09);
    --shadow-strong: 0 30px 70px rgba(35, 86, 130, 0.2);
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: var(--ink);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
}

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

a:hover {
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.admin-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 14% 4%, rgba(96, 165, 250, 0.28), transparent 28rem),
        radial-gradient(circle at 84% 8%, rgba(99, 102, 241, 0.2), transparent 30rem),
        radial-gradient(circle at 42% 92%, rgba(20, 184, 166, 0.12), transparent 34rem),
        linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #eef2ff 100%);
}

.admin-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(120deg, transparent 8%, rgba(255, 255, 255, 0.42) 9%, transparent 10%),
        linear-gradient(152deg, transparent 72%, rgba(255, 255, 255, 0.46) 73%, transparent 75%);
    opacity: 0.56;
}

.public-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 16% 22%, rgba(174, 255, 232, 0.95), transparent 30rem),
        radial-gradient(circle at 78% 18%, rgba(126, 210, 255, 0.78), transparent 32rem),
        radial-gradient(circle at 52% 82%, rgba(117, 243, 213, 0.78), transparent 30rem),
        linear-gradient(135deg, #62d4d8 0%, #acf1df 46%, #b7d8ff 100%);
}

.admin-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 8px 28px rgba(30, 64, 175, 0.06);
    backdrop-filter: blur(20px);
}

.admin-nav-inner {
    width: min(1280px, calc(100% - 48px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #0f172a;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.2)),
        linear-gradient(145deg, var(--blue), var(--indigo));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.nav-links {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 19px;
    min-width: 0;
    overflow-x: auto;
    padding: 22px 0;
}

.nav-links a {
    position: relative;
    flex: 0 0 auto;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -24px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--blue), var(--indigo));
}

.nav-logout {
    flex: 0 0 auto;
}

.container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0 58px;
}

.page-heading {
    position: relative;
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
    padding: 24px 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 30px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
        radial-gradient(circle at 88% 12%, rgba(47, 111, 240, 0.16), transparent 16rem);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.page-heading::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(47, 111, 240, 0.18), transparent 66%);
}

.page-heading h1,
.claim-card h1,
.result-hero h1 {
    margin: 0;
    color: var(--ink-strong);
    font-weight: 900;
    letter-spacing: 0;
}

.page-heading h1 {
    position: relative;
    z-index: 1;
    font-size: 44px;
}

.eyebrow,
.card-kicker {
    margin: 0;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 12px;
    font-weight: 900;
}

.heading-subtitle {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 700;
}

.card,
.stat,
.auth-card {
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.card,
.auth-card {
    padding: 26px;
    margin-bottom: 22px;
}

.card h2,
.auth-card h2,
.section-title {
    margin: 0 0 16px;
    color: #1e293b;
    font-size: 20px;
    letter-spacing: 0;
}

.narrow {
    max-width: 590px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-title::before {
    content: "";
    width: 9px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.section-head h2,
.section-head p {
    margin-bottom: 0;
}

.muted {
    color: var(--muted);
    line-height: 1.65;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.08);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat {
    position: relative;
    overflow: hidden;
    padding: 22px;
    min-height: 132px;
}

.stat::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -42px;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
}

.stat span {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.stat strong {
    position: relative;
    z-index: 1;
    display: block;
    color: #1e293b;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0;
}

.stat.accent-green strong {
    color: var(--green);
}

.stat.accent-blue strong {
    color: var(--blue);
}

.stat.accent-indigo strong {
    color: var(--indigo);
}

.stat.accent-rose strong {
    color: var(--rose);
}

.dashboard-grid,
.inventory-grid,
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.main-column,
.side-column {
    display: grid;
    gap: 22px;
}

.inventory-main {
    min-width: 0;
}

form {
    display: grid;
    gap: 14px;
}

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

.form-grid,
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    align-items: end;
    gap: 18px;
}

.compact-filter {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.form-actions,
.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-actions {
    align-self: end;
}

label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 14px;
    outline: none;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.72);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
    min-height: 138px;
    resize: vertical;
    line-height: 1.5;
    font-family: "Cascadia Mono", "Consolas", monospace;
    font-size: 12px;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(47, 111, 240, 0.62);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 4px rgba(47, 111, 240, 0.1);
}

input[type="file"] {
    padding: 10px;
    background: rgba(255, 255, 255, 0.68);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: var(--blue);
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.23);
    font-weight: 900;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
    filter: brightness(1.02);
}

button:disabled,
button[aria-busy="true"],
input[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.74;
    transform: none;
    filter: saturate(0.86);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

button:active,
.button:active {
    transform: translateY(0) scale(0.992);
}

button.secondary,
.button.secondary {
    color: var(--blue);
    background: rgba(239, 246, 255, 0.92);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: none;
}

button.danger,
.button.danger {
    background: linear-gradient(135deg, #f43f5e, var(--rose));
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.2);
}

.small-button {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 13px;
}

.danger-soft {
    width: 100%;
    color: var(--rose) !important;
    background: rgba(255, 241, 242, 0.86) !important;
    border-color: rgba(244, 63, 94, 0.2) !important;
    box-shadow: none !important;
}

.link-button {
    min-height: auto;
    padding: 0;
    color: #64748b;
    background: transparent;
    box-shadow: none;
    font-weight: 900;
}

.link-button:hover {
    color: #0f172a;
    transform: none;
    box-shadow: none;
}

.inline-form {
    display: inline;
}

.inline-form .mini-confirm {
    margin-bottom: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 12px;
}

.mini-button {
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.confirm-line {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.7);
    line-height: 1.45;
}

.switch-line {
    min-height: 46px;
}

.messages {
    margin-bottom: 18px;
}

.message {
    padding: 13px 15px;
    border-radius: 16px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.message.error {
    color: #be123c;
    border-color: rgba(244, 63, 94, 0.16);
    background: rgba(255, 241, 242, 0.9);
}

.message.success,
.success-card {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(236, 253, 245, 0.82);
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.56);
}

table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

th,
td {
    max-width: 300px;
    padding: 14px 13px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    text-align: left;
    vertical-align: middle;
    color: #334155;
    overflow-wrap: anywhere;
    word-break: break-word;
}

tbody tr {
    transition: background 0.18s ease;
}

tbody tr:hover {
    background: rgba(239, 246, 255, 0.56);
}

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

th {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cell-check {
    width: 48px;
    min-width: 48px;
    text-align: center;
    white-space: nowrap;
}

.cell-id {
    width: 64px;
    color: #1e293b;
    font-weight: 900;
    white-space: nowrap;
}

.cell-long {
    min-width: 220px;
    max-width: 340px;
}

.cell-status {
    min-width: 82px;
    white-space: nowrap;
}

.cell-time {
    min-width: 190px;
    max-width: 230px;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

pre {
    max-width: 100%;
    margin: 14px 0 0;
    padding: 16px;
    overflow-x: auto;
    border-radius: 18px;
    color: #dbeafe;
    background: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.grid-dl {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px 14px;
}

.grid-dl dt {
    color: var(--muted);
    font-weight: 900;
}

.grid-dl dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.badge.available,
.badge.event-allow {
    color: var(--green);
    background: rgba(236, 253, 245, 0.9);
}

.badge.claimed {
    color: var(--amber);
    background: rgba(255, 247, 237, 0.95);
}

.badge.event-block {
    color: var(--rose);
    background: rgba(255, 241, 242, 0.95);
}

.badge.event-warn {
    color: var(--amber);
    background: rgba(255, 251, 235, 0.95);
}

.badge.health-healthy {
    color: var(--green);
    background: rgba(236, 253, 245, 0.9);
}

.badge.health-unhealthy {
    color: var(--rose);
    background: rgba(255, 241, 242, 0.95);
}

.badge.health-unknown {
    color: #64748b;
    background: rgba(241, 245, 249, 0.95);
}

.badge.health-unsupported {
    color: var(--amber);
    background: rgba(255, 251, 235, 0.95);
}

.badge.payment-pending,
.badge.payment-paid {
    color: var(--amber);
    background: rgba(255, 251, 235, 0.95);
}

.badge.payment-fulfilled {
    color: var(--green);
    background: rgba(236, 253, 245, 0.9);
}

.badge.payment-failed,
.badge.payment-expired {
    color: var(--rose);
    background: rgba(255, 241, 242, 0.95);
}

.health-reason {
    display: block;
    max-width: 240px;
    margin-top: 6px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 158px;
    padding: 30px;
    border: 2px dashed rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.58);
    text-align: center;
}

.empty-state strong {
    color: #475569;
}

.empty-state span {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 13px;
}

.bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: 18px;
    background: rgba(255, 241, 242, 0.58);
}

.cleanup-grid {
    display: grid;
    gap: 14px;
}

.cleanup-grid form {
    padding: 14px;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.danger-panel {
    border-color: rgba(254, 205, 211, 0.8);
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.74), rgba(255, 255, 255, 0.76));
}

.health-panel,
.health-toolbar {
    border-color: rgba(186, 230, 253, 0.8);
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.82), rgba(255, 255, 255, 0.76)),
        radial-gradient(circle at 88% 14%, rgba(14, 165, 233, 0.14), transparent 12rem);
}

.health-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    align-items: end;
    gap: 22px;
}

.health-toolbar h2 {
    margin: 4px 0 8px;
}

.health-toolbar .muted {
    max-width: 680px;
    margin: 0;
}

.health-toolbar-form {
    grid-template-columns: minmax(120px, 0.8fr) minmax(110px, 0.65fr) auto;
    align-items: end;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.status-item {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.74);
}

.status-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.status-item strong.ok {
    color: var(--green);
}

.status-item strong.missing {
    color: var(--rose);
}

.auth-card {
    margin-top: 72px;
    text-align: center;
}

.auth-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 20px;
    color: white;
    background: linear-gradient(145deg, #163c70, #0d284d);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
    font-weight: 900;
}

.auth-icon svg {
    width: 34px;
    height: 34px;
}

.login-page .page-heading {
    display: none;
}

.import-card {
    margin-top: 22px;
}

.import-form {
    gap: 18px;
    margin-top: 20px;
}

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

.upload-zone {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    min-height: 178px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 26px;
    color: #172033;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 246, 255, 0.68)),
        radial-gradient(circle at 84% 16%, rgba(47, 111, 240, 0.16), transparent 12rem);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 16px 38px rgba(30, 64, 175, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.upload-zone::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(47, 111, 240, 0.22);
    border-radius: 20px;
    pointer-events: none;
}

.upload-zone::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -74px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 66%);
    pointer-events: none;
}

.upload-zone:hover,
.upload-zone.is-dragging,
.import-form:focus-within .upload-zone {
    transform: translateY(-1px);
    border-color: rgba(47, 111, 240, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.8)),
        radial-gradient(circle at 84% 16%, rgba(47, 111, 240, 0.2), transparent 12rem);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 22px 46px rgba(30, 64, 175, 0.13);
}

.upload-zone.has-file {
    border-color: rgba(5, 150, 105, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 245, 0.72)),
        radial-gradient(circle at 84% 16%, rgba(16, 185, 129, 0.16), transparent 12rem);
}

.upload-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    color: white;
    background: linear-gradient(145deg, var(--blue), var(--indigo));
    box-shadow: 0 16px 28px rgba(47, 111, 240, 0.26);
}

.upload-icon svg {
    width: 30px;
    height: 30px;
}

.upload-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
}

.upload-copy strong {
    color: #111827;
    font-size: 20px;
    letter-spacing: 0;
}

.upload-copy span {
    color: var(--muted);
    line-height: 1.6;
    font-weight: 700;
}

.upload-file {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    width: fit-content;
    max-width: 100%;
    padding: 9px 13px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.74);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
}

.upload-zone.has-file .upload-file {
    color: var(--green);
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(236, 253, 245, 0.78);
}

/* Public claim pages */
.public-scene {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 20px;
    isolation: isolate;
    overflow-x: hidden;
    overflow-y: auto;
}

.public-scene::before,
.public-scene::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -3;
    pointer-events: none;
}

.public-scene::before {
    background:
        radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.44) 0 1px, transparent 2px),
        radial-gradient(circle at 88% 55%, rgba(255, 255, 255, 0.46) 0 1.5px, transparent 3px),
        radial-gradient(circle at 92% 38%, rgba(255, 255, 255, 0.44) 0 1px, transparent 2px),
        radial-gradient(circle at 12% 33%, rgba(255, 255, 255, 0.46) 0 1.5px, transparent 3px);
}

.public-scene::after {
    background:
        linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, 0.16) 18%, transparent 21%),
        linear-gradient(155deg, transparent 68%, rgba(255, 255, 255, 0.18) 70%, transparent 72%),
        radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.36), transparent 28rem);
    opacity: 0.58;
    transform: rotate(-7deg);
}

.orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(44px);
    z-index: -2;
    opacity: 0.55;
    pointer-events: none;
}

.orb.one {
    width: 34rem;
    height: 34rem;
    left: -8rem;
    top: 8rem;
    background: rgba(68, 206, 217, 0.72);
}

.orb.two {
    width: 30rem;
    height: 30rem;
    right: -6rem;
    top: 3rem;
    background: rgba(128, 211, 255, 0.62);
}

.orb.three {
    width: 32rem;
    height: 32rem;
    left: 34%;
    bottom: -12rem;
    background: rgba(124, 244, 210, 0.58);
}

.spark {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: -1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 0 0 9px rgba(255, 255, 255, 0.08),
        0 0 28px rgba(255, 255, 255, 0.78);
    opacity: 0.7;
    pointer-events: none;
}

.spark::before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.spark::after {
    content: none;
}

.spark.s1 {
    left: 9%;
    bottom: 15%;
    transform: rotate(45deg) scale(1.2);
}

.spark.s2 {
    right: 11%;
    bottom: 12%;
    transform: rotate(45deg) scale(1.45);
    opacity: 0.42;
}

.spark.s3 {
    right: 14%;
    top: 24%;
    transform: rotate(45deg) scale(0.72);
    opacity: 0.36;
}

.claim-shell {
    position: relative;
    width: min(572px, 92vw);
    min-height: 632px;
    display: flex;
    filter: drop-shadow(0 28px 48px rgba(16, 77, 118, 0.2));
}

.claim-cap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 116px;
    border-radius: 42px 42px 18px 18px;
    background: linear-gradient(135deg, #2b6ff2 0%, #1f5ed8 100%);
    box-shadow: inset 0 -14px 24px rgba(11, 46, 112, 0.14);
}

.claim-card {
    position: relative;
    width: 100%;
    min-height: 604px;
    margin-top: 26px;
    padding: 46px 52px 34px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 38px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
        var(--panel-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        var(--shadow-strong);
    text-align: center;
}

.claim-badge {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 26px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, #163c70, #0d284d);
    box-shadow: 0 14px 24px rgba(13, 40, 77, 0.28);
}

.claim-badge svg {
    width: 39px;
    height: 39px;
}

.claim-card h1 {
    font-size: 36px;
    line-height: 1.2;
}

.claim-subtitle {
    margin: 12px 0 30px;
    color: #263751;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 650;
}

.claim-form {
    text-align: left;
}

.claim-form label {
    margin-left: 4px;
    color: #111827;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.claim-form input[type="text"],
.claim-form textarea {
    min-height: 76px;
    padding: 0 26px;
    border: 1.5px solid rgba(128, 148, 176, 0.22);
    border-radius: 18px;
    background: rgba(250, 253, 255, 0.72);
    box-shadow: inset 0 1px 3px rgba(25, 54, 92, 0.04);
    font-size: 22px;
    font-weight: 650;
    letter-spacing: 0;
}

.claim-form input[type="text"]::placeholder,
.claim-form textarea::placeholder {
    color: #0c1320;
    opacity: 0.45;
}

.claim-form textarea {
    min-height: 104px;
    padding: 16px 20px;
    resize: vertical;
    line-height: 1.5;
}

.claim-button {
    width: 100%;
    min-height: 72px;
    margin-top: 8px;
    border-radius: 16px;
    background: linear-gradient(180deg, #3376f4 0%, #2868e4 100%);
    box-shadow:
        0 18px 34px rgba(39, 100, 222, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    font-size: 24px;
    letter-spacing: 0;
}

.arrow {
    display: inline-block;
    margin-left: 8px;
    font-weight: 700;
}

.claim-divider {
    height: 1px;
    margin: 28px 0 21px;
    background: linear-gradient(90deg, transparent, rgba(138, 157, 184, 0.22), transparent);
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #151b28;
    font-size: 15px;
    font-weight: 650;
}

.secure-note svg {
    width: 24px;
    height: 24px;
    color: #16a363;
}

.claim-note {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 13px;
}

.public-messages {
    text-align: left;
}

.turnstile-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 4px;
}

.purchase-panel {
    padding: 18px;
    border: 1px solid rgba(47, 111, 240, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.82), rgba(236, 253, 245, 0.72)),
        radial-gradient(circle at 88% 12%, rgba(6, 182, 212, 0.14), transparent 10rem);
    text-align: left;
}

.purchase-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.purchase-head h2 {
    margin: 4px 0 0;
    color: #102033;
    font-size: 22px;
    letter-spacing: 0;
}

.purchase-head span {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--green);
    background: rgba(236, 253, 245, 0.86);
    font-size: 12px;
    font-weight: 900;
}

.purchase-form {
    gap: 10px;
}

.purchase-form input[type="number"] {
    min-height: 58px;
    font-size: 20px;
    font-weight: 850;
}

.purchase-price {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 13px;
    font-weight: 800;
}

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

.pay-button {
    width: 100%;
    min-height: 54px;
    box-shadow: none;
    font-size: 16px;
}

.pay-alipay {
    background: linear-gradient(135deg, #1677ff, #0958d9);
}

.pay-wechat {
    background: linear-gradient(135deg, #18b566, #059669);
}

.pay-epay_alipay {
    background: linear-gradient(135deg, #16a6ff, #2457f2);
}

.pay-epay_wechat {
    background: linear-gradient(135deg, #2ed47a, #10a66a);
}

.pay-bigbear_alipay {
    background: linear-gradient(135deg, #ff8a1f, #e34d11);
}

.pay-bigbear_wechat {
    background: linear-gradient(135deg, #0fbf9f, #057f73);
}

.payment-fallback-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 14px;
}

.lookup-form label {
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
}

.lookup-row {
    display: flex;
    gap: 10px;
    align-items: end;
}

.lookup-field {
    display: grid;
    flex: 1 1 0;
    gap: 6px;
    min-width: 0;
}

.lookup-field label {
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
}

.lookup-row input {
    min-width: 0;
    width: 100%;
}

.lookup-row button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.lookup-help {
    margin: 0;
    color: #526579;
    font-size: 12px;
    line-height: 1.55;
}

/* Split claim and purchase workspace */
.claim-home-shell.claim-shell {
    width: min(800px, calc(100vw - 48px));
    min-height: auto;
    display: grid;
    gap: 22px;
    filter: none;
}

.claim-home-intro {
    display: grid;
    justify-items: center;
    text-align: center;
}

.claim-home-shell .claim-badge {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 12px;
}

.claim-home-shell .claim-badge svg {
    width: 34px;
    height: 34px;
}

.claim-home-intro h1 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: 0;
}

.claim-home-intro .claim-subtitle {
    margin: 10px 0 0;
    font-size: 16px;
}

.claim-home-shell .public-messages {
    width: min(720px, 100%);
    margin: 0 auto;
}

.active-payment-strip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 22px;
    color: #12354a;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(14, 91, 121, 0.13);
    text-align: left;
    backdrop-filter: blur(18px);
}

.active-payment-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.active-payment-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0f9f8c, #176fad);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.active-payment-mark .icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.active-payment-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.active-payment-copy p {
    margin: 0;
}

.active-payment-copy strong {
    font-size: 16px;
    line-height: 1.4;
}

.active-payment-copy > span {
    color: #577184;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.active-payment-copy code {
    color: #164e63;
    font-weight: 800;
}

.active-payment-actions,
.pending-order-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.active-payment-actions form,
.pending-order-controls form {
    display: flex;
    margin: 0;
}

.active-payment-actions .button,
.pending-order-controls .button {
    margin: 0;
    white-space: nowrap;
}

.pending-order-controls {
    justify-content: flex-start;
    margin-top: 16px;
}

.pending-order-note {
    margin: 10px 0 0;
    color: #9f1239;
    font-size: 13px;
    font-weight: 750;
}

.claim-home-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.claim-home-grid > .claim-card,
.claim-home-grid > .purchase-panel {
    width: 100%;
}

.claim-home-shell.single-panel .claim-home-grid {
    width: min(460px, 100%);
    grid-template-columns: minmax(0, 1fr);
    justify-self: center;
    margin: 0 auto;
}

.claim-home-shell .claim-card,
.claim-home-shell .purchase-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 48px 26px 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 46px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 252, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 12px 24px rgba(16, 77, 118, 0.08),
        0 34px 72px rgba(16, 77, 118, 0.2);
    text-align: left;
    backdrop-filter: blur(18px);
}

.claim-home-shell.single-panel .redeem-panel {
    border-color: rgba(47, 111, 240, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        0 12px 24px rgba(16, 77, 118, 0.08),
        0 32px 68px rgba(16, 77, 118, 0.18);
}

.claim-home-shell .claim-card,
.claim-home-shell .purchase-panel {
    display: flex;
    flex-direction: column;
}

.claim-home-shell .claim-card::before,
.claim-home-shell .purchase-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 34px;
    border-radius: 45px 45px 19px 19px;
    background: linear-gradient(90deg, #2f6ff0, #2563eb);
    box-shadow: inset 0 -8px 16px rgba(11, 46, 112, 0.15);
}

.claim-home-shell .purchase-panel::before {
    background: linear-gradient(90deg, #13b89d, #078b7d);
    box-shadow: inset 0 -8px 16px rgba(4, 90, 80, 0.16);
}

.module-heading h2,
.claim-home-shell .purchase-head h2 {
    margin: 5px 0 0;
    color: #102033;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0;
}

.claim-home-shell .card-kicker {
    color: #3971c9;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.claim-home-shell .purchase-head .card-kicker {
    color: #087f71;
}

.claim-home-shell .claim-form {
    flex: 0 0 auto;
    margin-top: 16px;
}

.claim-home-shell .claim-form input[type="text"],
.claim-home-shell .claim-form textarea {
    min-height: 58px;
    padding: 0 20px;
    border-radius: 20px;
    font-size: 18px;
}

.claim-home-shell .claim-form textarea {
    min-height: 94px;
    padding: 14px 18px;
    line-height: 1.45;
}

.claim-home-shell .claim-button {
    min-height: 56px;
    margin-top: 6px;
    border-radius: 20px;
    font-size: 19px;
}

.claim-home-shell .purchase-head {
    align-items: center;
    margin-bottom: 16px;
}

.claim-home-shell .stock-pill {
    padding: 7px 11px;
    border: 1px solid transparent;
    font-size: 12px;
    letter-spacing: 0;
}

.claim-home-shell .stock-pill.in-stock {
    color: #047857;
    border-color: rgba(16, 185, 129, 0.16);
    background: #ecfdf5;
}

.claim-home-shell .stock-pill.low-stock {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.2);
    background: #fffbeb;
}

.claim-home-shell .stock-pill.sold-out {
    color: #b42318;
    border-color: rgba(244, 63, 94, 0.18);
    background: #fff1f2;
}

.claim-home-shell .purchase-form {
    gap: 8px;
}

.claim-home-shell .catalog-pill {
    padding: 7px 11px;
    border: 1px solid rgba(8, 139, 125, 0.16);
    border-radius: 999px;
    color: #087f71;
    background: #eefbf8;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.product-choice-list {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

.product-choice-list.is-open {
    z-index: 30;
}

.product-choice-list legend {
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.product-select-trigger {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 8px 13px;
    overflow: hidden;
    border: 1px solid #b9d9d5;
    border-radius: 19px;
    color: inherit;
    background: linear-gradient(120deg, #f0fdfa, #f3f8ff);
    box-shadow: 0 0 0 3px rgba(19, 184, 157, 0.07);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.product-select-trigger:hover,
.product-select-trigger:focus-visible,
.product-choice-list.is-open .product-select-trigger {
    border-color: #18a38f;
    background: linear-gradient(120deg, #ecfdf8, #eff6ff);
    box-shadow: 0 0 0 4px rgba(19, 184, 157, 0.11);
    outline: none;
}

.product-select-trigger::before {
    content: "";
    position: absolute;
    inset: 6px auto 6px 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: #0f9b86;
}

.product-select-copy,
.product-select-meta {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.product-select-copy strong {
    overflow: hidden;
    color: #153047;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.35;
}

.product-select-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.product-select-meta b {
    color: #0f766e;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.product-select-meta .stock-pill {
    padding: 3px 7px;
    font-size: 10px;
}

.product-select-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #0f766e;
    border-bottom: 2px solid #0f766e;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.18s ease;
}

.product-choice-list.is-open .product-select-chevron {
    transform: translateY(2px) rotate(225deg);
}

.product-choice-menu {
    position: absolute;
    inset: calc(100% + 9px) 0 auto;
    z-index: 40;
    max-height: min(286px, 45vh);
    display: grid;
    gap: 7px;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 46px rgba(15, 69, 88, 0.2), 0 4px 12px rgba(15, 69, 88, 0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 155, 134, 0.42) transparent;
}

.product-choice-menu[hidden] {
    display: none;
}

.product-choice {
    position: relative;
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    overflow: hidden;
    border: 1px solid #dbe6ec;
    border-radius: 15px;
    background: rgba(248, 252, 252, 0.88);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.product-choice:hover {
    border-color: #9fcfc7;
    background: #f7fffd;
}

.product-choice:focus-visible {
    border-color: #18a38f;
    box-shadow: 0 0 0 3px rgba(19, 184, 157, 0.12);
    outline: none;
}

.product-choice.is-selected {
    border-color: #18a38f;
    background: linear-gradient(120deg, #f0fdfa, #f3f8ff);
    box-shadow: 0 0 0 3px rgba(19, 184, 157, 0.09);
}

.product-choice.is-selected::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #0f9b86;
}

.product-choice.is-disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.product-choice input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.product-choice-copy,
.product-choice-meta {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.product-choice-copy strong {
    overflow-wrap: anywhere;
    color: #153047;
    font-size: 14px;
    line-height: 1.35;
}

.product-choice-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.product-choice-meta b {
    color: #0f766e;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.product-choice-meta .stock-pill {
    padding: 3px 7px;
    font-size: 10px;
}

.selected-product-detail {
    min-width: 0;
    height: 84px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 5px;
    padding: 10px 13px;
    overflow: hidden;
    border: 1px solid rgba(20, 163, 142, 0.12);
    border-left: 4px solid #14a38e;
    border-radius: 18px;
    background: linear-gradient(110deg, rgba(236, 253, 245, 0.88), rgba(239, 246, 255, 0.76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.selected-product-detail-head {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.selected-product-detail-head span {
    color: #0f766e;
    font-size: 10px;
    font-weight: 850;
}

.selected-product-detail-head strong {
    min-width: 0;
    overflow: hidden;
    color: #153047;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.selected-product-detail p {
    margin: 0;
    overflow: auto;
    color: #526579;
    white-space: pre-line;
    overflow-wrap: anywhere;
    line-height: 1.55;
    font-size: 11px;
    font-weight: 650;
}

.product-tier-summary {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.product-tier-summary::-webkit-scrollbar {
    display: none;
}

.product-tier-summary:empty {
    display: none;
}

.product-tier-summary span {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid rgba(15, 118, 110, 0.13);
    border-radius: 999px;
    color: #087f71;
    background: rgba(255, 255, 255, 0.74);
    font-size: 10px;
    font-weight: 800;
}

.purchase-quantity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.72fr);
    align-items: start;
    gap: 10px;
}

.purchase-quantity-row > label,
.purchase-total-field {
    min-width: 0;
}

.purchase-total-field {
    display: grid;
    gap: 8px;
}

.purchase-total-label {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: normal;
}

.purchase-total {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 17px;
    background: linear-gradient(145deg, #effbf7, #f4fafc);
}

.purchase-total span,
.purchase-total small,
.purchase-total-label small {
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
}

.purchase-total strong {
    color: #087f71;
    overflow-wrap: anywhere;
    font-size: 20px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.purchase-total strong span {
    color: inherit;
    font-size: inherit;
}

.purchase-total-label [data-product-rule] {
    max-width: 58%;
    overflow: hidden;
    color: #087f71;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.claim-home-shell .purchase-form input[type="number"] {
    min-height: 58px;
    border-radius: 17px;
}

.purchase-lookup-passwords {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin: 0;
    padding: 11px 13px 12px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(240, 253, 250, 0.72), rgba(248, 252, 252, 0.9));
}

.purchase-lookup-passwords legend {
    padding: 0 5px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 850;
}

.purchase-lookup-passwords label {
    min-width: 0;
    gap: 5px;
    color: #3d5b69;
    font-size: 11px;
    font-weight: 800;
}

.claim-home-shell .purchase-lookup-passwords input[type="password"] {
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 14px;
}

.purchase-password-help,
.purchase-password-message {
    grid-column: 1 / -1;
    margin: 0;
    line-height: 1.4;
    font-size: 10px;
    font-weight: 700;
}

.purchase-password-help {
    color: #527280;
}

.purchase-password-message {
    color: #b42318;
}

.claim-home-shell .pay-methods {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 6px;
}

.claim-home-shell .pay-button {
    min-height: 58px;
    border-radius: 18px;
}

.claim-home-shell .redeem-lookup-form {
    gap: 7px;
    margin-top: 16px;
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid rgba(47, 111, 240, 0.14);
    border-radius: 0;
    background: transparent;
}

.redeem-lookup-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.redeem-lookup-heading strong {
    color: #183a67;
    font-size: 14px;
    line-height: 1.3;
}

.redeem-lookup-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #2563eb;
    background: #eef4ff;
}

.redeem-lookup-icon .icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.redeem-lookup-form .lookup-field label {
    color: #526579;
    font-size: 11px;
    font-weight: 800;
}

.redeem-lookup-form .lookup-help {
    color: #64748b;
    font-size: 11px;
}

.claim-home-shell .lookup-row input,
.claim-home-shell .lookup-row button {
    min-height: 46px;
    border-radius: 16px;
}

.claim-home-shell .turnstile-wrap {
    width: 100%;
    display: block;
    min-height: 65px;
    margin: 8px 0 2px;
    overflow: hidden;
    border-radius: 14px;
}

.claim-home-shell .turnstile-wrap > div {
    width: 100%;
    max-width: 100%;
}

.claim-home-shell > .secure-note {
    color: #153047;
    text-shadow: 0 1px rgba(255, 255, 255, 0.52);
}

@media (max-width: 860px) {
    .claim-home-shell.claim-shell {
        width: min(572px, calc(100vw - 32px));
    }

    .claim-home-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .active-payment-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .active-payment-actions {
        justify-content: flex-start;
    }

    .claim-home-shell .claim-card,
    .claim-home-shell .purchase-panel {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .claim-home-shell.claim-shell {
        width: min(100%, calc(100vw - 28px));
        gap: 18px;
    }

    .claim-home-grid {
        gap: 16px;
    }

    .active-payment-strip {
        padding: 16px;
        border-radius: 18px;
    }

    .active-payment-main {
        align-items: flex-start;
    }

    .active-payment-actions,
    .pending-order-controls {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .active-payment-actions form,
    .active-payment-actions .button,
    .pending-order-controls form,
    .pending-order-controls .button {
        width: 100%;
    }

    .claim-home-intro h1 {
        font-size: 28px;
    }

    .claim-home-intro .claim-subtitle {
        font-size: 14px;
    }

    .claim-home-shell .claim-card,
    .claim-home-shell .purchase-panel {
        padding: 42px 20px 24px;
        border-radius: 30px;
    }

    .claim-home-shell .purchase-head {
        align-items: flex-start;
    }

    .purchase-lookup-passwords {
        padding: 10px 11px 11px;
    }

    .claim-home-shell .purchase-lookup-passwords input[type="password"] {
        min-height: 42px;
    }

    .product-choice {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .product-choice-meta {
        align-items: center;
        justify-content: flex-end;
    }

    .purchase-quantity-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .selected-product-detail-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .lookup-row {
        display: grid;
    }

    .lookup-row button {
        width: 100%;
    }
}

/* Site announcement and customer support */
.site-announcement {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 22px;
    color: #17354a;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.88), rgba(240, 253, 250, 0.8)),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 15px 34px rgba(16, 77, 118, 0.09);
    backdrop-filter: blur(14px);
}

.site-announcement-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #0f8a78, #2563eb);
    box-shadow: 0 10px 22px rgba(15, 138, 120, 0.2);
}

.site-announcement-icon .icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-announcement-copy {
    min-width: 0;
}

.site-announcement-copy .card-kicker {
    margin-bottom: 3px;
    color: #0f766e;
}

.site-announcement-copy strong {
    display: block;
    color: #102a43;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.45;
}

.site-announcement-copy > div {
    margin-top: 5px;
    color: #526579;
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.65;
}

.redeem-feedback-link {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin-top: 10px;
    padding: 10px 13px;
    border: 1px solid rgba(37, 99, 235, 0.13);
    border-radius: 16px;
    color: #173a63;
    background: linear-gradient(120deg, rgba(239, 246, 255, 0.86), rgba(240, 253, 250, 0.74));
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.redeem-feedback-link:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.09);
    transform: translateY(-1px);
}

.redeem-feedback-link > span:first-child {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.82);
}

.redeem-feedback-link .icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.redeem-feedback-link > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.redeem-feedback-link strong,
.redeem-feedback-link small {
    overflow-wrap: anywhere;
}

.redeem-feedback-link strong {
    color: #173a63;
    font-size: 13px;
}

.redeem-feedback-link small {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.redeem-feedback-link b {
    color: #2563eb;
    font-size: 17px;
}

.feedback-panel {
    width: min(980px, calc(100vw - 40px));
}

.feedback-mark {
    border-radius: 20px;
    background: linear-gradient(145deg, #2563eb, #0f8a78);
}

.feedback-mark .icon {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feedback-workspace {
    min-width: 0;
    display: block;
}

.feedback-form-card,
.feedback-order-card {
    display: grid;
    gap: 18px;
}

.feedback-compose-card {
    padding: 26px 28px 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 253, 251, 0.86)),
        rgba(255, 255, 255, 0.86);
}

.feedback-section-heading,
.feedback-history-head {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.feedback-section-heading h2,
.feedback-history-head h2,
.feedback-order-card h2 {
    margin: 3px 0 0;
    color: #102a43;
    font-size: 20px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.feedback-section-heading > span,
.feedback-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 999px;
    color: #0f766e;
    background: rgba(240, 253, 250, 0.8);
    font-size: 11px;
    font-weight: 850;
}

.feedback-form {
    display: grid;
    gap: 14px;
}

.feedback-form label {
    min-width: 0;
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 850;
}

.feedback-form-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.feedback-order-block {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.feedback-order-summary {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.8fr);
    align-items: center;
    gap: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(15, 138, 120, 0.15);
    border-left: 4px solid #0f9f8c;
    border-radius: 15px;
    background: linear-gradient(120deg, rgba(236, 253, 245, 0.76), rgba(239, 246, 255, 0.7));
}

.feedback-order-primary {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.feedback-order-primary small,
.feedback-order-summary dt {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
}

.feedback-order-primary strong,
.feedback-order-summary dd {
    margin: 0;
    color: #173a50;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 850;
}

.feedback-order-summary dl {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.feedback-order-summary dl > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.feedback-detail-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.72fr);
    align-items: stretch;
    gap: 12px;
}

.feedback-message-field {
    min-width: 0;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 15px;
    color: #172033;
    background: rgba(248, 250, 252, 0.8);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.feedback-form input,
.feedback-form select {
    min-height: 50px;
    padding: 0 14px;
}

.feedback-form textarea {
    min-height: 190px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.6;
}

.feedback-upload-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.feedback-upload-heading {
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.feedback-upload-heading strong {
    color: #334155;
    font-size: 12px;
    font-weight: 850;
}

.feedback-upload-heading small {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

.feedback-upload-zone {
    min-width: 0;
    min-height: 190px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px !important;
    padding: 18px;
    border: 1px dashed rgba(37, 99, 235, 0.28);
    border-radius: 16px;
    color: #294461 !important;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.74), rgba(240, 253, 250, 0.7)),
        rgba(248, 250, 252, 0.72);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.feedback-upload-zone:hover,
.feedback-upload-zone.is-dragging {
    border-color: rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.82), rgba(204, 251, 241, 0.72));
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.07);
}

.feedback-upload-zone.has-files {
    min-height: 76px;
}

.feedback-upload-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.feedback-upload-icon .icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feedback-upload-zone > span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.feedback-upload-zone strong {
    color: #1e3a5f;
    font-size: 12px;
}

.feedback-upload-zone small {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

.feedback-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0 !important;
}

.feedback-image-previews {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.feedback-image-previews[hidden] {
    display: none;
}

.feedback-image-preview {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 4px;
}

.feedback-image-preview img {
    width: 100%;
    aspect-ratio: 1.3;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: #f8fafc;
}

.feedback-image-preview small {
    overflow: hidden;
    color: #64748b;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
    font-weight: 700;
}

.feedback-image-remove,
.feedback-image-remove:hover {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    min-height: 25px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
    transform: none;
    font-size: 16px;
    line-height: 1;
}

.feedback-upload-error {
    margin: 0;
    color: #b42318;
    font-size: 10px;
    font-weight: 750;
}

.feedback-upload-error[hidden] {
    display: none;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: rgba(37, 99, 235, 0.46);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.feedback-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.feedback-submit-row small {
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
}

.feedback-submit-row .button {
    min-width: 132px;
}

.feedback-order-card {
    position: sticky;
    top: 20px;
    padding: 24px;
}

.feedback-order-card > p:last-child {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.feedback-order-card .grid-dl {
    margin: 0;
}

.feedback-order-card code {
    overflow-wrap: anywhere;
}

.feedback-history-section {
    min-width: 0;
    display: grid;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 18px 42px rgba(35, 86, 130, 0.1);
    backdrop-filter: blur(14px);
}

.feedback-history-list {
    display: grid;
    gap: 10px;
}

.feedback-history-item {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 10px;
    padding: 15px 16px 15px 19px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.72);
}

.feedback-history-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #f59e0b;
}

.feedback-history-item.feedback-processing::before {
    background: #2563eb;
}

.feedback-history-item.feedback-resolved::before {
    background: #059669;
}

.feedback-history-item.feedback-closed::before {
    background: #94a3b8;
}

.feedback-history-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 11px;
}

.feedback-history-meta strong {
    color: #334155;
    font-size: 12px;
}

.feedback-history-meta time {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.feedback-status {
    padding: 4px 8px;
    border-radius: 999px;
    color: #9a5b05;
    background: #fff7e6;
    font-weight: 850;
}

.feedback-processing .feedback-status {
    color: #1d4ed8;
    background: #eff6ff;
}

.feedback-resolved .feedback-status {
    color: #047857;
    background: #ecfdf5;
}

.feedback-closed .feedback-status {
    color: #64748b;
    background: #f1f5f9;
}

.feedback-history-item > p,
.feedback-reply p {
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
}

.feedback-attachments {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding-top: 2px;
}

.feedback-attachments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feedback-attachments-head strong,
.feedback-attachments-head span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.feedback-attachment-gallery {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 150px));
    gap: 8px;
}

.feedback-attachment {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #475569;
    background: rgba(248, 250, 252, 0.76);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.feedback-attachment:hover {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.feedback-attachment > span {
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f7;
}

.feedback-attachment img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

.feedback-attachment small {
    overflow: hidden;
    padding: 0 3px 2px;
    color: #64748b;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 700;
}

.feedback-reply {
    display: grid;
    gap: 5px;
    padding: 11px 13px;
    border: 1px solid rgba(5, 150, 105, 0.14);
    border-radius: 13px;
    background: linear-gradient(115deg, rgba(236, 253, 245, 0.84), rgba(239, 246, 255, 0.72));
}

.feedback-reply strong {
    color: #047857;
    font-size: 11px;
}

.feedback-empty {
    margin: 0;
    padding: 22px;
    border: 1px dashed rgba(100, 116, 139, 0.24);
    border-radius: 16px;
    color: #64748b;
    background: rgba(248, 250, 252, 0.58);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

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

    .feedback-upload-zone {
        min-height: 132px;
    }
}

@media (max-width: 620px) {
    .site-announcement {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
        border-radius: 18px;
    }

    .site-announcement-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .feedback-panel {
        width: min(100%, calc(100vw - 28px));
    }

    .feedback-form-card,
    .feedback-order-card,
    .feedback-history-section {
        padding: 18px;
        border-radius: 20px;
    }

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

    .feedback-order-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .feedback-order-summary dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feedback-upload-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .feedback-submit-row,
    .feedback-history-head {
        align-items: stretch;
        flex-direction: column;
    }

    .feedback-submit-row .button,
    .feedback-history-head .button {
        width: 100%;
    }

    .feedback-history-meta time {
        width: 100%;
        margin-left: 0;
    }
}

.order-lookup-panel {
    display: grid;
    gap: 12px;
}

.lookup-form {
    display: grid;
    gap: 10px;
}

.payment-jump-card .claim-badge,
.payment-mark {
    font-family: Georgia, serif;
}

.order-query-box {
    display: grid;
    gap: 14px;
    text-align: left;
}

.payment-jump-card .order-query-box {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.76);
}

.order-query-box code {
    color: #0f172a;
    font-weight: 900;
}

.order-query-box a {
    color: #0f766e;
    font-weight: 900;
}

.payment-wait-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.46fr);
    gap: 22px;
    align-items: center;
}

.fulfillment-card {
    --fulfillment-progress: 0%;
    display: grid;
    gap: 15px;
    overflow: hidden;
    border-color: rgba(14, 116, 144, 0.2);
    background:
        linear-gradient(135deg, rgba(236, 254, 255, 0.82), rgba(255, 255, 255, 0.94) 48%, rgba(240, 253, 244, 0.78));
}

.fulfillment-heading,
.fulfillment-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fulfillment-heading h2,
.fulfillment-heading h3 {
    margin: 2px 0 0;
    color: #102a43;
    font-size: 20px;
    line-height: 1.35;
}

.fulfillment-state {
    flex: 0 0 auto;
    min-width: 104px;
    padding: 8px 12px;
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #0e7490;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.fulfillment-progress-track {
    width: 100%;
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.fulfillment-progress-track > span {
    display: block;
    width: var(--fulfillment-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0891b2, #0f766e, #16a34a, #0891b2);
    background-size: 220% 100%;
    box-shadow: 0 0 14px rgba(13, 148, 136, 0.3);
    transition: width 420ms ease;
}

.fulfillment-running .fulfillment-progress-track > span,
.fulfillment-queued .fulfillment-progress-track > span {
    animation: fulfillment-flow 2.2s linear infinite;
}

.fulfillment-failed .fulfillment-progress-track > span {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.fulfillment-failed .fulfillment-state {
    border-color: rgba(217, 119, 6, 0.24);
    color: #b45309;
}

.fulfillment-progress-copy strong {
    color: #0f766e;
    font-size: 21px;
    line-height: 1;
}

.fulfillment-progress-copy span {
    color: #526579;
    font-size: 13px;
    font-weight: 750;
    text-align: right;
}

.fulfillment-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 12px 0;
    border-block: 1px solid rgba(148, 163, 184, 0.18);
}

.fulfillment-stats > div {
    display: grid;
    min-width: 0;
    min-height: 48px;
    align-content: center;
    gap: 3px;
    padding: 0 12px;
    text-align: center;
}

.fulfillment-stats > div + div {
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.fulfillment-stats dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.fulfillment-stats dd {
    margin: 0;
    color: #102a43;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.fulfillment-card .result-health-message {
    margin: 0;
}

.lookup-fulfillment {
    margin-top: 2px;
    padding-top: 16px;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: transparent;
}

@keyframes fulfillment-flow {
    to { background-position: -220% 0; }
}

.wechat-qr-box {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
}

.wechat-qr-box img {
    width: min(220px, 100%);
    aspect-ratio: 1;
    padding: 12px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.wechat-qr-box p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

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

.provider-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.66);
}

.provider-panel-accent {
    border-color: rgba(47, 111, 240, 0.22);
    background:
        radial-gradient(circle at top right, rgba(47, 111, 240, 0.11), transparent 34%),
        rgba(255, 255, 255, 0.92);
}

.provider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.provider-head h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
}

.provider-head .confirm-line {
    padding: 8px 10px;
}

.result-scene {
    min-height: 100svh;
    place-items: start center;
    padding: clamp(20px, 4vw, 44px) 20px 56px;
    overflow-y: auto;
}

.result-panel {
    width: min(1080px, calc(100vw - 40px));
    min-width: 0;
    display: grid;
    gap: 20px;
}

.result-hero,
.modern-account {
    min-width: 0;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 60px rgba(35, 86, 130, 0.16);
    backdrop-filter: blur(16px);
}

.result-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 28px;
    text-align: left;
}

.result-hero-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.result-copy {
    min-width: 0;
}

.result-hero h1 {
    font-size: 42px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.result-hero .claim-subtitle {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.5;
}

.success-mark {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    margin: 0;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 16px 32px rgba(5, 150, 105, 0.22);
    font-size: 34px;
    font-weight: 900;
}

.result-download {
    flex: 0 0 auto;
    margin-top: 0;
    white-space: nowrap;
}

.result-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.format-downloads {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.format-downloads .button {
    margin: 0;
}

.lookup-delivery-bar .format-downloads {
    flex: 0 0 auto;
}

.format-download-unavailable,
.format-download-unavailable:hover {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-health-form {
    display: block;
}

.result-health-button {
    white-space: nowrap;
}

.result-health-message {
    margin: -6px 0 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    color: #334155;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 14px 34px rgba(35, 86, 130, 0.08);
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.result-health-message.ok {
    color: #047857;
    border-color: rgba(16, 185, 129, 0.18);
    background: rgba(236, 253, 245, 0.8);
}

.result-health-message.warn {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(255, 251, 235, 0.82);
}

.lookup-delivery-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 18px;
    color: #065f46;
    background: rgba(236, 253, 245, 0.84);
    box-shadow: 0 14px 34px rgba(5, 150, 105, 0.08);
    backdrop-filter: blur(12px);
}

.lookup-delivery-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.lookup-delivery-copy strong {
    font-size: 15px;
    line-height: 1.45;
}

.lookup-delivery-copy span {
    color: #477568;
    font-size: 13px;
    line-height: 1.5;
}

.account-list {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.batch-claim-list {
    min-width: 0;
    display: grid;
    gap: 30px;
}

.batch-claim-group {
    min-width: 0;
    display: grid;
    gap: 15px;
    padding-top: 28px;
    border-top: 1px solid rgba(128, 148, 176, 0.2);
}

.batch-claim-group:first-child {
    padding-top: 0;
    border-top: 0;
}

.batch-claim-head {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.batch-claim-head > div:first-child {
    min-width: 0;
}

.batch-claim-head .card-kicker {
    margin: 0;
    color: #1d4ed8;
}

.batch-claim-head h2 {
    margin: 3px 0 0;
    color: #102033;
    font-size: 21px;
    line-height: 1.3;
}

.batch-claim-head p:not(.card-kicker) {
    margin: 5px 0 0;
    color: #577184;
    font-size: 13px;
    line-height: 1.45;
}

.batch-item-actions {
    flex: 0 0 auto;
    min-width: 0;
}

.batch-item-actions .format-downloads {
    justify-content: flex-end;
}

.batch-account-list {
    gap: 14px;
}

.batch-item-empty {
    margin: 0;
    color: #7c2d12;
    font-size: 14px;
    font-weight: 700;
}

.account-head {
    min-width: 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.account-index {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.1);
    font-weight: 900;
}

.account-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.account-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.account-head p {
    margin: 4px 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.account-health {
    flex: 0 0 auto;
    max-width: min(300px, 38%);
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.account-health .health-reason {
    max-width: 100%;
    margin-top: 0;
}

.result-health-time {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
}

.modern-account h3 {
    margin: 18px 0 0;
    color: #334155;
    font-size: 15px;
}

.credential-box {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.credential-pre {
    width: 100%;
    max-height: min(46vh, 440px);
    margin-top: 12px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.58;
}

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

    .dashboard-grid,
    .inventory-grid,
    .split-grid {
        grid-template-columns: 1fr;
    }

    .health-toolbar {
        grid-template-columns: 1fr;
    }

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

    .health-toolbar-form button {
        grid-column: 1 / -1;
    }

    .admin-nav-inner {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        padding: 6px 0 0;
    }

    .nav-links a.active::after {
        bottom: -8px;
    }
}

@media (max-width: 760px) {
    .public-page .orb,
    .public-page .spark {
        display: none;
    }

    .public-page .claim-home-shell .claim-card,
    .public-page .claim-home-shell .purchase-panel,
    .public-page .active-payment-strip,
    .public-page .result-panel,
    .public-page .result-health-message,
    .public-page .lookup-delivery-bar {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .container,
    .admin-nav-inner {
        width: min(100% - 28px, 1280px);
    }

    .container {
        padding: 22px 0 40px;
    }

    .page-heading {
        padding: 20px;
        border-radius: 24px;
    }

    .card,
    .auth-card {
        padding: 20px;
        border-radius: 22px;
    }

    .upload-zone {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 22px;
    }

    .upload-icon {
        width: 52px;
        height: 52px;
    }

    .section-head {
        display: grid;
    }

    .form-actions,
    .action-row,
    .bulk-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions > *,
    .action-row > *,
    .bulk-bar > * {
        width: 100%;
    }

    .table-wrap {
        margin-left: -4px;
        margin-right: -4px;
    }

    .inventory-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .inventory-table,
    .inventory-table tbody,
    .inventory-table tr,
    .inventory-table td {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
    }

    .inventory-table {
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .inventory-table thead {
        display: none;
    }

    .inventory-table tr {
        padding: 14px;
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 10px 26px rgba(30, 64, 175, 0.06);
    }

    .inventory-table td {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
        border-bottom: 0;
        text-align: left;
    }

    .inventory-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 900;
        white-space: nowrap;
    }

    .inventory-table .cell-long,
    .inventory-table .cell-time,
    .inventory-table .cell-status {
        min-width: 0;
        max-width: none;
        white-space: normal;
    }

    .public-scene {
        padding: 24px 14px;
        overflow-y: auto;
    }

    .claim-card {
        min-height: auto;
        padding: 42px 24px 30px;
        border-radius: 30px;
    }

    .claim-shell {
        min-height: auto;
    }

    .claim-form input[type="text"],
    .claim-form textarea {
        min-height: 64px;
        font-size: 18px;
    }

    .claim-form textarea {
        min-height: 104px;
        padding: 14px 16px;
    }

    .claim-button {
        min-height: 64px;
        font-size: 20px;
    }

    .result-hero,
    .modern-account {
        padding: 22px;
        border-radius: 24px;
    }

    .result-panel {
        width: 100%;
        gap: 14px;
    }

    .result-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .result-hero-main {
        align-items: flex-start;
    }

    .result-hero h1 {
        font-size: 32px;
    }

    .success-mark {
        width: 52px;
        height: 52px;
        font-size: 29px;
    }

    .result-download {
        width: 100%;
    }

    .result-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .result-health-form,
    .result-health-button {
        width: 100%;
    }

    .format-downloads {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .format-downloads .button {
        width: 100%;
    }

    .batch-claim-list {
        gap: 24px;
    }

    .batch-claim-group {
        gap: 13px;
        padding-top: 22px;
    }

    .batch-claim-head {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .batch-claim-head h2 {
        font-size: 19px;
    }

    .batch-item-actions,
    .batch-item-actions .format-downloads {
        width: 100%;
    }

    .lookup-delivery-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .lookup-row {
        display: grid;
    }

    .lookup-row button {
        width: 100%;
    }

    .payment-provider-grid,
    .payment-wait-grid,
    .pay-methods {
        grid-template-columns: 1fr;
    }

    .fulfillment-heading,
    .fulfillment-progress-copy {
        align-items: flex-start;
    }

    .fulfillment-progress-copy span {
        max-width: 70%;
    }

    .fulfillment-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0;
    }

    .fulfillment-stats > div {
        min-height: 62px;
        padding: 9px 6px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }

    .fulfillment-stats > div:nth-child(4) {
        border-left: 0;
    }

    .fulfillment-stats > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .account-head {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .account-health {
        grid-column: 1 / -1;
        max-width: none;
        justify-items: start;
        text-align: left;
    }

    .grid-dl {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .credential-pre {
        max-height: 52vh;
        padding: 14px;
        font-size: 11.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-page *,
    .public-page *::before,
    .public-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .public-page .orb,
    .public-page .spark {
        display: none;
    }

    .fulfillment-progress-track > span {
        animation: none !important;
        transition: none;
    }
}

@media (max-width: 520px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .brand {
        width: 100%;
    }

    .nav-logout {
        margin-left: auto;
    }
}

/* Compact admin workspace */
.admin-page {
    --workspace: #f4f7fb;
    --workspace-line: #dfe6ef;
    --workspace-muted: #667085;
    background:
        linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.38)),
        linear-gradient(135deg, #eef3f8 0%, var(--workspace) 52%, #edf5f3 100%);
}

.admin-page::before {
    z-index: 0;
    background-image:
        linear-gradient(rgba(71, 85, 105, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 85, 105, 0.026) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 1;
}

.admin-nav {
    position: sticky;
    z-index: 50;
}

.container {
    position: relative;
    z-index: 1;
}

.admin-nav {
    border-bottom: 1px solid rgba(203, 213, 225, 0.82);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(16px);
}

.admin-nav-inner {
    position: relative;
    width: min(1400px, calc(100% - 40px));
    min-height: 62px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 32px;
    padding: 0;
}

.brand {
    gap: 10px;
    color: #111827;
    font-size: 17px;
    letter-spacing: 0;
}

.brand::before {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
        linear-gradient(145deg, #2563eb, #0f766e);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.nav-links {
    order: initial;
    width: auto;
    gap: 4px;
    padding: 10px 0;
    overflow: visible;
}

.nav-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 6px;
    color: #667085;
    font-size: 13px;
    font-weight: 750;
}

.nav-links a:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

.nav-links a.active {
    color: #1d4ed8;
    background: #eaf2ff;
}

.nav-links a.active::after {
    display: none;
}

.nav-logout .link-button {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    color: #667085;
    font-size: 13px;
    box-shadow: none;
}

.nav-logout .link-button:hover {
    color: #b42318;
    background: #fff1f0;
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 9px;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 1px solid #d8e0ea;
    border-radius: 7px;
    color: #344054;
    background: #fff;
    box-shadow: none;
}

.nav-toggle:hover {
    transform: none;
    border-color: #b8c4d3;
    background: #f8fafc;
    box-shadow: none;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.container {
    width: min(1400px, calc(100% - 40px));
    padding: 24px 0 48px;
}

.page-heading {
    gap: 5px;
    margin-bottom: 20px;
    padding: 4px 2px 14px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.page-heading::after {
    display: none;
}

.page-heading h1 {
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: 0;
}

.eyebrow,
.card-kicker {
    color: #3971c9;
    letter-spacing: 0.08em;
    font-size: 10px;
}

.heading-subtitle {
    max-width: 780px;
    color: var(--workspace-muted);
    line-height: 1.55;
    font-size: 14px;
    font-weight: 600;
}

.card,
.stat,
.auth-card {
    border: 1px solid var(--workspace-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035), 0 8px 24px rgba(15, 23, 42, 0.035);
    backdrop-filter: none;
}

.card,
.auth-card {
    padding: 20px;
    margin-bottom: 18px;
}

.card h2,
.auth-card h2,
.section-title {
    color: #1d2939;
    font-size: 18px;
    letter-spacing: 0;
}

.section-title {
    margin-bottom: 12px;
}

.section-title::before {
    width: 4px;
    height: 17px;
    border-radius: 2px;
    background: #2563eb;
}

.section-head {
    margin-bottom: 14px;
}

.section-head h2 {
    margin-top: 3px;
}

.muted {
    color: var(--workspace-muted);
    line-height: 1.55;
}

.pill {
    min-height: 25px;
    padding: 3px 9px;
    border-color: #cbdcfb;
    border-radius: 999px;
    color: #2459a9;
    background: #f0f6ff;
    font-size: 11px;
}

.stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.stat {
    min-height: 96px;
    padding: 16px 17px;
    border-left: 3px solid #98a2b3;
    overflow: hidden;
}

.stat::after {
    right: -28px;
    top: -34px;
    width: 86px;
    height: 86px;
    background: rgba(71, 84, 103, 0.045);
}

.stat span {
    margin-bottom: 9px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.stat strong {
    color: #1d2939;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: 0;
}

.stat.accent-green {
    border-left-color: #12b76a;
}

.stat.accent-blue {
    border-left-color: #2e90fa;
}

.stat.accent-indigo {
    border-left-color: #6172f3;
}

.stat.accent-rose {
    border-left-color: #f04438;
}

.dashboard-flow {
    grid-template-columns: 1fr;
    min-width: 0;
}

.dashboard-flow .main-column {
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
    align-items: start;
    min-width: 0;
}

.dashboard-flow .card,
.dashboard-flow .table-wrap,
.main-column,
.side-column {
    min-width: 0;
}

.dashboard-flow .maintenance-disclosure {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    min-height: 42px;
    padding: 9px 11px;
    border-color: #d0d7e2;
    border-radius: 7px;
    background: #fff;
}

textarea {
    min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #84adf7;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button,
.button {
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 7px;
    background: #2563eb;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    font-size: 14px;
    font-weight: 750;
}

button:hover,
.button:hover {
    transform: none;
    background: #1d4ed8;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12);
    filter: none;
}

button.secondary,
.button.secondary {
    color: #344054;
    border-color: #d0d5dd;
    background: #fff;
}

button.secondary:hover,
.button.secondary:hover {
    color: #1d4ed8;
    border-color: #a9c2ee;
    background: #f6f9ff;
}

button.danger,
.button.danger {
    background: #d92d20;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

button.danger:hover,
.button.danger:hover {
    background: #b42318;
}

button:disabled:not([aria-busy="true"]),
.button[aria-disabled="true"] {
    cursor: not-allowed;
    color: #98a2b3;
    border-color: #e4e7ec;
    background: #f2f4f7;
    box-shadow: none;
}

.small-button,
.mini-button {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.confirm-line {
    padding: 10px 11px;
    border-color: #e0e5ec;
    border-radius: 7px;
    background: #f8fafc;
}

.table-wrap {
    border-color: #e1e7ef;
    border-radius: 7px;
    background: #fff;
}

th,
td {
    max-width: 280px;
    padding: 11px 10px;
    border-bottom-color: #edf0f4;
}

th {
    color: #667085;
    background: #f8fafc;
    font-size: 11px;
    letter-spacing: 0.04em;
}

tbody tr:hover {
    background: #f7faff;
}

.badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.empty-state {
    min-height: 128px;
    border-width: 1px;
    border-radius: 7px;
    background: #fafbfc;
}

.inventory-layout {
    display: block;
    min-width: 0;
}

.inventory-main {
    width: 100%;
    min-width: 0;
}

.inventory-table {
    width: 100%;
    min-width: 1040px;
    table-layout: fixed;
}

.inventory-table .cell-check {
    width: 46px;
}

.inventory-table .cell-id {
    width: 58px;
}

.inventory-table .account-identity {
    width: 20%;
}

.inventory-table .platform-type {
    width: 12%;
}

.inventory-table .cell-status {
    width: 12%;
}

.inventory-table .cell-time {
    width: 14%;
    min-width: 0;
    white-space: normal;
}

.account-identity,
.platform-type,
.order-identity,
.order-purchase {
    min-width: 0;
}

.account-identity strong,
.platform-type strong,
.order-identity strong,
.order-purchase strong {
    display: block;
    color: #1d2939;
    line-height: 1.35;
}

.account-identity small,
.platform-type small,
.order-identity small,
.order-purchase small {
    display: block;
    margin-top: 3px;
    color: #667085;
    line-height: 1.35;
}

.bulk-bar {
    margin-bottom: 12px;
    padding: 10px 11px;
    border-color: #e1e7ef;
    border-radius: 7px;
    background: #f8fafc;
}

.bulk-bar .confirm-line {
    padding: 0;
    border: 0;
    background: transparent;
}

.health-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(480px, 0.82fr);
    border-color: #cfe0f5;
    background: #f8fbff;
}

.health-toolbar-form {
    gap: 10px;
}

.danger-disclosure,
.maintenance-disclosure {
    padding: 0;
    overflow: hidden;
}

.danger-disclosure summary,
.maintenance-disclosure summary {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
}

.danger-disclosure summary::-webkit-details-marker,
.maintenance-disclosure summary::-webkit-details-marker {
    display: none;
}

.danger-disclosure summary > span:first-child,
.maintenance-disclosure summary > span:first-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.danger-disclosure summary strong,
.maintenance-disclosure summary strong {
    color: #344054;
    font-size: 15px;
}

.danger-disclosure summary small,
.maintenance-disclosure summary small {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
}

.danger-disclosure[open] summary,
.maintenance-disclosure[open] summary {
    border-bottom: 1px solid #e4e7ec;
    background: #fafbfc;
}

.danger-disclosure > p,
.danger-disclosure > .cleanup-grid,
.maintenance-disclosure > form {
    margin-left: 18px;
    margin-right: 18px;
}

.danger-disclosure > p {
    margin-top: 16px;
}

.danger-disclosure > .cleanup-grid,
.maintenance-disclosure > form {
    margin-bottom: 18px;
}

.danger-panel {
    border-color: #e7d5d3;
    background: #fff;
}

.danger-pill {
    color: #b42318;
    border-color: #f4c7c3;
    background: #fff4f2;
}

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

.cleanup-grid form {
    padding: 12px;
    border-color: #f0d4d1;
    border-radius: 7px;
    background: #fffbfa;
}

.cleanup-grid button {
    width: 100%;
}

.provider-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #f2f4f7;
}

.provider-tab {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #475467;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
}

.provider-tab:hover {
    transform: none;
    color: #1d2939;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.provider-tab.active {
    color: #1d4ed8;
    border-color: #d8e5f8;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.provider-tab span {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    color: #667085;
    background: #eaecf0;
    font-size: 10px;
}

.provider-state.is-enabled {
    color: #166534;
    background: #dcfce7;
}

.provider-state.is-disabled {
    color: #667085;
    background: #eaecf0;
}

.provider-tab-panels {
    display: block;
}

.provider-panel {
    gap: 13px;
    padding: 18px;
    border-color: #dfe5ec;
    border-radius: 8px;
    background: #fafbfc;
}

.provider-panel-accent {
    border-color: #cfddf1;
    background: #f8fbff;
}

.provider-panel[hidden] {
    display: none !important;
}

.provider-head {
    padding-bottom: 12px;
    border-bottom: 1px solid #e4e7ec;
}

.provider-head h3 {
    font-size: 16px;
}

.provider-head .confirm-line {
    min-height: 34px;
    padding: 6px 9px;
    background: #fff;
}

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

.payment-settings-form > .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.payment-settings-card code {
    overflow-wrap: anywhere;
    word-break: break-all;
}

.callback-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid #e4e7ec;
}

.callback-list div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.callback-list span {
    color: #667085;
    font-size: 11px;
    font-weight: 750;
}

.callback-list code {
    color: #344054;
    font-size: 11px;
}

.claim-card h1 {
    font-size: 36px;
    letter-spacing: 0;
}

.result-hero h1 {
    font-size: 40px;
    letter-spacing: 0;
}

.secret-clear {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #fed7aa;
    border-radius: 7px;
    color: #9a3412;
    background: #fff7ed;
    font-size: 12px;
}

.payment-orders-table {
    width: 100%;
    min-width: 1050px;
    table-layout: fixed;
}

.payment-orders-table th:nth-child(1) { width: 54px; }
.payment-orders-table th:nth-child(2) { width: 22%; }
.payment-orders-table th:nth-child(3) { width: 9%; }
.payment-orders-table th:nth-child(4) { width: 10%; }
.payment-orders-table th:nth-child(5) { width: 24%; }
.payment-orders-table th:nth-child(6) { width: 15%; }
.payment-orders-table th:nth-child(7) { width: 15%; }

.order-identity strong {
    overflow-wrap: anywhere;
    font-family: "Cascadia Mono", "Consolas", monospace;
    font-size: 12px;
}

.order-purchase strong {
    font-size: 15px;
}

.order-times {
    display: grid;
    gap: 3px;
    color: #667085;
    font-size: 11px;
}

.order-times span {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 5px;
}

.order-times b {
    color: #98a2b3;
    font-weight: 700;
}

.order-note {
    color: #667085;
    font-size: 12px;
}

.order-action .inline-form {
    display: grid;
    gap: 7px;
}

.order-action .mini-confirm {
    margin: 0;
    padding: 6px 8px;
}

.purchase-panel.is-sold-out {
    border-color: rgba(217, 119, 6, 0.24);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(248, 250, 252, 0.9));
}

@media (min-width: 861px) {
    .claim-home-shell:not(.single-panel) .redeem-panel {
        justify-content: space-between;
    }

    .claim-home-shell:not(.single-panel) .redeem-panel .claim-form {
        margin-top: 0;
    }

    .claim-home-shell .purchase-panel.is-sold-out .purchase-head {
        margin-bottom: 16px;
    }

    .claim-home-shell .purchase-panel.is-sold-out .purchase-form {
        gap: 8px;
    }
}

.purchase-head .stock-pill.sold-out {
    color: #b45309;
    background: #fef3c7;
}

.purchase-panel.is-sold-out input:disabled {
    color: #98a2b3;
    background: #f2f4f7;
}

@media (max-width: 1100px) {
    .admin-nav-inner {
        gap: 18px;
    }

    .nav-links a {
        padding: 0 8px;
    }

    .health-toolbar {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 860px) {
    .admin-nav-inner {
        min-height: 60px;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0;
    }

    .brand {
        width: auto;
        margin-right: auto;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .nav-logout {
        order: 3;
        margin-left: 0;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        order: 4;
        width: 100%;
        max-height: min(70vh, 470px);
        display: none;
        padding: 8px;
        overflow-y: auto;
        border: 1px solid #dfe5ec;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    }

    .nav-links.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links a {
        width: 100%;
        min-height: 42px;
    }

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

    .dashboard-flow .main-column {
        grid-template-columns: 1fr;
    }

    .dashboard-flow .maintenance-disclosure {
        grid-column: auto;
    }

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

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

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

@media (max-width: 760px) {
    .container,
    .admin-nav-inner {
        width: min(100% - 24px, 1400px);
    }

    .container {
        padding: 18px 0 34px;
    }

    .page-heading {
        margin-bottom: 16px;
        padding: 2px 1px 12px;
    }

    .page-heading h1 {
        font-size: 25px;
    }

    .heading-subtitle {
        font-size: 13px;
    }

    .claim-card h1,
    .result-hero h1 {
        font-size: 30px;
    }

    .card,
    .auth-card {
        padding: 15px;
        border-radius: 8px;
    }

    .stats {
        gap: 8px;
        margin-bottom: 18px;
    }

    .stat {
        min-height: 84px;
        padding: 13px;
    }

    .stat span {
        margin-bottom: 7px;
        font-size: 11px;
    }

    .stat strong {
        font-size: 24px;
    }

    .form-actions,
    .action-row,
    .bulk-bar {
        align-items: stretch;
    }

    .inventory-table tr,
    .payment-orders-table tr {
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    }

    .inventory-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .inventory-table {
        min-width: 0;
        table-layout: auto;
    }

    .inventory-table .cell-check,
    .inventory-table .cell-id,
    .inventory-table .account-identity,
    .inventory-table .platform-type,
    .inventory-table .cell-status,
    .inventory-table .cell-time {
        width: 100%;
    }

    .inventory-table td {
        grid-template-columns: 82px minmax(0, 1fr);
        padding: 7px 0;
    }

    .payment-orders-wrap {
        margin: 0;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .payment-orders-table,
    .payment-orders-table tbody,
    .payment-orders-table tr,
    .payment-orders-table td {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
    }

    .payment-orders-table {
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .payment-orders-table thead {
        display: none;
    }

    .payment-orders-table tr {
        padding: 13px;
        border: 1px solid #e1e7ef;
        background: #fff;
    }

    .payment-orders-table td {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 9px;
        padding: 7px 0;
        border: 0;
        text-align: left;
    }

    .payment-orders-table td::before {
        content: attr(data-label);
        color: #667085;
        font-size: 12px;
        font-weight: 750;
        white-space: nowrap;
    }

    .payment-orders-table .order-times {
        display: grid;
    }

    .payment-orders-table .order-action .inline-form {
        width: 100%;
    }

    .payment-orders-table .order-action button {
        width: 100%;
    }

    .danger-disclosure summary,
    .maintenance-disclosure summary {
        padding: 13px 14px;
    }

    .danger-disclosure > p,
    .danger-disclosure > .cleanup-grid,
    .maintenance-disclosure > form {
        margin-left: 14px;
        margin-right: 14px;
    }
}

@media (max-width: 520px) {
    .admin-nav-inner {
        gap: 8px;
    }

    .brand {
        font-size: 15px;
    }

    .brand::before {
        width: 27px;
        height: 27px;
    }

    .nav-logout .link-button {
        padding: 0 7px;
    }

    .nav-links.is-open {
        grid-template-columns: 1fr;
    }

    .payment-settings-form > .form-grid,
    .provider-tabs {
        grid-template-columns: 1fr;
    }

    .provider-tab {
        min-height: 42px;
    }

    .provider-panel {
        padding: 14px;
    }

    .callback-list {
        grid-template-columns: 1fr;
    }

    .provider-panel .form-grid,
    .provider-panel .confirm-grid {
        grid-template-columns: 1fr;
    }

    .purchase-head {
        align-items: center;
    }
}
