/* ------------------------------------------------------------------
   BanglaBites — shared design system
   ------------------------------------------------------------------ */

:root {
    --bg: #07090c;
    --bg-soft: #0a0e13;
    --surface: #0f141b;
    --surface-2: #141b24;
    --surface-3: #19222d;
    --border: rgba(148, 163, 184, 0.13);
    --border-strong: rgba(148, 163, 184, 0.24);
    --text: #eef3f8;
    --muted: #8b98a9;
    --muted-strong: #b6c2d1;
    --cyan: #35f5cf;
    --blue: #00a8ff;
    --green: #2ee6a8;
    --amber: #f5b74e;
    --rose: #ff6b81;
    --purple: #a78bfa;
    --pink: #ff5fa2;
    --orange: #ff9d4d;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 11px;
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.45);
    --font: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont,
        "Helvetica Neue", Arial, sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.4rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.5;
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 620px at 82% -12%, rgba(53, 245, 207, 0.075), transparent 62%),
        radial-gradient(900px 560px at 2% 2%, rgba(0, 168, 255, 0.055), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    overflow: hidden;
}

h1,
h2,
h3,
p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

button {
    color: inherit;
}

a {
    color: inherit;
}

svg {
    display: block;
    max-width: 100%;
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

::selection {
    background: rgba(53, 245, 207, 0.25);
    color: #fff;
}

.container {
    width: min(1180px, calc(100% - 2.5rem));
    margin-inline: auto;
}

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

.small {
    font-size: 0.78rem;
}

.mono {
    font-family: var(--mono);
    letter-spacing: -0.01em;
}

.align-right {
    text-align: right;
}

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

.text-gradient,
#success-coins {
    background: linear-gradient(100deg, #35f5cf 8%, #82ddff 58%, #2f8cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-glow::before,
.page-glow::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.7;
}

.page-glow::before {
    top: -260px;
    right: -140px;
    background: radial-gradient(circle, rgba(53, 245, 207, 0.16), transparent 65%);
}

.page-glow::after {
    top: 38%;
    left: -240px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.12), transparent 65%);
}

.site-header,
.banner-wrap,
.verify-grid,
.site-footer,
.auth-topbar,
.auth-shell,
.auth-footer,
.panel-shell {
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------------
   Brand
   ------------------------------------------------------------------ */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.015em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    border: 1px solid rgba(53, 245, 207, 0.28);
    background: linear-gradient(135deg, rgba(53, 245, 207, 0.18), rgba(0, 168, 255, 0.13));
    color: var(--cyan);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    flex: none;
}

.brand-mark svg {
    width: 19px;
    height: 19px;
}

.brand-name {
    font-size: 1.02rem;
}

/* ------------------------------------------------------------------
   Typography helpers
   ------------------------------------------------------------------ */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-strong);
}

.eyebrow-tight {
    margin: 0;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(53, 245, 207, 0.1);
    animation: pulse-dot 2.4s ease-in-out infinite;
    flex: none;
}

.hint {
    margin: 0;
    font-size: 0.755rem;
    line-height: 1.5;
    color: var(--muted);
}

.label-optional {
    margin-left: 0.25rem;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.82rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--surface-3);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease,
        color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #35f5cf 0%, #21d7ff 55%, #00a8ff 100%);
    color: #041015;
    box-shadow: 0 12px 32px rgba(53, 245, 207, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 16px 38px rgba(53, 245, 207, 0.26);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.015);
    border-color: var(--border-strong);
    color: var(--muted-strong);
}

