/* ==========================================
   1. VARIABLES & RESET
   ========================================== */
:root {
    --bg-dark: #0b0e14;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-focus: #6366f1;
    
    --text-mmain: #070707;
    --text-main: #5e5a5a;
    --text-muted: #5d5b5b;
    --text-subtle: #9a9797;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.35);
    
    --accent-green: #10b981;
    --danger: #ef4444;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glowing Background Effect */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

body::before {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -50px;
    left: -50px;
}

body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

/* ==========================================
   2. CONTAINER & VIEW ROUTING
   ========================================== */
.app-container {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(99, 102, 241, 0.1);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}

.view-section {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.view-section.is-active {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    justify-content: space-between;
    opacity: 1;
    transform: translateY(0);
}

.main-content, .signup-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

/* Header & Logo */
.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.logo-img {
    height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

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

.sub-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.btn-back {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0 8px 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.btn-back:hover {
    background: var(--input-bg);
}

/* ==========================================
   3. TABS SWITCHER
   ========================================== */
.tabs-container {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.tab:hover {
    color: var(--text-main);
}

.tab.active {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.tab-content.is-active {
    display: flex;
}

/* ==========================================
   4. FORM ELEMENTS & INPUTS
   ========================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: capitalize;
}

.form-label.required::after {
    content: " *";
    color: var(--danger);
}

.input-group, .input-wrapper {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 0 12px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}



.input-group:focus-within, .input-wrapper:focus-within {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control, 
.input-wrapper input {
    width: 100%;
    height: 44px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.925rem;
    font-family: inherit;
}

.form-control::placeholder, 
.input-wrapper input::placeholder {
    color: var(--text-subtle);
}

.input-addon {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-right: 10px;
    font-weight: 500;
    border-right: 1px solid var(--input-border);
    margin-right: 10px;
}

/* Phone Wrapper Dropdown */
.phone-wrapper {
    padding-left: 8px;
}

.country-code-select {
    background: transparent;
    border: none;
    border-right: 1px solid var(--input-border);
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: inherit;
    padding-right: 8px;
    margin-right: 8px;
    outline: none;
    cursor: pointer;
    height: 44px;
}

.country-code-select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Captcha Components */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-box, .captcha-img {
    min-width: 90px;
    height: 44px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #a5b4fc;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease, opacity var(--transition-fast);
}

.captcha-box:active {
    transform: scale(0.96);
}

.field-error {
    font-size: 0.75rem;
    color: var(--danger);
    display: none; /* Can be toggled with JS dynamically */
    margin-top: 2px;
}

/* ==========================================
   5. BUTTONS & LINKS
   ========================================== */
.btn, .btn-register {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.btn-primary, .btn-register {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover, .btn-register:hover {
    opacity: 0.95;
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-primary:active, .btn-register:active {
    transform: translateY(0);
}

/* Links Section */
.auth-links, .signup-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-top: 4px;
}

.text-link, .link-blue, .link-dark {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.text-link:hover, .link-blue:hover {
    text-decoration: underline;
}

.text-link.muted, .link-dark {
    color: var(--text-muted);
}

.text-link.muted:hover, .link-dark:hover {
    color: var(--text-main);
}

/* Bottom Action Buttons */
.bottom-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-card-border);
}

.btn-outline, .btn-outline-pill {
    flex: 1;
    height: 38px;
    background: transparent;
    border: 1px solid var(--input-border);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-outline:hover, .btn-outline-pill:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

.btn-dark, .btn-black-pill {
    flex: 1;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    color: var(--text-main);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-dark:hover, .btn-black-pill:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ==========================================
   6. MODAL SYSTEM
   ========================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    padding: 16px;
}

.modal-backdrop.is-visible {
    opacity: 1;
}

.modal-card {
    background: #161c2a;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 360px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform var(--transition-smooth);
}

.modal-backdrop.is-visible .modal-card {
    transform: scale(1);
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.modal-email {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 12px;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 0.9rem;
    color: #111112;
    word-break: break-all;
    text-align: center;
}

.modal-footer {
    margin-top: 20px;
}

.modal-action {
    width: 100%;
    height: 42px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.modal-action:hover {
    background: var(--primary-hover);
}

/* ==========================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================== */
/* Smartphone Adjustments */
@media (max-width: 480px) {
    body {
        padding: 0;
        background-color: var(--bg-dark);
        align-items: flex-start;
    }

    .app-container {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 24px 18px;
        background: transparent;
    }

    .view-section.is-active {
        min-height: calc(100vh - 48px);
    }
}

/* Laptop & Large Screen Enhancements */
@media (min-width: 1024px) {
    .app-container {
        transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    }

    .app-container:hover {
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6),
                    0 0 50px rgba(99, 102, 241, 0.18);
    }
}
        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary);
            border-radius: 2px 2px 0 0;
        }

        /* ==========================================================================
           6. Forms & Inputs
           ========================================================================== */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--text-dark);
        }

        .input-group {
            display: flex;
            background-color: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: all 0.2s ease;
        }

        .input-group:focus-within {
            background-color: var(--bg-surface);
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--focus-ring);
        }

        .form-control {
            flex: 1;
            border: none;
            background: transparent;
            padding: 14px 16px;
            font-size: 14px;
            color: var(--text-dark);
            width: 100%;
            outline: none;
            font-family: inherit;
        }

        .form-control::placeholder {
            color: var(--text-light);
        }

        .input-addon {
            padding: 14px 16px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            background-color: var(--bg-input);
            border-right: 1px solid var(--border-color);
            display: flex;
            align-items: center;
        }

        .captcha-container {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .captcha-box {
            width: 120px;
            height: 48px;
            background-color: #FFF;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 22px;
            font-weight: bold;
            color: #333;
            letter-spacing: 4px;
            font-family: 'Courier New', Courier, monospace;
            position: relative;
            cursor: pointer;
            overflow: hidden;
            background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
            background-size: 10px 10px;
        }
        
        .captcha-box::before {
            content: '';
            position: absolute;
            width: 120%;
            height: 2px;
            background: var(--text-muted);
            transform: rotate(-8deg);
            opacity: 0.5;
        }

        /* ==========================================================================
           SIGNUP SPECIFIC STYLES
           ========================================================================== */

        .signup-container {
            max-width: 440px;
            margin: 0 auto;
            padding: 20px 16px;
            background-color: #ffffff;
        }

        /* Required Asterisk */
        .form-label.required::before {
            content: '* ';
            color: var(--danger, #ff1c3b);
            font-weight: bold;
        }

        /* Field Error Messages */
        .field-error {
            color: var(--danger, #ff1c3b);
            font-size: 12px;
            margin-top: 4px;
            line-height: 1.2;
        }

        /* Phone Input Wrapper & Country Code Select */
        .phone-wrapper {
            display: flex;
            align-items: center;
            background-color: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: all 0.2s ease;
            padding-left: 12px;
        }

        .phone-wrapper:focus-within {
            background-color: var(--bg-surface);
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--focus-ring);
        }

        .country-code-select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background: transparent;
            border: none;
            border-right: 1px solid var(--border-color);
            padding: 14px 22px 14px 0;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            font-family: inherit;
            outline: none;
            cursor: pointer;
            white-space: nowrap;
            background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
            background-repeat: no-repeat;
            background-position: right 8px center;
            background-size: 8px;
        }

        .country-code-select option {
            background-color: var(--bg-surface);
            color: var(--text-dark);
        }

        .phone-wrapper input[type="tel"] {
            flex: 1;
            border: none;
            background: transparent;
            padding: 14px 16px;
            font-size: 14px;
            color: var(--text-dark);
            outline: none;
            font-family: inherit;
        }

        .phone-wrapper input[type="tel"]::placeholder {
            color: var(--text-light);
        }

        /* Register Button (Yellow Pill) */
        .btn-register {
            width: 100%;
            background-color: #f7e199;
            color: #7a6318;
            border: none;
            border-radius: 30px;
            padding: 14px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 10px;
            margin-bottom: 20px;
            text-align: center;
        }

        /* Signup Links Row */
        .signup-links-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            margin-bottom: 32px;
            padding: 0 8px;
        }

        .link-blue {
            color: #1e88e5;
            text-decoration: none;
        }

        .link-dark {
            color: #333333;
            text-decoration: none;
        }

        /* Bottom Action Buttons */
        .bottom-actions {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            margin-top: 10px;
        }

        .btn-outline-pill {
            width: 60%;
            background: transparent;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 13px;
            color: #333333;
            cursor: pointer;
        }

        .btn-black-pill {
            width: 60%;
            background-color: #1a1a1a;
            border: none;
            border-radius: 20px;
            padding: 10px 16px;
            font-size: 13px;
            color: #ffffff;
            cursor: pointer;
        }

        /* ==========================================================================
           7. Buttons & Links
           ========================================================================== */
        .btn {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            padding: 14px;
            border-radius: var(--radius-lg);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .btn:active {
            transform: scale(0.98);
        }

        .btn-primary {
            background-color: var(--primary);
            color: white;
            box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
            margin-top: 8px;
        }

        .btn-primary:hover {
            background-color: var(--primary-hover);
            box-shadow: 0 6px 16px rgba(247, 147, 26, 0.4);
        }

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

        .btn-outline:hover {
            background-color: var(--bg-input);
        }

        .btn-dark {
            background-color: black;
            color: white;
        }

        .btn-dark:hover {
            background-color: #000;
        }

        .auth-links {
            display: flex;
            justify-content: space-between;
            margin-top: 24px;
        }

        .text-link {
            font-size: 14px;
            font-weight: 500;
            color: var(--primary);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .text-link:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }

        .text-link.muted {
            color: var(--text-muted);
        }

        .text-link.muted:hover {
            color: var(--text-dark);
        }

        /* ==========================================================================
           8. Footer Actions
           ========================================================================== */
        .bottom-actions {
            padding: 20px 24px;
            border-top: 1px solid var(--border-color);
            background-color: var(--bg-surface);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Tablet/Desktop styling for footer */
        @media (min-width: 600px) {
            .bottom-actions {
                border-radius: 0 0 var(--radius-lg) var(--radius-lg);
            }
        }

        /* ==========================================================================
           9. Views & Animations
           ========================================================================== */
        /* Base hidden view */
        .view-section {
            display: none;
            flex-direction: column;
            flex: 1;
        }

        /* Shown view */
        .view-section.is-active {
            display: flex;
            animation: fadeIn 0.4s ease-out forwards;
        }

        /* Ensure keyframes are defined */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(6px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .tab-content {
            display: none;
            animation: slideUp 0.3s ease-out forwards;
        }

        .tab-content.is-active {
            display: block;
        }

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

        /* Header for secondary views */
        .sub-header {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            margin-bottom: 32px;
        }

        .btn-back {
            position: absolute;
            left: 0;
            color: var(--primary);
            font-size: 24px;
            text-decoration: none;
            padding: 4px;
            line-height: 1;
            transition: transform 0.2s;
        }

        .btn-back:hover {
            transform: translateX(-4px);
        }

        .sub-header h2 {
            font-size: 16px;
            font-weight: 600;
        }

        /* ==========================================================================
           10. Modal (Customer Service)
           ========================================================================== */
        .modal-backdrop {
            position: fixed; /* Fixed to cover whole screen even on desktop */
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(4px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-backdrop.is-visible {
            display: flex;
            opacity: 1;
        }

        .modal-card {
            background-color: var(--bg-surface);
            width: 90%;
            max-width: 340px;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            transform: translateY(20px);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .modal-backdrop.is-visible .modal-card {
            transform: translateY(0);
        }

        .modal-body {
            padding: 32px 24px;
            text-align: center;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 12px;
            color: white;
        }

        .modal-email {
            font-size: 16px;
            color: var(--text-muted);
            user-select: all;
            background: var(--bg-input);
            padding: 12px;
            border-radius: var(--radius-sm);
            border: 1px dashed var(--border-color);
        }

        .modal-footer {
            border-top: 1px solid var(--border-color);
        }

        .modal-action {
            width: 100%;
            padding: 16px;
            background: transparent;
            border: none;
            font-size: 15px;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .modal-action:hover {
            background-color: var(--primary-light);
        }


        /* ==========================================================================
   GLOBAL RESETS & VARIABLES
   ========================================================================== */
:root {
  --primary-color: #f7931a;
  --primary-hover: #e08316;
  --bg-main: #f8f9fa;
  --bg-card: #ffffff;
  --bg-dark: #121418;
  --bg-dark-card: #1e222d;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-white: #ffffff;
  --success: #0ecb81;
  --danger: #f6465d;
  --border-color: #e5e7eb;
  --border-dark: #2a2e39;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #eef2f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--text-main);
}

.app-container {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  max-height: 932px;
  background-color: var(--bg-main);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .app-container {
    height: 90vh;
    border-radius: 28px;
  }
}

/* ==========================================================================
   VIEW ROUTING & LAYOUT
   ========================================================================== */
.view-section {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
}

.view-section.is-active {
  display: block;
}

.main-content {
  padding: 16px;
}

.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-btn {
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  color: var(--text-main);
  user-select: none;
}

.sub-header-title {
  font-size: 16px;
  font-weight: 700;
}

/* ==========================================================================
   HOME VIEW & 15-COIN WATCHLIST
   ========================================================================== */
.top-header {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0;
}

.lang-selector {
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.carousel-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 140px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay-text {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: var(--text-white);
  font-weight: 800;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.announcement {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}



.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 6px;
}

.action-icon {
  width: 44px;
  height: 44px;
  background-color: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-main);
  fill: none;
  stroke-width: 2;
}

.action-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.market-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
}

.tabs-container {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.tab {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.tab.active {
  color: var(--text-main);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.market-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}

.coin-list {
  display: flex;
  flex-direction: column;
}

.coin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.coin-name {
  font-weight: 700;
  font-size: 13px;
  width: 30%;
}

.coin-price {
  font-weight: 600;
  font-size: 13px;
  width: 40%;
  text-align: right;
  padding-right: 12px;
}

.coin-change {
  width: 70px;
  text-align: center;
  padding: 6px 0;
  border-radius: 6px;
  color: var(--text-white);
  font-weight: 600;
  font-size: 11px;
}

.bg-success { background-color: var(--success); }
.bg-danger { background-color: var(--danger); }

/* ==========================================================================
   DEPOSIT / RECHARGE VIEW
   ========================================================================== */
.instruction-modal {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  position: relative;
}

.instruction-close {
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  color: var(--text-muted);
}

.stepper-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  gap: 10px;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f3f4f6;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 12px;
  font-weight: 600;
}

.step-content p {
  font-size: 11px;
  color: var(--text-muted);
}

.qr-section {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Styled QR Code container */
.qr-code {
  width: 150px;
  height: 150px;
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: 8px; /* Padding inside the border */
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   WITHDRAW VIEW
   ========================================================================== */
/* ==========================================
   WITHDRAW PAGE
========================================== */

#view-withdraw {
    background: #f7f7f8;
    min-height: 100vh;
    color: #222;
}

#view-withdraw .main-content {
    width: 100%;
    max-width: 430px;
    margin: auto;
    padding: 10px 8px 90px;
}


/* ==========================================
   COIN / NETWORK CARD
========================================== */

.withdraw-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 11px;
    margin-bottom: 10px;
}

.withdraw-card .card-label {
    font-size: 10px;
    color: #777;
    margin-bottom: 7px;
}

.withdraw-select-row {
    display: flex;
    gap: 7px;
}

.withdraw-coin-wrapper,
.withdraw-network-wrapper {
    position: relative;
    flex: 1;
}

.withdraw-coin-selector,
.withdraw-network-selector {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
}

.withdraw-coin-selector > span:last-child,
.withdraw-network-selector > span:last-child {
    margin-left: auto;
    color: #999;
    font-size: 9px;
}

.withdraw-coin-badge,
.withdraw-option-badge,
.withdraw-network-icon,
.network-letter {
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}

.withdraw-coin-badge,
.withdraw-option-badge.usdt {
    background: #e8f5e8;
    color: #4e8d4e;
}

.withdraw-option-badge.usdc {
    background: #e8f0ff;
    color: #3974d8;
}

.withdraw-coin-text,
.withdraw-network-text {
    min-width: 0;
}

.withdraw-coin-text strong,
.withdraw-network-text strong {
    display: block;
    font-size: 10px;
    color: #222;
}

.withdraw-coin-text small,
.withdraw-network-text small {
    display: block;
    margin-top: 2px;
    font-size: 8px;
    color: #999;
}


/* ==========================================
   DROPDOWNS
========================================== */

.withdraw-coin-dropdown,
.withdraw-network-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 9px;
    padding: 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,.10);
    display: none;
    z-index: 200;
}

.withdraw-coin-dropdown.show,
.withdraw-network-dropdown.show {
    display: block;
}

.withdraw-option,
.withdraw-network-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 7px;
    cursor: pointer;
}

.withdraw-option:hover,
.withdraw-network-option:hover,
.withdraw-option.active,
.withdraw-network-option.active {
    background: #f6f6f6;
}

.withdraw-option strong,
.withdraw-network-option strong {
    display: block;
    font-size: 10px;
    color: #222;
}

.withdraw-option small,
.withdraw-network-option small {
    display: block;
    margin-top: 2px;
    font-size: 8px;
    color: #999;
}

.withdraw-network-icon,
.network-letter {
    background: #f0f0f0;
    color: #555;
}


/* ==========================================
   INPUTS
========================================== */

#view-withdraw .form-group {
    margin-bottom: 11px;
}

#view-withdraw .form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    color: #666;
}

#view-withdraw .input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0 9px;
}

#view-withdraw .input-wrapper:focus-within {
    border-color: #3974d8;
    box-shadow: 0 0 0 2px rgba(57,116,216,.07);
}

#view-withdraw .input-wrapper input {
    width: 100%;
    height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    color: #222;
}

#view-withdraw .input-wrapper input::placeholder {
    color: #aaa;
}

#withdrawAmount::-webkit-inner-spin-button,
#withdrawAmount::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#withdrawAmount {
    appearance: textfield;
    -moz-appearance: textfield;
}

