/* ============================================================
   RTCO_OS  |  STYLE
   Distilled deck aesthetic — black + red, mono/display fonts,
   bracket panels, uppercase tracked labels, one scanline.
   ============================================================ */

/* ---- TOKENS ---- */

:root {
    --bg-0: #020203;
    --bg-1: #07070a;
    --bg-2: #0c0c10;
    --bg-3: #14141a;
    --panel: rgba(10, 11, 14, 0.92);
    --panel-soft: rgba(14, 15, 20, 0.78);
    --panel-glass: rgba(20, 22, 28, 0.55);

    --red: #ff1f1f;
    --red-2: #c40b0b;
    --red-3: #6a0303;
    --red-soft: rgba(255, 31, 31, 0.18);
    --red-glow: rgba(255, 31, 31, 0.55);

    --amber: #ffb347;
    --amber-soft: rgba(255, 179, 71, 0.22);
    --cyan: #5cf2ff;
    --cyan-soft: rgba(92, 242, 255, 0.18);

    --white: #f4f5f7;
    --grey-1: #c8cbd2;
    --grey-2: #8a8e98;
    --grey-3: #54585f;
    --grey-4: #2a2c33;

    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.22);
    --line-red: rgba(255, 31, 31, 0.55);
    --line-amber: rgba(255, 179, 71, 0.45);

    --shadow-1: 0 18px 48px rgba(0, 0, 0, 0.65);
    --shadow-2: 0 32px 90px rgba(0, 0, 0, 0.85);

    --mono: "IBM Plex Mono", "Fira Mono", "Courier New", monospace;
    --display: "Orbitron", "Rajdhani", "Helvetica Neue", sans-serif;
    --tech: "Rajdhani", "Orbitron", sans-serif;

    --radius: 4px;
    --radius-2: 8px;
}

/* ---- RESET / BASE ---- */

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

html, body {
    min-height: 100%;
    background: var(--bg-0);
    color: var(--white);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
    background:
        radial-gradient(1200px 700px at 70% -10%, rgba(255, 31, 31, 0.10), transparent 70%),
        radial-gradient(900px 600px at 5% 110%, rgba(92, 242, 255, 0.04), transparent 65%),
        linear-gradient(180deg, #020203 0%, #08080c 55%, #020203 100%);
}

a { color: var(--white); }

/* ---- SINGLE SCANLINE OVERLAY ---- */

.scan-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    top: -260px;
    height: 260px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.05), rgba(255, 31, 31, 0.10), transparent);
    animation: scanDown 3s ease-in-out infinite;
    opacity: 0.7;
}

/* ---- ANIMATIONS ---- */

@keyframes scanDown {
    0%   { transform: translateY(0); opacity: 0; }
    18%  { opacity: 0.9; }
    100% { transform: translateY(calc(100vh + 620px)); opacity: 0; }
}
@keyframes pulse { 50% { opacity: 0.4; } }
@keyframes panelIn { to { opacity: 1; transform: translateY(0); } }

/* ---- SHELL ---- */

.deck-shell {
    position: relative;
    z-index: 5;
    width: min(1200px, calc(100vw - 36px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 0 40px;
    display: grid;
    gap: 14px;
}

/* ---- HUD STRIP ---- */

.deck-hud {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    background: linear-gradient(90deg, rgba(255, 31, 31, 0.07), transparent 30%), var(--panel);
    box-shadow: var(--shadow-1);
}

.hud-cell {
    position: relative;
    padding: 12px 18px;
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
}

.hud-cell:last-child { border-right: none; }

.hud-cell-label {
    display: block;
    color: var(--grey-3);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-family: var(--mono);
}

.hud-cell-value {
    color: var(--white);
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

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

.hud-brand .brand-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-red);
    background: radial-gradient(circle at 50% 50%, rgba(255, 31, 31, 0.20), transparent 70%), #050507;
    box-shadow: 0 0 18px rgba(255, 31, 31, 0.28), inset 0 0 0 1px rgba(255, 31, 31, 0.18);
    overflow: hidden;
    position: relative;
}

.hud-brand .brand-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 6px rgba(255, 31, 31, 0.7));
    animation: pulse 2s ease-in-out infinite;
}

