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

body {
    font-family: 'Inter', sans-serif;
    background: #0d1025;
    color: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────── */
.nav-bar {
    background: rgba(26, 27, 46, 0.98);
    border-bottom: 1px solid rgba(99, 102, 241, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    height: 36px;
}

.nav-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-balance {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    padding: 6px 14px;
    text-align: right;
}

.nav-balance-label {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-balance-value {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-back:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
}

.nav-back svg {
    width: 16px;
    height: 16px;
}

/* ── PAGE WRAPPER ─────────────────────────────────────── */
.page-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-header {
    margin-bottom: 36px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.back-link:hover { color: #a5b4fc; }
.back-link svg { width: 16px; height: 16px; }

.page-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 0.9rem;
    color: #64748b;
}

/* ── DEPOSIT METHOD CARDS ─────────────────────────────── */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

@media (max-width: 640px) {
    .method-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.method-card {
    background: #1a1b2e;
    border: 2px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 22px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.method-card.crypto:hover,
.method-card.crypto:focus {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}

.method-card.card:hover,
.method-card.card:focus {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.method-card.bank:hover,
.method-card.bank:focus {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.method-icon.crypto-icon-bg {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.2));
}

.method-icon.card-icon-bg {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
}

.method-icon.bank-icon-bg {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.2));
}

.method-info { flex: 1; }

.method-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 3px;
}

.method-desc {
    font-size: 0.75rem;
    color: #64748b;
}

.method-arrow {
    width: 20px;
    height: 20px;
    color: #475569;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.method-card:hover .method-arrow {
    transform: translateX(3px);
    color: #94a3b8;
}

/* ── SECTION TITLES ───────────────────────────────────── */
.section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.section-head svg {
    width: 22px;
    height: 22px;
    color: #6366f1;
    flex-shrink: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 24px;
    margin-left: 32px;
}

/* ── SECTION DIVIDER ──────────────────────────────────── */
.section-anchor {
    scroll-margin-top: 80px;
    margin-bottom: 48px;
}

.section-panel {
    background: #131627;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
}

@media (max-width: 640px) {
    .section-panel { padding: 20px 16px; }
}

/* ── CRYPTO SECTION ───────────────────────────────────── */
.crypto-search-bar {
    position: relative;
    margin-bottom: 28px;
}

.crypto-search-bar input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: #1e2130;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.crypto-search-bar input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.crypto-search-bar input::placeholder { color: #475569; }

.crypto-search-bar svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #475569;
    pointer-events: none;
}

.top5-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.top5-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

@media (max-width: 640px) {
    .top5-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .top5-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.top5-coin {
    background: #1e2130;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.top5-coin:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.top5-coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.top5-coin-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.top5-coin-symbol {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
}

.top5-coin-name {
    font-size: 0.65rem;
    color: #64748b;
}

.search-results-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 640px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.search-coin-item {
    background: #1e2130;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-align: left;
}

.search-coin-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

.search-coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.search-coin-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.search-coin-info {}

.search-coin-symbol {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f1f5f9;
}

.search-coin-network {
    font-size: 0.68rem;
    color: #64748b;
}

.no-results {
    text-align: center;
    padding: 32px;
    color: #475569;
    font-size: 0.875rem;
}

.no-results svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    display: block;
    color: #334155;
}

/* ── CRYPTO DETAIL VIEW ───────────────────────────────── */
.coin-detail-panel {
    display: none;
}

.coin-detail-panel.active {
    display: block;
    animation: fadeSlideIn 0.3s ease forwards;
}

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

.back-to-coins {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    margin-bottom: 24px;
    padding: 0;
    transition: color 0.2s;
}

.back-to-coins:hover { color: #a5b4fc; }
.back-to-coins svg { width: 16px; height: 16px; }

.coin-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    margin-bottom: 24px;
}

.coin-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}

.coin-header-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.coin-header-icon-fallback {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.coin-header-info {}

.coin-header-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.coin-header-network {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.coin-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.coin-warning svg {
    width: 16px;
    height: 16px;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 1px;
}

.coin-warning p {
    font-size: 0.8rem;
    color: #fbbf24;
    line-height: 1.5;
}

.coin-warning strong { color: #fde68a; }

.qr-address-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

@media (max-width: 640px) {
    .qr-address-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

.qr-block {
    flex-shrink: 0;
    text-align: center;
}

.qr-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    display: inline-flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.qr-wrapper canvas {
    display: block;
    border-radius: 4px;
}

.qr-label {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.qr-label svg { width: 12px; height: 12px; }

.address-block {
    flex: 1;
    min-width: 0;
}

.address-field-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.address-field-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.address-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: #94a3b8;
    word-break: break-all;
    line-height: 1.5;
    min-width: 0;
}

.copy-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    align-self: flex-start;
}

.copy-btn svg { width: 14px; height: 14px; }

.copy-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #059669, #10b981);
}

.coin-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.coin-meta-item {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
}

.coin-meta-label {
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.coin-meta-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #a5b4fc;
}

/* ── UPLOAD PROOF SECTION ─────────────────────────────── */
.proof-section {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 28px;
    margin-top: 4px;
}

.proof-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.proof-title svg {
    width: 18px;
    height: 18px;
    color: #6366f1;
}

.proof-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 20px;
}

.proof-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.form-field {}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

.form-label span.required {
    color: #f87171;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: #1e2130;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder { color: #475569; }

.input-prefix-wrap {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 1rem;
    pointer-events: none;
}

.input-prefix-wrap .form-input {
    padding-left: 28px;
}

.upload-zone {
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(99, 102, 241, 0.04);
    transition: all 0.2s;
}

.upload-zone:hover {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.08);
}

.upload-zone.dragging {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
}

.upload-zone svg.upload-icon {
    width: 40px;
    height: 40px;
    color: #475569;
    margin: 0 auto 12px;
    display: block;
}

.upload-zone p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 4px;
}

.upload-zone p strong { color: #6366f1; }

.upload-zone small {
    font-size: 0.75rem;
    color: #475569;
}

.preview-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.preview-wrap.active {
    display: flex;
}

.preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    object-fit: contain;
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.preview-info svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

.remove-file-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.remove-file-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    margin-top: 24px;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-btn svg { width: 20px; height: 20px; }

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

/* ── CARD PAYMENT SECTION ─────────────────────────────── */
.country-search-wrap {
    position: relative;
    margin-bottom: 20px;
}

.country-search-wrap input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: #1e2130;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.country-search-wrap input:focus {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.country-search-wrap input::placeholder { color: #475569; }

.country-search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #475569;
    pointer-events: none;
}

.countries-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.countries-list::-webkit-scrollbar { width: 4px; }
.countries-list::-webkit-scrollbar-track { background: transparent; }
.countries-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.country-item {
    background: #1e2130;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
    text-align: left;
    width: 100%;
}

.country-item:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.06);
    color: #f1f5f9;
}