.btn-all {
    color: #3974d8;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px;
}


/* ==========================================
   CALCULATION CARD
========================================== */

.withdraw-calculation-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 9px;
    padding: 11px;
    margin: 2px 0 12px;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.calculation-row + .calculation-row {
    margin-top: 9px;
}

.calculation-row span {
    font-size: 9px;
    color: #888;
}

.calculation-row strong {
    font-size: 9px;
    color: #333;
}

.calculation-divider {
    height: 1px;
    background: #eeeeee;
    margin: 10px 0;
}

.calculation-row.total span {
    color: #444;
    font-weight: 500;
}

.calculation-row.total strong {
    color: #3974d8;
    font-size: 10px;
}


/* ==========================================
   BALANCE SUMMARY
========================================== */

.balance-info-list {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 9px;
    padding: 10px;
    margin-bottom: 10px;
}

.balance-info-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 9px;
}

.balance-info-row + .balance-info-row {
    margin-top: 8px;
}

.balance-info-row > span:first-child {
    color: #888;
}

.balance-info-row .val {
    color: #333;
    text-align: right;
    font-weight: 500;
}

.val-danger {
    color: #d95353 !important;
}


/* ==========================================
   SECURITY NOTICE
========================================== */

.key-notice-box {
    background: #fff8e8;
    border: 1px solid #f4e2b4;
    color: #8b6b2c;
    border-radius: 8px;
    padding: 9px;
    margin-bottom: 9px;
    font-size: 9px;
    line-height: 1.5;
}

