:root {
    --bg: #07111e;
    --bg-raised: rgba(16, 26, 40, 0.84);
    --bg-solid: #0d1726;
    --bg-soft: #122035;
    --border: rgba(152, 176, 214, 0.12);
    --border-strong: rgba(48, 220, 231, 0.24);
    --text: #f3f7ff;
    --muted: #8ea2c5;
    --muted-strong: #b1c1dd;
    --cyan: #18d9df;
    --cyan-deep: #0e7e96;
    --amber: #ffc400;
    --amber-soft: rgba(255, 196, 0, 0.14);
    --green: #2ddf8a;
    --red: #ff5a78;
    --violet: #ca5cff;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --site-width: 1360px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 18%, rgba(19, 217, 230, 0.11), transparent 28%),
        radial-gradient(circle at 82% 88%, rgba(90, 236, 197, 0.09), transparent 26%),
        linear-gradient(180deg, #111024 0%, #081120 22%, #07111e 100%);
    overflow-x: hidden;
}

body.modal-open,
body.portal-locked {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.portal-noise,
.portal-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.portal-noise {
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 80px 80px;
}

.portal-glow {
    z-index: -1;
    filter: blur(100px);
}

.portal-glow-left {
    background: radial-gradient(circle at 20% 30%, rgba(24, 217, 223, 0.16), transparent 30%);
}

.portal-glow-right {
    background: radial-gradient(circle at 80% 78%, rgba(255, 196, 0, 0.11), transparent 28%);
}

.site-shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(142, 162, 197, 0.08);
    background: rgba(11, 14, 29, 0.78);
    backdrop-filter: blur(20px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
}

.brand-mark strong {
    color: var(--cyan);
}

.brand-crown {
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 196, 0, 0.34);
    border-radius: 8px;
    color: var(--amber);
    background: linear-gradient(145deg, rgba(255, 196, 0, 0.16), rgba(24, 217, 223, 0.08));
    box-shadow: 0 10px 30px rgba(255, 196, 0, 0.1), inset 0 0 18px rgba(255, 255, 255, 0.04);
    font-size: 1.15rem;
    transform: rotate(-3deg);
}

.brand-mark:hover .brand-crown {
    color: #ffe272;
    border-color: rgba(255, 196, 0, 0.55);
    transform: rotate(0deg) translateY(-1px);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 46px;
    padding: 0.78rem 1rem;
    border: 1px solid transparent;
    border-radius: 14px;
    color: rgba(228, 238, 255, 0.8);
    transition: 0.22s ease;
}

.topnav-link:hover,
.topnav-link.is-active {
    color: var(--text);
    background: rgba(40, 55, 78, 0.5);
    border-color: rgba(103, 132, 179, 0.16);
}

.topnav-link-quiet {
    padding-right: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.topbar-user-pill {
    max-width: 190px;
    min-width: 0;
}

.topbar-user-pill .dot {
    flex: 0 0 auto;
}

.topbar-user-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-shell {
    width: min(var(--site-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.hero-section,
.dashboard-grid,
.split-grid,
.tickets-shell,
.reseller-dashboard {
    display: grid;
    gap: 1.6rem;
}

.hero-section {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    align-items: center;
    min-height: calc(100vh - 180px);
    padding: 2rem 0 1rem;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.2rem, 7vw, 6.1rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.hero-copy h1 span,
.page-hero h1 span {
    color: var(--cyan);
}

.hero-copy p,
.page-hero p,
.muted-copy,
.ticket-detail-empty p,
.platform-row p,
.product-card p,
.step-card p,
.metric-card p,
.collection-tile p,
.panel-accent p,
.scanner-copy p,
.ticket-item p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-copy p {
    max-width: 720px;
    margin: 1.3rem 0 0;
    font-size: 1.08rem;
}

.hero-side {
    align-self: stretch;
}

.hero-card,
.panel-card,
.metric-card,
.product-card,
.step-card,
.inventory-card,
.bank-item,
.ticket-item,
.tier-card,
.collection-tile,
.scanner-strip {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(15, 23, 37, 0.9), rgba(11, 19, 32, 0.9));
    box-shadow: var(--shadow);
}

.hero-card {
    height: 100%;
    padding: 1.4rem;
}

.hero-card-tall {
    min-height: 580px;
}

.hero-card-header,
.panel-head,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.52rem 0.95rem;
    border: 1px solid rgba(24, 217, 223, 0.22);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(24, 217, 223, 0.08);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
}

.eyebrow-magenta {
    color: #db74ff;
    border-color: rgba(219, 116, 255, 0.18);
    background: rgba(219, 116, 255, 0.07);
}

.eyebrow-alert {
    color: #ffc400;
    border-color: rgba(255, 196, 0, 0.18);
    background: rgba(255, 196, 0, 0.09);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.48rem 0.88rem;
    border: 1px solid rgba(96, 121, 164, 0.18);
    border-radius: 999px;
    background: rgba(23, 34, 52, 0.9);
    color: var(--muted-strong);
    font-size: 0.83rem;
    font-weight: 700;
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(45, 223, 138, 0.1);
}

.status-pill-outline {
    background: transparent;
}

.status-pill-muted {
    color: #d7e1f3;
}

.status-pill-success {
    color: #8bf9c1;
    border-color: rgba(45, 223, 138, 0.2);
}

.status-pill-neutral {
    color: #c9d6ec;
}

.status-pill-warn {
    color: #ffd96b;
    border-color: rgba(255, 196, 0, 0.2);
}

.hero-badges,
.hero-actions,
.hero-links,
.filter-row,
.bank-filters,
.hero-card-header,
.reseller-progress-row,
.meta-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.redeem-panel {
    margin-top: 1.8rem;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(12, 20, 33, 0.88);
    box-shadow: var(--shadow);
}

.redeem-input-group,
.search-shell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 70px;
    padding: 0 1.1rem;
    border: 1px solid rgba(116, 140, 177, 0.14);
    border-radius: 18px;
    background: rgba(10, 16, 29, 0.92);
}

.redeem-input-group i,
.search-shell i {
    color: var(--muted);
}

.redeem-input-group input,
.search-shell input,
.field-group input,
.field-group textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
}

.text-button,
.ghost-button,
.primary-button,
.filter-pill {
    border: 1px solid transparent;
    border-radius: 16px;
    transition: 0.22s ease;
}

.text-button {
    padding: 0.65rem 0.4rem;
    background: transparent;
    color: var(--muted-strong);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 800;
}

.redeem-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.redeem-status {
    margin-top: 0.9rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(142, 162, 197, 0.12);
    border-radius: 14px;
    color: var(--muted-strong);
    background: rgba(10, 16, 29, 0.72);
    line-height: 1.5;
}

.redeem-status.is-error {
    color: #ff9caf;
    border-color: rgba(255, 90, 120, 0.24);
    background: rgba(255, 90, 120, 0.07);
}

.redeem-status.is-success {
    color: #8af0bd;
    border-color: rgba(45, 223, 138, 0.24);
    background: rgba(45, 223, 138, 0.07);
}

.redeem-status.is-loading {
    color: #8ceef2;
}

button:disabled,
.primary-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
    box-shadow: none;
}

.redeem-result-card {
    min-height: 100%;
}

.redeem-result-main {
    display: grid;
    gap: 1rem;
    margin-top: 1.1rem;
}

.result-field {
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(116, 140, 177, 0.13);
    border-radius: 14px;
    background: rgba(8, 14, 25, 0.72);
}

.result-field span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.result-field strong,
.result-field code {
    display: block;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.9rem;
}

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

.result-security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem;
    border-left: 3px solid var(--cyan);
    background: rgba(24, 217, 223, 0.06);
    color: var(--muted-strong);
}

.result-security-note i {
    margin-top: 0.2rem;
    color: var(--cyan);
}