.btn-outline:hover {
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

.btn-ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn-success {
    background: rgba(46, 230, 168, 0.13);
    border-color: rgba(46, 230, 168, 0.3);
    color: #7bf7c9;
}

.btn-success:hover {
    background: rgba(46, 230, 168, 0.2);
    border-color: rgba(46, 230, 168, 0.45);
}

.btn-danger {
    background: rgba(255, 107, 129, 0.12);
    border-color: rgba(255, 107, 129, 0.28);
    color: #ffa3b1;
}

.btn-danger:hover {
    background: rgba(255, 107, 129, 0.2);
    border-color: rgba(255, 107, 129, 0.44);
}

.btn-sm {
    padding: 0.58rem 0.9rem;
    font-size: 0.82rem;
    border-radius: 10px;
}

.btn-sm svg {
    width: 15px;
    height: 15px;
}

.btn-xs {
    padding: 0.4rem 0.62rem;
    font-size: 0.74rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn:disabled,
.btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(4, 16, 21, 0.25);
    border-top-color: #041015;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex: none;
}

.btn.is-loading .spinner {
    display: inline-block;
}

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

/* ------------------------------------------------------------------
   Badges, chips, alerts
   ------------------------------------------------------------------ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.3rem 0.58rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.badge-pending {
    color: #ffd58a;
    background: rgba(245, 183, 78, 0.12);
    border-color: rgba(245, 183, 78, 0.24);
}

.badge-approved {
    color: #7bf7c9;
    background: rgba(46, 230, 168, 0.12);
    border-color: rgba(46, 230, 168, 0.24);
}

.badge-rejected {
    color: #ffa3b1;
    background: rgba(255, 107, 129, 0.12);
    border-color: rgba(255, 107, 129, 0.24);
}

.badge-muted {
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.2);
}

.live-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.38rem 0.68rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted-strong);
    font-size: 0.7rem;
    font-weight: 600;
}

.live-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(46, 230, 168, 0.8);
    animation: pulse-dot 2.4s ease-in-out infinite;
    flex: none;
}

.form-alert {
    padding: 0.72rem 0.9rem;
    margin: 0 0 1rem;
    border: 1px solid rgba(255, 107, 129, 0.3);
    border-radius: 11px;
    background: rgba(255, 107, 129, 0.08);
    color: #ffb3bf;
    font-size: 0.82rem;
    line-height: 1.45;
}

.alert-success {
    border-color: rgba(46, 230, 168, 0.3);
    background: rgba(46, 230, 168, 0.07);
    color: #9af5d3;
}

.alert-info {
    border-color: rgba(0, 168, 255, 0.28);
    background: rgba(0, 168, 255, 0.07);
    color: #9ad9ff;
}

.alert-error {
    border-color: rgba(255, 107, 129, 0.3);
    background: rgba(255, 107, 129, 0.08);
    color: #ffb3bf;
}

.notice-strip {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.78rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px dashed rgba(245, 183, 78, 0.32);
    border-radius: 12px;
    background: rgba(245, 183, 78, 0.055);
    color: #f0cf94;
    font-size: 0.78rem;
    line-height: 1.5;
}

.notice-strip svg {
    width: 16px;
    height: 16px;
    margin-top: 0.12rem;
    flex: none;
}

/* ------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------ */

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.field label,
.field legend {
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-strong);
    letter-spacing: 0.01em;
}

.input-shell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 50px;
    padding: 0 0.95rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-shell:focus-within {
    border-color: rgba(53, 245, 207, 0.52);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 4px rgba(53, 245, 207, 0.075);
}

.input-shell > svg {
    width: 19px;
    height: 19px;
    color: var(--muted);
    flex: none;
}

.input-shell input {
    flex: 1;
    min-width: 0;
    padding: 0.88rem 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 0.94rem;
}

.input-shell input::placeholder {
    color: #5b6675;
}

.input-shell-sm {
    min-height: 40px;
    padding: 0 0.78rem;
}

.input-shell-sm input {
    padding: 0.52rem 0;
    font-size: 0.84rem;
}

.input-shell-sm > svg {
    width: 16px;
    height: 16px;
}

.field select,
.field textarea,
.field > input {
    width: 100%;
    min-height: 50px;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field > input::placeholder,
.field textarea::placeholder {
    color: #5b6675;
}

.field select {
    cursor: pointer;
}

.field textarea {
    min-height: 84px;
    resize: vertical;
    line-height: 1.55;
}

.field select:focus,
.field textarea:focus,
.field > input:focus {
    border-color: rgba(53, 245, 207, 0.52);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 4px rgba(53, 245, 207, 0.075);
}

.field select option {
    background: var(--surface);
    color: var(--text);
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px #0d141c inset;
    transition: background-color 9999s ease-in-out 0s;
}

.password-toggle {
    padding: 0.34rem 0.52rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-strong);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
    flex: none;
}

.password-toggle:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

textarea {
    width: 100%;
    min-height: 92px;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea:focus {
    border-color: rgba(53, 245, 207, 0.52);
    box-shadow: 0 0 0 4px rgba(53, 245, 207, 0.075);
}

textarea::placeholder {
    color: #5b6675;
}

/* Payment methods */

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

.payment-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.015);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    min-width: 0;
}