.withdraw-warning {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 9px;
    margin-bottom: 11px;
    font-size: 8px;
    line-height: 1.5;
    color: #888;
}


/* ==========================================
   BLUE WITHDRAW BUTTON
========================================== */

#view-withdraw .btn-primary-action {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 20px;
    background: #2166e8;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

#view-withdraw .btn-primary-action:hover {
    background: #1958cd;
}

#view-withdraw .btn-primary-action:active {
    transform: scale(.98);
}


/* ==========================================
   SUCCESS BOTTOM SHEET
========================================== */

.withdraw-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.42);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
}

.withdraw-modal-overlay.show {
    display: flex;
}

.withdraw-success-sheet {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    animation: withdrawSheetUp .28s ease-out;
}

@keyframes withdrawSheetUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.withdraw-modal-top {
    height: 50px;
    background: #f4f7ff;
    position: relative;
    overflow: hidden;
}

.withdraw-modal-top::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 35%, #f5c542 0 2px, transparent 3px),
        radial-gradient(circle at 22% 70%, #3974d8 0 2px, transparent 3px),
        radial-gradient(circle at 35% 25%, #e56b6f 0 2px, transparent 3px),
        radial-gradient(circle at 50% 70%, #65b891 0 2px, transparent 3px),
        radial-gradient(circle at 65% 25%, #f3a84b 0 2px, transparent 3px),
        radial-gradient(circle at 80% 65%, #7b6ce5 0 2px, transparent 3px),
        radial-gradient(circle at 93% 30%, #3974d8 0 2px, transparent 3px);
}

.withdraw-success-body {
    padding: 0 15px 18px;
    text-align: center;
}

.withdraw-success-icon {
    width: 43px;
    height: 43px;
    margin: -21px auto 9px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #2166e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
}

.withdraw-success-amount {
    font-size: 17px;
    font-weight: 600;
    color: #222;
}

.withdraw-success-body h2 {
    margin: 4px 0;
    font-size: 15px;
}

.withdraw-success-body > p {
    max-width: 290px;
    margin: 0 auto 13px;
    color: #999;
    font-size: 9px;
    line-height: 1.5;
}


/* ==========================================
   MODAL SUMMARY
========================================== */

.withdraw-modal-summary {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 10px;
    text-align: left;
    margin-bottom: 13px;
}

.modal-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 9px;
}

.modal-summary-row + .modal-summary-row {
    margin-top: 8px;
}

.modal-summary-row span {
    color: #999;
}

.modal-summary-row strong {
    color: #333;
}


/* ==========================================
   MODAL BUTTONS
========================================== */

.withdraw-modal-primary {
    width: 100%;
    height: 37px;
    border: none;
    border-radius: 19px;
    background: #2166e8;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.withdraw-modal-secondary {
    width: 100%;
    height: 32px;
    border: none;
    background: transparent;
    color: #555;
    font-size: 10px;
    cursor: pointer;
}

/* ==========================================================================
   ASSETS / WALLET VIEW (DARK STYLING)
   ========================================================================== */
#view-assets {
  background-color: #f5f7fa;
  color: var(--text-white);
}

#view-assets .sub-header {
  background-color: #f4f6f8;
  border-bottom-color: none;
}

#view-assets .back-btn,
#view-assets .sub-header-title {
  color: black;
}

.assets-content {
  padding: 16px;
}

.modern-profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modern-profile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-white);
}

.modern-username {
  font-weight: 700;
  font-size: 15px;
  color: black;
}

.modern-vip-badge {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  color: #070707;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
}

.premium-balance-card {
  background: linear-gradient(135deg, var(--bg-dark-card), #1677fe);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.balance-subtitle {
  font-size: 12px;
  color: #848e9c;
  margin-bottom: 6px;
}

.balance-main {
  font-size: 26px;
  font-weight: 800;
}

.balance-fiat {
  font-size: 12px;
  color: #848e9c;
  margin-top: 4px;
  margin-bottom: 20px;
}

.premium-action-grid {
  display: flex;
  gap: 10px;
}

.btn-premium {
  flex: 1;
  background: #2b313a;
  border: none;
  color: var(--text-white);
  padding: 10px 0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-premium svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-white);
  fill: none;
  stroke-width: 2;
}

.assets-list-header {
  margin-bottom: 12px;
}

.assets-list-title {
  font-size: 14px;
  font-weight: 700;
  color: black;
}

.crypto-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crypto-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark-card), #1677fe);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
}

.crypto-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crypto-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

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

.crypto-ticker {
  font-size: 11px;
  color: #848e9c;
}

.crypto-info-right {
  text-align: right;
}

.crypto-amount {
  font-size: 14px;
  font-weight: 700;
}

.crypto-value {
  font-size: 11px;
  color: #848e9c;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-muted);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

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

.nav-item.active {
  color: #1677fe
}

.nav-item.active svg {
  stroke: #1677fe;
}

/* Bottom Nav Dark Mode Toggle */
.bottom-nav.dark-mode {
  background: linear-gradient(135deg, var(--bg-dark-card), #1677fe);
  border-top-color: var(--border-dark);
}

.bottom-nav.dark-mode .nav-item {
  color: #848e9c;
}

.bottom-nav.dark-mode .nav-item svg {
  stroke: #848e9c;
}

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

.bottom-nav.dark-mode .nav-item.active svg {
  stroke: var(--primary-color);
}








/* Container & Base Layout */
.tp-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  display: flex;
  flex-direction: column;
}

/* Header */
.tp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tp-back-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: #f59e0b;
  cursor: pointer;
  padding: 0 8px 4px 0;
  line-height: 1;
}

.tp-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.tp-header-spacer {
  width: 24px;
}

/* Scrollable Content Container */
.tp-content {
  padding: 16px;
  flex: 1;
}

/* Stepper Box */
.tp-stepper-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
}

.tp-stepper-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 14px;
  color: #000000;
  cursor: pointer;
  font-weight: bold;
}

.tp-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.tp-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 9px;
  bottom: 24px;
  width: 2px;
  background-color: #3b82f6;
  z-index: 1;
}

.tp-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.tp-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #1677ff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tp-step-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.tp-step-text p {
  margin: 2px 0 0 0;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}

/* Metallic Asset Banner */
.tp-asset-card {
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tp-asset-label {
  font-size: 12px;
  color: #374151;
}

.tp-asset-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}

.tp-asset-num {
  font-size: 24px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.5px;
}

