/* ============ IMPORTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    --bg-page: #f5f7fa;
    --bg-card: #ffffff;
    --primary: #2D7FF9;
    --primary-hover: #1a6ae0;
    --primary-light: #e8f1fe;
    --telegram: #0088cc;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-body: #374151;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e5e9ef;
    --input-border: #d1d5db;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }

/* ============ KEYFRAME ANIMATIONS ============ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(45,127,249,0.3); }
    50% { box-shadow: 0 0 15px rgba(45,127,249,0.5); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes borderGlow {
    0%, 100% { border-color: var(--primary-light); }
    50% { border-color: var(--primary); }
}

/* ============ ANIMATION UTILITY CLASSES ============ */
.animate-fade-in { animation: fadeIn 0.5s ease both; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease both; }
.animate-scale-in { animation: scaleIn 0.5s ease both; }
.animate-shake { animation: shake 0.5s ease; }
.animate-pulse { animation: pulse 2s ease infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Scroll-triggered visibility */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ HEADER / NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
    height: 64px;
}
.navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.navbar-brand img {
    height: 36px;
    width: auto;
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.navbar-email {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn:active {
    transform: translateY(0);
}
.btn i { font-size: 16px; }

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover {
    background: #0d9668;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-telegram {
    background: var(--telegram);
    color: #fff;
    padding: 12px 28px;
    font-size: 15px;
}
.btn-telegram:hover {
    background: #006da3;
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-weight: 500;
}
.btn-link:hover {
    color: var(--primary);
    box-shadow: none;
    transform: none;
}

.btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}
.btn.loading .spinner { display: block; }
.btn.loading .btn-text { display: none; }

/* ============ CARDS ============ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,127,249,0.15);
}
.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.form-control:read-only {
    background: var(--bg-page);
    color: var(--text-secondary);
}

.input-group {
    position: relative;
}
.input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}
.input-group .form-control {
    padding-left: 42px;
}
.input-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--text-secondary);
}
.input-group .form-control.with-prefix {
    padding-left: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-fallback {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f1fe 0%, #d0e2ff 50%, #b8d4fe 100%);
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.1) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}
.hero-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}
.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease both;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ============ LOGIN PAGE ============ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f1fe 100%);
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    animation: scaleIn 0.5s ease both;
}
.login-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}
.login-card .subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
    font-size: 14px;
}
.otp-step {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}
.otp-step.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
.otp-step.visible {
    max-height: 400px;
    opacity: 1;
}
.otp-sent-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ecfdf5;
    border-radius: var(--radius-sm);
    color: #065f46;
    font-size: 14px;
    margin-bottom: 16px;
    animation: fadeInDown 0.4s ease;
}
.otp-sent-msg i { color: var(--success); font-size: 18px; }

.otp-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
.otp-boxes input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}
.otp-boxes input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,127,249,0.15);
}
.otp-boxes input.error {
    border-color: var(--danger);
    animation: shake 0.4s ease;
}

/* ============ PAGE CONTENT WRAPPER ============ */
.page-wrapper {
    padding-top: 84px;
    min-height: 100vh;
    animation: fadeIn 0.4s ease;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-sm {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-xs {
    max-width: 540px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ FORM PAGE ============ */
.form-section {
    margin-bottom: 32px;
}
.form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}
.form-section-header i {
    font-size: 22px;
    color: var(--primary);
}
.form-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* File upload zone */
.upload-zone {
    border: 2px dashed var(--input-border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-page);
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.upload-zone.dragover {
    animation: borderGlow 1s ease infinite;
}
.upload-zone i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}
.upload-zone p {
    color: var(--text-secondary);
    font-size: 14px;
}
.upload-zone .upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.file-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    font-size: 13px;
    animation: fadeInUp 0.3s ease;
}
.file-item .file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-item .file-name i { color: var(--primary); }
.file-item .file-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 16px;
}
.file-item .file-remove:hover { background: rgba(239,68,68,0.1); }
.file-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ============ WAITING PAGE ============ */
.waiting-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.waiting-card {
    text-align: center;
    max-width: 500px;
    width: 100%;
}
.waiting-card .check-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}
.waiting-card .check-icon svg {
    width: 80px;
    height: 80px;
}
.waiting-card .check-icon .check-circle {
    fill: none;
    stroke: var(--success);
    stroke-width: 2;
}
.waiting-card .check-icon .check-mark {
    fill: none;
    stroke: var(--success);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawCheck 0.6s ease 0.3s forwards;
}
.waiting-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.waiting-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.4s both;
}
.waiting-card .divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
    animation: fadeIn 0.6s ease 0.5s both;
}
.waiting-card .support-section {
    animation: fadeInUp 0.6s ease 0.6s both;
}