.payment-option:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.035);
}

.payment-option:has(input:checked) {
    border-color: rgba(53, 245, 207, 0.6);
    background: rgba(53, 245, 207, 0.055);
    box-shadow: 0 0 0 3px rgba(53, 245, 207, 0.06);
}

.payment-option:has(input:focus-visible) {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.payment-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.payment-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 10px;
    background: var(--tone-soft, rgba(255, 255, 255, 0.04));
    color: var(--tone, var(--muted-strong));
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    flex: none;
}

.payment-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payment-check {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: auto;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    flex: none;
}

.payment-check svg {
    width: 12px;
    height: 12px;
}

.payment-option:has(input:checked) .payment-check {
    border-color: var(--cyan);
    background: var(--cyan);
    color: #041015;
}

.tone-pink {
    --tone: #ff7ab4;
    --tone-soft: rgba(255, 95, 162, 0.13);
    --tone-border: rgba(255, 95, 162, 0.28);
}

.tone-orange {
    --tone: #ffb06b;
    --tone-soft: rgba(255, 157, 77, 0.13);
    --tone-border: rgba(255, 157, 77, 0.28);
}

.tone-purple {
    --tone: #bfa6ff;
    --tone-soft: rgba(167, 139, 250, 0.13);
    --tone-border: rgba(167, 139, 250, 0.28);
}

.tone-teal {
    --tone: #5ff0c8;
    --tone-soft: rgba(46, 230, 168, 0.12);
    --tone-border: rgba(46, 230, 168, 0.26);
}

.tone-slate {
    --tone: #b6c2d1;
    --tone-soft: rgba(148, 163, 184, 0.1);
    --tone-border: rgba(148, 163, 184, 0.22);
}

.method-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.5rem;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 999px;
    background: var(--tone-soft, rgba(255, 255, 255, 0.04));
    color: var(--tone, var(--muted-strong));
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   Panels & public page
   ------------------------------------------------------------------ */

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(21, 28, 37, 0.88), rgba(12, 17, 23, 0.94));
    box-shadow: var(--shadow-lg);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background: rgba(7, 9, 12, 0.72);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    color: var(--muted-strong);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link svg {
    width: 16px;
    height: 16px;
}

.header-user {
    color: var(--muted);
    font-size: 0.8rem;
}

.collab-banner {
    position: relative;
    z-index: 31;
    overflow: hidden;
    border-bottom: 1px solid rgba(53, 245, 207, 0.2);
    background:
        radial-gradient(680px 120px at 12% 0%, rgba(53, 245, 207, 0.18), transparent 70%),
        radial-gradient(620px 120px at 88% 0%, rgba(0, 168, 255, 0.18), transparent 70%),
        linear-gradient(90deg, rgba(13, 32, 34, 0.96), rgba(10, 22, 34, 0.96));
}

.collab-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
    pointer-events: none;
}

.collab-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.collab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.28rem 0.58rem;
    border: 1px solid rgba(53, 245, 207, 0.28);
    border-radius: 999px;
    background: rgba(53, 245, 207, 0.1);
    color: var(--cyan);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.collab-badge svg {
    width: 13px;
    height: 13px;
}

.collab-copy {
    display: grid;
    gap: 0.08rem;
    flex: 1;
    min-width: 210px;
}

.collab-copy strong {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.collab-copy span {
    color: var(--muted-strong);
    font-size: 0.75rem;
    line-height: 1.45;
}

.collab-code {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.62rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--muted-strong);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.collab-code strong {
    color: var(--cyan);
    font-weight: 700;
}

.banner-wrap {
    padding-top: clamp(1.6rem, 4vw, 2.6rem);
    padding-bottom: 1.6rem;
}

.promo-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.2rem, 4vw, 2.5rem);
    padding: clamp(1.6rem, 4vw, 2.8rem);
    border: 1px solid rgba(53, 245, 207, 0.22);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(130% 170% at 100% 0%, rgba(0, 168, 255, 0.2), transparent 58%),
        radial-gradient(100% 150% at 0% 100%, rgba(53, 245, 207, 0.13), transparent 55%),
        linear-gradient(135deg, rgba(21, 28, 37, 0.97), rgba(10, 14, 19, 0.99));
    box-shadow: var(--shadow-lg);
}