.result-security-note p,
.device-tip,
.replacement-status {
    margin: 0;
    line-height: 1.5;
    font-size: 0.8rem;
}

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

.device-button {
    min-height: 58px;
    border: 1px solid rgba(116, 140, 177, 0.14);
    border-radius: 14px;
    background: rgba(8, 14, 25, 0.72);
    color: var(--muted-strong);
}

.device-button i,
.device-button span {
    display: block;
}

.device-button span {
    margin-top: 0.3rem;
    font-size: 0.7rem;
}

.device-button.is-active {
    border-color: rgba(24, 217, 223, 0.35);
    background: rgba(24, 217, 223, 0.1);
    color: var(--text);
}

.device-tip,
.replacement-status {
    color: var(--muted);
}

.replacement-status.is-error {
    color: #ff9caf;
}

.replacement-status.is-success {
    color: #8af0bd;
}

.result-actions,
.replacement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.result-actions .primary-button,
.replacement-actions .ghost-button {
    flex: 1 1 auto;
}

.icon-command {
    flex: 0 0 48px;
    width: 48px;
    padding: 0;
}

.portal-toast {
    position: fixed;
    z-index: 200;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: min(420px, calc(100vw - 2.5rem));
    padding: 0.9rem 1rem;
    border: 1px solid rgba(45, 223, 138, 0.25);
    border-radius: 14px;
    background: #0b1824;
    color: #a8f4ce;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    transition: 0.22s ease;
}

.portal-toast.is-error {
    border-color: rgba(255, 90, 120, 0.25);
    color: #ffafbe;
}

.portal-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.field-counter,
.file-selection {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

#reportScreenshot {
    padding: 0.75rem 0;
    color: var(--muted-strong);
}

.primary-button,
.ghost-button,
.filter-pill,
.action-list a,
.action-list button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 48px;
    padding: 0.82rem 1.15rem;
}

.primary-button {
    background: linear-gradient(135deg, #14d7dd, #0ea6b6);
    color: #041018;
    font-weight: 800;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(20, 215, 221, 0.2);
}

.primary-button-large {
    min-width: 220px;
}

.primary-button-block,
.ghost-button-block {
    width: 100%;
}

.ghost-button,
.filter-pill,
.action-list a,
.action-list button {
    border-color: rgba(118, 145, 188, 0.16);
    background: rgba(15, 24, 39, 0.88);
    color: var(--text);
}

.ghost-button:hover,
.filter-pill:hover,
.filter-pill.is-active,
.action-list a:hover,
.action-list button:hover {
    border-color: rgba(24, 217, 223, 0.28);
    background: rgba(20, 34, 52, 0.96);
}

.platform-stack,
.action-list,
.ticket-list,
.top-products {
    display: grid;
    gap: 0.9rem;
}

.platform-row,
.top-product-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(122, 144, 181, 0.12);
    border-radius: 18px;
    background: rgba(10, 16, 29, 0.62);
}

.platform-icon,
.product-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 18, 28, 0.88);
}

.section-block {
    padding-top: 2rem;
}