.tp-asset-symbol {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.tp-user-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tp-username {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.tp-vip-level {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

/* Tabs */
.tp-tab-row {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.tp-tab {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  padding: 0 0 6px 0;
  position: relative;
}

.tp-tab.active {
  color: #111827;
  font-weight: 700;
}

.tp-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #f59e0b;
  border-radius: 2px;
}

/* Input Fields */
.tp-field-group {
  margin-bottom: 18px;
}

.tp-field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.tp-input-box {
  background-color: #f3f4f6;
  border-radius: 8px;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.tp-input-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #111827;
}

.tp-input-box input::placeholder {
  color: #9ca3af;
}

.tp-field-hint-error {
  color: #ef4444;
  font-size: 11px;
  margin-top: 6px;
}

.tp-currency-prefix {
  font-size: 16px;
  color: #111827;
  margin-right: 8px;
  font-weight: 600;
}

.tp-field-subrow {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.tp-balance-value {
  color: #111827;
}

.tp-link-all {
  background: none;
  border: none;
  color: #1677ff;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  font-size: 12px;
}

/* Captcha Badge */
.tp-captcha-box {
  justify-content: space-between;
}

.tp-captcha-code {
  background-color: #cbd5e1;
  background-image: linear-gradient(45deg, #94a3b8 25%, transparent 25%, transparent 75%, #94a3b8 75%), linear-gradient(45deg, #94a3b8 25%, transparent 25%, transparent 75%, #94a3b8 75%);
  background-size: 8px 8px;
  color: #0f172a;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 3px;
  padding: 4px 10px;
  border-radius: 4px;
  user-select: none;
  cursor: pointer;
  text-decoration: line-through;
  font-style: italic;
  flex-shrink: 0;
}

/* Action Button */
.tp-submit-btn {
  width: 100%;
  height: 48px;
  background-color: #1677ff;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.2s ease;
}

.tp-submit-btn:hover {
  background-color: #0958d9;
}


/* ==========================================================================
   MEMBERSHIP LEVEL VIEW (BLUE THEME OVERRIDE)
   ========================================================================== */

.ml-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.ml-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ml-back-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #1677ff;
  cursor: pointer;
  padding: 0 8px 4px 0;
  line-height: 1;
}

.ml-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.ml-log-btn {
  background: none;
  border: none;
  color: #1677ff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Main Body */
.ml-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ml-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Standard Inactive VIP Card */
.ml-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ml-card-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ml-vip-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ml-crown-icon {
  font-size: 15px;
  filter: grayscale(100%);
  opacity: 0.6;
}

.ml-vip-title {
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  color: #94a3b8;
}

.ml-limit-row {
  font-size: 12px;
  color: #111827;
  line-height: 1.4;
}

.ml-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #94a3b8;
  font-weight: 800;
}

.ml-price-symbol {
  font-size: 14px;
}

.ml-price-num {
  font-size: 22px;
  letter-spacing: -0.5px;
}

/* Active Selected VIP Card (Blue Gradient instead of Yellow) */
.ml-card.active {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #60a5fa;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.ml-card.active .ml-crown-icon {
  filter: none;
  opacity: 1;
}

.ml-card.active .ml-vip-title {
  color: #1d4ed8;
}

.ml-card.active .ml-card-price {
  color: #1d4ed8;
}

/* Rules Section */
.ml-rules-card {
  margin-top: 8px;
  margin-bottom: 24px;
}

.ml-rules-heading {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
}

.ml-rules-limits {
  font-size: 13px;
  color: #111827;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ml-rules-text {
  font-size: 12px;
  color: #ef4444; /* Standard Red Warning Text */
  line-height: 1.5;
  margin: 0;
}

/* Bottom Action Button */
.ml-action-btn {
  width: 100%;
  height: 48px;
  background-color: #1677ff;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
  transition: background-color 0.2s ease;
}

.ml-action-btn:hover {
  background-color: #0958d9;
}


/* ==========================================================================
   MARKET PAGE STYLES (MKT)
   ========================================================================== */

.mkt-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px; /* Space above bottom nav */
}

/* Header & Search */
.mkt-header {
  padding: 16px 16px 12px 16px;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #f3f4f6;
}

.mkt-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mkt-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0;
}

.mkt-icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
}

.mkt-search-box {
  background-color: #f3f4f6;
  border-radius: 10px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.mkt-search-icon {
  color: #9ca3af;
  margin-right: 8px;
  flex-shrink: 0;
}

.mkt-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  outline: none;
  color: #111827;
}

.mkt-search-box input::placeholder {
  color: #9ca3af;
}

/* Scrollable Category Tabs */
.mkt-tabs-scroll {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background-color: #ffffff;
  border-bottom: 1px solid #f3f4f6;
}

.mkt-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.mkt-tab {
  background-color: #f3f4f6;
  border: none;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mkt-tab.active {
  background-color: #1677ff;
  color: #ffffff;
}

/* Table Header Row */
.mkt-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  border-bottom: 1px solid #f3f4f6;
  user-select: none;
}

.mkt-sort-arrow {
  font-size: 10px;
  margin-left: 2px;
}

.mkt-col-name {
  flex: 1.2;
  text-align: left;
  cursor: pointer;
}

.mkt-col-price {
  flex: 1;
  text-align: right;
  cursor: pointer;
}

.mkt-col-change {
  flex: 0.9;
  text-align: right;
  cursor: pointer;
}

/* List Items */
.mkt-list {
  display: flex;
  flex-direction: column;
}

.mkt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mkt-item:hover {
  background-color: #f8fafc;
}

.mkt-pair-title {
  font-size: 14px;
  color: #111827;
}

.mkt-pair-quote {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}

.mkt-pair-vol {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.mkt-price-main {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.mkt-price-sub {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

/* Positive / Negative Badges */
.mkt-badge {
  display: inline-block;
  min-width: 68px;
  text-align: center;
  padding: 6px 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.mkt-badge.positive {
  background-color: #ecfdf5;
  color: #10b981;
}

.mkt-badge.negative {
  background-color: #fef2f2;
  color: #ef4444;
}



/* ==========================================================================
   TRADE PAGE STYLES (TRD)
   ========================================================================== */

.trd-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  padding-bottom: 70px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.trd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.trd-pair-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.trd-pair-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.trd-chart-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* Type Tabs (Spot vs Contract) */
.trd-type-tabs {
  display: flex;
  gap: 20px;
  padding: 10px 16px;
}

.trd-type-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #9ca3af;
  cursor: pointer;
  position: relative;
  padding-bottom: 6px;
}

.trd-type-btn.active {
  color: #111827;
}

.trd-type-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 3px;
  background-color: #1677fe;
  border-radius: 2px;
}

/* Trading Grid Split */
.trd-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  padding: 8px 16px;
}

/* Left Form Column */
.trd-form-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buy/Sell Side Toggle */
.trd-side-toggle {
  display: flex;
  background-color: #f3f4f6;
  border-radius: 6px;
  padding: 2px;
}

.trd-side-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  border-radius: 4px;
  cursor: pointer;
}

.trd-side-btn.active-buy {
  background-color: #00c087;
  color: #ffffff;
}

.trd-side-btn.active-sell {
  background-color: #ef4444;
  color: #ffffff;
}

/* Inputs & Steppers */
.trd-select-wrapper {
  position: relative;
}

.trd-select {
  width: 100%;
  padding: 8px 10px;
  background-color: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #374151;
  outline: none;
}

.trd-input-group {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.trd-stepper-btn {
  width: 32px;
  height: 34px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
}

.trd-input-group input {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  outline: none;
  padding: 6px 0;
}

.trd-unit-input {
  padding: 0 10px;
}

.trd-input-unit {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}

/* Info Rows */
.trd-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6b7280;
}

.trd-info-val strong {
  color: #111827;
}

.trd-pct-group {
  display: flex;
  gap: 4px;
}

.trd-pct-btn {
  flex: 1;
  padding: 4px 0;
  background-color: #f3f4f6;
  border: none;
  border-radius: 4px;
  font-size: 10px;
  color: #6b7280;
  cursor: pointer;
}

.trd-pct-btn:hover {
  background-color: #e5e7eb;
}

.trd-total-row {
  margin-top: 2px;
}

/* Submit Action Button */
.trd-submit-btn {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  margin-top: 4px;
  transition: background-color 0.2s ease;
}

.trd-bg-buy {
  background-color: #00c087;
}

.trd-bg-sell {
  background-color: #ef4444;
}

/* Right Column: Live Order Book */
.trd-orderbook-col {
  display: flex;
  flex-direction: column;
}

.trd-ob-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.trd-ob-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.trd-ob-asks {
  margin-bottom: 6px;
}

.trd-ob-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 2px 0;
  position: relative;
}

.trd-ob-depth {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  transition: width 0.3s ease;
}

.trd-ask-depth {
  background-color: rgba(239, 68, 68, 0.15);
}

.trd-bid-depth {
  background-color: rgba(56, 189, 248, 0.2);
}

.trd-ask-price {
  color: #ef4444;
  font-weight: 600;
  z-index: 1;
}

.trd-bid-price {
  color: #38bdf8;
  font-weight: 600;
  z-index: 1;
}

.trd-ob-qty {
  color: #374151;
  font-weight: 500;
  z-index: 1;
}

/* Orders Section */
.trd-orders-section {
  margin-top: 16px;
  border-top: 8px solid #f9fafb;
  padding: 12px 16px;
}

.trd-order-tab {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  position: relative;
  padding-bottom: 4px;
}

.trd-order-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background-color: #1677fe;
  border-radius: 2px;
}

.trd-orders-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7280;
  margin-top: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.trd-empty-state {
  text-align: center;
  padding: 30px 0;
  font-size: 12px;
  color: #9ca3af;
}

/* ==========================================================================
   CONTRACT TRADING STYLES
   ========================================================================== */

/* Mode-based Visibility Controls */
.trd-wrapper[data-mode="spot"] .trd-contract-only {
  display: none !important;
}

.trd-wrapper[data-mode="contract"] .trd-spot-only {
  display: none !important;
}