.promo-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(circle at 88% 12%, #000 0%, transparent 64%);
    mask-image: radial-gradient(circle at 88% 12%, #000 0%, transparent 64%);
    pointer-events: none;
}

.promo-banner::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 245, 207, 0.22), transparent 68%);
    pointer-events: none;
}

.promo-copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: start;
    gap: 0.8rem;
}

.promo-copy h1 {
    max-width: 660px;
    font-size: clamp(1.75rem, 3.6vw, 2.85rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.promo-copy p {
    color: var(--muted-strong);
    font-size: 0.98rem;
    line-height: 1.65;
}

.banner-cta {
    position: relative;
    z-index: 1;
    flex: none;
    white-space: nowrap;
}

.hero-copy {
    max-width: 660px;
    color: var(--muted-strong);
    font-size: 1.01rem;
    line-height: 1.7;
}

.verify-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
    gap: 1.15rem;
    align-items: start;
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.verify-card {
    padding: clamp(1.25rem, 3vw, 2.1rem);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding-bottom: 1.35rem;
    margin-bottom: 1.45rem;
    border-bottom: 1px solid var(--border);
}

.step {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    min-width: 0;
}

.step-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(53, 245, 207, 0.24);
    border-radius: 50%;
    background: rgba(53, 245, 207, 0.08);
    color: var(--cyan);
    font-size: 0.73rem;
    font-weight: 700;
    flex: none;
}

.step div {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.step strong {
    font-size: 0.77rem;
    font-weight: 600;
}

.step div > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.card-heading h2 {
    margin-top: 0.15rem;
    font-size: clamp(1.32rem, 2.4vw, 1.55rem);
    letter-spacing: -0.02em;
}

.secure-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.34rem 0.62rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    flex: none;
}

.secure-chip svg {
    width: 13px;
    height: 13px;
    color: var(--green);
}

.verify-form {
    display: grid;
    gap: 1.1rem;
}

.form-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.735rem;
    line-height: 1.5;
}

.form-note svg {
    width: 14px;
    height: 14px;
    margin-top: 0.1rem;
    flex: none;
}

.verify-aside {
    position: sticky;
    top: 5.4rem;
    display: grid;
    gap: 1rem;
}

.info-panel,
.tip-panel {
    padding: 1.35rem;
}

.info-panel h2 {
    margin-bottom: 1rem;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.check-list {
    display: grid;
    gap: 1rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.68rem;
}

.check-bullet {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(46, 230, 168, 0.26);
    border-radius: 50%;
    background: rgba(46, 230, 168, 0.1);
    color: var(--green);
    flex: none;
}

.check-bullet svg {
    width: 12px;
    height: 12px;
}

.check-list div {
    display: grid;
    gap: 0.18rem;
}

.check-list strong {
    font-size: 0.8rem;
    font-weight: 600;
}

.check-list div > span {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.tip-panel {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border-color: rgba(53, 245, 207, 0.14);
    background:
        radial-gradient(340px 160px at 20% 0%, rgba(53, 245, 207, 0.07), transparent 70%),
        linear-gradient(180deg, rgba(19, 27, 34, 0.9), rgba(12, 17, 23, 0.94));
}

.tip-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(53, 245, 207, 0.1);
    color: var(--cyan);
    flex: none;
}

.tip-icon svg {
    width: 18px;
    height: 18px;
}

.tip-panel strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
}

.tip-panel p {
    color: var(--muted);
    font-size: 0.755rem;
    line-height: 1.55;
}

.success-state {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0 0.2rem;
    text-align: center;
    scroll-margin-top: 5.4rem;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(46, 230, 168, 0.32);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 230, 168, 0.18), rgba(46, 230, 168, 0.035));
    color: var(--green);
    box-shadow: 0 0 45px rgba(46, 230, 168, 0.15);
    margin-bottom: 0.25rem;
}

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