.section-head-centered {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.section-head h2,
.page-hero h1,
.panel-head h2,
.ticket-detail-empty h2,
.reseller-tier-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.product-grid,
.step-grid,
.stats-grid,
.mini-collection-grid,
.credential-grid,
.tier-grid {
    display: grid;
    gap: 1.2rem;
}

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

.product-card {
    min-height: 200px;
    padding: 1.4rem;
    display: grid;
    align-content: start;
    gap: 1rem;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.product-card-head {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 68px;
}

.product-card-head h3 {
    color: var(--product-color, var(--text));
    letter-spacing: 0;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.service-mark {
    position: relative;
    display: inline-grid;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--product-border, rgba(255, 255, 255, 0.16));
    border-radius: 8px;
    background: #080e18;
    color: var(--product-color, #e8eef9);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-mark-compact {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
}

.product-card:hover .service-mark,
.platform-row:hover .service-mark {
    transform: translateY(-2px);
    border-color: var(--product-color, rgba(255, 255, 255, 0.3));
    background: #0b1320;
}

.service-mark-letter {
    font: 800 2.05rem/1 'Space Grotesk', sans-serif;
    transform: scaleX(0.78);
}

.service-mark-compact .service-mark-letter {
    font-size: 1.7rem;
}

.service-mark-netflix .service-mark-letter {
    text-shadow: 5px 0 0 rgba(155, 16, 41, 0.5);
}

.service-mark-orbit {
    position: relative;
    width: 38px;
    height: 38px;
    border: 7px solid #ff7f32;
    border-right-color: #ffd2a6;
    border-radius: 50%;
    transform: rotate(-28deg);
}

.service-mark-orbit::after {
    content: '';
    position: absolute;
    top: 7px;
    right: -10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff4e9;
    box-shadow: 0 0 0 4px rgba(255, 127, 50, 0.16);
}

.service-mark-spark {
    width: 38px;
    height: 38px;
    clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
    background: linear-gradient(135deg, #75a7ff 10%, #c480ff 55%, #ff86ad);
}

.service-mark-cut {
    position: relative;
    width: 36px;
    height: 29px;
}

.service-mark-cut i {
    position: absolute;
    left: 3px;
    width: 30px;
    height: 11px;
    border: 4px solid #f4f7fb;
    border-right-width: 3px;
    border-radius: 3px;
    transform: skewX(-22deg);
}

.service-mark-cut i:first-child { top: 1px; }
.service-mark-cut i:last-child { bottom: 1px; transform: skewX(22deg); }

.service-mark-peak {
    position: relative;
    width: 42px;
    height: 42px;
    border: 2px solid #4d91ff;
    border-radius: 50%;
}

.service-mark-peak::before {
    content: '';
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 25px;
    height: 22px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: linear-gradient(135deg, #eef6ff, #4d91ff);
}

.service-mark-peak i,
.service-mark-peak i::before,
.service-mark-peak i::after {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cfe2ff;
}

.service-mark-peak i { top: 4px; left: 18px; }
.service-mark-peak i::before { content: ''; top: 3px; left: -10px; }
.service-mark-peak i::after { content: ''; top: 3px; left: 10px; }

.service-mark-disc {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #2ddf82;
}

.service-mark-disc i {
    position: absolute;
    width: 27px;
    height: 10px;
    border-top: 3px solid #062b18;
    border-radius: 50%;
}

.service-mark-disc i:nth-child(1) { top: 12px; }
.service-mark-disc i:nth-child(2) { top: 19px; width: 24px; }
.service-mark-disc i:nth-child(3) { top: 26px; width: 20px; }

.service-mark-equalizer {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 35px;
    padding: 0 2px 5px;
}

.service-mark-equalizer i {
    display: block;
    width: 5px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, #ff65ad, #9e42ff);
}

.service-mark-equalizer i:nth-child(1) { height: 10px; }
.service-mark-equalizer i:nth-child(2) { height: 18px; }
.service-mark-equalizer i:nth-child(3) { height: 27px; }
.service-mark-equalizer i:nth-child(4) { height: 21px; }
.service-mark-equalizer i:nth-child(5) { height: 14px; }

.product-netflix { --product-color: #ff3040; --product-border: rgba(255, 48, 64, 0.42); }
.product-crunchyroll { --product-color: #ff8b35; --product-border: rgba(255, 139, 53, 0.42); }
.product-capcut { --product-color: #39d9ef; --product-border: rgba(57, 217, 239, 0.42); }
.product-paramount { --product-color: #438cff; --product-border: rgba(67, 140, 255, 0.42); }
.product-deezer { --product-color: #b651ff; --product-border: rgba(182, 81, 255, 0.42); }

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.product-art {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #080f19;
}

.product-art::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.product-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.product-card:hover .product-art img {
    transform: scale(1.045);
    filter: saturate(1.12);
}

.product-state {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0.9rem;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-state::before {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(45, 223, 138, 0.1);
}

.product-card-buy {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.product-card-buy strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: var(--text);
}

.product-card-buy > span {
    color: var(--muted);
    font-size: 0.75rem;
}

.product-card-buy .ghost-button {
    min-height: 38px;
    padding: 0.55rem 0.75rem;
}

.product-card h3,
.step-card h3,
.ticket-item strong,
.inventory-headline h2,
.tier-headline strong,
.collection-tile strong {
    margin: 0;
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.product-card p {
    margin: 0;
    font-size: 0.98rem;
}

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

.step-card {
    min-height: 240px;
    padding: 1.5rem;
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    color: rgba(24, 217, 223, 0.35);
    line-height: 1;
}

.walkthrough-section {
    overflow: visible;
}

.walkthrough {
    display: grid;
    grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.55fr);
    gap: 1.2rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(8, 15, 27, 0.76);
    box-shadow: var(--shadow);
}

.walkthrough-controls {
    display: grid;
    align-content: center;
    gap: 0.65rem;
}

.walkthrough-step,
.walkthrough-toggle {
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    text-align: left;
}

.walkthrough-step {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.75rem;
    min-height: 92px;
    padding: 0.9rem;
    transition: 0.25s ease;
}

.walkthrough-step:hover,
.walkthrough-step.is-active {
    color: var(--text);
    border-color: rgba(24, 217, 223, 0.25);
    background: rgba(24, 217, 223, 0.07);
}

.walkthrough-step > span {
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--cyan);
    background: rgba(24, 217, 223, 0.09);
    font: 800 0.78rem 'Space Grotesk', sans-serif;
}

.walkthrough-step strong,
.walkthrough-step small {
    display: block;
    min-width: 0;
}

.walkthrough-step strong {
    align-self: end;
    font-size: 0.92rem;
}

.walkthrough-step small {
    color: var(--muted);
    line-height: 1.45;
}

.walkthrough-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.65rem 0.85rem;
    border-color: var(--border);
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.025);
}

.walkthrough-stage {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(142, 162, 197, 0.14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 75% 15%, rgba(24, 217, 223, 0.1), transparent 30%),
        #060d17;
}

.walkthrough-browser {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    height: 46px;
    padding: 0 0.85rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.walkthrough-browser > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6175;
}

.walkthrough-browser > span:nth-child(2) { background: #ffc453; }
.walkthrough-browser > span:nth-child(3) { background: #45d88c; }

.walkthrough-browser strong {
    min-width: 0;
    margin-left: 0.5rem;
    padding: 0.42rem 0.8rem;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.walkthrough-panel {
    position: absolute;
    inset: 46px 0 4px;
    display: grid;
    place-items: center;
    padding: 1.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.985);
    transition: opacity 0.38s ease, transform 0.38s ease, visibility 0.38s;
}

.walkthrough-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.walkthrough-key-demo,
.walkthrough-result-demo {
    position: relative;
    width: min(100%, 430px);
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(13, 23, 38, 0.96);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.walkthrough-key-demo small,
.walkthrough-result-demo small {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 800;
}

.walkthrough-key-demo > div {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 56px;
    padding: 0 0.9rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(4, 9, 17, 0.75);
}

.walkthrough-key-demo code {
    display: block;
    width: 0;
    overflow: hidden;
    color: var(--text);
    white-space: nowrap;
}

.walkthrough-panel.is-active .walkthrough-typed-key {
    animation: walkthroughTyping 1.4s steps(20, end) 0.25s forwards;
}

.walkthrough-key-demo button,
.walkthrough-result-demo > button {
    width: 100%;
    min-height: 48px;
    margin-top: 0.8rem;
    border: 0;
    border-radius: 8px;
    color: #031013;
    background: var(--cyan);
    font-weight: 800;
}

.walkthrough-cursor {
    position: absolute;
    right: 22%;
    bottom: 6%;
    opacity: 0;
    color: #fff;
    font-size: 1.3rem;
    filter: drop-shadow(0 4px 7px #000);
}

.walkthrough-panel.is-active .walkthrough-cursor {
    animation: walkthroughClick 1.25s ease 1.7s forwards;
}

.walkthrough-verify-demo {
    width: min(100%, 430px);
    text-align: center;
}

.walkthrough-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(24, 217, 223, 0.12);
    border-top-color: var(--cyan);
    border-radius: 50%;
    color: var(--cyan);
    animation: walkthroughSpin 0.85s linear infinite;
}

.walkthrough-ring i { animation: walkthroughSpin 0.85s linear infinite reverse; }
.walkthrough-verify-demo > strong { font-size: 1.2rem; }
.walkthrough-verify-demo p { color: var(--muted); }

.walkthrough-checks,
.walkthrough-device-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.walkthrough-checks span,
.walkthrough-device-row span {
    padding: 0.68rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.76rem;
}

.walkthrough-checks i { color: var(--green); }

.walkthrough-result-demo > div:first-child {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.walkthrough-result-demo > div:first-child small { margin: 0; }
.walkthrough-success {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--green);
    background: rgba(45, 223, 138, 0.1);
}

.walkthrough-device-row span { text-align: center; }
.walkthrough-device-row span.is-active {
    color: var(--text);
    border-color: rgba(24, 217, 223, 0.35);
    background: rgba(24, 217, 223, 0.1);
}

.walkthrough-progress {
    position: absolute;
    right: 1rem;
    bottom: 0.7rem;
    left: 1rem;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
}

.walkthrough-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--green));
}

.walkthrough.is-playing .walkthrough-progress span {
    animation: walkthroughProgress 4.5s linear forwards;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.5fr);
    gap: 1.2rem;
}

.faq-summary,
.faq-list details {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(10, 18, 31, 0.8);
}

.faq-summary {
    align-self: start;
    padding: 1.4rem;
}

.faq-summary > i {
    color: var(--cyan);
    font-size: 1.7rem;
}

.faq-summary h3 { margin: 1rem 0 0.5rem; }
.faq-summary p,
.faq-list p { color: var(--muted); line-height: 1.65; }

.faq-list {
    display: grid;
    gap: 0.7rem;
}

.faq-list details {
    overflow: hidden;
    transition: border-color 0.22s ease, background 0.22s ease;
}

.faq-list details[open] {
    border-color: rgba(24, 217, 223, 0.25);
    background: rgba(13, 29, 43, 0.85);
}

.faq-list summary {
    position: relative;
    padding: 1.1rem 3rem 1.1rem 1.1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 750;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 1.1rem;
    transform: translateY(-50%);
    color: var(--cyan);
    font-size: 1.25rem;
}

.faq-list details[open] summary::after { content: '-'; }
.faq-list details p { margin: 0; padding: 0 1.1rem 1.1rem; }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes walkthroughTyping { to { width: 21ch; } }
@keyframes walkthroughSpin { to { transform: rotate(360deg); } }
@keyframes walkthroughProgress { to { width: 100%; } }
@keyframes walkthroughClick {
    0% { opacity: 0; transform: translate(20px, 16px); }
    55%, 75% { opacity: 1; transform: translate(0, 0) scale(0.88); }
    100% { opacity: 0; transform: translate(0, 0) scale(1); }
}

.page-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.25rem 0 1.5rem;
}

.compact-hero h1 {
    font-size: clamp(2.4rem, 4vw, 4rem);
}

.compact-hero-narrow {
    padding-top: 0;
}

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

.metric-card {
    padding: 1.35rem 1.45rem;
}

.metric-label {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.79rem;
}

.metric-card strong {
    display: block;
    margin-top: 0.8rem;
    font-size: 2.1rem;
    letter-spacing: -0.05em;
}

.dashboard-grid {
    grid-template-columns: 1.9fr 0.9fr;
    margin-bottom: 1.5rem;
}

.panel-span-2 {
    min-width: 0;
}

.panel-card {
    padding: 1.35rem;
}

.panel-head {
    margin-bottom: 1rem;
}

.panel-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.9rem;
}

.panel-link,
.profit-copy {
    color: var(--muted-strong);
}

.collection-tile {
    min-height: 210px;
    padding: 1.3rem;
}

.collection-badge,
.pill-inline {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 196, 0, 0.12);
    color: #ffc34a;
    font-size: 0.82rem;
    font-weight: 800;
}

.action-list a,
.action-list button {
    width: 100%;
    justify-content: space-between;
    border-radius: 16px;
    color: var(--text);
    text-align: left;
}

.action-list button {
    appearance: none;
}

.panel-accent {
    border-color: rgba(24, 217, 223, 0.24);
    background:
        linear-gradient(180deg, rgba(13, 31, 44, 0.95), rgba(9, 24, 35, 0.95)),
        radial-gradient(circle at 100% 0%, rgba(24, 217, 223, 0.14), transparent 25%);
}

.activity-feed {
    display: grid;
    gap: 0.8rem;
}

.activity-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(128, 149, 187, 0.08);
}

.activity-row:first-child {
    border-top: 0;
}

.activity-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.7rem;
    border-radius: 10px;
    background: rgba(66, 92, 138, 0.26);
    color: #d9e4f7;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
}

.activity-copy p,
.activity-copy small {
    margin: 0;
}

.activity-copy small {
    color: var(--muted);
}

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

.scanner-copy {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scanner-icon,
.notice-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--cyan);
    border: 1px solid rgba(24, 217, 223, 0.2);
    background: rgba(24, 217, 223, 0.08);
}

.inventory-toolbar {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.inventory-list,
.bank-list {
    display: grid;
    gap: 1rem;
}

.inventory-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1.35rem;
}

.inventory-left {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.inventory-copy,
.bank-item,
.field-group {
    display: grid;
    gap: 0.85rem;
}

.inventory-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.inventory-headline small {
    color: var(--muted);
}

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

.credential-box {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(118, 145, 188, 0.14);
    border-radius: 16px;
    background: rgba(9, 15, 27, 0.78);
}

.credential-box span,
.meta-chip,
.field-group label {
    color: var(--muted);
    font-size: 0.84rem;
}

.credential-box strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 1rem;
}

.meta-chip {
    padding: 0.48rem 0.7rem;
    border-radius: 12px;
    background: rgba(30, 41, 61, 0.7);
    border: 1px solid rgba(118, 145, 188, 0.1);
}

.inventory-actions {
    display: grid;
    gap: 0.8rem;
    align-content: center;
    min-width: 210px;
}

.bank-list-card {
    min-height: 340px;
}

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

.bank-download-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.bank-list-empty,
.ticket-detail-empty {
    min-height: 260px;
    display: grid;
    place-items: center;
    gap: 0.7rem;
    text-align: center;
    color: var(--muted);
}

.bank-list-empty i,
.ticket-detail-empty i {
    font-size: 2rem;
    color: rgba(152, 176, 214, 0.55);
}

.bank-list-empty[hidden] {
    display: none;
}

.bank-item {
    grid-template-columns: minmax(180px, 1fr) minmax(240px, auto) minmax(170px, auto);
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.bank-item code {
    color: #d8e6ff;
    font-family: 'Space Grotesk', sans-serif;
    overflow-wrap: anywhere;
}

.bank-item-copy,
.bank-item-state {
    display: grid;
    gap: 0.3rem;
}

.bank-item-copy p,
.bank-item-state small {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.bank-key-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: 0;
}

.bank-key-value .icon-button {
    display: inline-grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(8, 15, 27, 0.78);
    cursor: pointer;
}

.bank-key-value .icon-button:hover {
    color: var(--cyan);
    border-color: rgba(79, 231, 255, 0.42);
}

.bank-item-state {
    justify-items: end;
    text-align: right;
}

.tickets-shell {
    grid-template-columns: 420px minmax(0, 1fr);
    align-items: start;
}

.tickets-sidebar {
    display: grid;
    gap: 1rem;
}

.ticket-item {
    padding: 1rem;
}

.ticket-item.is-active {
    border-color: rgba(24, 217, 223, 0.26);
}

.ticket-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.ticket-detail {
    min-height: 560px;
}

.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.field-group {
    margin-bottom: 1rem;
}

.field-group input,
.field-group textarea {
    min-height: 56px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(118, 145, 188, 0.15);
    border-radius: 16px;
    background: rgba(10, 16, 29, 0.88);
}

.notice-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(24, 217, 223, 0.2);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(18, 37, 51, 0.92), rgba(14, 30, 43, 0.92));
}

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