/* Margin & Leverage Dropdowns Row */
.trd-selectors-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6px;
  margin-bottom: 2px;
}

/* Contract Dual Buttons Stack */
.trd-contract-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.trd-contract-btns .trd-submit-btn {
  margin-top: 0;
}


/* ==========================================================================
   FINANCIAL CENTER STYLES (FIN)
   ========================================================================== */

.fin-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  padding-bottom: 70px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fin-header {
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 10;
}

.fin-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.fin-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fin-card {
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 16px;
}

/* Card Header & Button */
.fin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.fin-coin-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.fin-product-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.fin-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fin-token-label {
  font-size: 13px;
  color: #8c8c8c;
  font-weight: 500;
}

.fin-sub-btn {
  background-color: #1677ff;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(22, 119, 255, 0.2);
  transition: opacity 0.15s ease;
}

.fin-sub-btn:active {
  opacity: 0.85;
}

/* Key Metrics 3-Column Grid */
.fin-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: flex-end;
  margin-bottom: 12px;
}

.fin-metric-item.center {
  text-align: center;
}

.fin-metric-item.right {
  text-align: right;
}

.fin-metric-val {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.fin-metric-val.fin-highlight {
  color: #1677ff;
}

.fin-unit {
  font-size: 13px;
  font-weight: 400;
}

.fin-metric-label {
  font-size: 11px;
  color: #8c8c8c;
  margin-top: 4px;
}

/* Purchase Rules & Restrictions */
.fin-rules-section {
  font-size: 12px;
  color: #374151;
  margin-bottom: 10px;
  line-height: 1.5;
}

.fin-vip-link {
  color: #1677ff;
  text-decoration: none;
  font-weight: 700;
}

.fin-vip-link:hover {
  text-decoration: underline;
}

/* Progress Bar */
.fin-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fin-progress-bar {
  flex: 1;
  height: 4px;
  background-color: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

.fin-progress-fill {
  height: 100%;
  background-color: #1677ff;
  border-radius: 2px;
}

.fin-progress-text {
  font-size: 11px;
  color: #8c8c8c;
  min-width: 75px;
  text-align: right;
}




/* ==========================================================================
   INLINE FACIAL RECOGNITION STYLES
   ========================================================================== */

.btn-face-scan {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f3f4f6;
    color: #1677ff;
    border: 1px dashed #1677ff;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-face-scan:hover {
    background-color: #ebf5ff;
}

.inline-camera-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
}

.inline-video-box {
    position: relative;
    width: 100%;
    max-width: 240px;
    height: 240px;
    background-color: #000;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror effect for front camera */
}

.inline-oval-guide {
    position: absolute;
    width: 140px;
    height: 180px;
    border: 2px dashed #1677ff;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.face-status-text {
    font-size: 12px;
    color: #4b5563;
    margin: 12px 0;
    text-align: center;
}

.btn-capture-scan {
    width: 100%;
    background-color: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-capture-scan:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.face-success-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #065f46;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

/* ==========================================================================
   ASSET PAGE - SETTINGS MENU
   ========================================================================== */

.asset-settings-menu {
  margin: 20px 16px;
  background-color: #ffffff;
  border-radius: 16px; /* Slightly rounder corners for a modern mobile feel */
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  user-select: none; /* Prevents text selection on rapid mobile taps */
  -webkit-tap-highlight-color: transparent; /* Removes blue tap box on iOS/Android */
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.setting-item:last-child {
  border-bottom: none;
}

/* Hover and Native App Touch Feedback */
@media (hover: hover) {
  .setting-item:hover {
    background-color: #f8fafc;
  }
}

.setting-item:active {
  background-color: #f1f5f9;
  transform: scale(0.995); /* Subtle press-down effect */
}

/* Left Group (Icon + Label) */
.setting-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a; /* Deeper slate color for high readability */
  letter-spacing: -0.2px;
}

.setting-item-left svg {
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

/* Right Group (Chevron / Status Badges) */
.setting-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

/* Dedicated Sign Out / Destructive Style */
.sign-out-item .setting-item-left {
  color: #ef4444; /* Standard alert red */
}

.sign-out-item .setting-item-left svg {
  stroke: #ef4444 !important;
}

.sign-out-item:active {
  background-color: #fef2f2; /* Subtle red tint on tap */
}

/* ==========================================================================
   FINANCIAL RECORDS STYLES
   ========================================================================== */

.records-wrapper {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
}

.records-back-btn {
    color: #f7931a; /* Exact orange color from the screenshot arrow */
    cursor: pointer;
    display: flex;
    align-items: center;
}

.records-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.records-header-spacer {
    width: 22px; /* Mirrors back button width to keep title perfectly centered */
}

/* Tabs Layout */
.records-tabs {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
}

.record-tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: color 0.2s ease;
}

.record-tab.active {
    color: #111827;
    font-weight: 700;
}

/* The short orange underline under the active tab */
.record-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px; /* Short width matching screenshot */
    height: 3px;
    background-color: #f7931a;
    border-radius: 2px 2px 0 0;
}

/* Content Area */
.records-content {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
}

.records-empty-state {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin-top: 60px;
}

/* ==========================================================================
   FINANCIAL RECORDS - LIST ITEMS
   ========================================================================== */

.record-list-container {
    padding-bottom: 24px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.record-item:last-child {
    border-bottom: none;
}

/* Left Side (Title & Time) */
.record-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.record-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.record-time {
    font-size: 12px;
    color: #9ca3af;
}

/* Right Side (Amount & Status) */
.record-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.record-amount {
    font-size: 16px;
    font-weight: 700;
    font-family: monospace; /* Keeps numbers aligned neatly */
}

.record-status {
    font-size: 12px;
    font-weight: 500;
}

/* Status & Amount Colors */
.text-green { color: #10b981; }
.text-orange { color: #f7931a; }
.text-gray { color: #9ca3af; }
.text-black { color: #111827; }


/* ==========================================================================
   ACCOUNT MANAGEMENT VIEW
   ========================================================================== */

.account-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 40px;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.account-back-btn {
    color: #111827;
    cursor: pointer;
    display: flex;
}

.account-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.account-header-spacer {
    width: 22px;
}

/* Profile Card */
.account-profile-card {
    margin: 16px 20px;
    padding: 16px;
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.2);
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-user-info {
    flex: 1;
}

.account-username {
    font-size: 16px;
    font-weight: 700;
}

.account-email {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

.account-vip-badge {
    background-color: #f7931a;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
}

/* Menu Grouping */
.account-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin: 20px 20px 8px 20px;
}

.account-group {
    background-color: #ffffff;
    border-radius: 12px;
    margin: 0 20px;
    border: 1px solid #f1f5f9;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.account-item:last-child {
    border-bottom: none;
}

.account-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.account-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-verified {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.subtext {
    font-size: 13px;
    color: #64748b;
}

.chevron {
    color: #94a3b8;
    font-size: 16px;
}

/* iOS Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1677ff;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Logout Button */
.account-logout-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 28px 20px 0 20px;
    padding: 14px;
    background-color: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}



/* ==========================================
   FACIAL VERIFICATION / SECURITY VIEW
   ========================================== */
.kyc-face-scan-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin: 16px 0;
}

.face-scan-header h3 {
  font-size: 16px;
  color: #0f172a;
  margin: 0 0 6px 0;
  font-weight: 700;
}

.face-scan-header p {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

/* Circular Camera View */
.camera-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 24px auto;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f8fafc;
  border: 4px solid #e2e8f0;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.1);
}

#kyc-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirrors the camera like a standard selfie */
}

/* Target Guide overlaying the video */
.face-guide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 4px dashed #2563eb;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.98); opacity: 0.5; }
  50% { transform: scale(1.02); opacity: 0.8; }
  100% { transform: scale(0.98); opacity: 0.5; }
}

/* Action Buttons */
.scan-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border: none;
  border-radius: 25px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-primary-action {
  background-color: #050508;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-primary-action:hover {
  opacity: 0.9;
}

/* Status Message */
.scan-status {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.scan-status.success {
  color: #10b981;
}

.scan-status.error {
  color: #ef4444;
}

/* Green accent color override for KYC success modal */
.modal-header-bg.kyc-header-bg {
  background: linear-gradient(180deg, #d1fae5 0%, #ecfdf5 70%, #ffffff 100%);
}

.success-icon.kyc-success-badge {
  background-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* ==========================================
   FIX: KYC SUCCESS MODAL OVERLAY & POSITIONING
   ========================================== */

/* 1. Hide modal by default and fix over the entire screen */
#kycSuccessModal.modal-overlay {
  display: none; /* Prevents modal from rendering on dashboard load */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5); /* Dims background dashboard */
  backdrop-filter: blur(4px);
  z-index: 9999; /* Keeps modal above all dashboard UI */
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

/* 2. Display modal when activated via JavaScript */
#kycSuccessModal.modal-overlay.active {
  display: flex !important;
}

/* 3. Contain and style modal card */
#kycSuccessModal .modal-content {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}

#kycSuccessModal .modal-header-bg {
  height: 80px;
  background: linear-gradient(180deg, #d1fae5 0%, #ecfdf5 70%, #ffffff 100%);
  position: relative;
}

#kycSuccessModal .modal-body {
  padding: 0 20px 24px 20px;
  margin-top: -28px;
  position: relative;
}

#kycSuccessModal .success-icon {
  width: 50px;
  height: 50px;
  background-color: #10b981;
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

#kycSuccessModal .success-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

#kycSuccessModal .success-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 20px;
}

#kycSuccessModal .btn-main {
  width: 100%;
  height: 48px;
  background-color: #050508;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
/* ==========================================================================
   COMPACT DASHBOARD ROTATING OFFER BANNER
   ========================================================================== */

.dashboard-offer-card {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 16px;            /* Reduced padding for a slimer profile */
  margin: 10px 0 16px 0;          /* Compact outer margins */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  color: #ffffff;
  transition: background 0.5s ease;
}

/* Subtle Accent Glow */
.dashboard-offer-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: rgba(22, 119, 255, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

/* Animated Content Container */
.offer-content-wrapper {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.offer-content-wrapper.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

/* Compact Tag Badge */
.offer-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fbbf24;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Compact Typography */
.offer-title {
  font-size: 14px;               /* Reduced title size */
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.offer-description {
  font-size: 11px;               /* Scaled down text */
  color: #94a3b8;
  margin: 0 0 10px 0;
  line-height: 1.4;
  max-width: 95%;
}

/* Compact Action Button */
.offer-btn {
  display: inline-block;
  background: #1677ff;
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 12px;             /* Slimmer button */
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.offer-btn:hover {
  background: #4096ff;
}

/* Compact Controls & Indicators */
.offer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.offer-arrow-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.offer-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.offer-dots {
  display: flex;
  gap: 4px;
}

.offer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.offer-dot.active {
  width: 14px;
  border-radius: 6px;
  background: #1677ff;
}

/* ==========================================================================
   KYC ID UPLOAD COMPONENT
   ========================================================================== */

.form-group.kyc-upload-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

/* Form Label with Required Red Asterisk */
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  display: inline-block;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

/* Upload Container Wrapper */
.upload-wrapper {
  position: relative;
  width: 100%;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  background-color: #f8fafc;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.upload-wrapper:hover {
  border-color: #1677ff;
  background-color: #f0f7ff;
}

/* Real File Input (Stretched invisibly over the entire box) */
.upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Custom Visual Content */
.upload-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none; /* Allows clicks to pass through to the file input */
}

.upload-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #e6f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.upload-wrapper:hover .upload-icon-circle {
  transform: scale(1.05);
}

.upload-text-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.upload-primary-text {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-sub-text {
  font-size: 11px;
  color: #94a3b8;
}

/* File Selected State */
.upload-wrapper.file-selected {
  border-style: solid;
  border-color: #10b981;
  background-color: #f0fdf4;
}

.upload-wrapper.file-selected .upload-icon-circle {
  background-color: #dcfce7;
}

.upload-wrapper.file-selected .upload-icon-circle svg {
  stroke: #10b981;
}

/* Error State */
.kyc-upload-group.has-error .upload-wrapper {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.field-error {
  font-size: 11px;
  font-weight: 500;
  color: #ef4444;
  margin-top: 6px;
  display: none; /* Hidden by default */
}

.kyc-upload-group.has-error .field-error {
  display: block; /* Shown only when error class is added */
}

/* ==========================================================================
   COINEELY INTRO / SPLASH PAGE
   ========================================================================== */

.intro-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  background: radial-gradient(circle at top center, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  box-sizing: border-box;
  animation: fadeIn 0.6s ease-out;
}

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

/* Branding */
.intro-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.intro-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(22, 119, 255, 0.15);
  border: 1px solid rgba(22, 119, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  /* -webkit-background-clip: text; */
  -webkit-text-fill-color: transparent;
}

/* Floating Hero Graphic */
.intro-graphic-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.glowing-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  background: #1677ff;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.25; }
  100% { transform: scale(1.1); opacity: 0.45; }
}

.floating-crypto-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-badge {
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
}

.card-status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.card-balance-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.card-balance-val {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.card-networks {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.card-networks span {
  color: #cbd5e1;
}

/* Typography Group */
.intro-text-group {
  text-align: center;
  margin-bottom: 24px;
}

.intro-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.intro-subtitle {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 320px;
}

/* Actions */
.intro-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-intro-primary {
  width: 100%;
  background: #1677ff;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.35);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-intro-primary:active {
  transform: scale(0.98);
  background: #005ce6;
}

.btn-intro-secondary {
  width: 100%;
  background: transparent;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-intro-secondary:active {
  color: #ffffff;
}

/* Reset basic styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* Splash Screen Container */
#splash-screen {
    position: fixed; /* Keeps it locked to the screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff; /* Change to your brand's background color */
    
    /* Flexbox centers the logo and loader perfectly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    z-index: 9999; /* Ensures it stays on top of everything else */
    transition: opacity 0.5s ease; /* Creates a smooth fade-out */
}

/* Logo Styling */
.logo {
    width: 150px; /* Adjust based on your logo size */
    margin-bottom: 20px;
}

/* CSS Loading Spinner */
.loader {
    border: 5px solid #f3f3f3; /* Light grey background */
    border-top: 5px solid #3498db; /* Blue spinning color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite; /* Runs the spin keyframe continuously */
}

/* The spinning animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Class to trigger the fade-out */
.fade-out {
    opacity: 0;
    pointer-events: none; /* Stops the user from clicking the invisible screen */
}

/* =========================================================
   DEPOSIT / RECHARGE SCREEN
   Screenshot-inspired mobile crypto UI
   ========================================================= */

#view-recharge {
    width: 100%;
    min-height: 100vh;
    background: #f7f7f8;
    color: #171717;
    font-family: -apple-system, BlinkMacSystemFont, "Inter",
                 "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

#view-recharge *,
#depositSuccessModal * {
    box-sizing: border-box;
}


/* =========================
   SUB HEADER
   ========================= */

#view-recharge .sub-header {
    height: 48px;
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    z-index: 10;
}

#view-recharge .back-btn {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 25px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    font-weight: 300;
}

#view-recharge .sub-header-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

#view-recharge .header-icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-55%);
    font-size: 20px;
    color: #555;
    letter-spacing: 1px;
}


/* =========================
   MAIN CONTENT
   ========================= */

#view-recharge .main-content {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 10px 8px 90px;
}


/* =========================
   INSTRUCTION MODAL
   ========================= */

#view-recharge .instruction-modal {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 13px;
    margin-bottom: 9px;
    border: 1px solid #eeeeee;
}

#view-recharge .instruction-close {
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
}