.success-state h2 {
    color: var(--muted-strong);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#success-coins {
    display: block;
    font-size: clamp(2.8rem, 6vw, 3.7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.success-copy {
    max-width: 430px;
    font-size: 0.875rem;
    line-height: 1.65;
}

.success-copy .mono {
    color: var(--text);
}

.success-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    width: 100%;
    margin: 0.7rem 0 0.35rem;
    text-align: left;
}

.success-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.success-meta span:first-child {
    color: var(--muted);
    font-size: 0.7rem;
}

.success-meta strong {
    font-size: 0.84rem;
}

.site-footer {
    padding: 1.4rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.footer-links {
    display: flex;
    gap: 1.2rem;
}

.footer-links a {
    color: var(--muted-strong);
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-links a:hover {
    color: var(--text);
}

/* ------------------------------------------------------------------
   Auth pages
   ------------------------------------------------------------------ */

.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
}

.auth-shell {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.auth-intro h1 {
    max-width: 640px;
    margin: 0.7rem 0 1rem;
    font-size: clamp(2.4rem, 4.4vw, 3.85rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.auth-points {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.6rem;
    color: var(--muted-strong);
    font-size: 0.9rem;
}

.auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.auth-preview {
    max-width: 465px;
    margin-top: 2rem;
    padding: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(23, 31, 41, 0.82), rgba(10, 14, 20, 0.92));
    box-shadow: var(--shadow-lg);
}

.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 0.25rem 0.75rem;
    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.preview-head .live-chip {
    padding: 0.25rem 0.5rem;
    font-size: 0.6rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.preview-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.68rem 0.5rem;
    border-top: 1px solid var(--border);
}

.preview-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(53, 245, 207, 0.1);
    color: var(--cyan);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex: none;
}

.preview-avatar-alt {
    background: rgba(46, 230, 168, 0.1);
    color: var(--green);
    font-size: 0.66rem;
}

.preview-avatar-dim {
    background: rgba(255, 107, 129, 0.09);
    color: #ffa3b1;
    font-size: 0.66rem;
}

.preview-lines {
    display: grid;
    flex: 1;
    gap: 5px;
}

.preview-lines span {
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.075);
}

.preview-lines span:first-child {
    width: 72%;
}

.preview-lines span:last-child {
    width: 44%;
}

.preview-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.2rem 0 0.8rem;
}

.preview-stat-grid div {
    display: grid;
    gap: 0.2rem;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.preview-stat-grid span {
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.preview-stat-grid strong {
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.auth-card {
    width: 100%;
    padding: clamp(1.5rem, 3.2vw, 2.25rem);
    border-radius: 24px;
}

.auth-card-head {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1.35rem;
}

.auth-card-head h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.6rem);
    letter-spacing: -0.025em;
}

.auth-card-head p {
    font-size: 0.85rem;
}

.role-chip {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.58rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.role-admin {
    border: 1px solid rgba(0, 168, 255, 0.25);
    background: rgba(0, 168, 255, 0.09);
    color: #8ad8ff;
}

.role-affiliate {
    border: 1px solid rgba(46, 230, 168, 0.25);
    background: rgba(46, 230, 168, 0.09);
    color: #7bf7c9;
}

.stack-form {
    display: grid;
    gap: 1.05rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.35rem 0 1rem;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: var(--border);
    flex: 1;
}

.auth-foot {
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.auth-foot a {
    color: var(--cyan);
    font-weight: 600;
    text-decoration: none;
}

.auth-foot a:hover {
    text-decoration: underline;
}

.auth-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding-top: 1.2rem;
    padding-bottom: 1.4rem;
    color: var(--muted);
    font-size: 0.73rem;
}

/* ------------------------------------------------------------------
   Dashboard shell
   ------------------------------------------------------------------ */

.panel-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    width: 270px;
    height: 100vh;
    padding: 1.45rem 1.1rem;
    border-right: 1px solid var(--border);
    background: rgba(8, 12, 17, 0.82);
    backdrop-filter: blur(18px);
    flex: none;
}

.sidebar-brand {
    padding: 0.25rem 0.4rem 0;
}

.sidebar-label {
    padding: 0 0.55rem;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    padding: 0.62rem 0.7rem;
    border-radius: 10px;
    color: var(--muted-strong);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex: none;
    transition: color 0.18s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.sidebar-link:hover svg {
    color: var(--text);
}

.sidebar-link.is-active {
    background: rgba(53, 245, 207, 0.07);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(53, 245, 207, 0.14);
}

.sidebar-link.is-active svg {
    color: var(--cyan);
}

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

.sidebar-link-muted svg {
    color: var(--muted);
}

.nav-badge {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.32rem;
    margin-left: auto;
    border-radius: 999px;
    background: rgba(245, 183, 78, 0.13);
    color: #ffd58a;
    font-size: 0.64rem;
    font-weight: 700;
}

.sidebar-divider {
    height: 1px;
    margin: 0.55rem 0.4rem;
    background: var(--border);
}

.sidebar-spacer {
    flex: 1;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(53, 245, 207, 0.25);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(53, 245, 207, 0.2), rgba(0, 168, 255, 0.14));
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 800;
    flex: none;
}

.avatar-cyan {
    border-color: rgba(46, 230, 168, 0.26);
    background: linear-gradient(135deg, rgba(46, 230, 168, 0.18), rgba(53, 245, 207, 0.1));
    color: var(--green);
}

.sidebar-user-info {
    display: grid;
    min-width: 0;
    flex: 1;
}

.sidebar-user-info strong {
    overflow: hidden;
    font-size: 0.77rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-info span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    flex: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.icon-btn svg {
    width: 17px;
    height: 17px;
}

.panel-main {
    width: 100%;
    max-width: 1460px;
    min-width: 0;
    margin-inline: auto;
    padding: 2rem clamp(1.2rem, 2.6vw, 2.4rem) 3rem;
}

.panel-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.panel-topbar h1 {
    margin: 0.15rem 0 0.35rem;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    letter-spacing: -0.03em;
}

.panel-topbar p.muted {
    font-size: 0.84rem;
}

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

/* ------------------------------------------------------------------
   Stats
   ------------------------------------------------------------------ */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.35rem;
}

.stat-card {
    --accent: var(--cyan);
    position: relative;
    overflow: hidden;
    padding: 1.05rem 1.15rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(23, 30, 40, 0.72), rgba(13, 18, 25, 0.9));
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent 78%);
}