.reseller-tier-head p {
    color: var(--muted);
}

.tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0 1.6rem;
}

.tier-card {
    padding: 1.5rem;
}

.tier-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tier-discount {
    margin-top: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    letter-spacing: -0.06em;
}

.tier-discount span {
    font-size: 1.8rem;
    color: var(--muted-strong);
}

.tier-card ul {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.tier-card li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.tier-card li.is-disabled {
    color: #7f8ca7;
}

.reseller-dashboard {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
}

.reseller-side-nav {
    display: grid;
    gap: 0.4rem;
    margin-top: 1rem;
}

.reseller-side-nav a {
    padding: 0.82rem 0.95rem;
    border-radius: 14px;
    color: var(--muted-strong);
}

.reseller-side-nav a.is-active,
.reseller-side-nav a:hover {
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.92), rgba(255, 179, 0, 0.9));
    color: #1f1600;
}

.reseller-main {
    display: grid;
    gap: 1.2rem;
}

.reseller-hero-card {
    border-top: 4px solid var(--amber);
}

.progress-track {
    flex: 1;
    min-width: 160px;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(36, 48, 70, 0.92);
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--amber), #ffdf79);
}

.chart-panel {
    min-height: 350px;
}

.chart-mock {
    position: relative;
    height: 250px;
    display: flex;
    align-items: end;
    gap: 1rem;
}

.chart-mock span {
    flex: 1;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(24, 217, 223, 0.4), rgba(24, 217, 223, 0.04));
}

.chart-mock span:nth-child(1) { height: 44%; }
.chart-mock span:nth-child(2) { height: 72%; }
.chart-mock span:nth-child(3) { height: 65%; }
.chart-mock span:nth-child(4) { height: 24%; }
.chart-mock span:nth-child(5) { height: 61%; }

.top-product-row {
    grid-template-columns: auto 1fr auto;
}

.top-product-row strong,
.top-product-row small {
    display: block;
}

.top-product-row small {
    color: var(--muted);
}

.product-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.shop-hero {
    min-height: 360px;
}

.shop-price-callout {
    flex: 0 0 260px;
    display: grid;
    justify-items: end;
    gap: 0.35rem;
    padding: 1.5rem 0 1.5rem 2rem;
    border-left: 1px solid var(--border-strong);
}

.shop-price-callout > span,
.shop-price-callout small {
    color: var(--muted);
}

.shop-price-callout strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.4rem;
    line-height: 1;
    color: var(--cyan);
}

.shop-price-callout small {
    color: var(--amber);
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.6rem;
}

.shop-product {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 1.5rem;
    min-height: 230px;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(18, 29, 46, 0.96), rgba(9, 17, 30, 0.94));
    box-shadow: var(--shadow);
}

.shop-product::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--product-color, var(--cyan));
}

.shop-product-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 1.15rem;
}

.shop-product h2 {
    margin: 0.35rem 0 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    color: var(--product-color, var(--text));
}

.shop-product p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.shop-product-buy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    justify-items: stretch;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.shop-product-buy > div {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
}

.shop-product-total {
    justify-items: start !important;
}

.shop-product-buy span {
    color: var(--muted);
    font-size: 0.78rem;
}

