@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #030816;
    color: #f1f5f9;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Custom Scrollbars (Webkit & Firefox) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #030816;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #1e293b #030816;
}

/* Fluid Typography Utilities */
.text-fluid-title {
    font-size: clamp(1.25rem, 4vw, 1.875rem);
    line-height: 1.25;
}
.text-fluid-stat {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    line-height: 1.2;
}

/* Logo Animations */
@keyframes subtle-pulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; filter: drop-shadow(0 0 10px rgba(0,229,255,0.6)); transform: scale(1.02); }
}
.glowing-logo {
    animation: subtle-pulse 3s infinite ease-in-out;
}

/* Modal System */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(3, 8, 22, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    opacity: 0;
    transition: opacity 0.25s ease-out;
}
.modal-overlay.open {
    display: flex;
    opacity: 1;
}

/* Glassmorphic Surfaces */
.glass {
    background: rgba(6, 16, 38, 0.78);
    border: 1px solid rgba(51, 65, 85, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(6, 16, 38, 0.85) 100%);
    border: 1px solid rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Status Badges */
.badge-pending  { background: rgba(234, 179, 8, 0.15);  color: #facc15; border: 1px solid rgba(234, 179, 8, 0.35); }
.badge-success  { background: rgba(0, 230, 118, 0.14);  color: #00e676; border: 1px solid rgba(0, 230, 118, 0.35); }
.badge-declined { background: rgba(255, 23, 68, 0.14);  color: #ff1744; border: 1px solid rgba(255, 23, 68, 0.35); }

/* Touch-Optimized Interactive Elements */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Coin Selection Cards */
.coin-card {
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(51, 65, 85, 0.45);
    background: rgba(15, 23, 42, 0.65);
    position: relative;
    user-select: none;
}
.coin-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.coin-card.selected {
    border-color: #00e5ff !important;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.25), inset 0 0 12px rgba(0, 229, 255, 0.08);
}

/* Network Selection Pills & Cards */
.net-card {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
}
.net-card:hover {
    border-color: rgba(0, 229, 255, 0.5) !important;
    background: rgba(0, 229, 255, 0.04) !important;
}
.net-card.selected {
    border-color: #00e5ff !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.22);
    background: rgba(0, 229, 255, 0.08) !important;
}

.net-pill {
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(51, 65, 85, 0.55);
    background: rgba(15, 23, 42, 0.7);
    user-select: none;
}
.net-pill:hover {
    border-color: rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.06);
    color: #e2e8f0;
}
.net-pill.selected {
    border-color: #00e5ff !important;
    background: rgba(0, 229, 255, 0.14) !important;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}


/* Withdraw Network Cards */
.wd-net {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(6, 16, 38, 0.6);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
}
.wd-net:hover {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.04);
}
.wd-net.selected {
    border-color: #ef4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.08) !important;
}

/* Form Input Focus States */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(0, 229, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

/* Card Hover Lift */
.stat-hover {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.stat-hover:hover {
    border-color: rgba(0, 229, 255, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

/* Pulse Dots */
@keyframes pdot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}
.pdot {
    animation: pdot 1.8s infinite ease-in-out;
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(18px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.slide-up {
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-fade {
    animation: fadeInView 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dashboard Sidebar Navigation Tabs */
.dash-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    min-height: 46px;
}
.dash-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}
.dash-tab.active {
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
    border-left: 3px solid #00e5ff;
}
.dash-tab.active i {
    color: #00e5ff;
}

.dash-panel {
    display: none;
}
.dash-panel.active {
    display: block;
    animation: fadeInView 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Type Badges */
.badge-deposit  { background: rgba(0, 229, 255, 0.12);  color: #00e5ff; border: 1px solid rgba(0, 229, 255, 0.3); }
.badge-withdraw { background: rgba(239, 68, 68, 0.12);   color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Off-Canvas Mobile Drawer & Backdrop */
.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 45;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.drawer-backdrop.active {
    display: block;
    opacity: 1;
}

@media (max-width: 767px) {
    .dash-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.85);
        border-right: 1px solid rgba(51, 65, 85, 0.6);
        background: rgba(6, 16, 38, 0.96) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
    }
    .dash-sidebar.mob-open {
        transform: translateX(0);
    }
}

/* Price Flash Animations */
.price-up { animation: pfup 0.8s ease-out; }
.price-dn { animation: pfdw 0.8s ease-out; }
@keyframes pfup { 0% { background: rgba(0, 230, 118, 0.2); } 100% { background: transparent; } }
@keyframes pfdw { 0% { background: rgba(255, 23, 68, 0.2); } 100% { background: transparent; } }

/* WebSocket Live Indicator Dots */
.ws-live  { background: #00e676; box-shadow: 0 0 8px rgba(0, 230, 118, 0.7); }
.ws-conn  { background: #eab308; box-shadow: 0 0 8px rgba(234, 179, 8, 0.7); }
.ws-off   { background: #ff1744; box-shadow: 0 0 8px rgba(255, 23, 68, 0.6); }
@keyframes wsping { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.6; } }
.ws-ping  { animation: wsping 1.4s infinite; }

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(51, 65, 85, 0.7);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    min-height: 120px;
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: rgba(0, 229, 255, 0.6);
    background: rgba(0, 229, 255, 0.05);
}
.upload-zone.has-file {
    border-color: rgba(0, 230, 118, 0.5);
    background: rgba(0, 230, 118, 0.05);
}

/* Horizontal Scroll Container Utility with Fade Edge Indicator */
.table-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Touch active ripple/press response */
.touch-press:active {
    transform: scale(0.97);
}

/* ─── CRYPTO DEPOSIT & WITHDRAWAL PREMIUM UI SYSTEM ─── */

/* High-Tech QR Scanner Frame */
.qr-frame {
    position: relative;
    background: #000000;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 16px;
    padding: 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15), inset 0 0 15px rgba(0, 229, 255, 0.05);
    overflow: hidden;
}

.qr-frame canvas, .qr-frame img {
    border-radius: 8px;
    display: block;
}

/* QR Corner Brackets */
.qr-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #00e5ff;
    pointer-events: none;
}
.qr-corner-tl { top: 6px; left: 6px; border-top: 2.5px solid; border-left: 2.5px solid; border-top-left-radius: 4px; }
.qr-corner-tr { top: 6px; right: 6px; border-top: 2.5px solid; border-right: 2.5px solid; border-top-right-radius: 4px; }
.qr-corner-bl { bottom: 6px; left: 6px; border-bottom: 2.5px solid; border-left: 2.5px solid; border-bottom-left-radius: 4px; }
.qr-corner-br { bottom: 6px; right: 6px; border-bottom: 2.5px solid; border-right: 2.5px solid; border-bottom-right-radius: 4px; }

/* QR Laser Scan Line Animation */
@keyframes qrLaser {
    0% { top: 12px; opacity: 0; }
    15% { opacity: 0.85; }
    85% { opacity: 0.85; }
    100% { top: calc(100% - 12px); opacity: 0; }
}
.qr-scan-line {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00e5ff, #00e676, #00e5ff, transparent);
    box-shadow: 0 0 8px #00e5ff;
    animation: qrLaser 2.5s ease-in-out infinite;
    pointer-events: none;
}

/* Quick Amount & Percentage Preset Chips */
.preset-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.6);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.preset-chip:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.4);
    color: #00e5ff;
    transform: translateY(-1px);
}
.preset-chip:active {
    transform: translateY(0);
}
.preset-chip.active-chip {
    background: rgba(0, 229, 255, 0.18);
    border-color: #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.preset-chip-wd {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.6);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.preset-chip-wd:hover {
    background: rgba(255, 23, 68, 0.1);
    border-color: rgba(255, 23, 68, 0.4);
    color: #ff6b81;
    transform: translateY(-1px);
}
.preset-chip-wd.active-chip {
    background: rgba(255, 23, 68, 0.18);
    border-color: #ff1744;
    color: #ff6b81;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.25);
}

/* Step Progress Indicator in Deposit/Withdraw Guides */
.guide-step {
    position: relative;
    padding-left: 36px;
}
.guide-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: 13px;
    bottom: -12px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 229, 255, 0.3), rgba(51, 65, 85, 0.2));
}
.guide-step-num {
    position: absolute;
    top: 2px;
    left: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(6, 16, 38, 0.95);
    border: 1.5px solid rgba(0, 229, 255, 0.5);
    color: #00e5ff;
    font-size: 10.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

/* Address Monospace Interactive Container */
.address-box {
    background: #020612;
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 14px;
    transition: all 0.2s ease;
}
.address-box:hover, .address-box:focus-within {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

/* Mini Activity Items */
.mini-tx-card {
    background: rgba(6, 16, 38, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 12px;
    padding: 10px 12px;
    transition: all 0.18s ease;
}
.mini-tx-card:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateX(2px);
}