.stat-card::after {
    content: "";
    position: absolute;
    top: -75px;
    right: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%);
    pointer-events: none;
}

.accent-cyan {
    --accent: #35f5cf;
}

.accent-green {
    --accent: #2ee6a8;
}

.accent-amber {
    --accent: #f5b74e;
}

.accent-rose {
    --accent: #ff6b81;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    flex: none;
}

.stat-icon svg {
    width: 17px;
    height: 17px;
}

.stat-value {
    margin: 0.5rem 0 0.15rem;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.stat-sub {
    color: var(--muted);
    font-size: 0.72rem;
}

.stat-sub strong {
    color: var(--muted-strong);
    font-weight: 600;
}

/* ------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------ */

.table-panel {
    overflow: hidden;
    border-radius: 20px;
}

.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1.15rem 1.3rem;
    border-bottom: 1px solid var(--border);
}

.panel-title {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.table-toolbar p.muted {
    margin-top: 0.15rem;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding: 0.22rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.022);
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.43rem 0.72rem;
    border-radius: 9px;
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.tab.is-active {
    background: rgba(53, 245, 207, 0.09);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(53, 245, 207, 0.16);
}

.tab-count {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 700;
}

.tab.is-active .tab-count {
    background: rgba(53, 245, 207, 0.16);
    color: var(--cyan);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.search-form .input-shell {
    width: 235px;
}

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

.table-scroll-hint {
    display: none;
    padding: 0.55rem 1.3rem;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.7rem;
}

.data-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.data-table th {
    padding: 0.82rem 1.3rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.013);
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 0.98rem 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.042);
    font-size: 0.84rem;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.16s ease, opacity 0.22s ease, transform 0.22s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.017);
}

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

.data-table tr.is-removing {
    opacity: 0;
    transform: translateX(10px);
}

.cell-primary {
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.4;
}

.cell-primary.mono,
.cell-secondary.mono {
    white-space: nowrap;
}

.cell-secondary {
    margin-top: 0.18rem;
    color: var(--muted);
    font-size: 0.71rem;
    line-height: 1.4;
}

.coin-value {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.coin-unit {
    margin-left: 0.24rem;
    color: var(--muted);
    font-size: 0.68rem;
}

.status-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.32rem;
}

.row-note {
    max-width: 210px;
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.4;
}

.row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.32rem;
}

.reviewed-by {
    color: var(--muted);
    font-size: 0.72rem;
}

.table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.95rem 1.3rem;
    border-top: 1px solid var(--border);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-indicator {
    color: var(--muted-strong);
    font-size: 0.74rem;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    max-width: 430px;
    margin-inline: auto;
    padding: 2.4rem 1rem;
    color: var(--muted);
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-strong);
}

.empty-icon svg {
    width: 22px;
    height: 22px;
}

.empty-state strong {
    color: var(--text);
    font-size: 0.9rem;
}