.shop-product-buy span s {
    margin-right: 0.3rem;
}

.shop-product-buy strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
}

.shop-product-total small {
    color: var(--amber);
    font-size: 0.72rem;
    opacity: 0.62;
}

.shop-product-total small.is-active {
    color: var(--green);
    opacity: 1;
}

.shop-buy-form {
    display: grid;
    grid-template-columns: auto auto;
    align-items: end;
    justify-items: end;
    gap: 0.7rem;
}

.quantity-picker {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
}

.quantity-picker > span:first-child {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.quantity-control {
    display: grid;
    grid-template-columns: 36px 54px 36px;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(118, 145, 188, 0.22);
    border-radius: 8px;
    background: #091321;
}

.quantity-control button,
.quantity-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    color: var(--text);
    background: transparent;
    text-align: center;
}

.quantity-control button {
    color: var(--muted-strong);
}

.quantity-control button:hover,
.quantity-control button:focus-visible {
    outline: none;
    color: var(--cyan);
    background: rgba(24, 217, 223, 0.08);
}

.quantity-control input {
    border-inline: 1px solid rgba(118, 145, 188, 0.16);
    outline: none;
    font-weight: 800;
    appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.checkout-shell {
    margin: 1.6rem 0;
}

.checkout-summary {
    padding: 1.6rem;
    overflow: visible;
}

.checkout-summary .panel-head h2,
.order-history-card .panel-head h2 {
    margin: 0.8rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.8rem 0;
}

.checkout-steps > div {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    color: var(--muted);
    text-align: center;
}

.checkout-steps > div:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: rgba(82, 104, 140, 0.28);
}

.checkout-steps span {
    z-index: 1;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(94, 118, 158, 0.24);
    border-radius: 50%;
    background: var(--bg-solid);
}

.checkout-steps .is-complete,
.checkout-steps .is-current {
    color: var(--text);
}

.checkout-steps .is-complete span {
    color: #062416;
    border-color: transparent;
    background: var(--green);
}

.checkout-steps .is-current span {
    color: #241a00;
    border-color: transparent;
    background: var(--amber);
}

.checkout-instruction {
    margin: 0 0 1.2rem;
    color: var(--muted-strong);
    text-align: center;
}

.checkout-payment-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 2rem;
    padding: 1.6rem;
    border-block: 1px solid var(--border);
    background: rgba(6, 13, 24, 0.42);
}

.checkout-qr-wrap {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.8rem;
}

.checkout-qr {
    display: grid;
    place-items: center;
    width: 240px;
    height: 240px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.checkout-qr img,
.checkout-qr canvas {
    max-width: 100%;
    height: auto !important;
}

.checkout-qr-wrap > span {
    color: var(--muted);
    font-size: 0.8rem;
}

.checkout-payment-details {
    display: grid;
    align-content: center;
    gap: 0.8rem;
}

.payment-value {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem 0.8rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.payment-value > span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.payment-value strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: var(--amber);
}

.payment-value code {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 1rem;
}

.payment-value .icon-command {
    width: 42px;
    height: 42px;
}

.checkout-rate {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem 1rem;
    padding: 0.8rem 0;
}

.checkout-rate span {
    color: var(--muted);
}

.checkout-wallet-link {
    justify-content: center;
}

.checkout-tx-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
    margin-top: 1.3rem;
}

.checkout-tx-form .field-group {
    margin: 0;
}

.checkout-cancel {
    margin-top: 0.65rem;
    text-align: right;
}

.checkout-review,
.checkout-delivered,
.checkout-auto-detect {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid rgba(255, 196, 0, 0.18);
    border-radius: var(--radius-md);
    background: rgba(255, 196, 0, 0.06);
}

.checkout-review > i,
.checkout-delivered > i,
.checkout-auto-detect > i {
    font-size: 1.8rem;
    color: var(--amber);
}

.checkout-review p,
.checkout-delivered p,
.checkout-auto-detect p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.checkout-auto-detect {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-color: rgba(24, 217, 223, 0.2);
    background: rgba(24, 217, 223, 0.06);
}

.checkout-auto-detect > i {
    color: var(--cyan);
}

.checkout-delivered {
    border-color: rgba(45, 223, 138, 0.2);
    background: rgba(45, 223, 138, 0.06);
}

.checkout-delivered > i {
    color: var(--green);
}

.checkout-delivered .primary-button {
    margin-left: auto;
}

.checkout-review-muted {
    border-color: var(--border);
    background: rgba(79, 94, 121, 0.07);
}

.checkout-review-muted > i {
    color: var(--muted);
}

.order-history-card {
    padding: 1.5rem;
}

.order-list {
    display: grid;
    margin-top: 1.2rem;
}

.order-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto auto 16px;
    align-items: center;
    gap: 1rem;
    min-height: 78px;
    padding: 0.8rem;
    border-top: 1px solid var(--border);
    transition: 0.2s ease;
}

.order-row:hover,
.order-row.is-active {
    background: rgba(31, 48, 72, 0.38);
}

.order-row small {
    display: block;
    margin-top: 0.3rem;
    color: var(--muted);
}

.order-row > i {
    color: var(--muted);
}

.order-service-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #fff;
    background: var(--product-color, var(--cyan));
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.order-empty {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
    color: var(--muted);
    text-align: center;
}

.order-empty i {
    font-size: 2rem;
}

.reseller-page-hero {
    min-height: 380px;
}

.reseller-console {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.reseller-identity {
    position: sticky;
    top: 92px;
    display: grid;
    justify-items: center;
    padding: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(255, 196, 0, 0.2);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(31, 29, 31, 0.96), rgba(12, 19, 31, 0.96));
    box-shadow: var(--shadow);
    text-align: center;
}

.reseller-tier-emblem {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 208, 62, 0.35);
    border-radius: 18px;
    color: #241900;
    background: linear-gradient(145deg, #ffdd6a, #ffb800);
    box-shadow: 0 18px 44px rgba(255, 184, 0, 0.18);
    font-size: 1.8rem;
}

.reseller-identity h2 {
    margin: 1rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
}

.reseller-identity > p {
    margin: 0.25rem 0 1.2rem;
    color: var(--muted);
}

.reseller-discount-seal {
    width: 100%;
    padding: 1rem;
    border-block: 1px solid rgba(255, 196, 0, 0.14);
}

.reseller-discount-seal strong,
.reseller-discount-seal span {
    display: block;
}

.reseller-discount-seal strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    color: var(--amber);
}

.reseller-discount-seal span {
    color: var(--muted);
    font-size: 0.78rem;
}

.reseller-identity .reseller-side-nav {
    width: 100%;
    margin-top: 1.2rem;
    text-align: left;
}

.reseller-identity .reseller-side-nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.reseller-workspace {
    display: grid;
    gap: 1.4rem;
}

.reseller-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 1.5rem;
    min-height: 240px;
    padding: 2rem;
    border-block: 1px solid rgba(255, 196, 0, 0.16);
    background: linear-gradient(110deg, rgba(42, 31, 13, 0.54), rgba(10, 21, 33, 0.24));
}

.reseller-welcome h2 {
    max-width: 680px;
    margin: 1rem 0 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
}

.reseller-welcome h2 strong {
    color: var(--amber);
}

.reseller-welcome p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.reseller-monthly-ring {
    display: grid;
    place-items: center;
    align-content: center;
    width: 160px;
    height: 160px;
    padding: 1rem;
    border-radius: 50%;
    background: radial-gradient(circle, #0e1827 59%, transparent 61%), conic-gradient(var(--amber) calc(var(--usage) * 1%), rgba(75, 86, 106, 0.28) 0);
    text-align: center;
}

.reseller-monthly-ring span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.3rem;
}

.reseller-monthly-ring small {
    max-width: 100px;
    color: var(--muted);
    line-height: 1.3;
}