.hud-brand .brand-name {
    color: var(--white);
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hud-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 12px rgba(255, 31, 31, 0.85);
    margin-right: 6px;
    animation: pulse 0.7s ease-in-out infinite;
    vertical-align: middle;
}

.hud-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    width: 100%;
}

.hud-nav a,
.hud-nav button {
    color: var(--grey-1);
    text-decoration: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    padding: 7px 12px;
    font-family: var(--display);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.hud-nav a:hover,
.hud-nav button:hover {
    color: var(--white);
    border-color: var(--red);
    background: rgba(255, 31, 31, 0.10);
}

.hud-nav a.active {
    color: var(--white);
    border-color: var(--red);
    background: rgba(255, 31, 31, 0.18);
    box-shadow: inset 0 0 12px rgba(255, 31, 31, 0.18);
}

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

/* ---- PANELS ---- */

.hud-panel {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 30%),
        linear-gradient(315deg, rgba(255, 31, 31, 0.10), transparent 36%),
        var(--panel);
    box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    opacity: 0;
    transform: translateY(10px);
    animation: panelIn 0.18s ease forwards;
}

/* bracket-corner panels */
.bracket { position: relative; }
.bracket-inner { position: absolute; inset: 0; pointer-events: none; }

.bracket::before,
.bracket::after,
.bracket > .bracket-inner::before,
.bracket > .bracket-inner::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--red);
    pointer-events: none;
    z-index: 4;
}
.bracket::before { top: 4px; left: 4px; border-right: none; border-bottom: none; }
.bracket::after  { top: 4px; right: 4px; border-left: none; border-bottom: none; }
.bracket > .bracket-inner::before { bottom: 4px; left: 4px; border-right: none; border-top: none; }
.bracket > .bracket-inner::after  { bottom: 4px; right: 4px; border-left: none; border-top: none; }

/* panel chrome header */
.window-chrome {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--grey-2);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.window-chrome > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--grey-1);
    font-family: var(--display);
    font-weight: 800;
}

.window-chrome > span:first-child::before {
    content: "";
    width: 6px;
    height: 16px;
    background: var(--red);
    box-shadow: 0 0 10px rgba(255, 31, 31, 0.7);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 9px;
    color: var(--white);
    border: 1px solid var(--line-red);
    background: rgba(255, 31, 31, 0.12);
    font-family: var(--display);
    font-weight: 900;
    font-size: 0.66rem;
}

.live-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px rgba(255, 31, 31, 0.85);
    animation: pulse 0.7s ease-in-out infinite;
}

/* ---- HERO COPY ---- */

