* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6fb;
    color: #0f172a;
}

a {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 20px;
}

.card-shell {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.topbar-dark {
    background: #07132f;
    color: #fff;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-purple {
    background: linear-gradient(135deg, #5b47ff, #4b3df2);
    color: #fff;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge-top {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
}

.auth-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    padding: 40px 34px;
    align-items: center;
    min-height: 460px;
}

.auth-left h1 {
    font-size: 58px;
    line-height: 1.05;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -1px;
}

.auth-left p {
    color: #475569;
    font-size: 18px;
    line-height: 1.7;
    max-width: 500px;
}

.feature-pills {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-pills span {
    background: #eef2f7;
    color: #1e293b;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
}

.auth-form-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
}

.auth-form-card h2 {
    font-size: 22px;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: block;
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
}

input, textarea, select {
    width: 100%;
    border: 1px solid #d7dee8;
    background: #fff;
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 15px;
    outline: none;
    color: #0f172a;
}

input:focus, textarea:focus, select:focus {
    border-color: #64748b;
}

.btn-dark,
.btn-purple,
.btn-light {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-dark {
    background: #07132f;
    color: #fff;
}

.btn-purple {
    background: #4f46e5;
    color: #fff;
}

.btn-light {
    background: #fff;
    color: #0f172a;
    border: 1px solid #cfd8e3;
}

.auth-alt {
    margin-top: 14px;
}

.message {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
}

.message.success {
    background: #eafaf0;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.small-top {
    font-size: 14px;
    opacity: 0.9;
}

.pending-topbar {
    background: #f59e0b;
    color: #fff;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pending-wrap {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 34px;
    padding: 42px 34px;
}

.status-pill {
    display: inline-block;
    background: #fff4cf;
    color: #92400e;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 24px;
}

.pending-left h1 {
    font-size: 58px;
    line-height: 1.05;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -1px;
}

.pending-left p {
    color: #475569;
    font-size: 18px;
    line-height: 1.7;
}

.support-box, .logic-box {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #f3d37a;
    padding: 26px;
}

.support-box {
    margin-top: 28px;
}

.support-box h3,
.logic-box h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.support-email {
    font-size: 24px;
    font-weight: 800;
    margin: 8px 0 18px;
}

.logic-list {
    display: grid;
    gap: 16px;
}

.logic-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    color: #334155;
    line-height: 1.5;
}

.dashboard-shell {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 220px 1fr 320px;
    min-height: 780px;
}

.sidebar {
    background: #07132f;
    color: #fff;
    padding: 28px 22px;
}

.logo {
    font-size: 30px;
    font-weight: 800;
}

.sublogo {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 4px;
}

.nav {
    margin-top: 32px;
    display: grid;
    gap: 12px;
}

.nav a {
    color: #dbe4f0;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 15px;
}

.nav a.active,
.nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.balance-card {
    margin-top: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 20px;
}

.balance-card .amount {
    font-size: 36px;
    font-weight: 800;
    margin: 8px 0;
}

.main-panel {
    background: #f8fafc;
    padding: 30px;
}

.main-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.main-top h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.main-top p {
    color: #64748b;
}

.action-btns {
    display: flex;
    gap: 12px;
}

.btn-inline {
    display: inline-block;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 700;
    border: 1px solid #d7dee8;
    background: #fff;
    color: #0f172a;
}

.btn-inline.dark {
    background: #07132f;
    color: #fff;
    border-color: #07132f;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 20px;
}

.stat-card .title {
    color: #64748b;
    font-size: 14px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 800;
    margin: 8px 0;
}

.stat-card .meta {
    font-size: 13px;
    color: #94a3b8;
}

.table-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
}

.table-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.table-top h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-btn {
    background: #f8fafc;
    border: 1px solid #d7dee8;
    border-radius: 999px;
    padding: 10px 16px;
    color: #334155;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    font-size: 14px;
    color: #64748b;
    padding: 14px 10px;
    border-bottom: 1px solid #e2e8f0;
}

table td {
    padding: 16px 10px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
    vertical-align: top;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 999px;
    font-weight: 700;
}

.badge.green {
    background: #e8fbef;
    color: #15803d;
}

.badge.red {
    background: #ffe8ec;
    color: #be123c;
}

.badge.blue {
    background: #e8f0ff;
    color: #2563eb;
}

.badge.amber {
    background: #fff3db;
    color: #b45309;
}

.right-panel {
    background: #fff;
    padding: 30px 24px;
    border-left: 1px solid #e2e8f0;
}

.right-panel h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.right-panel p {
    color: #64748b;
    margin-bottom: 22px;
}

.withdraw-box {
    background: #ebf8ef;
    border: 1px solid #ccead7;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 20px;
}

.withdraw-box .big {
    font-size: 34px;
    font-weight: 800;
    color: #065f46;
    margin-top: 6px;
}

.summary-box, .history-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 18px;
    margin-top: 18px;
}

.summary-row, .history-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
}

.summary-row.total {
    font-weight: 800;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 14px;
}

.logout-link {
    display: inline-block;
    margin-top: 18px;
    color: #64748b;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .right-panel {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .auth-wrap,
    .pending-wrap {
        grid-template-columns: 1fr;
    }

    .auth-left h1,
    .pending-left h1 {
        font-size: 42px;
    }

    .auth-form-card {
        max-width: 100%;
    }

    .main-top {
        flex-direction: column;
    }
}