.reseller-buy-section,
.reseller-orders {
    padding: 1.4rem 0;
    border-top: 1px solid var(--border);
}

.reseller-buy-section .panel-head h2,
.reseller-orders .panel-head h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.reseller-buy-section .panel-head > div,
.reseller-orders .panel-head > div {
    display: grid;
    justify-items: start;
    gap: 0.55rem;
}

.reseller-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.reseller-product {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(12, 21, 34, 0.72);
}

.reseller-product > div > strong,
.reseller-product > div > span {
    display: block;
}

.reseller-product > div > span {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.reseller-product-price {
    text-align: right;
}

.reseller-product-price s {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
}

.reseller-product-price strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    color: var(--amber);
}

.reseller-product-price small {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.68rem;
}

.reseller-product > .primary-button {
    grid-column: 2 / -1;
    width: 100%;
}

.reseller-order-list {
    display: grid;
    margin-top: 1rem;
}

.reseller-order-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto auto 16px;
    align-items: center;
    gap: 1rem;
    min-height: 76px;
    padding: 0.75rem 0.85rem;
    border-top: 1px solid var(--border);
    transition: 0.2s ease;
}

.reseller-order-row:hover {
    background: rgba(31, 48, 72, 0.32);
}

.reseller-order-row small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
}

.reseller-order-row > i {
    color: var(--muted);
}

.modal-backdrop,
.devtools-lock {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(3, 6, 12, 0.82);
    backdrop-filter: blur(10px);
}

.modal-backdrop[hidden],
.devtools-lock[hidden] {
    display: none;
}

.modal-card,
.devtools-lock-card {
    width: min(100%, 720px);
    padding: 1.5rem;
    border: 1px solid rgba(132, 153, 192, 0.14);
    border-radius: 28px;
    background: #0b1321;
    box-shadow: var(--shadow);
}

.devtools-lock-card {
    width: min(100%, 560px);
    text-align: center;
}

.devtools-lock-steps {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.portal-locked .site-shell {
    filter: blur(12px);
    pointer-events: none;
    user-select: none;
}

.modal-close {
    margin-left: auto;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(132, 153, 192, 0.14);
    border-radius: 999px;
    background: transparent;
    color: var(--muted-strong);
}

.ticket-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.2rem 0;
}

.ticket-type-card {
    padding: 1rem;
    border: 1px solid rgba(118, 145, 188, 0.14);
    border-radius: 18px;
    background: rgba(11, 19, 32, 0.94);
    color: var(--text);
}

.ticket-type-card.is-selected {
    border-color: rgba(24, 217, 223, 0.32);
    background: rgba(15, 44, 56, 0.62);
}

.ticket-type-card i,
.notice-icon i {
    margin-bottom: 0.6rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1rem;
}

.product-netflix::after,
.product-crunchyroll::after,
.product-capcut::after,
.product-paramount::after,
.product-deezer::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
}