/* ============ DASHBOARD ============ */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.wallet-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
    transition: var(--transition);
}
.wallet-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.wallet-card.green { border-left-color: var(--success); }
.wallet-card.orange { border-left-color: var(--warning); }
.wallet-card.blue { border-left-color: var(--primary); }
.wallet-card.teal { border-left-color: #14b8a6; }

.wallet-card .card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}
.wallet-card.green .card-icon { color: var(--success); }
.wallet-card.orange .card-icon { color: var(--warning); }
.wallet-card.blue .card-icon { color: var(--primary); }
.wallet-card.teal .card-icon { color: #14b8a6; }

.wallet-card .card-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}
.wallet-card .card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Alert boxes */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}
.alert i { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}
.alert-warning i { color: var(--warning); }
.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.alert-success i { color: var(--success); }
.alert-info {
    background: var(--primary-light);
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.alert-info i { color: var(--primary); }

/* ============ TABLES ============ */
.table-wrapper {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}
.table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.table-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    background: var(--bg-page);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--primary-light); }
.data-table tr {
    animation: fadeIn 0.3s ease both;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-pending {
    background: #fef3c7;
    color: #92400e;
}
.badge-confirmed, .badge-approved {
    background: #d1fae5;
    color: #065f46;
}
.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}
.empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.4;
}
.empty-state p {
    font-size: 14px;
}

/* ============ DEPOSIT PAGE ============ */
.amount-display {
    text-align: center;
    padding: 24px;
    margin-bottom: 24px;
}
.amount-display .amount-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.amount-display .amount-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--warning);
}

.bank-details-card {
    background: #fff;
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.bank-details-card pre {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    margin-top: 12px;
}
.copy-btn:hover { background: var(--primary); color: #fff; }
.copy-btn.copied { background: var(--success); color: #fff; }

/* ============ ADMIN PANEL ============ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--border);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.admin-sidebar .sidebar-brand img {
    height: 32px;
}
.sidebar-nav {
    list-style: none;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-nav li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.sidebar-nav li a.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}
.sidebar-nav li a i {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 24px 32px;
    background: var(--bg-page);
    min-height: 100vh;
}
.admin-main h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* Admin stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.stat-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}
.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Admin login */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--text-primary) 0%, #2d3748 100%);
    padding: 20px;
}
.admin-login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: scaleIn 0.5s ease;
}

/* Admin filter tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.filter-tab:hover, .filter-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Admin search */
.search-box {
    position: relative;
    margin-bottom: 20px;
    max-width: 360px;
}
.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}
.search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,127,249,0.15);
}

/* Admin user detail sections */
.detail-section {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}
.detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.detail-item label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detail-item p {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Proof thumbnails */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.proof-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1;
}
.proof-thumb:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.03);
}
.proof-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.proof-thumb .pdf-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-page);
    color: var(--danger);
    font-size: 36px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
    display: none;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    animation: scaleIn 0.3s ease;
    position: relative;
}
.modal-content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: rgba(0,0,0,0.8); }

/* Flash messages */
.flash {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInDown 0.4s ease;
}
.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============ LOADING OVERLAY ============ */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}
.loading-overlay.active { display: flex; }
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .wallet-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .form-row { grid-template-columns: 1fr; }
    .wallet-grid { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .login-card { padding: 28px; }
    .navbar-email { display: none; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .wallet-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .otp-boxes input { width: 42px; height: 48px; font-size: 18px; }
}
