/* Globe Reseller Panel v2 — studio dark */

:root {
    --sand: #C9A962;
    --sand-dim: #9A7B3C;
    --ink: #09090B;
    --ink-card: #161618;
    --line: #27272A;
}

* { box-sizing: border-box; }

body {
    background: var(--ink);
    color: #FAFAFA;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.app-shell { min-height: 100vh; }

.sidebar-rail {
    width: 68px;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-rail:hover,
.sidebar-rail.is-open { width: 228px; }

.sidebar-rail:hover ~ .main-stage,
.sidebar-rail.is-open ~ .main-stage { margin-left: 228px; }
.main-stage {
    margin-left: 68px;
    transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-label {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}
.sidebar-rail:hover .nav-label,
.sidebar-rail.is-open .nav-label {
    opacity: 1;
    transform: translateX(0);
}

/* ── Surfaces ── */
.panel {
    background: var(--ink-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}

.panel-raised {
    background: #1C1C1F;
    border: 1px solid #2E2E32;
    border-radius: 14px;
}

.panel-hover {
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.panel-hover:hover {
    border-color: #3F3F46;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    border-radius: 10px;
    padding: 0.625rem 1.125rem;
    transition: all 0.18s ease;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.25;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-sand {
    background: var(--sand);
    color: #0A0A0A;
    border-color: var(--sand-dim);
}
.btn-sand:hover:not(:disabled) {
    background: #DEC68A;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.22);
}

.btn-ghost {
    background: transparent;
    color: #D4D4D8;
    border-color: var(--line);
}
.btn-ghost:hover:not(:disabled) {
    background: #1C1C1F;
    border-color: #3F3F46;
    color: #FAFAFA;
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    border-color: #4752C4;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
}
.btn-discord:hover:not(:disabled) {
    background: #4752C4;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.28);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.1);
    color: #FCA5A5;
    border-color: rgba(248, 113, 113, 0.25);
}
.btn-danger:hover:not(:disabled) {
    background: rgba(248, 113, 113, 0.18);
}

.btn-sm { padding: 0.4375rem 0.875rem; font-size: 0.75rem; }

/* ── Inputs ── */
.field {
    width: 100%;
    background: #09090B;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.6875rem 0.875rem;
    font-size: 0.875rem;
    color: #FAFAFA;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field:focus {
    outline: none;
    border-color: rgba(201, 169, 98, 0.45);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.08);
}
.field::placeholder { color: #52525B; }

.field-mono {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.04em;
    font-size: 0.8125rem;
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    border: 1px solid;
}
.badge-live { background: rgba(74,222,128,0.08); color: #86EFAC; border-color: rgba(74,222,128,0.22); }
.badge-banned { background: rgba(248,113,113,0.08); color: #FCA5A5; border-color: rgba(248,113,113,0.22); }
.badge-warn { background: rgba(251,191,36,0.08); color: #FCD34D; border-color: rgba(251,191,36,0.22); }
.badge-sand { background: rgba(201,169,98,0.1); color: #DEC68A; border-color: rgba(201,169,98,0.25); }

/* ── Stats ── */
.stat-num {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* ── Login ── */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #09090B;
}
@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-brand { display: none; }
}

.login-brand {
    position: relative;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
    overflow: hidden;
}
.login-brand::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(201,169,98,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.logo-mark {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.logo-mark-lg {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* ── Payment methods ── */
.pay-option {
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.125rem;
    transition: all 0.18s ease;
    background: #111113;
}
.pay-option:hover { border-color: #3F3F46; }
.pay-option.selected {
    border-color: rgba(201, 169, 98, 0.5);
    background: rgba(201, 169, 98, 0.06);
    box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.15);
}

.amount-chip {
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.18s ease;
    background: #111113;
}
.amount-chip:hover { border-color: #3F3F46; }
.amount-chip.selected {
    border-color: var(--sand);
    background: rgba(201, 169, 98, 0.08);
    color: var(--sand-light, #DEC68A);
}

/* ── Toasts ── */
.toast-item {
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: #161618;
    border: 1px solid #27272A;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.toast-item.exit { animation: toastOut 0.28s ease forwards; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-6px); }
}

.toast-bar {
    height: 2px;
    border-radius: 1px;
    margin-top: 0.625rem;
    animation: toastBar linear forwards;
}
@keyframes toastBar { from { width: 100%; } to { width: 0%; } }

/* ── Table ── */
.data-table th {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717A;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}
.data-table td {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(39,39,42,0.6);
    font-size: 0.8125rem;
}

.page-in {
    animation: pageIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #3F3F46; border-radius: 3px; }

.copyable { cursor: pointer; }
.copyable:hover { color: #DEC68A; }