#view-recharge .stepper-list {
    padding-right: 20px;
}

#view-recharge .step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#view-recharge .step-item + .step-item {
    margin-top: 13px;
}

#view-recharge .step-num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: #f0f1f3;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

#view-recharge .step-content h4 {
    margin: 0 0 3px;
    font-size: 12px;
    font-weight: 600;
    color: #222;
}

#view-recharge .step-content p {
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
    color: #888;
}


/* =========================
   DEPOSIT CARDS
   ========================= */

#view-recharge .deposit-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 9px;
    padding: 11px 10px;
    margin-bottom: 8px;
}

#view-recharge .card-label {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}


/* =========================
   AMOUNT INPUT
   ========================= */

#view-recharge .input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
}

#view-recharge #usdtDepositAmount {
    width: 50%;
    height: 32px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #171717;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
}

#view-recharge #usdtDepositAmount::placeholder {
    color: #999;
    opacity: 1;
}

#view-recharge #usdtDepositAmount::-webkit-outer-spin-button,
#view-recharge #usdtDepositAmount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#usdtDepositAmount[type="number"] {
    appearance: textfield;
}


/* =========================
   CURRENCY SELECTOR
   ========================= */

#view-recharge .currency-selector {
    height: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 5px;
    cursor: pointer;
}

#view-recharge .usdt-badge {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #eaf1e7;
    color: #5d8d51;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
}

#view-recharge .currency-selector > span:not(.dropdown-arrow) {
    font-size: 10px;
    color: #333;
    font-weight: 500;
}

#view-recharge .dropdown-arrow {
    font-size: 9px;
    color: #999;
    margin-left: 1px;
}

#view-recharge .min-deposit-text {
    margin-top: 3px;
    font-size: 8px;
    color: #999;
}


/* =========================
   NETWORK SELECTOR
   ========================= */

#view-recharge .network-selector {
    min-height: 35px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 3px;
}

#view-recharge .network-icon {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
}

#view-recharge .network-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#view-recharge .network-name {
    font-size: 10px;
    color: #333;
    font-weight: 500;
}

#view-recharge .network-sub {
    font-size: 8px;
    color: #aaa;
}


/* =========================
   QR CODE / ADDRESS
   ========================= */

#view-recharge .qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0 9px;
}

#view-recharge .qr-code {
    width: 105px;
    height: 105px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

