:root {
    color-scheme: dark;
    --bg: #0a0f1f;
    --panel: #111827;
    --panel-soft: #0f172a;
    --line: #243044;
    --text: #e5eefb;
    --muted: #91a0b8;
    --brand: #16b8a6;
    --brand-strong: #31d2c0;
    --danger: #fb4b6b;
    --ok: #38d978;
    --blue: #60a5fa;
    --warn: #f4b740;
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(22, 184, 166, 0.16), transparent 26%),
        radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.16), transparent 28%),
        linear-gradient(180deg, #07101f 0%, var(--bg) 48%, #060b16 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    min-height: 100vh;
}

h1,
h2,
p {
    margin-top: 0;
}

h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

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

.topbar {
    align-items: center;
    background: rgba(17, 24, 39, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 22px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-size: 18px;
    font-weight: 700;
}

.nav {
    align-items: center;
    display: flex;
    gap: 14px;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.97), rgba(8, 13, 26, 0.98));
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 18px 14px;
    position: sticky;
    top: 0;
}

.sidebar-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: 52px;
    padding: 4px 4px 18px;
}

.brand-mark {
    align-items: center;
    background:
        radial-gradient(circle at 50% 54%, rgba(251, 146, 60, 0.2), transparent 45%),
        linear-gradient(145deg, #050914 0%, #0d1528 64%, #111827 100%);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 10px;
    color: #ffd7a1;
    display: inline-flex;
    font-size: 16px;
    font-weight: 800;
    height: 46px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 46px;
    box-shadow:
        0 0 0 4px rgba(96, 165, 250, 0.05),
        0 0 26px rgba(251, 113, 133, 0.22),
        0 16px 32px rgba(0, 0, 0, 0.34);
}

.brand-mark::before {
    animation: logo-orbit 6.2s linear infinite;
    border: 1px solid rgba(148, 220, 255, 0.22);
    border-radius: 999px;
    content: "";
    height: 36px;
    position: absolute;
    width: 36px;
}

.brand-mark::after {
    animation: logo-shine 3.4s ease-in-out infinite;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    content: "";
    inset: -35%;
    position: absolute;
    transform: translateX(-92%) rotate(18deg);
}

.logo-globe {
    background:
        linear-gradient(rgba(148, 220, 255, 0.16), rgba(148, 220, 255, 0.16)) center / 1px 100% no-repeat,
        linear-gradient(90deg, rgba(148, 220, 255, 0.14), rgba(148, 220, 255, 0.14)) center / 100% 1px no-repeat;
    border: 1px solid rgba(148, 220, 255, 0.18);
    border-radius: 999px;
    inset: 6px;
    position: absolute;
    z-index: 1;
}

.logo-text {
    background: linear-gradient(90deg, #ffc46b 0%, #fb7185 62%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    line-height: 1;
    position: relative;
    text-shadow: 0 0 18px rgba(251, 113, 133, 0.38);
    z-index: 2;
}

.logo-circuit {
    background:
        linear-gradient(90deg, transparent 0 14px, rgba(251, 146, 60, 0.72) 14px 26px, transparent 26px),
        linear-gradient(90deg, transparent 0 23px, rgba(251, 113, 133, 0.7) 23px 36px, transparent 36px);
    height: 2px;
    left: 4px;
    opacity: 0.8;
    position: absolute;
    right: 4px;
    top: 31px;
    z-index: 2;
}

.brand-mark.logo-image {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    height: 48px;
    isolation: auto;
    overflow: visible;
    width: 94px;
}

.brand-mark.logo-image::before,
.brand-mark.logo-image::after {
    display: none;
}

.brand-mark.logo-image img {
    height: 100%;
    inset: 0;
    mix-blend-mode: screen;
    object-fit: contain;
    position: absolute;
    transition: transform 180ms ease;
    width: 100%;
    z-index: 2;
}

.brand-mark.logo-image:hover img {
    transform: scale(1.02);
}

.brand-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.nav-item {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    display: flex;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 12px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon,
.panel-icon,
.status-card-icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.icon {
    background: rgba(148, 163, 184, 0.11);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 7px;
    height: 28px;
    margin-right: 10px;
    width: 28px;
}

.icon svg,
.panel-icon svg,
.status-card-icon svg {
    fill: currentColor;
    height: 16px;
    width: 16px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(22, 184, 166, 0.1);
    border-color: rgba(22, 184, 166, 0.28);
    color: var(--text);
    transform: translateX(2px);
}

.sidebar-footer {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding: 14px 4px 0;
}

.sidebar-logout-form {
    margin: 0;
}

.sidebar-logout-form button {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--text);
    justify-content: center;
    width: 100%;
}

.account-pill {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    padding: 9px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-area {
    min-width: 0;
    padding: 22px;
    width: 100%;
}

.view-section {
    animation: fade-up 260ms ease both;
    display: none;
}

.view-section.active {
    display: block;
}

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

.view-head h1 {
    background: linear-gradient(90deg, var(--text), var(--brand-strong), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.wrap {
    margin: 0 auto;
    max-width: 1180px;
    padding: 22px;
}

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

.panel {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 16px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.table-panel,
.form-panel {
    margin-top: 14px;
}

.panel:hover {
    border-color: #33435c;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

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

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

.stat-label {
    color: var(--muted);
    font-size: 13px;
}

.stat-value {
    background: linear-gradient(90deg, var(--text), #baf7ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 26px;
    font-weight: 700;
    margin-top: 6px;
}

.metric-panel {
    animation: fade-up 360ms ease both;
    min-height: 118px;
    position: relative;
}

.metric-panel::before {
    background: linear-gradient(90deg, var(--brand), var(--blue));
    border-radius: 8px 8px 0 0;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.referral-clean-hero {
    background:
        linear-gradient(118deg, rgba(22, 184, 166, 0.18), transparent 42%),
        linear-gradient(250deg, rgba(96, 165, 250, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(9, 15, 29, 0.98));
    border: 1px solid rgba(148, 220, 255, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(300px, 0.72fr) minmax(360px, 1fr);
    margin-top: 14px;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.referral-clean-hero::before {
    background: linear-gradient(90deg, var(--brand), var(--blue), rgba(255, 102, 122, 0.76));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.referral-clean-hero::after {
    background:
        linear-gradient(90deg, transparent, rgba(49, 210, 192, 0.22), transparent),
        repeating-linear-gradient(90deg, rgba(148, 220, 255, 0.12) 0 1px, transparent 1px 72px);
    bottom: 28px;
    content: "";
    height: 1px;
    left: 24px;
    opacity: 0.82;
    pointer-events: none;
    position: absolute;
    right: 24px;
}

.referral-clean-copy,
.referral-clean-link,
.referral-clean-stats article {
    position: relative;
    z-index: 1;
}

.referral-clean-copy {
    align-content: center;
    display: grid;
}

.referral-clean-copy span,
.referral-clean-link span,
.referral-clean-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.referral-clean-copy strong {
    background: linear-gradient(96deg, #f8fbff, #9ffcf1 42%, #8ec5ff 72%, #ffb3be);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 58px;
    line-height: 1;
    margin-top: 8px;
}

.referral-clean-copy p {
    color: #b8c5d8;
    font-size: 16px;
    line-height: 1.55;
    margin: 12px 0 0;
}

.referral-clean-link {
    align-self: center;
    background: rgba(8, 13, 26, 0.66);
    border: 1px solid rgba(148, 220, 255, 0.18);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.referral-clean-link > div:first-child {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.referral-clean-link > div:first-child strong {
    background: rgba(22, 184, 166, 0.12);
    border: 1px solid rgba(22, 184, 166, 0.24);
    border-radius: 999px;
    color: var(--brand-strong);
    font-size: 12px;
    padding: 5px 9px;
}

.referral-link-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.referral-link-row input {
    background: rgba(4, 10, 22, 0.76);
    border-color: rgba(148, 220, 255, 0.2);
    font-size: 13px;
    min-height: 42px;
}

.referral-copy-button {
    min-height: 42px;
    min-width: 86px;
    white-space: nowrap;
}

.referral-clean-link small {
    color: var(--muted);
    font-size: 12px;
}

.referral-clean-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.referral-clean-stats article {
    align-content: start;
    display: grid;
    gap: 8px;
    min-height: 132px;
    overflow: hidden;
}

.referral-clean-stats article::after {
    background: linear-gradient(90deg, transparent, rgba(49, 210, 192, 0.52), transparent);
    content: "";
    height: 1px;
    left: 14px;
    opacity: 0.72;
    position: absolute;
    right: 14px;
    top: 0;
}

.referral-clean-stats strong {
    background: linear-gradient(90deg, var(--text), var(--brand-strong), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 30px;
    line-height: 1;
}

.referral-table-panel {
    background:
        linear-gradient(135deg, rgba(22, 184, 166, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 16, 30, 0.96));
}

.referral-table-panel table th,
.referral-table-panel table td {
    height: 52px;
}

.panel-icon {
    background: rgba(22, 184, 166, 0.12);
    border: 1px solid rgba(22, 184, 166, 0.22);
    border-radius: 8px;
    color: var(--brand-strong);
    height: 34px;
    margin-bottom: 12px;
    width: 34px;
}

.status-filter-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 18px;
}

.filter-kicker {
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.filter-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-title h2 {
    margin-bottom: 0;
}

.filter-active-pill {
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 999px;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    text-transform: uppercase;
}

.cleanup-form {
    margin: 0;
}

.status-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 10px;
}

.status-card {
    --accent: var(--brand);
    animation: fade-up 420ms ease both;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(12, 18, 32, 0.98));
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    color: var(--text);
    display: grid;
    gap: 7px;
    min-height: 82px;
    padding: 13px 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.status-card:hover,
.status-card.active {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.status-card.active {
    background:
        linear-gradient(180deg, rgba(22, 184, 166, 0.08), rgba(12, 18, 32, 0.98));
}

.status-card-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.status-card-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.selected-chip {
    background: rgba(22, 184, 166, 0.12);
    border: 1px solid rgba(22, 184, 166, 0.24);
    border-radius: 999px;
    color: var(--brand-strong);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 7px;
    text-transform: uppercase;
}

.status-card-icon {
    background: color-mix(in srgb, var(--accent), transparent 84%);
    border: 1px solid color-mix(in srgb, var(--accent), transparent 72%);
    border-radius: 8px;
    color: var(--accent);
    height: 30px;
    width: 30px;
}

.status-card .status-card-icon {
    color: var(--accent);
    text-transform: none;
}

.status-card strong {
    color: var(--text);
    font-size: 25px;
}

.status-card.all {
    --accent: var(--brand);
}

.status-card.online {
    --accent: var(--ok);
}

.status-card.checking {
    --accent: var(--blue);
}

.status-card.not-eligible {
    --accent: var(--danger);
}

.status-card.offline {
    --accent: var(--warn);
}

.status-card.other {
    --accent: #94a3b8;
}

.list-count {
    align-items: center;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    min-height: 30px;
    padding: 5px 10px;
    white-space: nowrap;
}

.form {
    display: grid;
    gap: 12px;
}

label {
    color: var(--muted);
    display: grid;
    gap: 6px;
    font-size: 13px;
}

input,
select,
textarea {
    background: #0b1220;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    padding: 10px 11px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(22, 184, 166, 0.18);
    outline: 0;
}

select {
    min-height: 41px;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.form-row {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(160px, 260px);
}

.form-row.split {
    grid-template-columns: repeat(2, minmax(150px, 240px));
}

.add-layout {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(520px, 1.1fr) minmax(300px, 0.9fr);
    margin-top: 14px;
}

.add-proxy-panel,
.add-proxy-side {
    overflow: hidden;
    position: relative;
}

.add-proxy-panel::after {
    animation: float-soft 5s ease-in-out infinite;
    background: radial-gradient(circle, rgba(22, 184, 166, 0.14), transparent 60%);
    content: "";
    height: 260px;
    pointer-events: none;
    position: absolute;
    right: -100px;
    top: -110px;
    width: 260px;
}

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

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

.protocol-option {
    color: var(--text);
    cursor: pointer;
    display: block;
    position: relative;
}

.protocol-option input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.protocol-option-body {
    align-items: center;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 74px;
    padding: 13px;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.protocol-option:hover .protocol-option-body,
.protocol-option input:checked + .protocol-option-body {
    background: rgba(22, 184, 166, 0.11);
    border-color: rgba(22, 184, 166, 0.34);
    box-shadow: 0 10px 22px rgba(22, 184, 166, 0.11);
    transform: translateY(-1px);
}

.protocol-mark {
    align-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(22, 184, 166, 0.95), rgba(96, 165, 250, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(22, 184, 166, 0.18);
    color: #04111f;
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    transition: box-shadow 160ms ease, transform 160ms ease;
    width: 42px;
}

.protocol-mark svg {
    fill: currentColor;
    height: 20px;
    width: 20px;
}

.protocol-option input:checked + .protocol-option-body .protocol-mark {
    box-shadow: 0 0 0 4px rgba(22, 184, 166, 0.12), 0 14px 24px rgba(22, 184, 166, 0.24);
    transform: scale(1.03);
}

.protocol-option strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.protocol-option small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.proxy-input-label {
    margin-top: 2px;
}

.proxy-textarea {
    font-family: Consolas, "Courier New", monospace;
    min-height: 290px;
    line-height: 1.5;
}

.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.submit-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.add-proxy-side {
    display: grid;
    gap: 12px;
}

.add-proxy-side::after {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), transparent 58%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.add-side-head {
    align-items: center;
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

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

.add-summary-row,
.format-box,
.quality-list {
    position: relative;
    z-index: 1;
}

.add-summary-row {
    align-items: center;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 14px;
}

.add-summary-row span,
.format-box span {
    color: var(--muted);
    font-size: 13px;
}

.add-summary-row strong {
    color: var(--text);
    font-size: 20px;
}

.format-box {
    background: rgba(22, 184, 166, 0.09);
    border: 1px solid rgba(22, 184, 166, 0.2);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.format-box code {
    color: var(--brand-strong);
    font-size: 14px;
    white-space: normal;
    word-break: break-word;
}

.quality-list {
    display: grid;
    gap: 9px;
}

.quality-list div {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    gap: 9px;
}

.quality-dot {
    border-radius: 999px;
    display: inline-flex;
    height: 9px;
    width: 9px;
}

.quality-dot.ok {
    background: var(--ok);
}

.quality-dot.blue {
    background: var(--blue);
}

.quality-dot.warn {
    background: var(--warn);
}

.payout-layout {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(520px, 760px) minmax(280px, 1fr);
    margin-top: 14px;
}

.payout-panel {
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

.payout-panel::after {
    background: radial-gradient(circle, rgba(22, 184, 166, 0.16), transparent 58%);
    content: "";
    height: 240px;
    position: absolute;
    right: -70px;
    top: -90px;
    width: 240px;
    pointer-events: none;
}

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

.payout-form .form-row {
    grid-template-columns: minmax(220px, 360px);
}

.payout-side {
    display: grid;
    gap: 12px;
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

.payout-side::after {
    animation: float-soft 5s ease-in-out infinite;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.14), transparent 58%);
    content: "";
    height: 220px;
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
}

.payout-side-head {
    align-items: center;
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.payout-side-head h2 {
    margin-bottom: 4px;
}

.payout-side-head p {
    margin-bottom: 0;
}

.payout-summary-item {
    align-items: center;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 14px;
    position: relative;
    z-index: 1;
}

.payout-summary-item span {
    color: var(--muted);
    font-size: 13px;
}

.payout-summary-item strong {
    color: var(--text);
    font-size: 14px;
}

.payout-status {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    padding: 12px 14px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    z-index: 1;
}

.payout-status.ready {
    background: rgba(56, 217, 120, 0.12);
    border: 1px solid rgba(56, 217, 120, 0.24);
    color: var(--ok);
}

.payout-status.locked {
    background: rgba(244, 183, 64, 0.12);
    border: 1px solid rgba(244, 183, 64, 0.24);
    color: var(--warn);
}

.history-panel {
    margin-top: 14px;
    overflow: hidden;
    position: relative;
}

.history-panel::before {
    background: linear-gradient(90deg, rgba(22, 184, 166, 0.4), rgba(96, 165, 250, 0.32), transparent);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.mini-table {
    min-width: 660px;
}

.mini-table th:first-child,
.mini-table td:first-child {
    width: auto;
}

.status-pill {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #cbd5e1;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    text-transform: uppercase;
}

.status-pill.pending,
.status-pill.processing {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.24);
    color: var(--blue);
}

.status-pill.paid,
.status-pill.approved,
.status-pill.completed,
.status-pill.active,
.status-pill.success {
    background: rgba(56, 217, 120, 0.13);
    border-color: rgba(56, 217, 120, 0.24);
    color: var(--ok);
}

.status-pill.rejected,
.status-pill.cancelled,
.status-pill.failed,
.status-pill.banned,
.status-pill.blocked {
    background: rgba(251, 75, 107, 0.13);
    border-color: rgba(251, 75, 107, 0.24);
    color: var(--danger);
}

.minimum-progress {
    background:
        linear-gradient(180deg, rgba(22, 184, 166, 0.1), rgba(96, 165, 250, 0.07));
    border: 1px solid rgba(22, 184, 166, 0.22);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    overflow: hidden;
    padding: 14px;
    position: relative;
}

.minimum-progress::before {
    animation: glow-sweep 3.2s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-100%);
}

.minimum-progress.ready {
    border-color: rgba(56, 217, 120, 0.35);
}

.minimum-progress.locked {
    border-color: rgba(244, 183, 64, 0.28);
}

.minimum-progress-head,
.withdraw-amount {
    align-items: center;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.minimum-progress-head strong,
.withdraw-amount strong {
    color: var(--text);
    font-size: 18px;
}

.minimum-progress-head span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.progress-percent {
    background: rgba(22, 184, 166, 0.12);
    border: 1px solid rgba(22, 184, 166, 0.24);
    border-radius: 999px;
    color: var(--brand-strong);
    font-size: 18px;
    font-weight: 800;
    padding: 7px 11px;
}

.progress-track {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    height: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.progress-fill {
    animation: progress-enter 900ms ease both;
    background: linear-gradient(90deg, var(--brand), var(--blue), var(--brand-strong));
    border-radius: inherit;
    box-shadow: 0 0 22px rgba(22, 184, 166, 0.28);
    height: 100%;
    overflow: hidden;
    position: relative;
    width: var(--progress);
}

.progress-fill::after {
    animation: progress-shine 1.9s linear infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-100%);
}

.progress-caption {
    color: var(--warn);
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.minimum-progress.ready .progress-caption {
    color: var(--ok);
}

button,
.button {
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    color: #04111f;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    padding: 10px 14px;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button svg,
.button svg {
    fill: currentColor;
    flex: 0 0 auto;
    height: 16px;
    width: 16px;
}

.button strong,
button strong {
    align-items: center;
    background: rgba(3, 17, 31, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    justify-content: center;
    min-width: 24px;
    padding: 3px 7px;
}

button:hover,
.button:hover {
    background: var(--brand-strong);
    box-shadow: 0 8px 18px rgba(22, 184, 166, 0.25);
    transform: translateY(-1px);
}

button:disabled,
.button:disabled {
    background: rgba(148, 163, 184, 0.14);
    box-shadow: none;
    color: var(--muted);
    cursor: not-allowed;
    transform: none;
}

.button.small {
    min-height: 34px;
    padding: 7px 10px;
}

.button.ghost {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text);
}

.button.ghost:hover {
    background: rgba(49, 210, 192, 0.12);
    border-color: rgba(49, 210, 192, 0.26);
}

.danger-soft {
    background: rgba(251, 75, 107, 0.14);
    border: 1px solid rgba(251, 75, 107, 0.28);
    color: #ffd7df;
    gap: 8px;
}

.danger-soft:hover {
    background: rgba(251, 75, 107, 0.23);
    box-shadow: 0 8px 18px rgba(251, 75, 107, 0.18);
}

.danger-soft:disabled {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.action-cell {
    text-align: center;
    width: 92px;
}

.action-cell form {
    display: inline-flex;
    margin: 0;
}

.note-cell {
    min-width: 220px;
}

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

.note-input {
    background: rgba(11, 18, 32, 0.88);
    min-height: 34px;
    padding: 7px 9px;
}

.note-action {
    background: rgba(22, 184, 166, 0.12);
    border: 1px solid rgba(22, 184, 166, 0.24);
    color: var(--brand-strong);
    flex: 0 0 auto;
}

.note-action:hover {
    background: rgba(22, 184, 166, 0.2);
    box-shadow: 0 8px 18px rgba(22, 184, 166, 0.16);
}

.icon-button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.icon-button svg {
    fill: currentColor;
    height: 16px;
    width: 16px;
}

.danger-action {
    background: rgba(251, 75, 107, 0.13);
    border: 1px solid rgba(251, 75, 107, 0.24);
    color: var(--danger);
}

.danger-action:hover {
    background: rgba(251, 75, 107, 0.22);
    box-shadow: 0 8px 18px rgba(251, 75, 107, 0.18);
    color: #ffd7df;
}

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

.flash {
    border-radius: 6px;
    margin-bottom: 14px;
    padding: 11px 13px;
}

.flash.success {
    background: rgba(56, 217, 120, 0.12);
    color: var(--ok);
}

.flash.error {
    background: rgba(251, 75, 107, 0.12);
    color: var(--danger);
}

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

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

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

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

th:first-child,
td:first-child {
    width: 76px;
}

tbody tr {
    transition: background 160ms ease, box-shadow 160ms ease;
}

tbody tr:hover {
    background: rgba(148, 163, 184, 0.07);
}

.status-row[hidden] {
    display: none;
}

.status-row td:first-child {
    position: relative;
}

.status-row td:first-child::before {
    background: transparent;
    border-radius: 999px;
    bottom: 9px;
    content: "";
    left: 0;
    position: absolute;
    top: 9px;
    width: 4px;
}

.status-row.online td:first-child::before {
    background: var(--ok);
}

.status-row.checking td:first-child::before {
    background: var(--blue);
}

.status-row.not-eligible td:first-child::before {
    background: var(--danger);
}

.status-row.offline td:first-child::before {
    background: var(--warn);
}

.badge {
    background: rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.badge.online {
    background: rgba(56, 217, 120, 0.13);
    color: var(--ok);
}

.badge.offline {
    background: rgba(244, 183, 64, 0.14);
    color: var(--warn);
}

.badge.not,
.badge.not-eligible,
.badge.ineligible,
.badge.add-failed {
    background: rgba(251, 75, 107, 0.13);
    color: var(--danger);
}

.badge.submitted,
.badge.checking,
.badge.pending {
    background: rgba(96, 165, 250, 0.14);
    color: var(--blue);
}

.badge.checking {
    animation: soft-pulse 1.9s ease-in-out infinite;
}

.badge.other {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.auth {
    margin: 60px auto;
    max-width: 420px;
}

body.auth-body {
    --landing-cyan: #31d2c0;
    --landing-blue: #60a5fa;
    --landing-coral: #ff667a;
    --landing-amber: #f7c948;
    --landing-lime: #8ee66b;
    background:
        linear-gradient(130deg, rgba(49, 210, 192, 0.12), transparent 34%),
        linear-gradient(240deg, rgba(255, 102, 122, 0.1), transparent 32%),
        linear-gradient(180deg, #060b16, #0a0f1f 52%, #050914);
    min-height: 100vh;
}

.auth-shell {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    margin: 0;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    width: 100%;
}

.auth-visual,
.auth-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

.auth-visual {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.86), rgba(8, 13, 26, 0.92)),
        linear-gradient(105deg, rgba(49, 210, 192, 0.14), transparent 42%, rgba(255, 102, 122, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 34px 42px;
}

.auth-visual::before {
    background: url("/assets/brand/earngb-logo.png") center / min(760px, 76vw) auto no-repeat;
    content: "";
    inset: 0;
    mix-blend-mode: screen;
    opacity: 0.22;
    position: absolute;
}

.auth-visual::after {
    background:
        linear-gradient(90deg, transparent, rgba(49, 210, 192, 0.24), transparent) center 58% / 100% 1px no-repeat,
        repeating-linear-gradient(90deg, rgba(148, 220, 255, 0.05) 0 1px, transparent 1px 54px);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.auth-visual.create {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.86), rgba(8, 13, 26, 0.92)),
        linear-gradient(105deg, rgba(247, 201, 72, 0.12), transparent 42%, rgba(96, 165, 250, 0.1));
}

.auth-brand,
.auth-visual-copy,
.auth-mini-grid,
.auth-card > * {
    position: relative;
    z-index: 1;
}

.auth-brand {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: 18px;
    font-weight: 800;
    gap: 12px;
    width: fit-content;
}

.auth-brand-logo {
    display: inline-flex;
    height: 44px;
    width: 86px;
}

.auth-brand-logo img {
    height: 100%;
    mix-blend-mode: screen;
    object-fit: contain;
    width: 100%;
}

.auth-visual-copy {
    max-width: 620px;
}

.auth-visual-copy h1 {
    background: linear-gradient(100deg, #f7fbff, #86fff0 42%, #ffb3be);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 58px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.auth-visual-copy p {
    color: #b8c5d8;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 560px;
}

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

.auth-mini-grid div {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(15, 23, 42, 0.58)),
        linear-gradient(90deg, rgba(49, 210, 192, 0.12), rgba(255, 102, 122, 0.07));
    border: 1px solid rgba(148, 220, 255, 0.14);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 14px;
}

.auth-mini-grid span,
.auth-subtitle,
.auth-switch {
    color: var(--muted);
}

.auth-mini-grid strong {
    color: var(--text);
}

.auth-card {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 16, 30, 0.96)),
        linear-gradient(135deg, rgba(49, 210, 192, 0.08), transparent 44%, rgba(255, 102, 122, 0.06));
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 28px;
}

.auth-card::before {
    background: linear-gradient(90deg, rgba(49, 210, 192, 0.82), rgba(96, 165, 250, 0.72), rgba(255, 102, 122, 0.48));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.auth-card h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.auth-subtitle {
    margin-bottom: 20px;
}

.auth-form {
    gap: 14px;
}

.auth-form input {
    background: rgba(7, 14, 28, 0.86);
    min-height: 44px;
}

.auth-form button {
    background: linear-gradient(105deg, #28dfc7, #60a5fa 52%, #ff667a);
    box-shadow: 0 14px 30px rgba(22, 184, 166, 0.18);
    min-height: 44px;
    margin-top: 4px;
}

.auth-switch {
    font-size: 14px;
    margin: 18px 0 0;
}

.auth .auth-home-link,
.auth-home-link {
    color: var(--brand-strong);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

body.admin-auth-body,
body.admin-body {
    background:
        linear-gradient(130deg, rgba(49, 210, 192, 0.12), transparent 34%),
        linear-gradient(240deg, rgba(255, 102, 122, 0.08), transparent 32%),
        linear-gradient(180deg, #060b16, #0a0f1f 52%, #050914);
    min-height: 100vh;
}

.admin-auth-card {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 16, 30, 0.96)),
        linear-gradient(135deg, rgba(49, 210, 192, 0.08), transparent 44%, rgba(255, 102, 122, 0.06));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    margin: 70px auto;
    max-width: 460px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.admin-auth-card::before {
    background: linear-gradient(90deg, rgba(49, 210, 192, 0.82), rgba(96, 165, 250, 0.72), rgba(255, 102, 122, 0.48));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.admin-auth-brand,
.admin-brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.admin-auth-brand {
    margin-bottom: 22px;
}

.admin-auth-brand span,
.admin-brand span {
    display: inline-flex;
    height: 42px;
    width: 82px;
}

.admin-auth-brand img,
.admin-brand img {
    height: 100%;
    mix-blend-mode: screen;
    object-fit: contain;
    width: 100%;
}

.admin-auth-form {
    gap: 14px;
}

.admin-auth-form input,
.admin-inline-form select {
    background: rgba(7, 14, 28, 0.86);
}

.admin-auth-switch {
    margin: 18px 0 0;
}

.admin-body {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}

.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(8, 13, 26, 0.98));
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 100vh;
    padding: 20px 14px;
    position: sticky;
    top: 0;
}

.admin-brand {
    min-height: 54px;
    padding: 2px 4px 12px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a,
.admin-logout {
    align-items: center;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 12px;
}

.admin-nav a:hover,
.admin-logout:hover {
    background: rgba(49, 210, 192, 0.1);
    border-color: rgba(49, 210, 192, 0.24);
}

.admin-nav a.active,
.admin-nav a[aria-current="page"] {
    background:
        linear-gradient(90deg, rgba(49, 210, 192, 0.2), rgba(96, 165, 250, 0.12)),
        rgba(15, 23, 42, 0.82);
    border-color: rgba(49, 210, 192, 0.38);
    box-shadow: 0 10px 22px rgba(22, 184, 166, 0.12);
    color: #ecfeff;
}

.admin-sidebar form {
    margin-top: auto;
}

.admin-logout {
    color: #ffd7df;
    width: 100%;
}

.admin-main {
    align-content: start;
    display: grid;
    gap: 16px;
    grid-auto-rows: max-content;
    min-height: 100vh;
    padding: 24px;
}

.admin-head {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    min-height: 0;
}

.admin-head h1 {
    background: linear-gradient(90deg, #f7fbff, #9ffcf1 44%, #ffb3be);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 32px;
    margin-bottom: 8px;
}

.admin-metrics {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-metrics article,
.admin-panel {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(10, 16, 30, 0.94)),
        linear-gradient(135deg, rgba(49, 210, 192, 0.08), transparent 46%, rgba(255, 102, 122, 0.05));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.admin-metrics article {
    align-content: space-between;
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 14px;
}

.admin-metrics span,
.admin-status-list span,
.admin-config-list span {
    color: var(--muted);
    font-size: 13px;
}

.admin-metrics strong {
    color: var(--text);
    font-size: 22px;
}

.admin-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
}

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

.admin-panel {
    padding: 16px;
}

.admin-panel .table-wrap {
    max-width: 100%;
}

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

.admin-detail-title {
    display: grid;
    gap: 4px;
    text-align: right;
}

.admin-detail-title span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-detail-title strong {
    color: var(--text);
    font-size: 18px;
}

.admin-detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 0.8fr) minmax(280px, 0.9fr);
}

.admin-status-list,
.admin-config-list {
    display: grid;
    gap: 10px;
}

.admin-status-list div,
.admin-config-list div {
    align-items: center;
    background: rgba(148, 163, 184, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 11px 12px;
}

.admin-settings-form {
    background:
        linear-gradient(135deg, rgba(22, 184, 166, 0.09), transparent 48%),
        rgba(15, 23, 42, 0.54);
    border: 1px solid rgba(49, 210, 192, 0.16);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
}

.admin-settings-form textarea {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    min-height: 108px;
}

.admin-settings-form .muted {
    margin: -2px 0 0;
}

.admin-settings-form button {
    justify-self: start;
}

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

.connection-config-list strong {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    max-width: 62%;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.secret-mask {
    color: #7dd3fc;
    text-shadow: 0 0 18px rgba(96, 165, 250, 0.24);
}

.admin-filter-form {
    align-items: end;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px)) auto auto;
    margin-bottom: 14px;
    padding: 12px;
}

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

.admin-profile-form .wide,
.admin-profile-form button {
    grid-column: 1 / -1;
}

.admin-profile-form textarea {
    min-height: 112px;
}

.risk-pill {
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.risk-pill.low {
    background: rgba(56, 217, 120, 0.13);
    border-color: rgba(56, 217, 120, 0.24);
    color: var(--ok);
}

.risk-pill.medium {
    background: rgba(244, 183, 64, 0.14);
    border-color: rgba(244, 183, 64, 0.24);
    color: var(--warn);
}

.risk-pill.high {
    background: rgba(251, 75, 107, 0.13);
    border-color: rgba(251, 75, 107, 0.24);
    color: var(--danger);
}

.health-pill {
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    min-height: 32px;
    padding: 6px 11px;
    text-transform: uppercase;
    white-space: nowrap;
}

.health-pill.ok,
.cron-health-panel.ok {
    border-color: rgba(56, 217, 120, 0.24);
}

.health-pill.ok {
    background: rgba(56, 217, 120, 0.13);
    color: var(--ok);
}

.health-pill.warn,
.cron-health-panel.warn {
    border-color: rgba(244, 183, 64, 0.26);
}

.health-pill.warn {
    background: rgba(244, 183, 64, 0.14);
    color: var(--warn);
}

.health-pill.bad,
.cron-health-panel.bad {
    border-color: rgba(251, 75, 107, 0.28);
}

.health-pill.bad {
    background: rgba(251, 75, 107, 0.14);
    color: var(--danger);
}

.health-pill.unknown {
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
}

.cron-health-panel {
    position: relative;
}

.cron-health-panel::before {
    background: linear-gradient(90deg, rgba(83, 234, 219, 0.75), rgba(110, 168, 255, 0.56));
    border-radius: 8px 8px 0 0;
    content: "";
    height: 3px;
    left: 0;
    opacity: 0.74;
    position: absolute;
    right: 0;
    top: 0;
}

.cron-health-panel.warn::before {
    background: linear-gradient(90deg, rgba(244, 183, 64, 0.92), rgba(110, 168, 255, 0.48));
}

.cron-health-panel.bad::before {
    background: linear-gradient(90deg, rgba(251, 75, 107, 0.92), rgba(244, 183, 64, 0.62));
}

.cron-health-message {
    background: rgba(6, 12, 24, 0.45);
    border: 1px solid rgba(148, 220, 255, 0.1);
    border-radius: 8px;
    margin: 12px 0 0;
    padding: 10px 12px;
}

.admin-config-list.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.signal-item {
    background: rgba(148, 163, 184, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    display: grid;
    gap: 5px;
    padding: 12px;
}

.signal-item span {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.signal-item strong {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.signal-item.low {
    border-color: rgba(56, 217, 120, 0.18);
}

.signal-item.medium {
    border-color: rgba(244, 183, 64, 0.24);
    background: rgba(244, 183, 64, 0.07);
}

.signal-item.high {
    border-color: rgba(251, 75, 107, 0.26);
    background: rgba(251, 75, 107, 0.08);
}

.pagination-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}

.pagination-bar a,
.pagination-bar span {
    align-items: center;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 8px;
    color: var(--text);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    min-height: 34px;
    padding: 7px 11px;
}

.pagination-bar a:hover,
.pagination-bar .active {
    background: rgba(49, 210, 192, 0.14);
    border-color: rgba(49, 210, 192, 0.3);
    color: #ecfeff;
}

.pagination-bar .disabled {
    color: var(--muted);
    opacity: 0.7;
}

.admin-ban-form {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0;
    min-width: 250px;
}

.admin-ban-form.compact {
    min-width: 96px;
}

.admin-ban-form input {
    min-height: 36px;
    padding: 7px 9px;
}

.admin-ban-form button {
    min-height: 36px;
    padding: 7px 10px;
    white-space: nowrap;
}

.admin-user-status {
    display: grid;
    gap: 6px;
    min-width: 104px;
}

.admin-user-status small {
    color: var(--muted);
    line-height: 1.35;
    max-width: 180px;
}

.admin-inline-form {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0;
    min-width: 220px;
}

.admin-inline-form select {
    min-height: 36px;
    padding: 7px 9px;
}

.admin-inline-form button {
    min-height: 36px;
    padding: 7px 10px;
}

.payout-review-form {
    align-items: stretch;
    flex-direction: column;
    min-width: 260px;
}

.payout-review-form input {
    min-height: 34px;
    padding: 7px 9px;
}

.payout-review-form .review-row {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.settings-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.faucetpay-panel {
    grid-column: 1 / -1;
}

.faucetpay-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.admin-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.password-panel,
.rule-panel {
    overflow: hidden;
    position: relative;
}

.password-panel::after {
    animation: float-soft 5s ease-in-out infinite;
    background: radial-gradient(circle, rgba(22, 184, 166, 0.14), transparent 60%);
    content: "";
    height: 210px;
    pointer-events: none;
    position: absolute;
    right: -88px;
    top: -88px;
    width: 210px;
}

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

.settings-list {
    display: grid;
    gap: 12px;
}

.settings-list div,
.contact-card {
    align-items: center;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 14px;
}

.contact-card.contact-link {
    color: var(--text);
    gap: 12px;
    justify-content: flex-start;
    min-height: 74px;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contact-card.contact-link:hover {
    background: rgba(22, 184, 166, 0.1);
    border-color: rgba(22, 184, 166, 0.28);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.contact-card .panel-icon {
    color: var(--brand-strong);
    margin-bottom: 0;
}

.contact-card > span:last-child {
    display: grid;
    gap: 4px;
}

.settings-list span,
.contact-card span {
    color: var(--muted);
    font-size: 13px;
}

.settings-list strong,
.contact-card strong {
    color: var(--text);
    font-size: 14px;
}

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

.rule-panel {
    min-height: 176px;
}

.rule-panel::before {
    background: linear-gradient(180deg, rgba(22, 184, 166, 0.16), transparent 72%);
    content: "";
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 180ms ease;
}

.rule-panel:hover::before {
    opacity: 1;
}

.rule-panel h2,
.rule-panel p,
.rule-panel .panel-icon {
    position: relative;
    z-index: 1;
}

.rule-panel p {
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 0;
}

body.landing-body {
    --landing-cyan: #31d2c0;
    --landing-blue: #60a5fa;
    --landing-coral: #ff667a;
    --landing-amber: #f7c948;
    --landing-lime: #8ee66b;
    background:
        linear-gradient(125deg, rgba(255, 102, 122, 0.12) 0%, transparent 31%),
        linear-gradient(245deg, rgba(247, 201, 72, 0.1) 0%, transparent 29%),
        linear-gradient(180deg, rgba(5, 10, 22, 0.92), rgba(7, 16, 31, 0.98)),
        linear-gradient(90deg, rgba(49, 210, 192, 0.1), transparent 42%, rgba(96, 165, 250, 0.1)),
        #050914;
    overflow-x: hidden;
    position: relative;
}

.landing-body svg {
    fill: currentColor;
}

body.landing-body::before,
body.landing-body::after {
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

body.landing-body::before {
    background:
        linear-gradient(rgba(49, 210, 192, 0.05) 1px, transparent 1px) 0 0 / 72px 72px,
        linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px) 0 0 / 72px 72px,
        linear-gradient(135deg, transparent 0 48%, rgba(255, 102, 122, 0.04) 49%, transparent 52%) 0 0 / 180px 180px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12) 62%, transparent);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12) 62%, transparent);
}

body.landing-body::after {
    background:
        linear-gradient(90deg, transparent 0 16%, rgba(49, 210, 192, 0.055) 20%, transparent 27% 64%, rgba(255, 102, 122, 0.052) 70%, transparent 78%),
        repeating-linear-gradient(180deg, transparent 0 28px, rgba(148, 220, 255, 0.018) 29px, transparent 30px);
    mix-blend-mode: screen;
    opacity: 0.32;
}

.landing-nav,
.landing-body main {
    position: relative;
    z-index: 1;
}

.landing-nav {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(49, 210, 192, 0.08), transparent 34%, rgba(255, 102, 122, 0.055)),
        rgba(5, 10, 22, 0.8);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 74px;
    padding: 13px 28px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.landing-nav::after {
    background: linear-gradient(90deg, transparent, var(--landing-cyan), var(--landing-blue), var(--landing-coral), transparent);
    bottom: -1px;
    content: "";
    height: 1px;
    left: 0;
    opacity: 0.62;
    position: absolute;
    width: 100%;
}

.landing-brand {
    align-items: center;
    display: inline-flex;
    font-size: 19px;
    font-weight: 800;
    gap: 12px;
}

.landing-brand > span:last-child {
    background: linear-gradient(90deg, #f8fbff, #9ffcf1 46%, #ffb3be);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-brand-logo {
    display: inline-flex;
    height: 42px;
    position: relative;
    width: 82px;
}

.landing-brand-logo::after {
    background: conic-gradient(from 0deg, rgba(49, 210, 192, 0), rgba(49, 210, 192, 0.5), rgba(247, 201, 72, 0.34), rgba(96, 165, 250, 0.48), rgba(255, 102, 122, 0.46), rgba(49, 210, 192, 0));
    border-radius: 999px;
    content: "";
    filter: blur(15px);
    inset: 6px 8px;
    opacity: 0.58;
    position: absolute;
}

.landing-brand-logo img {
    height: 100%;
    mix-blend-mode: screen;
    object-fit: contain;
    position: relative;
    width: 100%;
    z-index: 1;
}

.landing-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.landing-link {
    color: #c7d2e4;
    font-weight: 700;
    transition: color 160ms ease;
}

.landing-link:hover {
    color: var(--brand-strong);
}

.landing-button {
    align-items: center;
    background: linear-gradient(105deg, #28dfc7, #60a5fa 42%, #ff667a 74%, #f7c948);
    background-size: 190% 100%;
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 7px;
    box-shadow:
        0 16px 34px rgba(22, 184, 166, 0.18),
        0 0 28px rgba(255, 102, 122, 0.1);
    color: #04111f;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    overflow: hidden;
    padding: 12px 18px;
    position: relative;
    transition: background-position 360ms ease, box-shadow 260ms ease, filter 260ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.landing-button::after {
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    content: "";
    inset: 0;
    opacity: 0;
    position: absolute;
    transform: translateX(-80%);
}

.landing-button:hover {
    background-position: 100% 0;
    box-shadow:
        0 20px 44px rgba(22, 184, 166, 0.25),
        0 0 34px rgba(255, 102, 122, 0.14);
    filter: saturate(1.14);
    transform: translateY(-2px);
}

.landing-button:hover::after {
    animation: landing-button-shine 900ms ease;
    opacity: 1;
}

.landing-button.small {
    min-height: 38px;
    padding: 9px 14px;
}

.landing-button.ghost {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: none;
    color: var(--text);
}

.landing-hero {
    align-items: flex-start;
    display: flex;
    isolation: isolate;
    min-height: 610px;
    overflow: hidden;
    padding: 70px 28px 46px;
    position: relative;
}

.landing-hero::before {
    background: url("/assets/brand/earngb-logo.png") center 38% / min(820px, 76vw) auto no-repeat;
    content: "";
    filter: none;
    inset: -54px 0 -30px;
    mix-blend-mode: screen;
    opacity: 0.42;
    pointer-events: none;
    position: absolute;
    z-index: -2;
}

.landing-hero::after {
    background:
        linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.24), transparent) center 42% / 100% 1px no-repeat,
        linear-gradient(90deg, transparent, rgba(49, 210, 192, 0.18), transparent) center 62% / 100% 1px no-repeat,
        linear-gradient(115deg, transparent 0 24%, rgba(255, 102, 122, 0.08) 36%, transparent 48%),
        linear-gradient(245deg, transparent 0 22%, rgba(247, 201, 72, 0.06) 34%, transparent 50%),
        linear-gradient(180deg, rgba(5, 10, 22, 0.22), rgba(5, 10, 22, 0.88));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.landing-hero-grid,
.landing-inner {
    margin: 0 auto;
    max-width: 1180px;
    width: 100%;
}

.landing-hero-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: hidden;
    padding: 18px 0 0;
    position: relative;
}

.landing-hero-grid::before,
.landing-hero-grid::after {
    background: linear-gradient(90deg, rgba(49, 210, 192, 0.8), rgba(247, 201, 72, 0.42), transparent);
    content: "";
    height: 1px;
    left: 0;
    opacity: 0.58;
    position: absolute;
    width: min(420px, 46vw);
}

.landing-hero-grid::before {
    top: 0;
}

.landing-hero-grid::after {
    bottom: 0;
    transform: scaleX(-1);
}

.landing-copy {
    max-width: 720px;
    padding-top: 0;
}

.landing-kicker {
    background: linear-gradient(90deg, var(--landing-cyan), var(--landing-amber), var(--landing-coral));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.landing-copy h1 {
    background: linear-gradient(100deg, #f7fbff 0%, #86fff0 30%, #60a5fa 58%, #ff8a9a 82%, #f7c948 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 72px;
    line-height: 1;
    margin-bottom: 16px;
    text-shadow:
        0 0 24px rgba(49, 210, 192, 0.22),
        0 0 42px rgba(96, 165, 250, 0.12);
}

.landing-copy p {
    color: #b8c5d8;
    font-size: 18px;
    line-height: 1.62;
    margin-bottom: 26px;
    max-width: 620px;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-hero-metrics {
    animation: fade-up 520ms ease both;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 960px;
}

.landing-hero-metrics div {
    --metric-a: rgba(49, 210, 192, 0.2);
    --metric-b: rgba(96, 165, 250, 0.1);
    --metric-line: rgba(49, 210, 192, 0.85);
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.84), rgba(15, 23, 42, 0.56)),
        linear-gradient(90deg, var(--metric-a), var(--metric-b));
    border: 1px solid rgba(148, 220, 255, 0.18);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 46px rgba(0, 0, 0, 0.24);
    display: grid;
    gap: 5px;
    overflow: hidden;
    padding: 15px 16px;
    position: relative;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.landing-hero-metrics div::before {
    background: linear-gradient(90deg, transparent, var(--metric-line), rgba(255, 255, 255, 0.52), transparent);
    bottom: auto;
    content: "";
    height: 2px;
    left: -30%;
    position: absolute;
    top: 0;
    width: 60%;
}

.landing-hero-metrics div:hover {
    border-color: var(--metric-line);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 20px 48px rgba(0, 0, 0, 0.3),
        0 0 28px rgba(22, 184, 166, 0.12);
    transform: translateY(-2px);
}

.landing-hero-metrics div:nth-child(1) {
    --metric-a: rgba(49, 210, 192, 0.2);
    --metric-b: rgba(96, 165, 250, 0.08);
    --metric-line: rgba(49, 210, 192, 0.82);
}

.landing-hero-metrics div:nth-child(2) {
    --metric-a: rgba(247, 201, 72, 0.16);
    --metric-b: rgba(255, 102, 122, 0.08);
    --metric-line: rgba(247, 201, 72, 0.82);
}

.landing-hero-metrics div:nth-child(2)::before {
    animation-delay: 480ms;
}

.landing-hero-metrics div:nth-child(3) {
    --metric-a: rgba(96, 165, 250, 0.17);
    --metric-b: rgba(142, 230, 107, 0.08);
    --metric-line: rgba(96, 165, 250, 0.82);
}

.landing-hero-metrics div:nth-child(3)::before {
    animation-delay: 960ms;
}

.landing-hero-metrics div:nth-child(4) {
    --metric-a: rgba(142, 230, 107, 0.15);
    --metric-b: rgba(49, 210, 192, 0.08);
    --metric-line: rgba(142, 230, 107, 0.78);
}

.landing-hero-metrics div:nth-child(4)::before {
    animation-delay: 1440ms;
}

.landing-hero-metrics span,
.landing-card p,
.landing-proof p,
.landing-rule-list p,
.landing-standards p {
    color: var(--muted);
}

.landing-hero-metrics strong {
    color: #f8fbff;
    font-size: 21px;
}

.landing-signal-rail {
    height: 44px;
    max-width: 960px;
    overflow: hidden;
    position: relative;
}

.landing-signal-rail::before {
    background:
        linear-gradient(90deg, rgba(49, 210, 192, 0.14), transparent 18% 46%, rgba(247, 201, 72, 0.08), transparent 60% 82%, rgba(255, 102, 122, 0.12)),
        repeating-linear-gradient(90deg, rgba(148, 220, 255, 0.18) 0 1px, transparent 1px 36px);
    border-bottom: 1px solid rgba(49, 210, 192, 0.24);
    border-top: 1px solid rgba(96, 165, 250, 0.18);
    content: "";
    inset: 16px 0 14px;
    opacity: 0.8;
    position: absolute;
}

.landing-signal-rail span {
    background: linear-gradient(90deg, transparent, rgba(49, 210, 192, 0.92), rgba(247, 201, 72, 0.74), rgba(255, 102, 122, 0.72), transparent);
    height: 2px;
    left: 4%;
    position: absolute;
    top: 20px;
    width: 24%;
}

.landing-signal-rail span:nth-child(2) {
    left: 38%;
    opacity: 0.62;
    top: 15px;
}

.landing-signal-rail span:nth-child(3) {
    left: 68%;
    opacity: 0.72;
    top: 27px;
}

.landing-band {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    overflow: hidden;
    padding: 72px 28px;
    position: relative;
}

.landing-band::before {
    background:
        linear-gradient(115deg, transparent 0 34%, rgba(49, 210, 192, 0.05) 35%, transparent 46%),
        repeating-linear-gradient(90deg, transparent 0 78px, rgba(96, 165, 250, 0.028) 79px, transparent 80px);
    content: "";
    inset: 0;
    opacity: 0.8;
    pointer-events: none;
    position: absolute;
}

.landing-inner {
    position: relative;
    z-index: 1;
}

.landing-proof {
    background: rgba(7, 14, 28, 0.58);
    padding-top: 34px;
}

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

.proof-grid article,
.landing-card,
.landing-rule-list article {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.86), rgba(10, 16, 30, 0.86)),
        linear-gradient(135deg, rgba(49, 210, 192, 0.08), transparent 42%, rgba(255, 102, 122, 0.06));
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.proof-grid article > *,
.landing-card > *,
.landing-rule-list article > * {
    position: relative;
    z-index: 1;
}

.proof-grid article::before,
.landing-rule-list article::before,
.landing-card::after {
    background: linear-gradient(120deg, transparent, rgba(148, 220, 255, 0.12), rgba(247, 201, 72, 0.08), transparent);
    content: "";
    inset: -40%;
    opacity: 0;
    position: absolute;
    transform: translateX(-60%) rotate(12deg);
    transition: opacity 180ms ease;
}

.proof-grid article {
    padding: 18px;
}

.proof-grid article,
.landing-rule-list article {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.proof-grid article:hover,
.landing-rule-list article:hover,
.landing-card:hover {
    border-color: rgba(49, 210, 192, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 44px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(49, 210, 192, 0.1);
    transform: translateY(-2px);
}

.proof-grid article:hover::before,
.landing-rule-list article:hover::before,
.landing-card:hover::after {
    animation: landing-card-sweep 1300ms cubic-bezier(0.22, 0.61, 0.36, 1);
    opacity: 1;
}

.proof-grid span,
.landing-card-icon,
.landing-rule-list span {
    align-items: center;
    background: rgba(22, 184, 166, 0.12);
    border: 1px solid rgba(22, 184, 166, 0.22);
    border-radius: 8px;
    color: var(--brand-strong);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-bottom: 14px;
    width: 38px;
}

.proof-grid article:nth-child(2) span,
.landing-card:nth-child(2) .landing-card-icon,
.landing-rule-list article:nth-child(2) span {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.24);
    color: #9bc6ff;
}

.proof-grid article:nth-child(3) span,
.landing-card:nth-child(3) .landing-card-icon,
.landing-rule-list article:nth-child(3) span {
    background: rgba(255, 102, 122, 0.12);
    border-color: rgba(255, 102, 122, 0.22);
    color: #ffb3be;
}

.proof-grid svg,
.landing-card-icon svg,
.landing-rule-list svg {
    height: 18px;
    width: 18px;
}

.proof-grid strong,
.landing-card h3,
.landing-rule-list strong {
    color: var(--text);
    display: block;
    font-size: 16px;
    margin-bottom: 7px;
}

.proof-grid p,
.landing-card p,
.landing-rule-list p {
    line-height: 1.55;
    margin-bottom: 0;
}

.landing-section-head {
    max-width: 760px;
}

.landing-section-head h2,
.landing-standards h2,
.landing-final h2 {
    background: linear-gradient(90deg, #f7fbff, #9ffcf1 42%, #ffb3be);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 32px;
    line-height: 1.18;
    margin-bottom: 14px;
}

.landing-card-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.landing-card {
    overflow: hidden;
    padding: 20px;
    position: relative;
    transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.landing-card::before {
    background: linear-gradient(90deg, rgba(49, 210, 192, 0.18), rgba(49, 210, 192, 0.86), rgba(96, 165, 250, 0.7), rgba(247, 201, 72, 0.54), rgba(255, 102, 122, 0.42));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.landing-standards {
    background:
        linear-gradient(122deg, rgba(49, 210, 192, 0.1) 0%, transparent 34%),
        linear-gradient(238deg, rgba(255, 102, 122, 0.08) 0%, transparent 31%),
        linear-gradient(180deg, rgba(7, 14, 28, 0.48), rgba(5, 10, 22, 0.9));
}

.landing-split {
    align-items: start;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
}

.landing-split > div:first-child p {
    font-size: 16px;
    line-height: 1.65;
    max-width: 560px;
}

.landing-rule-list {
    display: grid;
    gap: 12px;
}

.landing-rule-list article {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    padding: 16px;
}

.landing-rule-list span {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.landing-final {
    background:
        linear-gradient(116deg, rgba(49, 210, 192, 0.14), transparent 36%),
        linear-gradient(244deg, rgba(247, 201, 72, 0.1), transparent 34%),
        linear-gradient(90deg, transparent 0 56%, rgba(255, 102, 122, 0.08)),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(10, 16, 30, 0.9));
    padding-bottom: 80px;
}

.landing-final-inner {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.landing-final h2 {
    margin-bottom: 0;
    max-width: 720px;
}

.auth .auth-home-link {
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 480px;
    }

    .auth-card {
        min-height: auto;
    }

    .landing-hero-grid,
    .landing-split {
        grid-template-columns: 1fr;
    }

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

    .proof-grid,
    .landing-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 0;
    }

    .auth-visual,
    .auth-card {
        padding: 20px;
    }

    .auth-visual {
        min-height: 420px;
    }

    .auth-visual-copy h1 {
        font-size: 38px;
    }

    .auth-mini-grid {
        grid-template-columns: 1fr;
    }

    .landing-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 18px;
    }

    .landing-actions {
        width: 100%;
    }

    .landing-actions .landing-button,
    .landing-actions .landing-link {
        flex: 1;
        text-align: center;
    }

    .landing-hero {
        min-height: auto;
        padding: 58px 18px 46px;
    }

    .landing-copy {
        padding-top: 20px;
    }

    .landing-copy h1 {
        font-size: 44px;
    }

    .landing-copy p {
        font-size: 16px;
    }

    .landing-hero-metrics {
        grid-template-columns: 1fr;
    }

    .landing-band {
        padding: 48px 18px;
    }

    .landing-section-head h2,
    .landing-standards h2,
    .landing-final h2 {
        font-size: 25px;
    }

    .landing-final-inner {
        align-items: stretch;
        flex-direction: column;
    }
}

/* 2026 product refresh: landing and rules page */
.landing-hero-v3 {
    min-height: 620px;
    padding-top: 58px;
}

.landing-hero-v3::before {
    background: url("/assets/brand/earngb-logo.png") 82% 44% / min(680px, 58vw) auto no-repeat;
    opacity: 0.18;
}

.landing-hero-grid-v3 {
    align-items: center;
    display: grid;
    gap: clamp(26px, 5vw, 68px);
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.72fr);
    max-width: 1240px;
}

.landing-copy-v3 h1 {
    font-size: clamp(54px, 7.3vw, 92px);
    letter-spacing: 0;
    max-width: 820px;
}

.landing-copy-v3 p {
    font-size: 18px;
    max-width: 600px;
}

.landing-mini-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.landing-mini-points span {
    align-items: center;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 220, 255, 0.14);
    border-radius: 999px;
    color: #c9d5e6;
    display: inline-flex;
    font-size: 13px;
    font-weight: 760;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
}

.landing-mini-points svg {
    color: var(--brand-strong);
    height: 15px;
    width: 15px;
}

.landing-preview-card {
    background:
        radial-gradient(circle at 16% 8%, rgba(83, 234, 219, 0.18), transparent 34%),
        radial-gradient(circle at 90% 20%, rgba(255, 92, 118, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(17, 25, 40, 0.92), rgba(7, 12, 23, 0.96));
    border: 1px solid rgba(148, 220, 255, 0.2);
    border-radius: 8px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.36),
        0 0 42px rgba(34, 199, 184, 0.08);
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.landing-preview-card::before {
    background: linear-gradient(90deg, rgba(83, 234, 219, 0.95), rgba(110, 168, 255, 0.7), rgba(255, 92, 118, 0.58));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.landing-preview-card::after {
    background:
        linear-gradient(90deg, transparent, rgba(83, 234, 219, 0.16), transparent),
        repeating-linear-gradient(90deg, rgba(148, 220, 255, 0.08) 0 1px, transparent 1px 48px);
    content: "";
    height: 1px;
    left: 18px;
    opacity: 0.8;
    position: absolute;
    right: 18px;
    top: 112px;
}

.landing-preview-top {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 74px 1fr auto;
    margin-bottom: 22px;
}

.landing-preview-top span {
    display: inline-flex;
    height: 38px;
    width: 74px;
}

.landing-preview-top img {
    height: 100%;
    mix-blend-mode: screen;
    object-fit: contain;
    width: 100%;
}

.landing-preview-top strong {
    color: #f5f8ff;
    font-size: 16px;
}

.landing-preview-top em {
    background: rgba(62, 224, 132, 0.12);
    border: 1px solid rgba(62, 224, 132, 0.22);
    border-radius: 999px;
    color: #9df6bd;
    font-size: 11px;
    font-style: normal;
    font-weight: 760;
    padding: 5px 8px;
}

.landing-preview-balance {
    background: rgba(6, 12, 24, 0.54);
    border: 1px solid rgba(148, 220, 255, 0.13);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 18px;
}

.landing-preview-balance span,
.landing-preview-stats span,
.landing-preview-list em {
    color: var(--muted);
    font-size: 12px;
}

.landing-preview-balance strong {
    color: #f5f8ff;
    font-size: 38px;
    line-height: 1;
}

.landing-preview-balance small {
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 760;
}

.landing-preview-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.landing-preview-stats div {
    background: rgba(148, 163, 184, 0.07);
    border: 1px solid rgba(148, 220, 255, 0.12);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.landing-preview-stats strong {
    color: #edf4ff;
    font-size: 16px;
}

.landing-preview-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.landing-preview-list div {
    align-items: center;
    background: rgba(6, 12, 24, 0.46);
    border: 1px solid rgba(148, 220, 255, 0.1);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: auto 1fr auto;
    min-height: 42px;
    padding: 10px 12px;
}

.landing-preview-list strong {
    color: #edf4ff;
    font-size: 13px;
}

.dot {
    border-radius: 999px;
    display: inline-flex;
    height: 9px;
    width: 9px;
}

.dot.online {
    background: var(--ok);
    box-shadow: 0 0 16px rgba(62, 224, 132, 0.48);
}

.dot.checking {
    background: var(--blue);
    box-shadow: 0 0 16px rgba(110, 168, 255, 0.48);
}

.dot.locked {
    background: var(--danger);
    box-shadow: 0 0 16px rgba(255, 92, 118, 0.4);
}

.landing-proof-v3 {
    padding-top: 34px;
}

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

.landing-value-grid article,
.landing-flow-grid article,
.landing-faq-grid article,
.terms-card {
    background:
        linear-gradient(180deg, rgba(17, 25, 40, 0.9), rgba(9, 15, 27, 0.94)),
        linear-gradient(125deg, rgba(83, 234, 219, 0.07), transparent 46%, rgba(110, 168, 255, 0.045));
    border: 1px solid rgba(148, 220, 255, 0.15);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    position: relative;
}

.landing-value-grid article span,
.landing-flow-grid article span {
    align-items: center;
    background: rgba(34, 199, 184, 0.12);
    border: 1px solid rgba(83, 234, 219, 0.22);
    border-radius: 8px;
    color: var(--brand-strong);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-bottom: 12px;
    width: 38px;
}

.landing-value-grid article strong,
.landing-flow-grid article strong,
.landing-faq-grid article strong {
    color: #f3f7ff;
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.landing-value-grid article p,
.landing-flow-grid article p,
.landing-faq-grid article p {
    color: var(--muted);
    margin: 0;
}

.landing-centered-head {
    margin: 0 auto 24px;
    max-width: 680px;
    text-align: center;
}

.landing-flow-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-flow-grid article {
    min-height: 180px;
    overflow: hidden;
}

.landing-flow-grid article b {
    color: rgba(148, 220, 255, 0.18);
    font-size: 56px;
    font-weight: 860;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 12px;
}

.landing-standards-v3 .landing-button {
    margin-top: 10px;
}

.landing-rule-list.compact article {
    min-height: 96px;
}

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

.terms-layout {
    display: grid;
    gap: 16px;
}

.terms-hero-panel {
    background:
        radial-gradient(circle at 20% 0%, rgba(83, 234, 219, 0.16), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(255, 92, 118, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(17, 25, 40, 0.94), rgba(9, 15, 27, 0.96));
    overflow: hidden;
    padding: 24px;
}

.terms-hero-panel h2 {
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.1;
    max-width: 760px;
}

.terms-hero-panel p {
    color: var(--muted-strong);
    max-width: 620px;
}

.terms-hero-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.terms-hero-stats div {
    background: rgba(6, 12, 24, 0.5);
    border: 1px solid rgba(148, 220, 255, 0.13);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 13px;
}

.terms-hero-stats span {
    color: var(--muted);
    font-size: 12px;
}

.terms-hero-stats strong {
    color: #f5f8ff;
}

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

.terms-card {
    overflow: hidden;
}

.terms-card::before {
    background: linear-gradient(90deg, rgba(83, 234, 219, 0.9), rgba(110, 168, 255, 0.62));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.terms-card.danger::before {
    background: linear-gradient(90deg, rgba(255, 92, 118, 0.9), rgba(245, 187, 74, 0.66));
}

.terms-card ul {
    color: #c4cfdf;
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.terms-card li {
    background: rgba(6, 12, 24, 0.44);
    border: 1px solid rgba(148, 220, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
}

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

@media (max-width: 1080px) {
    .landing-hero-grid-v3 {
        grid-template-columns: 1fr;
    }

    .landing-preview-card {
        max-width: 680px;
    }

    .landing-value-grid,
    .landing-faq-grid,
    .terms-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .landing-value-grid,
    .landing-flow-grid,
    .landing-faq-grid,
    .terms-rule-columns,
    .terms-info-grid,
    .terms-hero-stats {
        grid-template-columns: 1fr;
    }

    .landing-preview-top,
    .landing-preview-list div {
        grid-template-columns: auto 1fr;
    }

    .landing-preview-top em,
    .landing-preview-list em {
        grid-column: 2;
        justify-self: start;
    }

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

/* Home fullscreen + mobile pass */
body.landing-body {
    min-height: 100svh;
}

.landing-body main {
    min-height: calc(100svh - 68px);
}

.landing-nav {
    left: 0;
    right: 0;
}

.landing-hero-v3 {
    align-items: center;
    display: grid;
    min-height: calc(100svh - 68px);
    padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px);
}

.landing-hero-grid-v3 {
    max-width: none;
    width: min(100%, 1540px);
}

.landing-copy-v3 {
    max-width: 900px;
}

.landing-copy-v3 h1 {
    font-size: clamp(62px, 8.4vw, 132px);
    max-width: 1040px;
}

.landing-copy-v3 p {
    font-size: clamp(18px, 1.35vw, 22px);
    max-width: 720px;
}

.landing-preview-card {
    justify-self: end;
    max-width: 560px;
    width: 100%;
}

.landing-proof-v3,
.landing-flow-section,
.landing-standards-v3,
.landing-faq-section,
.landing-final {
    padding-left: clamp(22px, 4vw, 56px);
    padding-right: clamp(22px, 4vw, 56px);
}

.landing-value-grid,
.landing-flow-grid,
.landing-faq-grid {
    max-width: none;
}

.landing-value-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.landing-flow-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.landing-faq-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
}

@media (min-width: 1500px) {
    .landing-hero-grid-v3 {
        gap: 90px;
        grid-template-columns: minmax(0, 1fr) minmax(520px, 0.52fr);
    }

    .landing-preview-card {
        max-width: 620px;
        transform: scale(1.03);
        transform-origin: right center;
    }
}

@media (max-width: 980px) {
    .landing-body main {
        min-height: 0;
    }

    .landing-hero-v3 {
        min-height: auto;
        padding: 30px 18px 38px;
    }

    .landing-hero-grid-v3 {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .landing-copy-v3 {
        max-width: 100%;
    }

    .landing-copy-v3 h1 {
        font-size: clamp(46px, 12vw, 78px);
        max-width: 720px;
    }

    .landing-copy-v3 p {
        font-size: 16px;
        max-width: 620px;
    }

    .landing-preview-card {
        justify-self: stretch;
        max-width: none;
    }

    .landing-value-grid,
    .landing-flow-grid,
    .landing-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .landing-nav {
        align-items: center;
        gap: 10px;
        min-height: 62px;
        padding: 10px 12px;
    }

    .landing-brand {
        gap: 8px;
        min-width: 0;
    }

    .landing-brand-logo {
        height: 32px;
        width: 62px;
    }

    .landing-brand > span:last-child {
        font-size: 15px;
    }

    .landing-actions {
        gap: 8px;
    }

    .landing-link {
        display: none;
    }

    .landing-button.small {
        min-height: 34px;
        padding: 8px 11px;
        white-space: nowrap;
    }

    .landing-hero-v3 {
        padding: 26px 12px 34px;
    }

    .landing-copy-v3 h1 {
        font-size: clamp(42px, 15vw, 62px);
        line-height: 0.96;
        margin-bottom: 14px;
    }

    .landing-copy-v3 p {
        font-size: 15px;
        line-height: 1.58;
        margin-bottom: 18px;
    }

    .landing-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .landing-hero-actions .landing-button {
        width: 100%;
    }

    .landing-mini-points {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .landing-mini-points span {
        border-radius: 8px;
        justify-content: flex-start;
        min-height: 38px;
    }

    .landing-preview-card {
        padding: 14px;
    }

    .landing-preview-top {
        gap: 8px;
        grid-template-columns: 64px minmax(0, 1fr);
        margin-bottom: 14px;
    }

    .landing-preview-top span {
        height: 32px;
        width: 64px;
    }

    .landing-preview-top em {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .landing-preview-card::after {
        display: none;
    }

    .landing-preview-balance {
        padding: 14px;
    }

    .landing-preview-balance strong {
        font-size: 32px;
    }

    .landing-preview-stats,
    .landing-preview-list {
        gap: 8px;
    }

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

    .landing-preview-list div {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .landing-preview-list em {
        grid-column: auto;
        justify-self: end;
    }

    .landing-proof-v3,
    .landing-flow-section,
    .landing-standards-v3,
    .landing-faq-section,
    .landing-final {
        padding: 42px 12px;
    }

    .landing-value-grid,
    .landing-flow-grid,
    .landing-faq-grid,
    .landing-split {
        grid-template-columns: 1fr;
    }

    .landing-centered-head {
        text-align: left;
    }

    .landing-section-head h2,
    .landing-standards h2,
    .landing-final h2 {
        font-size: 28px;
    }

    .landing-flow-grid article {
        min-height: 156px;
    }

    .landing-final-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-final-inner .landing-button {
        width: 100%;
    }
}

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

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

    .admin-config-list.compact {
        grid-template-columns: 1fr;
    }

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

    .add-layout,
    .payout-layout,
    .faucetpay-layout,
    .settings-grid,
    .referral-clean-hero,
    .referral-clean-stats {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        min-height: auto;
        position: static;
    }

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

    .admin-head {
        flex-direction: column;
        gap: 12px;
    }

    .admin-detail-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-detail-title {
        text-align: left;
    }

    .admin-filter-form,
    .admin-profile-form {
        grid-template-columns: 1fr;
    }

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

    .connection-config-list strong {
        max-width: 100%;
        text-align: left;
    }

    .admin-inline-form {
        align-items: stretch;
        flex-direction: column;
        min-width: 0;
    }

    .admin-ban-form {
        align-items: stretch;
        flex-direction: column;
        min-width: 0;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
        position: static;
    }

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

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

    .status-filter-head {
        align-items: stretch;
        flex-direction: column;
    }

    .cleanup-form,
    .danger-soft {
        width: 100%;
    }

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

    .protocol-options {
        grid-template-columns: 1fr;
    }

    .referral-link-row {
        grid-template-columns: 1fr;
    }

    .referral-clean-hero {
        min-height: auto;
        padding: 18px;
    }

    .referral-clean-copy strong {
        font-size: 42px;
    }

    .referral-clean-link > div:first-child {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .form-actions button {
        width: 100%;
    }

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

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

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

    .section-head {
        gap: 10px;
        flex-direction: column;
    }

    .view-head {
        gap: 10px;
        flex-direction: column;
    }
}

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

@keyframes soft-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.24);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0);
    }
}

.proxy-sort-form {
    align-items: center;
    background: rgba(7, 14, 28, 0.58);
    border: 1px solid rgba(148, 220, 255, 0.14);
    border-radius: 8px;
    display: inline-flex;
    gap: 10px;
    margin: 0;
    padding: 6px;
}

.proxy-sort-form > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding-left: 6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.sort-switch {
    background: rgba(2, 6, 14, 0.48);
    border: 1px solid rgba(148, 220, 255, 0.1);
    border-radius: 7px;
    display: inline-flex;
    gap: 4px;
    padding: 3px;
}

.sort-switch button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    color: var(--muted);
    min-height: 30px;
    padding: 6px 12px;
}

.sort-switch button:hover,
.sort-switch button.active {
    background: linear-gradient(135deg, rgba(34, 199, 184, 0.22), rgba(96, 165, 250, 0.18));
    color: var(--text);
}

.proxy-table-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 16px;
    padding: 12px;
    background:
        linear-gradient(135deg, rgba(22, 184, 166, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 25, 0.86));
    border: 1px solid rgba(148, 220, 255, 0.13);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.proxy-pager {
    align-items: center;
    background: rgba(4, 10, 22, 0.72);
    border: 1px solid rgba(83, 234, 219, 0.14);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: inline-flex;
    gap: 5px;
    padding: 5px;
}

.proxy-page-button {
    align-items: center;
    background: rgba(15, 26, 47, 0.78);
    border: 1px solid rgba(148, 220, 255, 0.11);
    border-radius: 999px;
    color: #aec0d7;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    min-width: 34px;
    padding: 0 12px;
    position: relative;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.proxy-page-button:hover,
.proxy-page-button.active {
    background: linear-gradient(135deg, rgba(34, 199, 184, 0.92), rgba(96, 165, 250, 0.92));
    border-color: rgba(126, 249, 236, 0.7);
    box-shadow: 0 8px 18px rgba(34, 199, 184, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #03111d;
    transform: translateY(-1px);
}

.proxy-page-button.active {
    cursor: default;
}

.proxy-page-button.disabled {
    background: rgba(9, 16, 30, 0.58);
    border-color: rgba(148, 163, 184, 0.08);
    color: rgba(145, 160, 184, 0.48);
    opacity: 1;
    pointer-events: none;
}

.proxy-limit-control {
    align-items: center;
    background: rgba(4, 10, 22, 0.72);
    border: 1px solid rgba(83, 234, 219, 0.14);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    margin: 0;
    padding: 5px 6px 5px 12px;
    width: auto;
}

.proxy-limit-control > span {
    color: #8fa3bd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.proxy-limit-menu {
    position: relative;
}

.proxy-limit-menu summary {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(18, 35, 62, 0.94), rgba(11, 20, 38, 0.94));
    border: 1px solid rgba(148, 220, 255, 0.16);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    gap: 18px;
    font-weight: 850;
    height: 34px;
    justify-content: space-between;
    list-style: none;
    min-width: 96px;
    padding: 0 12px 0 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    user-select: none;
}

.proxy-limit-menu summary::-webkit-details-marker {
    display: none;
}

.proxy-limit-menu summary:hover,
.proxy-limit-menu[open] summary {
    border-color: rgba(83, 234, 219, 0.42);
    box-shadow: 0 0 0 3px rgba(34, 199, 184, 0.12);
}

.proxy-limit-menu summary i {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #53eadb;
    display: block;
    height: 0;
    transition: transform 160ms ease;
    width: 0;
}

.proxy-limit-menu[open] summary i {
    transform: rotate(180deg);
}

.proxy-limit-options {
    background:
        linear-gradient(180deg, rgba(18, 29, 52, 0.98), rgba(8, 13, 25, 0.98));
    border: 1px solid rgba(83, 234, 219, 0.2);
    border-radius: 10px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    display: grid;
    gap: 3px;
    left: 0;
    margin-top: 7px;
    min-width: 112px;
    padding: 6px;
    position: absolute;
    top: 100%;
    z-index: 40;
}

.proxy-limit-options a {
    align-items: center;
    border-radius: 7px;
    color: #b9c7da;
    display: flex;
    font-size: 12px;
    font-weight: 900;
    min-height: 32px;
    padding: 0 10px;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.proxy-limit-options a:hover,
.proxy-limit-options a.active {
    background: linear-gradient(135deg, rgba(34, 199, 184, 0.94), rgba(96, 165, 250, 0.9));
    color: #03111d;
    transform: translateX(1px);
}

.proxy-range {
    align-items: center;
    background: rgba(4, 10, 22, 0.48);
    border: 1px solid rgba(148, 220, 255, 0.1);
    border-radius: 999px;
    color: #aebbd0;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    margin-left: auto;
    min-height: 36px;
    padding: 0 14px;
}

@media (max-width: 640px) {
    .proxy-sort-form {
        align-items: stretch;
        display: grid;
        width: 100%;
    }

    .sort-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .proxy-table-footer {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .proxy-pager {
        justify-content: center;
        width: 100%;
    }

    .proxy-limit-control {
        border-radius: 10px;
        justify-content: space-between;
        width: 100%;
    }

    .proxy-limit-menu summary {
        min-width: 112px;
    }

    .proxy-limit-options {
        left: auto;
        right: 0;
    }

    .proxy-range {
        border-radius: 10px;
        justify-content: center;
        margin-left: 0;
        text-align: center;
    }
}

@keyframes progress-enter {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

@keyframes progress-shine {
    to {
        transform: translateX(100%);
    }
}

@keyframes glow-sweep {
    0%,
    45% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes float-soft {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes logo-shine {
    0%,
    42% {
        transform: translateX(-92%) rotate(18deg);
    }
    100% {
        transform: translateX(92%) rotate(18deg);
    }
}

@keyframes logo-orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes landing-button-shine {
    from {
        transform: translateX(-80%);
    }
    to {
        transform: translateX(90%);
    }
}

@keyframes landing-card-sweep {
    0% {
        transform: translateX(-60%) rotate(12deg);
    }
    100% {
        transform: translateX(60%) rotate(12deg);
    }
}

/* 2026 visual refresh: calmer typography, clearer hierarchy, richer dark product feel. */
:root {
    --bg: #070b14;
    --panel: #101827;
    --panel-soft: #0d1422;
    --panel-deep: #090f1b;
    --line: rgba(148, 163, 184, 0.16);
    --line-strong: rgba(148, 220, 255, 0.22);
    --text: #e8eef8;
    --muted: #9aa8bd;
    --muted-strong: #b7c3d5;
    --brand: #22c7b8;
    --brand-strong: #53eadb;
    --danger: #ff5c76;
    --ok: #3ee084;
    --blue: #6ea8ff;
    --warn: #f5bb4a;
    --shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.26);
}

html {
    background: var(--bg);
}

body {
    background:
        linear-gradient(115deg, rgba(34, 199, 184, 0.1), transparent 28%),
        linear-gradient(245deg, rgba(255, 92, 118, 0.075), transparent 30%),
        repeating-linear-gradient(90deg, rgba(148, 220, 255, 0.026) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(180deg, rgba(148, 220, 255, 0.018) 0 1px, transparent 1px 96px),
        linear-gradient(180deg, #08101d 0%, #070b14 46%, #050812 100%);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
strong,
button,
.button {
    letter-spacing: 0;
}

h1,
h2,
h3 {
    color: #f1f6fd;
    font-weight: 760;
}

h2 {
    font-size: 17px;
    line-height: 1.25;
}

.muted,
.stat-label,
.status-card-label,
label,
.admin-metrics span,
.admin-status-list span,
.admin-config-list span,
.landing-hero-metrics span,
.landing-card p,
.landing-proof p,
.landing-rule-list p,
.landing-standards p {
    color: var(--muted);
}

.app-shell,
.admin-body {
    background:
        linear-gradient(120deg, rgba(34, 199, 184, 0.08), transparent 28%),
        linear-gradient(245deg, rgba(110, 168, 255, 0.07), transparent 32%),
        linear-gradient(180deg, rgba(7, 11, 20, 0.42), rgba(7, 11, 20, 0.96));
}

.app-shell {
    grid-template-columns: 238px minmax(0, 1fr);
}

.sidebar,
.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(11, 17, 30, 0.96), rgba(7, 11, 20, 0.99)),
        repeating-linear-gradient(180deg, rgba(148, 220, 255, 0.024) 0 1px, transparent 1px 36px);
    border-right: 1px solid rgba(148, 220, 255, 0.14);
    box-shadow: 16px 0 42px rgba(0, 0, 0, 0.22);
}

.main-area,
.admin-main {
    padding: 28px;
}

.brand,
.admin-brand strong {
    color: #f4f8ff;
    font-weight: 780;
}

.nav-item,
.admin-nav a,
.admin-logout {
    background: transparent;
    border-color: transparent;
    border-radius: 8px;
    color: #a9b6c9;
    font-size: 13px;
    font-weight: 720;
}

.nav-item:hover,
.nav-item.active,
.admin-nav a:hover,
.admin-nav a.active,
.admin-nav a[aria-current="page"],
.admin-logout:hover {
    background:
        linear-gradient(90deg, rgba(34, 199, 184, 0.14), rgba(110, 168, 255, 0.08)),
        rgba(148, 163, 184, 0.04);
    border-color: rgba(83, 234, 219, 0.28);
    box-shadow: inset 3px 0 0 rgba(83, 234, 219, 0.8), 0 10px 24px rgba(0, 0, 0, 0.14);
    color: #f0fbff;
}

.icon {
    background: rgba(148, 163, 184, 0.09);
    border-color: rgba(148, 220, 255, 0.14);
    color: #9eb2c9;
}

.nav-item.active .icon,
.nav-item:hover .icon {
    background: rgba(34, 199, 184, 0.14);
    border-color: rgba(83, 234, 219, 0.24);
    color: var(--brand-strong);
}

.view-head,
.admin-head {
    margin-bottom: 18px;
}

.view-head h1,
.admin-head h1 {
    background: linear-gradient(90deg, #f4f8ff, #bffcf5 48%, #a7c8ff 78%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 820;
    line-height: 1.06;
}

.panel,
.admin-metrics article,
.admin-panel,
.status-card,
.proof-grid article,
.landing-card,
.landing-rule-list article,
.auth-card,
.auth-visual,
.admin-auth-card {
    background:
        linear-gradient(180deg, rgba(17, 25, 40, 0.92), rgba(10, 16, 28, 0.94)),
        linear-gradient(120deg, rgba(83, 234, 219, 0.055), transparent 42%, rgba(255, 92, 118, 0.045));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.panel,
.admin-panel {
    padding: 18px;
}

.panel:hover,
.admin-panel:hover,
.admin-metrics article:hover {
    border-color: rgba(148, 220, 255, 0.24);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.metric-grid {
    gap: 12px;
}

.metric-panel {
    min-height: 108px;
}

.metric-panel::before,
.landing-card::before,
.referral-clean-hero::before {
    background: linear-gradient(90deg, rgba(83, 234, 219, 0.92), rgba(110, 168, 255, 0.78), rgba(255, 92, 118, 0.58));
}

.panel-icon,
.status-card-icon,
.landing-card-icon,
.landing-rule-list span,
.proof-grid span {
    background:
        linear-gradient(135deg, rgba(34, 199, 184, 0.18), rgba(110, 168, 255, 0.12));
    border-color: rgba(83, 234, 219, 0.22);
    border-radius: 8px;
    color: var(--brand-strong);
}

.stat-value,
.admin-metrics strong,
.status-card strong,
.referral-clean-stats strong {
    color: #f5f8ff;
    font-weight: 780;
}

.stat-value {
    background: none;
    color: #f5f8ff;
    font-size: 25px;
}

.status-filter-head {
    margin-top: 22px;
}

.filter-kicker,
.landing-kicker {
    color: var(--brand-strong);
    font-size: 11px;
    font-weight: 820;
    text-transform: uppercase;
}

.filter-active-pill,
.selected-chip,
.badge,
.risk-pill,
.pagination-bar a,
.pagination-bar span {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 780;
}

.status-strip {
    gap: 10px;
}

.status-card {
    min-height: 86px;
    padding: 14px;
}

.status-card:hover,
.status-card.active {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 0 22px color-mix(in srgb, var(--accent), transparent 84%);
}

input,
select,
textarea {
    background: rgba(6, 12, 24, 0.82);
    border: 1px solid rgba(148, 220, 255, 0.15);
    border-radius: 8px;
    color: #f0f5fb;
    min-height: 42px;
    padding: 10px 12px;
}

input::placeholder,
textarea::placeholder {
    color: #6f7d91;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(83, 234, 219, 0.72);
    box-shadow: 0 0 0 3px rgba(34, 199, 184, 0.14), 0 0 26px rgba(34, 199, 184, 0.08);
}

button,
.button {
    background: linear-gradient(105deg, #28dcc7, #6ea8ff);
    border: 1px solid rgba(148, 220, 255, 0.22);
    border-radius: 8px;
    color: #04111f;
    font-weight: 780;
    min-height: 40px;
    padding: 10px 15px;
}

button:hover,
.button:hover {
    background: linear-gradient(105deg, #53eadb, #88b8ff);
    box-shadow: 0 12px 28px rgba(34, 199, 184, 0.22);
}

.button.ghost {
    background: rgba(148, 163, 184, 0.08);
    color: #e8eef8;
}

.danger-soft,
.danger-action {
    background: rgba(255, 92, 118, 0.12);
    border-color: rgba(255, 92, 118, 0.24);
    color: #ffd7de;
}

.flash {
    border: 1px solid rgba(148, 220, 255, 0.14);
    border-radius: 8px;
    font-weight: 650;
}

.table-panel,
.referral-table-panel {
    overflow: hidden;
}

.table-wrap {
    border: 1px solid rgba(148, 220, 255, 0.11);
    border-radius: 8px;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 960px;
}

th,
td {
    border-bottom: 1px solid rgba(148, 220, 255, 0.12);
    height: 52px;
    padding: 12px 13px;
}

th {
    background: rgba(6, 12, 24, 0.56);
    color: #9fb1c8;
    font-size: 11px;
    font-weight: 820;
    text-transform: uppercase;
}

td {
    color: #e7edf7;
    font-size: 13px;
}

tbody tr:hover {
    background: rgba(83, 234, 219, 0.045);
}

.badge.online {
    background: rgba(62, 224, 132, 0.14);
}

.badge.offline {
    background: rgba(245, 187, 74, 0.15);
}

.badge.not,
.badge.not-eligible,
.badge.ineligible,
.badge.add-failed {
    background: rgba(255, 92, 118, 0.15);
}

.badge.submitted,
.badge.checking,
.badge.pending {
    background: rgba(110, 168, 255, 0.15);
}

.add-layout,
.payout-layout {
    gap: 16px;
}

.protocol-option-body,
.add-summary-row,
.format-box,
.payout-summary-item,
.settings-list div,
.contact-card,
.admin-status-list div,
.admin-config-list div,
.admin-settings-form,
.admin-filter-form {
    background: rgba(7, 14, 28, 0.58);
    border-color: rgba(148, 220, 255, 0.14);
    border-radius: 8px;
}

.protocol-option:hover .protocol-option-body,
.protocol-option input:checked + .protocol-option-body {
    background: rgba(34, 199, 184, 0.1);
    border-color: rgba(83, 234, 219, 0.3);
}

.referral-clean-hero {
    background:
        linear-gradient(122deg, rgba(34, 199, 184, 0.14), transparent 40%),
        linear-gradient(240deg, rgba(110, 168, 255, 0.13), transparent 36%),
        linear-gradient(180deg, rgba(17, 25, 40, 0.94), rgba(8, 13, 24, 0.96));
}

.referral-clean-copy strong {
    font-size: clamp(42px, 5vw, 64px);
}

.auth-body,
body.admin-auth-body {
    background:
        linear-gradient(120deg, rgba(34, 199, 184, 0.11), transparent 34%),
        linear-gradient(240deg, rgba(255, 92, 118, 0.09), transparent 32%),
        repeating-linear-gradient(90deg, rgba(148, 220, 255, 0.026) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #070c16, #080d18 56%, #050812);
}

.auth-card,
.admin-auth-card {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.auth-card h1,
.auth-visual-copy h1 {
    color: #f4f8ff;
    font-weight: 820;
}

.auth-visual-copy p,
.auth-subtitle,
.auth-switch {
    color: #aebbd0;
}

body.landing-body {
    background:
        linear-gradient(125deg, rgba(34, 199, 184, 0.1), transparent 31%),
        linear-gradient(245deg, rgba(255, 92, 118, 0.075), transparent 31%),
        repeating-linear-gradient(90deg, rgba(148, 220, 255, 0.026) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #060b14 0%, #080d18 52%, #050812 100%);
}

.landing-nav {
    background: rgba(6, 11, 20, 0.78);
    min-height: 68px;
    padding: 12px 30px;
}

.landing-hero {
    min-height: 560px;
    padding: 64px 30px 42px;
}

.landing-hero::before {
    opacity: 0.34;
}

.landing-copy h1 {
    font-size: clamp(56px, 7vw, 84px);
    font-weight: 860;
}

.landing-copy p {
    color: #b7c4d8;
    font-size: 17px;
    max-width: 650px;
}

.landing-hero-metrics {
    max-width: 1040px;
}

.landing-hero-metrics div {
    border-color: rgba(148, 220, 255, 0.2);
    padding: 16px;
}

.landing-section-head h2,
.landing-standards h2,
.landing-final h2 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 820;
}

.landing-band {
    padding: 66px 30px;
}

.admin-body {
    grid-template-columns: 250px minmax(0, 1fr);
}

.admin-metrics {
    gap: 14px;
}

.admin-metrics article {
    min-height: 106px;
}

.admin-metrics strong {
    font-size: 24px;
}

.pagination-bar {
    margin-top: 16px;
}

@media (max-width: 980px) {
    .main-area,
    .admin-main {
        padding: 20px;
    }

    .sidebar,
    .admin-sidebar {
        box-shadow: none;
    }

    .landing-hero {
        min-height: auto;
        padding-top: 42px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 13px;
    }

    .main-area,
    .admin-main {
        padding: 14px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .landing-nav {
        padding: 10px 16px;
    }

    .landing-hero,
    .landing-band {
        padding-left: 16px;
        padding-right: 16px;
    }

    .landing-hero-metrics,
    .proof-grid,
    .landing-card-grid,
    .referral-clean-stats {
        grid-template-columns: 1fr;
    }
}

/* Mobile dashboard polish: keep the table scrollable, but let footer menus breathe. */
.table-panel {
    overflow: visible;
}

.table-panel .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .view-head h1 {
        font-size: 24px;
    }

    .table-panel {
        padding: 12px;
    }

    .table-panel .section-head {
        margin-bottom: 10px;
    }

    .proxy-table-footer {
        gap: 10px;
        margin-top: 12px;
        padding: 10px;
    }

    .proxy-pager {
        border-radius: 10px;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(30px, 1fr);
        gap: 4px;
        overflow-x: auto;
        padding: 5px;
        width: 100%;
    }

    .proxy-page-button {
        font-size: 12px;
        height: 32px;
        min-width: 30px;
        padding: 0 8px;
    }

    .proxy-limit-control {
        min-height: 44px;
        padding: 5px 6px 5px 12px;
    }

    .proxy-limit-menu {
        margin-left: auto;
    }

    .proxy-limit-menu summary {
        height: 34px;
        min-width: 92px;
        padding: 0 11px 0 14px;
    }

    .proxy-limit-options {
        bottom: calc(100% + 8px);
        left: auto;
        margin-bottom: 0;
        margin-top: 0;
        right: 0;
        top: auto;
    }

    .proxy-range {
        font-size: 12px;
        line-height: 1.35;
        min-height: 40px;
        padding: 8px 12px;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .main-area,
    .admin-main {
        padding: 10px;
    }

    .panel,
    .table-panel {
        border-radius: 7px;
        padding: 10px;
    }

    .status-strip {
        grid-template-columns: 1fr;
    }

    .proxy-table-footer {
        border-radius: 8px;
    }

    .proxy-pager {
        grid-auto-columns: minmax(28px, 1fr);
    }

    .proxy-page-button {
        height: 30px;
        min-width: 28px;
        padding: 0 6px;
    }

    .proxy-limit-control > span {
        font-size: 10px;
    }

    .proxy-limit-menu summary {
        min-width: 84px;
    }
}