.empty-state p {
    font-size: 0.79rem;
    line-height: 1.55;
}

/* ------------------------------------------------------------------
   Affiliate referral banner
   ------------------------------------------------------------------ */

.referral-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
    padding: 1.45rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(53, 245, 207, 0.17);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(680px 220px at 8% 0%, rgba(53, 245, 207, 0.1), transparent 66%),
        linear-gradient(180deg, rgba(19, 28, 34, 0.9), rgba(11, 16, 22, 0.94));
}

.referral-banner h2 {
    margin: 0.18rem 0 0.38rem;
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    letter-spacing: -0.025em;
}

.referral-banner p.muted {
    font-size: 0.82rem;
    line-height: 1.55;
}

.referral-code-box {
    display: grid;
    justify-items: end;
    gap: 0.6rem;
    width: 100%;
}

.ref-code {
    padding: 0.35rem 0.68rem;
    border: 1px solid rgba(53, 245, 207, 0.24);
    border-radius: 999px;
    background: rgba(53, 245, 207, 0.08);
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.copy-row {
    display: flex;
    gap: 0.45rem;
    width: 100%;
}

.copy-input {
    flex: 1;
    min-width: 0;
    padding: 0.62rem 0.72rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--muted-strong);
    font-family: var(--mono);
    font-size: 0.72rem;
    outline: none;
}

.copy-input:focus {
    border-color: rgba(53, 245, 207, 0.4);
    box-shadow: 0 0 0 3px rgba(53, 245, 207, 0.06);
}

/* ------------------------------------------------------------------
   Affiliate management
   ------------------------------------------------------------------ */

.ref-code-sm {
    padding: 0.25rem 0.52rem;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.cell-link {
    display: inline-block;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.cell-link:hover {
    color: var(--cyan);
}

.banner-preview {
    max-width: 175px;
    overflow: hidden;
    margin-top: 0.28rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.affiliate-profile {
    align-items: center;
}

.affiliate-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.affiliate-identity h2 {
    margin: 0.1rem 0 0.2rem;
}

.affiliate-identity p.muted {
    font-size: 0.8rem;
}

.avatar-lg {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 1rem;
}

.identity-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.table-toolbar-search {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.manage-panel {
    padding: 1.4rem;
    margin-top: 1.25rem;
}

.manage-panel-head {
    padding-bottom: 1rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--border);
}

.manage-panel-head h2 {
    margin: 0.15rem 0 0.3rem;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

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

.form-grid .field-full {
    grid-column: 1 / -1;
}

.form-section {
    display: grid;
    gap: 0.8rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.form-section h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted-strong);
    font-size: 0.82rem;
    cursor: pointer;
}

.check-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--cyan);
    flex: none;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.2rem;
}

.danger-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem;
    margin-top: 1.25rem;
    border-color: rgba(255, 107, 129, 0.24);
    background:
        radial-gradient(520px 180px at 0% 0%, rgba(255, 107, 129, 0.08), transparent 70%),
        linear-gradient(180deg, rgba(24, 18, 22, 0.86), rgba(12, 16, 21, 0.94));
}

.danger-panel h2 {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.danger-panel p.muted {
    max-width: 640px;
    font-size: 0.78rem;
    line-height: 1.55;
}

/* ------------------------------------------------------------------
   Modal
   ------------------------------------------------------------------ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 1.15rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 8, 0.72);
    backdrop-filter: blur(6px);
}

.modal-card {
    position: relative;
    width: min(470px, 100%);
    padding: 1.65rem;
    border-radius: 20px;
    animation: modal-in 0.2s ease-out;
}

.modal-card h2 {
    margin: 0.3rem 0 0.55rem;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
}

.modal-card > p.muted {
    font-size: 0.83rem;
    line-height: 1.55;
}

.modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.modal-close svg {
    width: 17px;
    height: 17px;
}

.review-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 1rem 0 1.05rem;
}

.review-summary > div {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.review-summary span {
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.review-summary strong {
    font-size: 0.86rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

#reject-note-field {
    margin-bottom: 1rem;
}

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

.modal .form-alert {
    margin: 0.9rem 0 0;
}

/* ------------------------------------------------------------------
   Toasts
   ------------------------------------------------------------------ */

.toast-stack {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    max-width: 360px;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: #111a22;
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.4;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: none;
}

.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
    flex: none;
}