.country-item svg {
    width: 14px;
    height: 14px;
    color: #475569;
    flex-shrink: 0;
}

.card-gateway-panel {
    display: none;
}

.card-gateway-panel.active {
    display: block;
    animation: fadeSlideIn 0.3s ease forwards;
}

.selected-country-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.selected-country-badge svg {
    width: 18px;
    height: 18px;
    color: #f59e0b;
    flex-shrink: 0;
}

.selected-country-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fbbf24;
}

.change-country-btn {
    margin-left: auto;
    background: none;
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.change-country-btn:hover {
    background: rgba(245, 158, 11, 0.1);
}

.card-brands-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.card-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

.card-brand svg { width: 36px; height: 22px; }

.proceed-card-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
    margin-top: 20px;
}

.proceed-card-btn:hover {
    background: linear-gradient(135deg, #b45309, #d97706);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35);
}

.proceed-card-btn svg { width: 20px; height: 20px; }

/* ── DEPOSIT HISTORY ──────────────────────────────────── */
.history-table-wrap {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.history-table thead th {
    padding: 10px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    white-space: nowrap;
}

.history-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.history-table tbody td {
    padding: 14px;
    color: #94a3b8;
    vertical-align: middle;
    white-space: nowrap;
}

.history-table tbody td.amount-col {
    font-weight: 600;
    color: #f1f5f9;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-badge.rejected,
.status-badge.failed {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge.pending .status-dot { background: #f59e0b; }
.status-badge.completed .status-dot { background: #10b981; }
.status-badge.rejected .status-dot,
.status-badge.failed .status-dot { background: #ef4444; }

.history-empty {
    text-align: center;
    padding: 48px 20px;
    color: #475569;
}

.history-empty svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: block;
    color: #1e2130;
}

.history-empty p {
    font-size: 0.9rem;
}

.history-empty small {
    font-size: 0.78rem;
    color: #334155;
    display: block;
    margin-top: 6px;
}

.history-loading {
    text-align: center;
    padding: 48px;
    color: #475569;
}

.dot-pulse {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.dot-pulse span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    animation: dotBounce 1.2s infinite ease-in-out;
}

.dot-pulse span:nth-child(2) { animation-delay: 0.2s; }
.dot-pulse span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ── BANK TRANSFER MODAL ─────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #1a1b2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 36px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    transform: scale(0.94) translateY(8px);
    transition: transform 0.25s;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon svg {
    width: 26px;
    height: 26px;
    color: #f59e0b;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-info-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    text-align: left;
}

.modal-info-box p {
    font-size: 0.82rem;
    color: #a5b4fc;
    line-height: 1.6;
}

.modal-close-btn {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

/* ── TOAST ─────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e2130;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 280px;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: all;
}

.toast.toast-error { border-left-color: #ef4444; }
.toast.toast-warning { border-left-color: #f59e0b; }

.toast.removing {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to   { opacity: 0; transform: translateX(40px) scale(0.9); }
}

.toast-icon {
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-error .toast-icon { background: rgba(239, 68, 68, 0.15); }
.toast-warning .toast-icon { background: rgba(245, 158, 11, 0.15); }

.toast-icon svg { width: 16px; height: 16px; color: #10b981; }
.toast-error .toast-icon svg { color: #ef4444; }
.toast-warning .toast-icon svg { color: #f59e0b; }

.toast-content { flex: 1; }

.toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 2px;
}

.toast-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

/* ── MOBILE NAV BAR ───────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(26, 27, 46, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 10px 0 6px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; }
    .toast-container {
        bottom: 80px;
        right: 16px;
        left: 16px;
    }
    .toast { min-width: unset; max-width: unset; }
    .page-wrap { padding-bottom: 100px; }
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0 12px;
    transition: color 0.2s;
}

.mobile-nav-item svg { width: 22px; height: 22px; }
.mobile-nav-item.active { color: #6366f1; }
.mobile-nav-item:hover { color: #94a3b8; }

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }
