/* ================= WALLET & AUTH ================= */

.balance-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid #1e293b;
}

.balance-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.balance-info .label {
    font-size: 12px;
    color: #94a3b8;
}

.balance-info .amount {
    font-size: 16px;
    font-weight: 600;
    color: #38bdf8;
}

.add-balance-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.add-balance-btn:hover {
    opacity: 0.9;
}

/* LOGIN / LOGOUT BUTTON */
.login-btn,
.logout-btn {
    margin-left: 10px;
    background: #2563eb;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.logout-btn {
    background: #ef4444;
}

.logout-btn:hover {
    opacity: 0.9;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    .balance-box {
        display: none;
    }

    .login-btn,
    .logout-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* ================= AUTH PAGES (login / register) ================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg1: #0f172a;
    --bg2: #0b2545;
    --card: #0b1220;
    --accent: #4f46e5;
    --muted: #9aa4bf;
    --success: #16a34a;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, Segoe UI, Roboto, -apple-system, "Helvetica Neue", Arial
}

body {
    background: linear-gradient(135deg, var(--bg1), var(--bg2));
    color: #e6eef8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px
}

/* Ensure pages that opt into the auth theme exactly match register/login look */
body.auth-page {
    background: linear-gradient(135deg, var(--bg1), var(--bg2));
    color: #e6eef8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 36px;
    align-items: center
}

.brand-panel {
    padding: 36px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    box-shadow: 0 6px 30px rgba(8, 15, 30, 0.6);
}

.brand-panel h1 {
    margin: 0 0 8px;
    font-size: 36px;
    line-height: 1;
    color: var(--accent)
}

.brand-panel p {
    color: var(--muted);
    margin: 0 0 18px
}

.features {
    display: grid;
    gap: 12px;
    margin-top: 16px
}

.feature {
    display: flex;
    gap: 12px;
    align-items: center
}

.feature .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.18);
    display: inline-block
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
}

.form-title {
    font-size: 20px;
    margin: 0 0 6px
}

.form-sub {
    color: var(--muted);
    margin: 0 0 16px;
    font-size: 14px
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
    border-radius: 10px;
    color: inherit;
    outline: none
}

.input::placeholder {
    color: rgba(230, 238, 248, 0.4)
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.08)
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px
}

.btn {
    background: linear-gradient(90deg, var(--accent), #06b6d4);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06)
}

.small {
    font-size: 13px;
    color: var(--muted)
}

.links {
    display: flex;
    gap: 10px;
    align-items: center
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600
}

.help {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px
}

.footer-note {
    margin-top: 18px;
    color: rgba(230, 238, 248, 0.35);
    font-size: 13px
}

.center {
    display: flex;
    align-items: center;
    justify-content: center
}

.pulse {
    animation: pulse 3s ease-in-out infinite
}

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.02)
    }

    100% {
        transform: scale(1)
    }
}

.password-row {
    display: flex;
    gap: 8px
}

.toggle-pass {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #06b6d4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

@media (max-width:880px) {
    .container {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 8px
    }

    .brand-panel {
        order: 2
    }
}

@media (max-width:420px) {
    .brand-panel h1 {
        font-size: 28px
    }

    .card {
        padding: 20px
    }

    .input {
        padding: 10px
    }
}

/* Small utility */
.text-danger {
    color: #f87171
}

.text-success {
    color: var(--success)
}