.eyebrow {
    position: relative;
    z-index: 1;
    color: var(--red);
    font-family: var(--display);
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-tag {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    color: var(--white);
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(1.4rem, 3.2vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1.15;
    text-shadow: 0 0 24px rgba(255, 31, 31, 0.32);
}

.hero-status {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: var(--grey-2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* ---- ACTION BUTTON GRID ---- */

.link-grid {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.action-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--white);
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #14141a, #0a0a0e);
    font-family: var(--display);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.action-button:hover {
    transform: translateY(-1px);
    border-color: var(--red);
    box-shadow: 0 0 20px rgba(255, 31, 31, 0.22);
}

.action-button.primary {
    border-color: var(--line-red);
    background: linear-gradient(180deg, #ff3434 0%, #c40b0b 60%, #6a0303 100%);
    box-shadow: 0 0 18px rgba(255, 31, 31, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #fff;
}
.action-button.primary:hover {
    background: linear-gradient(180deg, #ff4f4f 0%, #d31313 60%, #800606 100%);
}

/* ---- FORM ---- */

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

.field-section {
    display: grid;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.field-section:first-of-type { padding-top: 0; border-top: none; }

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.field-grid.full { grid-template-columns: 1fr; }
.field-block { display: grid; gap: 6px; }
.field-block.span-2 { grid-column: span 2; }

.field-label {
    color: var(--grey-1);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: var(--mono);
}
.field-label .req { color: var(--red); }

.field-hint {
    color: var(--grey-3);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: none;
    margin-top: 2px;
}

.field-input {
    width: 100%;
    color: var(--white);
    background: #050507;
    border: 1px solid var(--line-strong);
    border-left: 2px solid var(--line-red);
    padding: 13px 14px;
    font-family: var(--mono);
    font-size: 16px;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--red);
    background: #07070b;
    box-shadow: 0 0 0 1px rgba(255, 31, 31, 0.34), 0 0 22px rgba(255, 31, 31, 0.16);
}

.field-input::placeholder { color: #555a63; }

.submit-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
}

.form-foot {
    margin-top: 16px;
    color: var(--grey-2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.form-foot a { color: var(--red); text-decoration: none; }
.form-foot a:hover { text-decoration: underline; }

/* ---- ERROR BANNER ---- */

.error-banner {
    position: relative;
    z-index: 1;
    color: var(--white);
    background: rgba(255, 31, 31, 0.16);
    border: 1px solid var(--line-red);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.86rem;
    font-family: var(--mono);
}
.error-banner::before {
    content: "!! ";
    color: var(--red);
    font-family: var(--display);
    font-weight: 900;
}

/* ---- DASHBOARD ---- */

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

.identity-line {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    color: var(--grey-1);
    font-family: var(--mono);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}
.identity-line strong {
    color: var(--grey-3);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-right: 8px;
    font-weight: 400;
}

.status-line {
    position: relative;
    z-index: 1;
    padding-left: 22px;
    color: var(--grey-1);
    font-size: 0.9rem;
    line-height: 1.55;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.status-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 2px;
    background: var(--red);
    box-shadow: 0 0 8px rgba(255, 31, 31, 0.6);
}

/* ---- ACCOUNT ---- */

.account-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.account-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    color: var(--grey-1);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
}

.account-tabs a:hover,
.account-tabs a.active {
    color: var(--white);
    border-color: var(--red);
    background: rgba(255, 31, 31, 0.14);
    box-shadow: inset 0 0 12px rgba(255, 31, 31, 0.16);
}

.account-summary-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.account-summary-grid div {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.account-summary-grid strong {
    color: var(--grey-3);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.account-summary-grid span {
    color: var(--white);
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.account-action-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.account-address-block {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
    color: var(--grey-1);
    font-family: var(--mono);
    font-size: 0.92rem;
    line-height: 1.55;
}

.account-address-block strong {
    color: var(--white);
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.claim-search {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.claim-search-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    gap: 10px;
    margin-top: 8px;
}

.claim-table-wrap {
    position: relative;
    z-index: 1;
    overflow-x: auto;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.buyer-group-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.buyer-group-card {
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 10px;
    padding: 14px 14px 16px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.32);
    color: inherit;
    text-decoration: none;
    transition: border-color 120ms linear, background 120ms linear, transform 120ms linear;
}

.buyer-group-card:hover,
.buyer-group-card:focus-visible {
    outline: none;
    border-color: var(--red);
    background: rgba(255, 31, 31, 0.08);
    transform: translateY(-1px);
}

.buyer-group-card.is-yours {
    border-color: var(--red);
    background: rgba(255, 31, 31, 0.10);
}

.buyer-group-card.is-claimed {
    opacity: 0.62;
}

.buyer-group-card.is-claimed:hover,
.buyer-group-card.is-claimed:focus-visible {
    opacity: 1;
}

.buyer-group-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.4);
    color: var(--grey-2);
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.buyer-group-badge.is-yours {
    border-color: var(--red);
    background: rgba(255, 31, 31, 0.18);
    color: var(--white);
}

.buyer-group-badge.is-claimed {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--grey-3);
}

.buyer-group-badge.is-open {
    border-color: var(--line-red);
    color: var(--red);
}

.buyer-group-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--grey-3);
}

.buyer-group-count {
    color: var(--red);
    font-weight: 700;
}

.buyer-group-card-body {
    display: grid;
    gap: 4px;
}

.buyer-group-name {
    color: var(--white);
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.buyer-group-handle {
    color: var(--grey-3);
    font-family: var(--mono);
    font-size: 0.74rem;
    overflow-wrap: anywhere;
}

.buyer-group-card-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.buyer-group-card-meta div {
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.buyer-group-card-meta strong {
    color: var(--grey-3);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.buyer-group-card-meta span {
    color: var(--white);
    font-family: var(--display);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    overflow-wrap: anywhere;
}

.buyer-group-cta {
    align-self: end;
    justify-self: end;
    color: var(--red);
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bulk-report-form {
    margin-top: 12px;
}

.group-summary-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.group-summary-action {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.30);
}

.group-summary-action-title {
    margin: 0;
    color: var(--red);
    font-family: var(--display);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.group-summary-action .identity-line { margin: 0; }
.group-summary-action .action-button { width: 100%; }

.claim-account-form { margin: 0; }

.group-pay-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.group-pay-summary div {
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.32);
}

.group-pay-summary strong {
    color: var(--grey-3);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.group-pay-summary span {
    color: var(--white);
    font-family: var(--display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

@media (max-width: 600px) {
    .group-pay-summary { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .buyer-group-card-meta {
        grid-template-columns: 1fr 1fr;
    }
}

.claim-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 0.78rem;
}

.claim-table th,
.claim-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.claim-table th {
    color: var(--grey-3);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.claim-table td {
    color: var(--grey-1);
}

.claim-table tr:last-child td { border-bottom: none; }

.claim-handle {
    display: block;
    color: var(--white);
    font-family: var(--display);
    font-weight: 900;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}

.claim-table small {
    display: block;
    margin-top: 4px;
    color: var(--grey-3);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.claim-platform {
    display: inline-flex;
    margin-bottom: 5px;
    padding: 2px 7px;
    color: var(--cyan);
    border: 1px solid rgba(92, 242, 255, 0.42);
    background: rgba(92, 242, 255, 0.08);
    font-family: var(--display);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.claim-match {
    display: inline-flex;
    margin-top: 6px;
    padding: 2px 7px;
    color: var(--white);
    border: 1px solid var(--line-red);
    background: rgba(255, 31, 31, 0.14);
    font-family: var(--display);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.success-banner {
    position: relative;
    z-index: 1;
    color: var(--white);
    background: rgba(92, 242, 255, 0.10);
    border: 1px solid rgba(92, 242, 255, 0.42);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.86rem;
    font-family: var(--mono);
}

.success-banner::before {
    content: "OK ";
    color: var(--cyan);
    font-family: var(--display);
    font-weight: 900;
}

/* ---- OVERLAY ADMIN ---- */

.overlay-stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.overlay-stats-grid a.active,
.overlay-stats-grid div.active {
    border-color: var(--red);
    background: rgba(255, 31, 31, 0.12);
    box-shadow: inset 0 0 12px rgba(255, 31, 31, 0.18);
}

.overlay-stats-grid div,
.overlay-stats-grid a {
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
    color: var(--white);
    text-decoration: none;
}

.overlay-stats-grid a:hover {
    border-color: var(--red);
    background: rgba(255, 31, 31, 0.12);
}

.overlay-stats-grid strong {
    color: var(--grey-3);
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.overlay-stats-grid span {
    color: var(--white);
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.overlay-filter {
    max-width: none;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.overlay-filter select {
    max-width: 190px;
}

.admin-claim-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.admin-claim-card {
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.34);
}

.admin-claim-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.claim-admin-side {
    display: grid;
    align-content: start;
    gap: 12px;
}

.claim-match-panel {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(5, 5, 7, 0.62);
}

.claim-match-panel strong {
    color: var(--grey-3);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.claim-match-panel span {
    color: var(--grey-1);
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.claim-quick-actions {
    display: grid;
    gap: 8px;
}

.claim-quick-actions form {
    margin: 0;
}

.claim-quick-actions .action-button {
    width: 100%;
    min-height: 42px;
    font-size: 0.68rem;
}

/* ---- ADMIN ---- */

.admin-toolbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.admin-search {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 620px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-actions form { margin: 0; }

.admin-table-wrap {
    position: relative;
    z-index: 1;
    overflow-x: auto;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    font-family: var(--mono);
    font-size: 0.78rem;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--grey-3);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
}

.admin-table td {
    color: var(--grey-1);
}

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

.table-link {
    color: var(--red);
    text-decoration: none;
    font-family: var(--display);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-link:hover { text-decoration: underline; }

.admin-user-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.admin-user-card {
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.34);
}

.admin-user-card-head {
    align-items: flex-start;
}

.admin-user-title {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-user-title span {
    color: var(--white);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.admin-user-title small {
    color: var(--grey-3);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.14em;
}

.admin-user-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-list-copy-block {
    font-size: 0.86rem;
    line-height: 1.52;
}

.empty-state {
    border: 1px solid var(--line);
    padding: 18px;
    color: var(--grey-1);
    background: rgba(0, 0, 0, 0.28);
    font-family: var(--mono);
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-detail-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-detail-actions .action-button {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.68rem;
}

.admin-copy-shell {
    position: relative;
    z-index: 1;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.34);
}

.copy-block-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--grey-3);
    font-family: var(--display);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.copy-block-button {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.admin-copy-block {
    margin: 0;
    padding: 18px;
    overflow-x: auto;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(255, 31, 31, 0.08), transparent 34%),
        rgba(5, 5, 7, 0.72);
    font-family: var(--mono);
    font-size: 0.94rem;
    line-height: 1.65;
    white-space: pre-wrap;
    user-select: text;
}

.admin-copy-block::selection {
    background: rgba(255, 31, 31, 0.38);
}

.admin-meta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.admin-meta-grid div {
    border: 1px solid var(--line);
    padding: 10px 12px;
    color: var(--grey-1);
    font-family: var(--mono);
    font-size: 0.76rem;
}

.admin-meta-grid strong {
    display: block;
    color: var(--grey-3);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 5px;
    font-weight: 400;
}

/* ---- FOOTER ---- */

.deck-foot {
    color: var(--grey-3);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 880px) {
    .deck-shell { width: min(100vw - 18px, 720px); padding: 12px 0 28px; }
    .deck-hud { grid-template-columns: 1fr; }
    .hud-cell { border-right: none; border-bottom: 1px solid var(--line); }
    .hud-cell:last-child { border-bottom: none; }
    .hud-nav { justify-content: flex-start; }
    .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-grid { grid-template-columns: 1fr; }
    .field-block.span-2 { grid-column: span 1; }
    .hud-panel { padding: 18px; }
    .admin-toolbar,
    .admin-search,
    .admin-actions,
    .admin-detail-head { align-items: stretch; flex-direction: column; }
    .admin-detail-actions { align-items: stretch; justify-content: flex-start; }
    .admin-user-card-actions { justify-content: flex-start; }
    .admin-search { max-width: none; }
    .admin-meta-grid { grid-template-columns: 1fr; }
    .overlay-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-claim-body { grid-template-columns: 1fr; }
    .account-summary-grid { grid-template-columns: 1fr; }
    .account-action-row { justify-content: flex-start; }
    .claim-search-row { grid-template-columns: 1fr; }
    .claim-detail-grid { grid-template-columns: 1fr; }
    .claim-detail-row { grid-template-columns: 1fr; gap: 4px; }
    .claim-group-card-body { grid-template-columns: 1fr; }
    .overlay-filter select { max-width: none; }
    .copy-block-toolbar { align-items: flex-start; flex-direction: column; }
    /* bigger tap targets on mobile */
    .action-button { padding: 12px 16px; min-height: 44px; }
    .hud-nav a, .hud-nav button { padding: 10px 12px; min-height: 40px; }
    .hero-tag { font-size: 1.55rem; line-height: 1.15; letter-spacing: 0.12em; }
}

@media (max-width: 520px) {
    .deck-shell { width: calc(100vw - 14px); padding: 10px 0 24px; }
    .link-grid { grid-template-columns: 1fr; }
    .action-button { width: 100%; }
    .hud-panel { padding: 14px; }
    .hero-tag { font-size: 1.25rem; letter-spacing: 0.08em; }
    .window-chrome { font-size: 0.62rem; letter-spacing: 0.18em; }
    .hud-brand .brand-name { font-size: 1.05rem; letter-spacing: 0.12em; }
    .deck-foot { font-size: 0.62rem; letter-spacing: 0.18em; }
    .submit-row { justify-content: stretch; }
    .submit-row .action-button { width: 100%; }
    .account-tabs a,
    .account-action-row .action-button,
    .claim-search-row .action-button,
    .overlay-filter .action-button { width: 100%; }
    .overlay-stats-grid { grid-template-columns: 1fr; }
    .admin-copy-block { padding: 14px; font-size: 0.84rem; line-height: 1.55; }
}

/* ---- CLAIMS PUBLIC LIST ---- */

.claim-display {
    display: block;
    color: var(--white);
    font-family: var(--display);
    font-weight: 900;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}

.claim-status {
    display: inline-flex;
    padding: 3px 8px;
    color: var(--white);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--display);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.claim-status-open {
    border-color: var(--line-red);
    background: rgba(255, 31, 31, 0.10);
}

.claim-status-invoiced {
    border-color: rgba(255, 179, 71, 0.55);
    background: rgba(255, 179, 71, 0.10);
}

.claim-status-payment_reported {
    border-color: rgba(92, 242, 255, 0.55);
    background: rgba(92, 242, 255, 0.12);
}

.claim-status-paid {
    border-color: rgba(92, 242, 255, 0.55);
    background: rgba(92, 242, 255, 0.18);
}

.claim-status-shipped {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.05);
}

.claim-status-canceled,
.claim-status-hidden {
    color: var(--grey-2);
    border-color: var(--grey-4);
    background: rgba(0, 0, 0, 0.4);
}

.report-payment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0;
}

.report-payment-note {
    flex: 1 1 140px;
    min-width: 100px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.32);
    color: var(--white);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.report-payment-note:focus {
    outline: none;
    border-color: var(--red);
}

.report-payment-form .action-button {
    flex: 0 0 auto;
}

.claim-reported-tag {
    color: var(--grey-2);
    font-family: var(--display);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
}

.claim-detail-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
    gap: 18px;
    align-items: start;
}

.claim-shot-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.38);
    text-decoration: none;
    overflow: visible;
}

.claim-shot-preview img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(78vh, 900px);
    object-fit: contain;
}

.claim-shot-preview.empty {
    color: var(--grey-3);
    font-family: var(--display);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.claim-detail-side {
    display: grid;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.claim-detail-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
}

.claim-detail-row:last-child { border-bottom: none; }

.claim-detail-row strong {
    color: var(--grey-3);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.claim-detail-row span {
    color: var(--grey-1);
    font-family: var(--mono);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.claim-detail-payment {
    position: relative;
    z-index: 1;
}

.claim-group-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.claim-group-card {
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
    padding: 14px;
}

.claim-group-card-body {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(320px, 1.45fr);
    gap: 14px;
    align-items: start;
    margin-top: 12px;
}

.claim-group-shot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.38);
    overflow: visible;
    text-decoration: none;
}

.claim-group-shot img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.claim-group-shot.empty {
    color: var(--grey-3);
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---- ADMIN PAYMENT-REPORTED HIGHLIGHT ---- */

.admin-claim-card.claim-payment-reported {
    border-color: rgba(92, 242, 255, 0.45);
    box-shadow: inset 0 0 24px rgba(92, 242, 255, 0.10);
}

.claim-payment-flag {
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(92, 242, 255, 0.55);
    background: rgba(92, 242, 255, 0.10);
    color: var(--white);
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.claim-payment-flag .live-dot {
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(92, 242, 255, 0.7);
    margin-right: 6px;
}

.claim-payment-flag small {
    color: var(--grey-2);
    font-size: 0.72rem;
}

/* ---- SHIPPED HISTORY ---- */

.admin-claim-card.claim-shipped {
    border-color: var(--grey-4);
    background: rgba(0, 0, 0, 0.32);
}

.shipped-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: start;
    padding: 14px 0 4px;
}

.shipped-shot {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.55);
    overflow: visible;
    aspect-ratio: 16/9;
}

.shipped-shot img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shipped-shot.empty {
    display: grid;
    place-items: center;
    color: var(--grey-3);
    font-family: var(--display);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
}

.shipped-details {
    display: grid;
    gap: 6px;
    color: var(--white);
    font-family: var(--mono);
    font-size: 0.86rem;
}

.shipped-details strong {
    margin-right: 8px;
    color: var(--grey-2);
    font-family: var(--display);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
}

@media (max-width: 720px) {
    .shipped-row { grid-template-columns: 1fr; }
    .shipped-shot { aspect-ratio: 16/9; max-width: 100%; }
}

/* removes 300ms tap delay on links/buttons in older mobile browsers */
a, button { touch-action: manipulation; }