#view-recharge .address-box {
    width: 100%;
    min-height: 35px;
    background: #f8f8f8;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding: 5px 7px;
}

#view-recharge .address-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 8px;
    color: #666;
    font-family: monospace;
}

#view-recharge .copy-btn {
    border: none;
    background: transparent;
    color: #666;
    font-size: 9px;
    cursor: pointer;
    white-space: nowrap;
    padding: 3px;
}

#view-recharge .copy-btn:active {
    opacity: 0.5;
}


/* =========================
   SUMMARY CARD
   ========================= */

#view-recharge .summary-card {
    padding: 10px;
}

#view-recharge .summary-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#view-recharge .summary-row + .summary-row {
    margin-top: 8px;
}

#view-recharge .summary-label {
    font-size: 9px;
    color: #888;
}

#view-recharge .summary-value {
    font-size: 9px;
    color: #444;
    text-align: right;
}

#view-recharge .summary-value.bold {
    font-weight: 600;
    color: #222;
}


/* =========================
   DEPOSIT BUTTON
   ========================= */

#view-recharge .deposit-footer {
    width: 100%;
    padding: 3px 0 0;
}

#view-recharge .btn-main {
    width: 100%;
    height: 38px;
    border: none;
    border-radius: 19px;
    background: #06051f;
    color: #ffffff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#view-recharge .btn-main.active {
    background: #06051f;
    color: #ffffff;
}

#view-recharge .btn-main.disabled,
#view-recharge .btn-main:disabled {
    background: #d2d2d7;
    color: #ffffff;
    cursor: not-allowed;
}

#view-recharge .btn-main:not(:disabled):active {
    transform: scale(0.98);
}


/* =========================================================
   DEPOSIT CONFIRMED MODAL
   ========================================================= */

#depositSuccessModal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.42);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

#depositSuccessModal.show {
    display: flex;
}


/* =========================
   BOTTOM SHEET
   ========================= */

#depositSuccessModal .modal-content {
    width: 100%;
    max-width: 430px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
    animation: depositSheetUp 0.28s ease-out;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.12);
}

@keyframes depositSheetUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}


/* =========================
   CONFETTI HEADER
   ========================= */

#depositSuccessModal .modal-header-bg {
    position: relative;
    height: 50px;
    background: #f5f8ff;
    overflow: hidden;
}

#depositSuccessModal .modal-header-bg::before,
#depositSuccessModal .modal-header-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 8% 35%, #f5c542 0 2px, transparent 3px),
        radial-gradient(circle at 18% 70%, #5b8def 0 2px, transparent 3px),
        radial-gradient(circle at 29% 25%, #ed6a5a 0 2px, transparent 3px),
        radial-gradient(circle at 41% 65%, #65b891 0 2px, transparent 3px),
        radial-gradient(circle at 54% 22%, #f3a84b 0 2px, transparent 3px),
        radial-gradient(circle at 66% 72%, #7b6ce5 0 2px, transparent 3px),
        radial-gradient(circle at 77% 32%, #eb6c8d 0 2px, transparent 3px),
        radial-gradient(circle at 89% 65%, #5b8def 0 2px, transparent 3px),
        radial-gradient(circle at 96% 25%, #f5c542 0 2px, transparent 3px);
    opacity: 0.9;
}

#depositSuccessModal .modal-header-bg::after {
    transform: translateY(10px) rotate(2deg);
    opacity: 0.65;
}


/* =========================
   MODAL BODY
   ========================= */

#depositSuccessModal .modal-body {
    padding: 0 15px 18px;
    text-align: center;
}


/* =========================
   SUCCESS ICON
   ========================= */

#depositSuccessModal .success-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2166e8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -21px auto 9px;
    position: relative;
    border: 4px solid #ffffff;
    font-size: 23px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(33, 102, 232, 0.18);
}

#depositSuccessModal .success-amount {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    color: #222;
}

#depositSuccessModal .success-title {
    margin: 3px 0 5px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

#depositSuccessModal .success-desc {
    max-width: 300px;
    margin: 0 auto 13px;
    font-size: 9px;
    line-height: 1.45;
    color: #999;
}


/* =========================
   MODAL SUMMARY
   ========================= */

#depositSuccessModal .modal-summary-box {
    background: #f8f8f8;
    border-radius: 7px;
    padding: 10px;
    text-align: left;
    margin-bottom: 13px;
}

#depositSuccessModal .modal-summary-box .summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#depositSuccessModal .modal-summary-box .summary-row + .summary-row {
    margin-top: 8px;
}

#depositSuccessModal .modal-summary-box .summary-label {
    font-size: 8px;
    color: #999;
}

#depositSuccessModal .modal-summary-box .summary-value {
    font-size: 8px;
    color: #333;
}

#depositSuccessModal .modal-summary-box .summary-value.bold {
    font-weight: 600;
}


/* =========================
   MODAL BUTTONS
   ========================= */

#depositSuccessModal .modal-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#depositSuccessModal .modal-actions .btn-main {
    width: 100%;
    height: 36px;
    border-radius: 18px;
    background: #05041d;
    color: #ffffff;
    border: none;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

#depositSuccessModal .modal-actions .btn-secondary {
    width: 100%;
    height: 32px;
    border: none;
    background: transparent;
    color: #555;
    font-size: 10px;
    cursor: pointer;
}


/* =========================================================
   MOBILE SIZING
   ========================================================= */

@media (max-width: 480px) {

    #view-recharge .main-content {
        padding-left: 7px;
        padding-right: 7px;
    }

    #view-recharge .deposit-card {
        padding: 10px;
    }

    #view-recharge .qr-code {
        width: 95px;
        height: 95px;
    }

    #depositSuccessModal .modal-content {
        border-radius: 15px 15px 0 0;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    #view-recharge .sub-header {
        height: 45px;
    }

    #view-recharge .main-content {
        padding-top: 7px;
    }

    #view-recharge .deposit-card {
        margin-bottom: 6px;
    }

    #view-recharge .qr-code {
        width: 85px;
        height: 85px;
    }

    #view-recharge .btn-main {
        height: 36px;
    }

    #depositSuccessModal .modal-body {
        padding-left: 12px;
        padding-right: 12px;
    }
}/* =========================================
   CURRENCY DROPDOWN
========================================= */

.currency-wrapper {
    position: relative;
}

.currency-selector {
    min-width: 82px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 0 5px;
    cursor: pointer;
    border-radius: 7px;
}

.currency-selector:hover {
    background: #f7f7f7;
}

.usdt-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e9f5e9;
    color: #4f8a4f;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 700;
}

.dropdown-arrow {
    font-size: 9px;
    color: #888;
}


/* Dropdown */

.currency-dropdown {
    position: absolute;

    top: calc(100% + 6px);
    right: 0;

    width: 180px;

    background: #fff;

    border: 1px solid #eeeeee;
    border-radius: 10px;

    padding: 5px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10);

    display: none;

    z-index: 100;
}

.currency-dropdown.show {
    display: block;
}


.currency-option {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px;

    border-radius: 7px;

    cursor: pointer;
}

.currency-option:hover {
    background: #f7f7f7;
}

.currency-option.active {
    background: #f5f5f5;
}

.currency-option strong {
    display: block;

    font-size: 11px;
    font-weight: 600;
    color: #222;
}

.currency-option small {
    display: block;

    margin-top: 2px;

    font-size: 8px;
    color: #999;
}


.currency-icon {
    width: 25px;
    height: 25px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;
}

.usdt-icon {
    background: #e8f4e8;
    color: #4d8c4d;
}

.usdc-icon {
    background: #e8f0ff;
    color: #3974d8;
}

.usdc-badge {
    background: #e8f0ff;
    color: #3974d8;
}


/* =========================================
   NETWORK DROPDOWN
========================================= */

.network-wrapper {
    position: relative;
}

.network-selector {
    width: 100%;

    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 5px 6px;

    border-radius: 8px;

    cursor: pointer;

    transition: background 0.15s ease;
}

.network-selector:hover {
    background: #fafafa;
}


.network-icon {
    width: 27px;
    height: 27px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #f2f2f2;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #666;

    font-size: 11px;
    font-weight: 600;
}


.network-info {
    flex: 1;
    min-width: 0;
}

.network-name {
    font-size: 10px;
    font-weight: 500;

    color: #333;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.network-sub {
    margin-top: 2px;

    font-size: 8px;

    color: #999;
}

.dropdown-arrow {
    font-size: 10px;
    color: #999;

    padding-right: 3px;
}


/* Network dropdown */

.network-dropdown {
    position: absolute;

    left: 0;
    right: 0;

    top: calc(100% + 5px);

    background: #fff;

    border: 1px solid #eeeeee;

    border-radius: 10px;

    padding: 5px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10);

    display: none;

    z-index: 90;
}

.network-dropdown.show {
    display: block;
}


.network-option {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 9px;

    border-radius: 7px;

    cursor: pointer;
}

.network-option:hover {
    background: #f7f7f7;
}

.network-option.active {
    background: #f5f5f5;
}

