* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0F70EE;
    --primary-dark: #0C5CC4;
    --gradient-start: #00C3E9;
    --gradient-mid: #08A0EB;
    --gradient-end: #0F70EE;
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: #e5e7eb;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 12px;
    --nav-height: 65px;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    height: 100%;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: calc(var(--nav-height) + 16px);
    position: relative;
}

/* Flash Messages */
.flash-container {
    padding: 8px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.flash-message {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
}

.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 4px;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Auth Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
}

.auth-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.logo-section {
    text-align: center;
    margin-bottom: 24px;
}

.logo-text {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.logo-text-sm {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group .optional {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    background: var(--bg-card);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 112, 238, 0.1);
}

.form-group small {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.input-readonly {
    background: #f9fafb !important;
    cursor: default;
    opacity: 0.8;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 6px;
}

.btn-full { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover { background: #059669; }

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover { background: #dc2626; }

.btn-secondary {
    background: #e5e7eb;
    color: var(--text);
}

.btn-secondary:hover { background: #d1d5db; }

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 12px;
    padding: 6px 14px;
    backdrop-filter: blur(4px);
}

.btn-logout:hover {
    background: rgba(255,255,255,0.35);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 20px 16px;
    border-radius: 0 0 20px 20px;
}

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

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.profit-banner {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    padding: 10px 16px;
    font-size: 14px;
    color: var(--primary-dark);
    text-align: center;
}

.welcome-text {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.balance-display {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    margin: -10px 16px 16px;
    padding: 24px;
    border-radius: 16px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 112, 238, 0.3);
    position: relative;
    z-index: 2;
}

.balance-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 800;
    margin: 4px 0;
}

.profit-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.profit-label {
    opacity: 0.9;
}

.profit-amount {
    font-weight: 700;
}

.profit-amount.positive {
    color: #86efac;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Quick Actions */
.quick-actions {
    padding: 0 16px;
    margin-bottom: 16px;
}

.withdraw-btn-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 16px;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.3);
    text-decoration: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Withdraw Calculator */
.calc-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.calc-fee {
    color: var(--danger);
    font-weight: 600;
}

.calc-total {
    border-top: 1px solid #bae6fd;
    padding-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.calc-total span:last-child {
    color: var(--success);
}

/* Top Up Card */
.topup-card {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 1px solid #6ee7b7;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.topup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.topup-icon {
    width: 32px;
    height: 32px;
    color: var(--success);
    flex-shrink: 0;
}

.topup-info {
    display: flex;
    flex-direction: column;
}

.topup-label {
    font-size: 13px;
    color: #065f46;
}

.topup-amount {
    font-size: 24px;
    font-weight: 800;
    color: #065f46;
}

.topup-desc {
    font-size: 13px;
    color: #065f46;
    margin-bottom: 12px;
    line-height: 1.4;
}

.topup-card .btn-success {
    background: #059669;
}

.topup-card .btn-success:hover {
    background: #047857;
}

.topup-btn-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 15px;
    border-radius: var(--radius);
    text-decoration: none;
}

.highlight-card .stat-value {
    color: var(--success);
}

/* Balance Breakdown */
.balance-breakdown {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.breakdown-total {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.breakdown-total span:last-child {
    color: var(--primary);
}

/* Sections */
.section {
    padding: 0 16px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.plan-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border);
    transition: border-color 0.2s;
}

.plan-card:hover {
    border-color: var(--primary);
}

.plan-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-amount {
    font-size: 26px;
    font-weight: 800;
    margin: 6px 0;
    color: var(--text);
}

.plan-profit {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 2px;
}

.plan-period {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Investments List */
.investments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.investment-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.inv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.inv-plan {
    font-weight: 700;
    font-size: 15px;
}

.inv-profit {
    font-weight: 700;
    color: var(--success);
    font-size: 14px;
}

.inv-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.inv-days {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Bank Details */
.bank-details-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.bank-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-label {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 120px;
    flex-shrink: 0;
}

.bank-value {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    word-break: break-all;
}

.bank-notice {
    margin-top: 12px;
    padding: 10px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
    line-height: 1.6;
}

/* Copy Button */
.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn:hover { background: var(--primary-dark); }

.copy-btn.copied {
    background: var(--success);
}

/* Form Card */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Transactions */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.transaction-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.txn-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.txn-amount {
    font-weight: 700;
    font-size: 15px;
    color: var(--success);
}

.txn-withdraw {
    color: var(--danger);
}

.txn-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.txn-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: capitalize;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 20px 0;
}

/* Insufficient Notice */
.insufficient-notice {
    margin: 0 16px 20px;
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #92400e;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 4px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px);
    right: 16px;
    width: 52px;
    height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.2s;
    text-decoration: none;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Team Page */
.commission-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tier-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.tier-level {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.tier-rate {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.tier-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.referral-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.referral-link-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.referral-link-text {
    flex: 1;
    padding: 10px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    word-break: break-all;
    color: var(--text);
}

.referral-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: center;
}

/* Team Member List */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-member-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-name {
    font-weight: 700;
    font-size: 14px;
}

.member-phone {
    font-size: 12px;
    color: var(--text-secondary);
}

.member-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-invested {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* Badges */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-admin {
    background: #dbeafe;
    color: #1e40af;
}

/* Warning Card */
.warning-card {
    margin: 0 16px 20px;
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #f59e0b;
}

.warning-text {
    font-size: 14px;
    color: #92400e;
    line-height: 1.6;
}

.warning-text .btn {
    margin-top: 8px;
}

/* Profile Page */
.profile-header-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    margin: 0 16px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.avatar-letter {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
}

.profile-phone {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.profile-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Finance Grid */
.finance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.finance-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.finance-card.highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.finance-card.highlight .finance-label {
    color: rgba(255,255,255,0.8);
}

.finance-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.finance-value {
    font-size: 18px;
    font-weight: 700;
}

.finance-card.highlight .finance-value {
    font-size: 28px;
}

/* Invest Summary */
.invest-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.invest-total {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.invest-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.invest-value {
    font-size: 16px;
    font-weight: 700;
}

.invest-value.positive {
    color: var(--success);
}

/* Referral Info */
.referral-info {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 100px;
}

.info-value {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.info-value.small {
    font-size: 12px;
    font-family: monospace;
    word-break: break-all;
}

/* Profit History */
.profit-history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profit-history-item {
    background: var(--bg-card);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.profit-date {
    color: var(--text-secondary);
}

.profit-amount.positive {
    color: var(--success);
    font-weight: 700;
}

/* Admin Styles */
.admin-header {
    border-radius: 0;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
}

.admin-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.admin-stat-card.warning {
    border: 1px solid #fbbf24;
}

.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.admin-stat-card.warning .stat-number {
    color: var(--warning);
}

.stat-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.admin-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px 20px;
}

.admin-nav-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.2s;
}

.admin-nav-card:hover {
    transform: translateY(-2px);
}

.admin-nav-icon {
    font-size: 28px;
}

.admin-nav-label {
    font-weight: 700;
    font-size: 16px;
}

.admin-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    background: var(--danger);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Admin List */
.admin-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.admin-item-user {
    font-weight: 700;
    font-size: 15px;
}

.admin-item-phone {
    font-size: 13px;
    color: var(--text-secondary);
}

.admin-item-amount {
    font-weight: 700;
    color: var(--success);
}

.admin-item-amount.withdraw {
    color: var(--danger);
}

.admin-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-item-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.admin-item-bank span {
    flex: 1;
    word-break: break-all;
}

.admin-item-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.admin-item-proof.no-proof {
    color: var(--text-secondary);
    font-style: italic;
}

.proof-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.proof-link:hover {
    text-decoration: underline;
}

.btn-danger-outline {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger-outline:hover {
    background: var(--danger);
    color: white;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px dashed var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.upload-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.file-upload-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.file-name {
    display: block;
    font-size: 12px;
    color: var(--primary);
    margin-top: 4px;
    font-weight: 600;
}

.form-group .required {
    color: var(--danger);
}

/* Deposit item with proof */
.deposit-item .txn-info {
    gap: 4px;
}

.deposit-item .proof-link {
    font-size: 11px;
}

.admin-item-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.admin-item-actions {
    display: flex;
    gap: 6px;
}

.admin-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive */
@media (min-width: 480px) {
    .app-container {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
        box-shadow: 0 0 20px rgba(0,0,0,0.05);
    }
}

@media (max-width: 360px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .commission-tiers {
        grid-template-columns: repeat(3, 1fr);
    }
    .finance-grid {
        grid-template-columns: 1fr;
    }
    .bank-label {
        min-width: 90px;
    }
}