.product-netflix::after { background: linear-gradient(90deg, #ff3040, #9b2137); }
.product-crunchyroll::after { background: linear-gradient(90deg, #ff9330, #f07712); }
.product-capcut::after { background: linear-gradient(90deg, #4fe7ff, #dd55ff); }
.product-paramount::after { background: linear-gradient(90deg, #377dff, #76a5ff); }
.product-deezer::after { background: linear-gradient(90deg, #a53bff, #ff5d8a); }

.reseller-product::after,
.order-service-icon::after {
    content: none;
    display: none;
}

.tone-amber { border-top: 4px solid #ff8f1f; }
.tone-steel { border-top: 4px solid #d5e2ff; }
.tone-cyan { border-top: 4px solid var(--amber); }

.portal-flash {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(54, 211, 153, 0.32);
    border-radius: 8px;
    background: rgba(20, 82, 68, 0.3);
    color: #c9fff0;
}

.portal-flash-error,
.form-error {
    border-color: rgba(255, 76, 96, 0.35);
    background: rgba(104, 25, 42, 0.28);
    color: #ffc5ce;
}

.form-error {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 76, 96, 0.35);
    border-radius: 8px;
}

.auth-shell {
    min-height: calc(100vh - 150px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 520px);
    align-items: center;
    gap: clamp(3rem, 8vw, 9rem);
    padding: 4rem 0;
}

.auth-copy h1 {
    margin: 1rem 0;
    font-family: var(--display);
    font-size: 4rem;
    line-height: 0.98;
    letter-spacing: 0;
}

.auth-copy h1 span,
.auth-switch a {
    color: var(--cyan);
}

.auth-copy p {
    max-width: 580px;
    color: var(--muted);
    font-size: 1.05rem;
}

.auth-panel {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(12, 20, 34, 0.94);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.auth-panel form {
    display: block;
}

.auth-turnstile {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 65px;
    margin: 0.25rem 0 1rem;
    overflow: hidden;
    color: #ffc5ce;
    font-size: 0.86rem;
}

.auth-turnstile > div,
.auth-turnstile iframe {
    max-width: 100%;
}

.auth-switch {
    margin: 1.2rem 0 0;
    color: var(--muted);
    text-align: center;
}

.recovery-key {
    display: block;
    margin: 1.2rem 0;
    padding: 1rem;
    overflow-wrap: anywhere;
    border: 1px solid rgba(24, 217, 223, 0.35);
    border-radius: 6px;
    background: #07111e;
    color: #a9fbff;
    font-size: 1rem;
    text-align: center;
}

.recovery-notice {
    margin-bottom: 1.2rem;
}

.ticket-item {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 520px;
    overflow-y: auto;
    padding: 0.5rem 0 1rem;
}

.ticket-message {
    max-width: 82%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(8, 15, 27, 0.8);
}

.ticket-message-admin {
    align-self: flex-end;
    border-color: rgba(24, 217, 223, 0.26);
    background: rgba(10, 56, 65, 0.42);
}

.ticket-message > div,
.ticket-thread-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ticket-message p {
    margin: 0.55rem 0 0;
    color: var(--muted);
}

.ticket-message small {
    color: var(--muted-2);
}

.ticket-reply,
.admin-ticket-reply,
.inline-admin-form {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.ticket-reply textarea,
.admin-ticket-reply input {
    flex: 1;
}

.ticket-reply {
    align-items: flex-end;
    padding: 0.75rem;
    border: 1px solid rgba(118, 145, 188, 0.16);
    border-radius: 8px;
    background: rgba(7, 14, 25, 0.88);
}

.ticket-reply textarea {
    width: 100%;
    min-height: 88px;
    max-height: 220px;
    padding: 0.85rem 0.95rem;
    resize: vertical;
    border: 1px solid rgba(118, 145, 188, 0.2);
    border-radius: 6px;
    outline: none;
    color: var(--text);
    background: #091321;
    color-scheme: dark;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticket-reply textarea::placeholder {
    color: #7187aa;
}

.ticket-reply textarea:focus {
    border-color: rgba(24, 217, 223, 0.52);
    box-shadow: 0 0 0 3px rgba(24, 217, 223, 0.1);
}

.ticket-reply .primary-button {
    flex: 0 0 auto;
}

.admin-shell {
    padding-bottom: 5rem;
}

.page-admin .panel-card,
.page-admin .metric-card {
    border-radius: 8px;
}

.admin-tools,
.admin-table-card {
    margin-top: 1.25rem;
}

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

.admin-bulk-head,
.bulk-actions,
.service-switch,
.inline-danger-form {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-bulk-head {
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-switch .ghost-button.is-active {
    border-color: rgba(24, 217, 223, 0.38);
    background: rgba(20, 34, 52, 0.96);
    color: #a9fbff;
}

.compact-input {
    width: 110px;
    min-height: 44px;
    padding: 0 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #091321;
    color: var(--text);
}

.admin-reseller-form {
    flex-wrap: wrap;
}

.icon-button-danger {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 92, 112, 0.28);
    border-radius: 6px;
    background: rgba(80, 18, 31, 0.32);
    color: #ff91a2;
}

.generated-keys > div:last-child {
    width: 100%;
}

.generated-keys textarea {
    width: 100%;
    min-height: 120px;
    margin-top: 0.7rem;
    padding: 0.8rem;
    border: 1px solid rgba(24, 217, 223, 0.28);
    border-radius: 6px;
    background: #07111e;
    color: #a9fbff;
    font-family: Consolas, monospace;
    resize: vertical;
}

.invite-redeem-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
    margin: 1.25rem 0;
}

select {
    min-height: 44px;
    padding: 0 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #091321;
    color: var(--text);
}

.service-route-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    text-align: left;
    white-space: nowrap;
}

.admin-ticket-list {
    display: grid;
    gap: 0.75rem;
}

.admin-ticket {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(8, 15, 27, 0.65);
}

.admin-ticket h3,
.admin-ticket p {
    margin: 0.25rem 0;
}

.admin-ticket p {
    color: var(--muted);
}

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

.admin-tickets-hero,
.admin-ticket-detail-head,
.admin-ticket-toolbar,
.admin-ticket-row-top,
.admin-ticket-row-meta,
.admin-ticket-message-head,
.admin-ticket-compose > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-ticket-summary {
    display: flex;
    gap: 0.65rem;
}

.admin-ticket-summary span {
    min-width: 104px;
    padding: 0.7rem 0.9rem;
    border-left: 2px solid rgba(24, 217, 223, 0.55);
    color: var(--muted);
}

.admin-ticket-summary strong {
    display: block;
    color: var(--text);
    font-size: 1.25rem;
}

.admin-ticket-toolbar {
    margin: 1.25rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-ticket-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(8, 15, 27, 0.72);
}

.admin-ticket-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    border-radius: 4px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.admin-ticket-tab span {
    min-width: 24px;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    background: rgba(126, 151, 190, 0.12);
    color: var(--muted-2);
    font-size: 0.72rem;
    text-align: center;
}

.admin-ticket-tab.is-active {
    background: rgba(24, 217, 223, 0.14);
    color: #a9fbff;
}

.admin-ticket-tab.is-active span {
    background: rgba(24, 217, 223, 0.2);
    color: #d8fdff;
}

.admin-ticket-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: min(100%, 520px);
}

.admin-ticket-search > i {
    position: absolute;
    top: 14px;
    left: 1rem;
    color: var(--muted-2);
    pointer-events: none;
}

.admin-ticket-search input {
    flex: 1;
    min-width: 180px;
    min-height: 44px;
    padding: 0.7rem 0.9rem 0.7rem 2.65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(8, 15, 27, 0.82);
}

.admin-ticket-search .icon-button {
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
}

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

.admin-ticket-queue,
.admin-ticket-conversation {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(7, 13, 24, 0.78);
}

.admin-ticket-queue {
    position: sticky;
    top: 1rem;
}

.admin-ticket-queue-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-ticket-queue-head span {
    color: var(--muted-2);
    font-size: 0.74rem;
}

.admin-ticket-rows {
    max-height: calc(100vh - 250px);
    min-height: 420px;
    overflow-y: auto;
}

.admin-ticket-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted-2);
    font-size: 0.75rem;
}

.admin-ticket-pagination .icon-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
    text-decoration: none;
}

.admin-ticket-pagination .icon-button.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.admin-ticket-row {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.admin-ticket-row:hover,
.admin-ticket-row.is-active {
    background: rgba(19, 54, 66, 0.42);
}

.admin-ticket-row.is-active {
    box-shadow: inset 3px 0 0 #18d9df;
}

.admin-ticket-row-top strong,
.admin-ticket-row-subject,
.admin-ticket-row-preview {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-ticket-row-top strong {
    white-space: nowrap;
    color: #cdd9ed;
    font-size: 0.78rem;
}

.admin-ticket-row-subject {
    color: var(--text);
    font-weight: 750;
    white-space: nowrap;
}

.admin-ticket-row-preview {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.admin-ticket-row-meta {
    color: var(--muted-2);
    font-size: 0.7rem;
}

.admin-ticket-row-meta span {
    white-space: nowrap;
}

.admin-ticket-conversation {
    min-height: 640px;
}

.admin-ticket-detail-head {
    align-items: flex-start;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.admin-ticket-detail-head h2 {
    max-width: 760px;
    margin: 0.4rem 0 0;
    overflow-wrap: anywhere;
    font-size: 1.35rem;
}

.admin-ticket-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
}

.admin-ticket-facts > span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-right: 1px solid var(--border);
}

.admin-ticket-facts > span:last-child {
    border-right: 0;
}

.admin-ticket-facts i {
    color: #24c9cf;
}

.admin-ticket-facts small,
.admin-ticket-facts strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-ticket-facts small {
    margin-bottom: 0.18rem;
    color: var(--muted-2);
    font-size: 0.67rem;
    text-transform: uppercase;
}

.admin-ticket-facts strong {
    color: var(--muted);
    font-size: 0.76rem;
}

.admin-ticket-history {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem;
}

.admin-ticket-history-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    color: var(--muted-2);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.admin-ticket-message {
    width: min(86%, 760px);
    padding: 0.95rem 1rem;
    border: 1px solid rgba(118, 145, 188, 0.15);
    border-radius: 7px;
    background: rgba(12, 20, 34, 0.84);
}

.admin-ticket-message-admin {
    align-self: flex-end;
    border-color: rgba(24, 217, 223, 0.25);
    background: rgba(10, 56, 65, 0.38);
}

.admin-ticket-message-head {
    justify-content: flex-start;
}

.admin-ticket-message-head > div {
    min-width: 0;
}

.admin-ticket-message-head strong,
.admin-ticket-message-head small {
    display: block;
}

.admin-ticket-message-head small,
.admin-ticket-message-head time {
    color: var(--muted-2);
    font-size: 0.69rem;
}

.admin-ticket-message-head time {
    margin-left: auto;
    white-space: nowrap;
}

.admin-ticket-avatar {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(118, 145, 188, 0.18);
    border-radius: 50%;
    color: var(--muted);
}

.admin-ticket-message-admin .admin-ticket-avatar {
    border-color: rgba(24, 217, 223, 0.3);
    color: #59e6ea;
}

.admin-ticket-message p {
    margin: 0.8rem 0 0;
    color: #c1cee2;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.admin-ticket-compose {
    display: grid;
    gap: 0.65rem;
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(5, 11, 21, 0.72);
}

.admin-ticket-compose label {
    color: var(--text);
    font-weight: 700;
}

.admin-ticket-compose textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.admin-ticket-compose > div span {
    color: var(--muted-2);
    font-size: 0.74rem;
}

.admin-ticket-empty {
    display: grid;
    min-height: 300px;
    place-items: center;
    align-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}

.admin-ticket-empty i {
    color: rgba(89, 230, 234, 0.55);
    font-size: 1.6rem;
}

.admin-ticket-empty span {
    color: var(--muted-2);
    font-size: 0.82rem;
}

.admin-ticket-detail-empty {
    min-height: 640px;
}

@media (max-width: 1180px) {
    .admin-ticket-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-ticket-search {
        width: 100%;
    }

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

    .admin-ticket-queue {
        position: static;
    }

    .admin-ticket-rows {
        min-height: 0;
        max-height: 420px;
    }
}

@media (max-width: 760px) {
    .admin-tickets-hero,
    .admin-ticket-detail-head,
    .admin-ticket-compose > div {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-ticket-summary {
        width: 100%;
    }

    .admin-ticket-summary span {
        flex: 1;
        min-width: 0;
    }

    .admin-ticket-tabs {
        width: 100%;
    }

    .admin-ticket-tab {
        flex: 1;
        justify-content: center;
    }

    .admin-ticket-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .admin-ticket-search input {
        min-width: 0;
    }

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

    .admin-ticket-facts > span:nth-child(2) {
        border-right: 0;
    }

    .admin-ticket-facts > span:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .admin-ticket-message {
        width: 100%;
    }

    .admin-ticket-message-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-ticket-message-head time {
        flex: 0 0 100%;
        margin: 0 0 0 44px;
    }

    .admin-ticket-row-meta {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.45rem 0.75rem;
    }
}

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

    .admin-ticket-search .ghost-button {
        grid-column: 1 / -1;
    }

    .admin-ticket-tabs {
        overflow-x: auto;
    }
}

@media (max-width: 1220px) {
    .hero-section,
    .dashboard-grid,
    .reseller-dashboard,
    .tickets-shell {
        grid-template-columns: 1fr;
    }

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

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

    .auth-shell {
        grid-template-columns: 1fr 460px;
        gap: 3rem;
    }

    .auth-copy h1 {
        font-size: 3.5rem;
    }

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

    .walkthrough,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .walkthrough-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .walkthrough-toggle {
        grid-column: 1 / -1;
    }

    .shop-product-grid {
        grid-template-columns: 1fr;
    }

    .reseller-console {
        grid-template-columns: 1fr;
    }

    .reseller-identity {
        position: relative;
        top: 0;
    }

    .reseller-identity .reseller-side-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1400px) {
    .page-admin .topbar {
        flex-wrap: wrap;
    }

    .page-admin .topnav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        overflow-x: auto;
        justify-content: center;
    }
}

@media (max-width: 1320px) {
    .topbar {
        flex-wrap: wrap;
    }

    .topnav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        overflow-x: auto;
        justify-content: center;
        scrollbar-width: none;
    }

    .topnav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 860px) {
    .topbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .topnav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .topnav::-webkit-scrollbar {
        display: none;
    }

    .page-admin .topnav {
        justify-content: center;
        overflow-x: visible;
    }

    .page-admin .topnav .topnav-link {
        width: 48px;
        padding: 0.75rem;
        font-size: 0;
    }

    .page-admin .topnav .topnav-link i {
        font-size: 1rem;
    }

    .page-shell {
        width: min(var(--site-width), calc(100% - 28px));
    }

    .hero-section,
    .step-grid,
    .product-grid,
    .stats-grid,
    .split-grid,
    .tier-grid,
    .ticket-type-grid,
    .credential-grid,
    .result-meta-grid {
        grid-template-columns: 1fr;
    }

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

    .inventory-left {
        grid-template-columns: 1fr;
    }

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

    .bank-item,
    .scanner-strip,
    .page-hero,
    .notice-banner,
    .reseller-tier-head,
    .redeem-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .bank-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .bank-download-actions {
        justify-content: flex-start;
    }

    .bank-key-value {
        justify-content: space-between;
    }

    .bank-item-state {
        justify-items: start;
        text-align: left;
    }

    .auth-shell {
        min-height: 0;
        grid-template-columns: 1fr;
        padding: 2.5rem 0;
    }

    .auth-copy h1 {
        font-size: 3rem;
    }

    .ticket-reply,
    .admin-ticket-reply,
    .inline-admin-form,
    .bulk-actions,
    .service-switch {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-form-grid,
    .invite-redeem-form {
        grid-template-columns: 1fr;
    }

    .compact-input {
        width: 100%;
    }

    .shop-price-callout {
        width: 100%;
        justify-items: start;
        padding: 1.2rem 0 0;
        border-top: 1px solid var(--border-strong);
        border-left: 0;
    }

    .shop-price-callout strong {
        font-size: 3.4rem;
    }

    .shop-product {
        grid-template-columns: 1fr;
    }

    .shop-product-buy {
        grid-template-columns: 1fr auto;
        justify-items: start;
        align-items: end;
        padding: 1rem 0 0;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .shop-product-buy > div {
        justify-items: start;
    }

    .shop-buy-form,
    .quantity-picker {
        justify-items: end;
    }

    .checkout-payment-grid,
    .checkout-tx-form {
        grid-template-columns: 1fr;
    }

    .checkout-payment-grid {
        padding-inline: 0;
    }

    .order-row {
        grid-template-columns: 46px minmax(0, 1fr) auto;
    }

    .order-row > strong,
    .order-row > .status-pill {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .order-row > i {
        display: none;
    }

    .reseller-product-grid,
    .reseller-welcome {
        grid-template-columns: 1fr;
    }

    .reseller-monthly-ring {
        width: 140px;
        height: 140px;
    }

    .reseller-order-row {
        grid-template-columns: 46px minmax(0, 1fr) auto;
    }

    .reseller-order-row > .status-pill {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .reseller-order-row > i {
        display: none;
    }

    .hero-section {
        min-height: 0;
        padding-top: 1rem;
    }

    .hero-card-tall {
        min-height: 0;
    }

    .walkthrough-controls {
        grid-template-columns: 1fr;
    }

    .walkthrough-step {
        min-height: 78px;
    }

    .walkthrough-stage {
        min-height: 390px;
    }
}

@media (max-width: 560px) {
    .topbar {
        padding: 0.8rem 0.85rem;
    }

    .brand-mark {
        font-size: 1.2rem;
    }

    .brand-crown {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 0.92rem;
    }

    .auth-topbar-actions {
        width: 100%;
        justify-content: center;
    }

    .page-shell {
        width: min(100% - 20px, var(--site-width));
        padding-top: 1rem;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 3rem;
        letter-spacing: 0;
    }

    .redeem-panel,
    .hero-card,
    .panel-card,
    .product-card,
    .walkthrough,
    .faq-summary {
        padding: 1rem;
    }

    .redeem-input-group {
        min-height: 60px;
        padding: 0 0.8rem;
    }

    .hero-links,
    .result-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .walkthrough-stage {
        min-height: 360px;
    }

    .walkthrough-panel {
        padding: 0.8rem;
    }

    .walkthrough-checks,
    .walkthrough-device-row {
        gap: 0.35rem;
    }

    .walkthrough-checks span,
    .walkthrough-device-row span {
        padding: 0.6rem 0.25rem;
        font-size: 0.65rem;
    }

    .device-selector {
        grid-template-columns: 1fr;
    }

    .shop-product-main {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .shop-product-main .service-mark {
        width: 58px;
        height: 58px;
    }

    .shop-product-buy {
        grid-template-columns: 1fr;
    }

    .shop-product-buy form,
    .shop-product-buy .primary-button {
        width: 100%;
    }

    .checkout-summary,
    .order-history-card {
        padding: 1rem;
    }

    .checkout-summary .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-steps strong {
        font-size: 0.72rem;
    }

    .checkout-steps > div:not(:last-child)::after {
        left: calc(50% + 22px);
        width: calc(100% - 44px);
    }

    .checkout-qr {
        width: 228px;
        height: 228px;
    }

    .checkout-delivered,
    .checkout-review,
    .checkout-auto-detect {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-delivered .primary-button {
        width: 100%;
        margin-left: 0;
    }

    .payment-value strong {
        font-size: 1.55rem;
    }

    .reseller-identity .reseller-side-nav {
        grid-template-columns: 1fr 1fr;
    }

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

    .reseller-product form {
        grid-column: 1 / -1;
    }

    .reseller-product .primary-button {
        width: 100%;
    }

    .shop-product-buy {
        grid-template-columns: 1fr;
    }

    .shop-buy-form,
    .quantity-picker,
    .quantity-control {
        width: 100%;
    }

    .shop-buy-form,
    .quantity-picker {
        justify-items: stretch;
    }

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

    .quantity-control {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .reseller-welcome {
        padding: 1.2rem;
    }
}

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