.network-option strong {
    display: block;

    font-size: 10px;
    font-weight: 600;

    color: #222;
}

.network-option small {
    display: block;

    margin-top: 2px;

    font-size: 8px;

    color: #999;
}


.network-option-icon {
    width: 25px;
    height: 25px;

    border-radius: 50%;

    background: #f1f1f1;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 600;

    color: #555;
}


/* =========================================
   QR AREA
========================================= */

.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 8px 0 12px;
}

.qr-code {
    width: 120px;
    height: 120px;

    object-fit: contain;

    border-radius: 5px;
}


/* =========================================
   ADDRESS
========================================= */

.address-box {
    display: flex;
    align-items: center;

    gap: 8px;

    width: 100%;

    background: #f8f8f8;

    border: 1px solid #eeeeee;

    border-radius: 7px;

    padding: 7px 8px;
}

.address-text {
    flex: 1;

    min-width: 0;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-family: monospace;

    font-size: 8px;

    color: #666;
}

.copy-btn {
    flex-shrink: 0;

    border: none;

    background: transparent;

    color: #555;

    font-size: 9px;

    cursor: pointer;

    padding: 3px 2px;
}

#transparentModal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    z-index: 999999;
}

#transparentModal.show {
    display: flex;
}
#transparentModal.active {
  display: flex;
}



.modal-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.modal-box {
  position: relative;

  width: min(90%, 420px);

  padding: 25px;

  background: #fff;
  border-radius: 12px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  text-align: center;
}

.close-btn {
  position: absolute;

  top: 10px;
  right: 15px;

  cursor: pointer;

  font-size: 25px;
}

.modal-box p {
    margin: 0;

    font-size: 13px;
    line-height: 1.6;

    color: #333;
}


.close-btn:hover {
    color: #222;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =====================================================
   TRADING UNDER CONSTRUCTION
   ===================================================== */

#view-trading-underconstruction {
  min-height: 100vh;
  background: #f7f8fa;
  padding: 40px 20px;
  box-sizing: border-box;
}

.trading-maintenance {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 80vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

/* Icon */

.maintenance-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  border: 1px solid #e5e7eb;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.06);

  margin-bottom: 25px;
}

.maintenance-icon-inner {
  width: 62px;
  height: 62px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f1f5f9;

  font-size: 28px;
}

/* Badge */

.maintenance-badge {
  display: inline-flex;
  align-items: center;

  padding: 7px 14px;

  border-radius: 30px;

  background: #fff7ed;
  color: #ea580c;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;

  margin-bottom: 16px;
}

/* Heading */

.maintenance-content h1 {
  margin: 0 0 15px;

  font-size: 34px;
  line-height: 1.2;

  color: #111827;

  font-weight: 700;
}

/* Description */

.maintenance-description {
  max-width: 600px;

  margin: 0 auto;

  color: #4b5563;

  font-size: 16px;
  line-height: 1.7;
}

.maintenance-subtext {
  max-width: 540px;

  margin: 12px auto 0;

  color: #9ca3af;

  font-size: 14px;
  line-height: 1.6;
}

/* Buttons */

.maintenance-actions {
  display: flex;
  gap: 12px;

  margin-top: 30px;

  flex-wrap: wrap;
  justify-content: center;
}

.maintenance-btn {
  min-width: 150px;

  padding: 12px 20px;

  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.maintenance-btn:hover {
  transform: translateY(-1px);
}

.maintenance-btn.primary {
  border: none;

  background: #111827;
  color: #fff;

  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.12);
}

.maintenance-btn.secondary {
  border: 1px solid #d1d5db;

  background: #fff;
  color: #374151;
}

/* Status */

.maintenance-status {
  width: 100%;
  max-width: 600px;

  margin-top: 45px;

  padding: 18px;

  display: flex;
  justify-content: space-between;

  gap: 15px;

  background: #fff;

  border: 1px solid #e5e7eb;

  border-radius: 12px;

  box-sizing: border-box;
}

.status-item {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 6px;

  font-size: 12px;
  color: #6b7280;
}

.status-item strong {
  font-size: 11px;
  color: #374151;
}

.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #f59e0b;

  box-shadow:
    0 0 0 4px rgba(245, 158, 11, 0.1);
}

/* Mobile */

@media (max-width: 600px) {

  #view-trading-underconstruction {
    padding: 25px 16px;
  }

  .trading-maintenance {
    min-height: 75vh;
  }

  .maintenance-icon {
    width: 76px;
    height: 76px;
  }

  .maintenance-icon-inner {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .maintenance-content h1 {
    font-size: 27px;
  }

  .maintenance-description {
    font-size: 14px;
  }

  .maintenance-subtext {
    font-size: 13px;
  }

  .maintenance-actions {
    width: 100%;
    flex-direction: column;
  }

  .maintenance-btn {
    width: 100%;
  }

  .maintenance-status {
    flex-direction: column;
    gap: 18px;
  }

  .status-item {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================
   CRYPTO HOLDINGS
========================================== */

.crypto-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crypto-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 12px;

  border-radius: 10px;

  cursor: pointer;

  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.crypto-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.crypto-item:active {
  transform: scale(0.99);
}

.crypto-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crypto-icon {
  width: 40px;
  height: 40px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  font-weight: 700;

  flex-shrink: 0;
}

/* Bitcoin */
.crypto-btc {
  background: #f7931a;
  color: #fff;
}

/* Ethereum */
.crypto-eth {
  background: #627eea;
  color: #fff;
}

/* Gram */
.crypto-gram {
  background: #229ed9;
  color: #fff;
}

/* TRON */
.crypto-trx {
  background: #ef0027;
  color: #fff;
}

/* USDC */
.crypto-usdc {
  background: #2775ca;
  color: #fff;
}

/* USDT */
.crypto-usdt {
  background: #26a17b;
  color: #fff;
}

.crypto-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.crypto-ticker {
  margin-top: 3px;

  font-size: 11px;
  color: #848e9c;
  text-transform: uppercase;
}

.crypto-info-right {
  text-align: right;
}

.crypto-amount {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.crypto-value {
  margin-top: 3px;

  font-size: 11px;
  color: #848e9c;
}


/* SELECTED HOLDING */

.crypto-item.selected {
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   FORGOT KEY MODAL FIXES
   ========================================================================== */

/* 1. Dark Backdrop Overlay */
#forgotKeyModal.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75) !important; /* Darker backdrop to block background */
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#forgotKeyModal.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 2. Solid White Modal Container (Blocks bleed-through & adds scroll) */
#forgotKeyModal .forgot-key-content {
  width: 100%;
  max-width: 440px;
  background: #ffffff !important; /* CRITICAL: Pure white background so text won't show through */
  border-radius: 28px 28px 0 0;
  padding: 24px 20px 32px 20px;
  max-height: 85vh; /* Fits strictly inside screen height */
  overflow-y: auto; /* Enables smooth scrolling inside card if content is tall */
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

/* 3. Header & Icon Styling */
.forgot-key-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  background: #ffffff;
}

.key-icon-badge {
  width: 56px;
  height: 56px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.forgot-key-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.modal-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.forgot-key-desc {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
  margin: 0 0 16px 0;
}

/* 4. Action Buttons (Solid background colors) */
.forgot-key-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.forgot-key-actions .btn-main {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  background: #050b14 !important; /* Solid dark button */
  color: #ffffff !important;
  border: none;
  cursor: pointer;
}

.forgot-key-actions .btn-secondary {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  background: #ffffff !important; /* Solid white button */
  color: #475569 !important;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

/* ==========================================================================
   FORGOT KEY MODAL STYLES
   ========================================================================== */

.forgot-key-content {
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  padding: 20px 20px 28px 20px;
}

.forgot-key-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.key-icon-badge {
  width: 52px;
  height: 52px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.forgot-key-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.modal-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 16px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.forgot-key-desc {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
  margin: 0 0 16px 0;
}

/* Requirement Banner */
.requirement-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.requirement-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  font-weight: 600;
}

.requirement-amount {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
  color: #ffffff;
}

.currency-tag {
  font-size: 14px;
  font-weight: 600;
  color: #38bdf8;
}

/* Steps List */
.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.instruction-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
}

.step-badge {
  width: 24px;
  height: 24px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-info h4 {
  margin: 0 0 2px 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.step-info p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* UID Box */
.uid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.uid-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.uid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.uid-code {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.copy-uid-btn {
  background: #f1f5f9;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.forgot-key-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Wallet Container Card */
.uid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.uid-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Grid Layout for BTC & USDT Boxes */
.wallet-options-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wallet-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 12px;
}

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

.currency-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.currency-badge.btc {
  background: #f7931a;
}

.currency-badge.usdt {
  background: #26a17b;
}

.wallet-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

/* QR Code Centering & Sizing */
.qr-wrapper {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px 0;
}

.wallet-qr-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 6px;
}

/* Address & Copy Button Row */
.address-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
}

.uid-code {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  word-break: break-all;
  line-height: 1.3;
}

.copy-uid-btn {
  background: #f1f5f9;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.copy-uid-btn:active {
  background: #e2e8f0;
}