.toast-success .toast-dot {
    background: var(--green);
    box-shadow: 0 0 12px rgba(46, 230, 168, 0.7);
}

.toast-danger .toast-dot {
    background: var(--rose);
    box-shadow: 0 0 12px rgba(255, 107, 129, 0.7);
}

/* ------------------------------------------------------------------
   Fatal page
   ------------------------------------------------------------------ */

.fatal-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.fatal-card {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    width: min(500px, 100%);
    padding: 2.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(21, 28, 37, 0.9), rgba(12, 17, 23, 0.95));
    text-align: center;
}

.fatal-card h1 {
    font-size: 1.9rem;
    letter-spacing: -0.03em;
}

.fatal-card .muted {
    line-height: 1.6;
}

/* ------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------ */

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

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.55;
    }
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

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

    .auth-shell {
        gap: 2.5rem;
    }
}

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

    .verify-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .referral-code-box {
        justify-items: start;
    }
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        padding-top: 0.5rem;
    }

    .auth-intro {
        max-width: 680px;
    }

    .auth-preview {
        display: none;
    }

    .auth-card {
        justify-self: center;
        width: min(100%, 500px);
    }

    .auth-footer {
        padding-top: 1rem;
    }

    .panel-shell {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.7rem;
        padding: 0.85rem 1.15rem;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-brand {
        padding: 0;
    }

    .sidebar-label,
    .sidebar-divider,
    .sidebar-spacer {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        align-items: center;
        width: 100%;
        order: 3;
        padding-top: 0.15rem;
        overflow-x: auto;
        gap: 0.15rem;
        scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .sidebar-link {
        padding: 0.48rem 0.65rem;
        font-size: 0.77rem;
        white-space: nowrap;
    }

    .sidebar-link svg {
        width: 16px;
        height: 16px;
    }

    .sidebar-user {
        margin-left: auto;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .sidebar-user-info {
        display: none;
    }

    .sidebar-link-muted {
        display: none;
    }

    .panel-main {
        padding-top: 1.5rem;
    }

    .table-scroll-hint {
        display: block;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 1.8rem, 1180px);
    }

    .collab-banner-inner {
        gap: 0.5rem;
    }

    .collab-copy {
        order: 3;
        min-width: 100%;
    }

    .collab-code {
        margin-left: auto;
    }

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

    .affiliate-identity {
        align-items: flex-start;
    }

    .danger-panel form,
    .danger-panel .btn {
        width: 100%;
    }

    .banner-wrap {
        padding-top: 1.25rem;
        padding-bottom: 1.2rem;
    }

    .promo-banner {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.35rem;
    }

    .promo-copy h1 {
        font-size: clamp(1.6rem, 7vw, 2.1rem);
    }

    .hero-copy {
        font-size: 0.93rem;
    }

    .banner-cta {
        width: 100%;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.6rem;
    }

    .step div > span {
        white-space: normal;
    }

    .card-heading {
        flex-direction: column;
        gap: 0.6rem;
    }

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

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

    .stat-grid {
        gap: 0.65rem;
    }

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

    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

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

    .tab {
        white-space: nowrap;
    }

    .search-form {
        width: 100%;
    }

    .search-form .input-shell {
        flex: 1;
        width: auto;
        min-width: 150px;
    }

    .panel-topbar {
        gap: 0.9rem;
    }

    .topbar-actions {
        width: 100%;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

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

    .toast-stack {
        right: 0.9rem;
        left: 0.9rem;
        bottom: 0.9rem;
    }

    .toast {
        max-width: none;
    }

    .auth-topbar .nav-link {
        font-size: 0.78rem;
    }

    .preview-stat-grid {
        gap: 0.4rem;
    }
}

@media (max-width: 560px) {
    .header-nav {
        gap: 0.75rem;
    }

    .header-user {
        display: none;
    }

    .brand-name {
        font-size: 0.95rem;
    }

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

    .verify-card {
        padding: 1.1rem;
    }

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

    .referral-banner {
        padding: 1.1rem;
    }

    .copy-row {
        flex-direction: column;
    }

    .copy-row .btn {
        width: 100%;
    }

    .footer-inner,
    .auth-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-shell {
        gap: 1.5rem;
    }

    .auth-intro h1 {
        font-size: clamp(2.05rem, 9vw, 2.7rem);
    }
}

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

    .stat-value {
        font-size: 1.7rem;
    }
}

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