/* =========================
   AUTH
========================= */

.auth-container {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

}


.auth-card {

    width: 100%;

    max-width: 420px;

    padding: 30px 22px;

    background:
        rgba(15, 23, 42, .97);

    border:
        2px solid #8b5cf6;

    border-radius: 22px;

    box-shadow:
        0 0 30px
        rgba(139, 92, 246, .4);

}


.auth-card h1 {

    text-align: center;

    font-size: 30px;

}


.subtitle {

    text-align: center;

    color: #9ca3af;

    margin-bottom: 25px;

}


.auth-card label {

    display: block;

    margin:
        14px 0 7px;

    color: #d1d5db;

}


.auth-card input {

    width: 100%;

    padding: 14px;

    border: 1px solid #374151;

    border-radius: 10px;

    outline: none;

    background: #111827;

    color: white;

    font-size: 16px;

}


.auth-card input:focus {

    border-color:
        #8b5cf6;

}


.primary-button {

    width: 100%;

    padding: 14px;

    margin-top: 22px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #6d28d9
        );

    color: white;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

}


.form-message {

    margin-top: 15px;

    text-align: center;

}


.form-message.success {

    color: #22c55e;

}


.form-message.error {

    color: #ef4444;

}


.auth-link {

    margin-top: 20px;

    text-align: center;

    color: #9ca3af;

}


.auth-link a {

    color: #a78bfa;

}


/* =========================
   TOP BAR
========================= */

.top-bar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}


.top-bar button {

    padding: 8px 14px;

    border: 1px solid #475569;

    border-radius: 8px;

    background: transparent;

    color: white;

    cursor: pointer;

}


/* =========================
   HISTORY
========================= */

.history {

    margin-top: 20px;

    max-height: 300px;

    overflow-y: auto;

}


.history-item {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 8px;

    padding: 10px;

    background: #111827;

    border-radius: 8px;

    font-size: 13px;

}


.history-item span {

    color: #22c55e;

}


.history-item small {

    color: #9ca3af;

}

/* =========================
   WALLET
========================= */

.wallet-page {

    min-height: 100vh;

    padding: 20px;

    display: flex;

    justify-content: center;

}


.wallet-card {

    width: 100%;

    max-width: 500px;

    padding: 22px;

    background: #0f172a;

    border:
        1px solid #334155;

    border-radius: 20px;

}


.back-button {

    border: none;

    background: transparent;

    color: white;

    font-size: 16px;

    cursor: pointer;

}


.wallet-card h1 {

    text-align: center;

    margin: 20px 0;

}


.wallet-balance {

    text-align: center;

    padding: 20px;

    background: #111827;

    border-radius: 15px;

    color: #94a3b8;

}


.wallet-balance strong {

    display: block;

    margin-top: 8px;

    color: #22c55e;

    font-size: 30px;

}


.amount-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin: 15px 0;

}


.amount-grid button {

    padding: 13px;

    border: 1px solid #475569;

    border-radius: 10px;

    background: #1e293b;

    color: white;

    cursor: pointer;

}


.wallet-card input {

    width: 100%;

    box-sizing: border-box;

    padding: 14px;

    background: #020617;

    border: 1px solid #475569;

    border-radius: 10px;

    color: white;

    font-size: 17px;

}


.pay-button {

    width: 100%;

    margin-top: 15px;

    padding: 15px;

    border: none;

    border-radius: 12px;

    background: #7c3aed;

    color: white;

    font-size: 16px;

    font-weight: bold;

}


.payment-box {

    margin-top: 25px;

    padding: 20px;

    text-align: center;

    background: #111827;

    border-radius: 15px;

}


.hidden {

    display: none;

}


.payment-qr {

    display: block;

    width: 250px;

    max-width: 100%;

    margin: 20px auto;

    border-radius: 10px;

}


.qr-placeholder {

    padding: 40px 10px;

    color: #94a3b8;

}


.payment-link {

    display: none;

    color: #a78bfa;

    margin: 15px;

}


.check-button {

    padding: 12px 20px;

    border: none;

    border-radius: 10px;

    background: #16a34a;

    color: white;

}


.deposit-history {

    margin-top: 15px;

}


.deposit-item {

    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 5px;

    padding: 12px;

    margin-bottom: 8px;

    background: #111827;

    border-radius: 10px;

}


.deposit-item small {

    grid-column: 1 / -1;

    color: #64748b;

}


.success {

    color: #22c55e;

}


.failed {

    color: #ef4444;

}


.pending {

    color: #f59e0b;

}


.add-balance-button {

    width: 100%;

    margin: 12px 0;

    padding: 14px;

    border: none;

    border-radius: 12px;

    background: #16a34a;

    color: white;

    font-size: 16px;

    font-weight: bold;

}