/* 
 * TaskPay Ultra-Modern High-Contrast Design System
 * Crisp Typography, High-Legibility Color Grading & Cyber-Fintech Aesthetics
 */

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

:root {
    --bg-darkest: #04070f;
    --bg-primary: #070b16;
    --bg-secondary: #0c1426;
    --bg-card: #0f182e;
    --border-subtle: rgba(255, 255, 255, 0.16);
    --border-glow: rgba(0, 245, 155, 0.45);
    
    /* Maximum Legibility High-Contrast Text */
    --text-pure: #ffffff;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #9db2cf;

    /* Vibrant Neon & Gold Accents */
    --neon-emerald: #00f59b;
    --neon-mint: #00e5a3;
    --emerald-dark: #00a86b;
    --cyber-gold: #ffc700;
    --cyber-amber: #f59e0b;
    --electric-cyan: #00e5ff;
    --deep-blue: #3b82f6;
    --vivid-purple: #8b5cf6;
    --coral-red: #ff4757;

    /* Gradients */
    --grad-emerald: linear-gradient(135deg, #00f59b 0%, #00b875 100%);
    --grad-gold: linear-gradient(135deg, #ffc700 0%, #e67e22 100%);
    --grad-cyan: linear-gradient(135deg, #00e5ff 0%, #0088ff 100%);
    --grad-dark-card: linear-gradient(155deg, #121c33 0%, #0b1122 100%);

    /* Shadows & Auras */
    --aura-emerald: 0 0 25px rgba(0, 245, 155, 0.4);
    --aura-gold: 0 0 25px rgba(255, 199, 0, 0.4);
    --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Base HTML & Body with Solid Dark Backdrop and Zero Side-Scrolling */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(0, 245, 155, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 15%, rgba(0, 229, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(255, 199, 0, 0.05) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 85px;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Global Text Readability & Legibility Overrides */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: -0.3px;
}

p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* High-Contrast Secondary and Muted Text */
.text-muted {
    color: #9db2cf !important;
}

.text-secondary {
    color: #cbd5e1 !important;
}

.text-white-50 {
    color: #cbd5e1 !important; /* Never fade to 50% opacity */
}

/* Form Labels - Always Crisp, Bright & Legible */
label,
.form-label,
.form-label.text-muted,
label.form-label,
label.text-muted,
.form-label.small {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    margin-bottom: 7px;
    letter-spacing: 0.25px;
    display: inline-block;
}

.form-text,
.form-text.text-muted {
    color: #9db2cf !important;
    font-size: 0.83rem;
    font-weight: 500;
    margin-top: 5px;
}

.form-check-label,
.form-check-label.text-muted {
    color: #e2e8f0 !important;
    font-size: 0.88rem;
    font-weight: 500;
}

/* Gradient Text Utilities */
.gradient-text-emerald {
    background: linear-gradient(135deg, #00f59b 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #ffc700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Solid Opaque Cards (100% Opaque for zero background bleed) */
.card-theme {
    background: var(--grad-dark-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.card-theme:hover {
    border-color: rgba(255, 255, 255, 0.26) !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.card-theme-glow {
    position: relative;
    overflow: hidden;
}

.card-theme-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f59b, #00e5ff, #ffc700);
}

/* Task Instruction Container */
.task-instruction-box {
    background: #0d1527 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #e2e8f0 !important;
    border-radius: 16px;
    padding: 16px;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Overriding Bootstrap .bg-dark to high-end deep midnight navy */
.bg-dark {
    background-color: #0b1224 !important;
    color: #f1f5f9 !important;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Badges System */
.badge {
    letter-spacing: 0.3px;
    font-weight: 700;
}

.badge.bg-dark,
.badge.border-secondary {
    background-color: #121c35 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #f8fafc !important;
}

.badge.badge-locked {
    background-color: #0e1424 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #94a3b8 !important;
}

/* Navbar */
.navbar-custom {
    background-color: #070b16 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px !important;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #00f59b !important;
    background: rgba(255, 255, 255, 0.08);
}

/* Brand Logo */
.brand-glow-icon {
    background: var(--grad-emerald);
    color: #060911;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--aura-emerald);
    font-weight: 800;
}

/* Stat Card Icon Pills (Clean, Non-Overlapping Modern UI) */
.stat-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
}

.stat-icon-pill.bg-success-glow {
    background: rgba(0, 245, 155, 0.14) !important;
    border-color: rgba(0, 245, 155, 0.4) !important;
    box-shadow: 0 0 16px rgba(0, 245, 155, 0.22);
}

.stat-icon-pill.bg-info-glow {
    background: rgba(0, 229, 255, 0.14) !important;
    border-color: rgba(0, 229, 255, 0.4) !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.22);
}

.stat-icon-pill.bg-warning-glow {
    background: rgba(255, 199, 0, 0.14) !important;
    border-color: rgba(255, 199, 0, 0.4) !important;
    box-shadow: 0 0 16px rgba(255, 199, 0, 0.22);
}

/* Balance Pill */
.balance-pill {
    background: linear-gradient(135deg, rgba(0, 245, 155, 0.2), rgba(0, 229, 255, 0.1));
    border: 1.5px solid rgba(0, 245, 155, 0.55);
    color: #00f59b;
    border-radius: 40px;
    padding: 6px 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 245, 155, 0.25);
    transition: all 0.2s;
}

.balance-pill:hover {
    border-color: #00f59b;
    box-shadow: 0 4px 22px rgba(0, 245, 155, 0.5);
    color: #00f59b;
}

/* High-Contrast Seamless Inputs */
.form-control-custom, .form-select-custom {
    background-color: #080e1c !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.form-control-custom:focus, .form-select-custom:focus {
    background-color: #0d162a !important;
    border-color: #00f59b !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 245, 155, 0.28) !important;
    outline: none;
}

.form-control-custom::placeholder {
    color: #72849e !important;
    font-weight: 400;
}

/* Input Groups Seamless Fusion */
.input-group .input-group-text,
.input-group-text,
.input-group-text.bg-dark {
    background-color: #0e182f !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-right: none !important;
    color: #00f59b !important;
    border-top-left-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
    font-size: 1.05rem;
}

.input-group .input-group-text i,
.input-group-text i {
    color: #00f59b !important;
}

.input-group .form-control-custom {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: none !important;
}

.input-group:focus-within .input-group-text {
    border-color: #00f59b !important;
}

/* High-Impact Buttons */
.btn-primary-custom {
    background: var(--grad-emerald);
    border: none;
    color: #040812 !important;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 245, 155, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #00ffaa, #00c875);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 245, 155, 0.6);
    color: #040812 !important;
}

.btn-gold {
    background: var(--grad-gold);
    border: none;
    color: #080400 !important;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(255, 199, 0, 0.4);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ffd700, #ff9900);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 199, 0, 0.6);
    color: #080400 !important;
}

/* Sequential Stage Tracker (Contained & Non-Stretching) */
.stage-tracker {
    display: flex;
    align-items: center;
    position: relative;
    margin: 20px 0 25px 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 10px;
    gap: 16px;
    justify-content: flex-start;
    scrollbar-width: thin;
}

.stage-tracker::-webkit-scrollbar {
    height: 4px;
}

.stage-tracker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 24px;
    right: 24px;
    height: 4px;
    min-width: calc(100% - 48px);
    background: rgba(255, 255, 255, 0.14);
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 4px;
}

.stage-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.stage-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #0e172c;
    border: 2px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-step.active .stage-bubble {
    background: var(--grad-emerald);
    border-color: #00ffaa;
    color: #060911;
    box-shadow: 0 0 25px rgba(0, 245, 155, 0.75);
    transform: scale(1.18);
    animation: pulseGlow 2s infinite;
}

.stage-step.completed .stage-bubble {
    background: rgba(0, 245, 155, 0.25);
    border-color: #00f59b;
    color: #00f59b;
}

.stage-step.locked .stage-bubble {
    background-color: #090e1c;
    border-color: rgba(255, 255, 255, 0.1);
    color: #64748b;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(0, 245, 155, 0.4); }
    50% { box-shadow: 0 0 30px rgba(0, 245, 155, 0.9); }
    100% { box-shadow: 0 0 15px rgba(0, 245, 155, 0.4); }
}

/* Task Cards */
.task-card {
    background: var(--grad-dark-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-card.active-task {
    border: 2px solid #00f59b !important;
    box-shadow: 0 12px 35px -5px rgba(0, 245, 155, 0.3), 0 0 0 1px rgba(0, 245, 155, 0.5) !important;
    transform: translateY(-2px);
}

.task-card.locked-task {
    opacity: 0.7;
    background: #090f1e !important;
    filter: grayscale(0.2);
}

/* Social Platform Icons with Glowing Badges */
.task-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.icon-youtube { 
    background: linear-gradient(135deg, #ff0000 0%, #b30000 100%); 
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.3);
}

.icon-facebook { 
    background: linear-gradient(135deg, #1877f2 0%, #0d5ec4 100%); 
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.3);
}

.icon-telegram { 
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%); 
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 136, 204, 0.3);
}

.icon-instagram { 
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); 
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(253, 29, 29, 0.3);
}

.icon-website { 
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); 
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3);
}

.icon-platinum { 
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #64748b 100%); 
    color: #0b1122;
    box-shadow: 0 6px 22px rgba(226, 232, 240, 0.55);
}

/* VIP Badges */
.vip-badge {
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.vip-0 { 
    background: rgba(148, 163, 184, 0.2); 
    color: #e2e8f0; 
    border: 1px solid rgba(148, 163, 184, 0.4); 
}

.vip-1 { 
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.35), rgba(184, 115, 51, 0.2)); 
    color: #f6ad55; 
    border: 1px solid rgba(246, 173, 85, 0.55); 
}

.vip-2 { 
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(0, 140, 255, 0.2)); 
    color: #00e5ff; 
    border: 1px solid rgba(0, 229, 255, 0.55); 
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.vip-3 { 
    background: linear-gradient(135deg, #ffc700, #ff8c00); 
    color: #000000; 
    font-weight: 900;
    box-shadow: 0 0 20px rgba(255, 199, 0, 0.5);
}

.vip-4 { 
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(124, 58, 237, 0.25)); 
    color: #c084fc; 
    border: 1px solid rgba(192, 132, 252, 0.6); 
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.vip-5 { 
    background: linear-gradient(135deg, #ffffff, #e2e8f0, #94a3b8); 
    color: #090d16; 
    font-weight: 900;
    border: 1px solid #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.65);
}

.btn-platinum {
    background: linear-gradient(135deg, #ffffff, #e2e8f0, #94a3b8);
    color: #0b1122 !important;
    font-weight: 800;
    border: none;
    box-shadow: 0 6px 20px rgba(226, 232, 240, 0.45);
    transition: all 0.25s ease;
}

.btn-platinum:hover {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.7);
    color: #000000 !important;
}

/* Mobile Curved Bottom Navigation Bar */
.mobile-nav-bar {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 65px;
    background: #0b1122;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 1;
}

.mobile-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: #00f59b;
    transform: translateY(-2px);
}

.mobile-nav-item.active i {
    filter: drop-shadow(0 0 8px rgba(0, 245, 155, 0.6));
}

/* Unique & Attractive Modern Copy Component */
.copy-box {
    background: linear-gradient(135deg, rgba(13, 22, 43, 0.95) 0%, rgba(7, 12, 24, 0.98) 100%);
    border: 1px solid rgba(0, 245, 155, 0.28);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    overflow: hidden;
}

.copy-box:hover,
.copy-box:focus-within {
    border-color: rgba(0, 245, 155, 0.55);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 245, 155, 0.16);
}

.copy-box-content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.copy-box-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    margin-bottom: 2px;
}

.copy-box-text {
    min-width: 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffc700;
    word-break: break-all;
    line-height: 1.35;
    user-select: all;
    transition: color 0.2s ease;
}

.copy-box:hover .copy-box-text {
    color: #ffd84d;
}

/* Unique & Attractive Copy Button */
.btn-copy-unique {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 10px;
    color: #00f59b;
    background: linear-gradient(135deg, rgba(0, 245, 155, 0.14) 0%, rgba(0, 229, 255, 0.08) 100%);
    border: 1px solid rgba(0, 245, 155, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-decoration: none;
}

.btn-copy-unique::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-copy-unique:hover::before {
    left: 140%;
}

.btn-copy-unique:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 245, 155, 0.3) 0%, rgba(0, 229, 255, 0.22) 100%);
    border-color: #00f59b;
    box-shadow: 0 0 16px rgba(0, 245, 155, 0.45), 0 2px 10px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.btn-copy-unique:active {
    transform: translateY(1px) scale(0.98);
}

.btn-copy-unique i {
    font-size: 0.95rem;
    transition: transform 0.25s ease;
}

.btn-copy-unique:hover i {
    transform: scale(1.15);
}

/* Copied State Animation */
.btn-copy-unique.is-copied {
    color: #06101e !important;
    background: linear-gradient(135deg, #00f59b 0%, #00d285 100%) !important;
    border-color: #00f59b !important;
    font-weight: 800 !important;
    box-shadow: 0 0 22px rgba(0, 245, 155, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.02);
    animation: copyPulse 0.4s ease;
}

.btn-copy-unique.is-copied i {
    animation: checkBounce 0.35s ease;
}

@keyframes copyPulse {
    0% { transform: scale(0.92); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1.02); }
}

@keyframes checkBounce {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    70% { transform: scale(1.25) rotate(0); opacity: 1; }
    100% { transform: scale(1) rotate(0); }
}

/* Smaller variant for compact inline uses */
.btn-copy-sm {
    padding: 6px 13px;
    font-size: 0.78rem;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .copy-box {
        padding: 9px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .btn-copy-unique {
        width: 100%;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .copy-box-text {
        font-size: 0.82rem;
    }
}

/* Live Badge with Radar Pulse */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 245, 155, 0.16);
    border: 1px solid rgba(0, 245, 155, 0.45);
    color: #00f59b;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    word-break: break-word;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00f59b;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f59b;
    animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #00f59b; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Stat Widgets */
.stat-widget {
    background: var(--grad-dark-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.stat-widget:hover {
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

/* High-Contrast Table Styling */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.table-dark thead th {
    color: #cbd5e1 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.16);
    background-color: #0c1426 !important;
}

.table-dark tbody td {
    color: #f1f5f9;
    vertical-align: middle;
}

.table-dark tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

/* Modal Styling */
.modal-content.bg-dark {
    background: linear-gradient(155deg, #121c33 0%, #0b1122 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    border-radius: 20px;
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #060911;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Gateway Selection Cards (Compact & Elegant) */
.gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.gateway-card {
    background: linear-gradient(145deg, rgba(14, 23, 44, 0.95) 0%, rgba(8, 13, 26, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.gateway-card:hover {
    border-color: rgba(0, 245, 155, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 245, 155, 0.12);
}

.gateway-card.selected {
    border-color: #00f59b !important;
    background: linear-gradient(145deg, rgba(0, 245, 155, 0.12) 0%, rgba(13, 22, 43, 0.98) 100%) !important;
    box-shadow: 0 0 18px rgba(0, 245, 155, 0.25), inset 0 0 0 1px #00f59b !important;
}

.gateway-card-radio {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gateway-card.selected .gateway-card-radio {
    border-color: #00f59b;
    background: #00f59b;
    box-shadow: 0 0 8px rgba(0, 245, 155, 0.7);
}

.gateway-card.selected .gateway-card-radio::after {
    content: '';
    width: 5px;
    height: 8px;
    border: solid #070c18;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.gateway-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease;
}

.gateway-card:hover .gateway-icon-wrap {
    transform: scale(1.06);
}

.gateway-badge-type {
    display: inline-block;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 1px 6px;
    border-radius: 6px;
    margin-bottom: 3px;
    width: fit-content;
    line-height: 1.25;
}

.gateway-card .gateway-title {
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 1px;
    line-height: 1.25;
}

.gateway-card .gateway-desc {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-bottom: 6px;
    line-height: 1.2;
}

.gateway-card .gateway-min-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
}

.quick-amount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chip-amount {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.chip-amount:hover,
.chip-amount.active {
    background: rgba(0, 245, 155, 0.18);
    border-color: #00f59b;
    color: #00f59b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 245, 155, 0.2);
}

@media (max-width: 576px) {
    .gateway-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gateway-card {
        padding: 9px 10px;
        min-height: 110px;
    }
    .gateway-icon-wrap {
        width: 30px;
        height: 30px;
        font-size: 1.05rem;
        border-radius: 8px;
        margin-bottom: 4px;
    }
    .gateway-card .gateway-title {
        font-size: 0.78rem;
    }
    .gateway-badge-type {
        font-size: 0.56rem;
        padding: 1px 5px;
    }
    .gateway-card .gateway-desc {
        font-size: 0.64rem;
        margin-bottom: 4px;
    }
    .gateway-card .gateway-min-row {
        font-size: 0.68rem;
        padding-top: 3px;
    }
}

@media (max-width: 340px) {
    .gateway-grid {
        grid-template-columns: 1fr;
    }
}

/* PWA Floating Install Pill & Modal Styling */
.pwa-install-trigger {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-install-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 245, 155, 0.3);
}

#pwaInstallModal .modal-content {
    background: radial-gradient(circle at 50% 0%, rgba(0, 245, 155, 0.12) 0%, transparent 60%), #070a13 !important;
    border: 1px solid rgba(0, 245, 155, 0.3) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 245, 155, 0.15) !important;
}

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

.ios-share-bounce {
    display: inline-block;
    animation: bounceDown 1.5s infinite;
}

/* Universal Anti-Horizontal Scroll & Mobile Fluid Containment */
.container, .container-fluid {
    width: 100%;
    max-width: 100%;
}

.col, [class*="col-"], .d-flex {
    min-width: 0;
}

/* Table Layout, Typography & Non-Chopping Words */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
    border-radius: 12px;
}

.table-responsive > .table {
    min-width: 680px;
    margin-bottom: 0;
}

.table thead th,
.table th {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
    padding: 12px 14px;
}

.table tbody td,
.table td {
    vertical-align: middle;
    word-break: normal !important;
    overflow-wrap: normal !important;
    padding: 12px 14px;
}

.table td .badge,
.table th .badge,
.table td .btn,
.table .text-nowrap,
.table-nowrap,
.text-nowrap {
    white-space: nowrap !important;
    word-break: normal !important;
}

.card, .card-theme {
    max-width: 100%;
    overflow: hidden;
}

code, pre {
    word-break: break-word;
    white-space: pre-wrap;
}

.font-monospace {
    word-break: break-all;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .row {
        margin-left: -6px;
        margin-right: -6px;
    }
    .row > * {
        padding-left: 6px;
        padding-right: 6px;
    }
    .p-4 {
        padding: 1rem !important;
    }
    .display-3 {
        font-size: 2.1rem !important;
    }
    .display-5 {
        font-size: 1.75rem !important;
    }
    .display-6 {
        font-size: 1.45rem !important;
    }
}

@media (max-width: 420px) {
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    .balance-pill {
        padding: 4px 10px !important;
        font-size: 0.8rem !important;
    }
    .mobile-nav-bar {
        left: 6px;
        right: 6px;
        bottom: 8px;
        height: 60px;
    }
    .mobile-nav-item span {
        font-size: 0.65rem;
    }
}

/* Navbar Right Utilities & Frame Containment */
.navbar-right-box {
    max-width: 100%;
}

.navbar-user-btn {
    max-width: 100%;
    white-space: nowrap;
}

.navbar-user-name {
    max-width: 110px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        padding: 6px 9px !important;
        font-size: 0.84rem !important;
    }
    .navbar-right-box {
        gap: 6px !important;
    }
    .navbar-right-box .vip-badge {
        padding: 3px 8px !important;
        font-size: 0.68rem !important;
    }
    .navbar-user-name {
        max-width: 85px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #090f20;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        padding: 12px 14px;
        margin-top: 10px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    }
    .navbar-collapse .nav-link {
        padding: 10px 14px !important;
        border-radius: 10px;
    }
}

/* ========================================================
   iOS / MOBILE PRO WITHDRAWAL INTERFACE (APPLE DESIGN SYSTEM)
   ======================================================== */
.ios-withdraw-hero {
    background: radial-gradient(circle at 100% 0%, rgba(0, 245, 155, 0.14) 0%, transparent 60%),
                radial-gradient(circle at 0% 100%, rgba(255, 199, 0, 0.1) 0%, transparent 55%),
                #090f20;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ios-withdraw-card {
    background: linear-gradient(145deg, rgba(14, 23, 44, 0.95) 0%, rgba(8, 13, 26, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.ios-step-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grad-emerald);
    color: #060911;
    font-weight: 800;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 245, 155, 0.5);
}

.ios-gw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

@media (max-width: 576px) {
    .ios-gw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.ios-gw-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px 11px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    display: flex;
    flex-direction: column;
    min-height: 110px;
}

.ios-gw-item:hover {
    border-color: rgba(0, 245, 155, 0.45);
    transform: translateY(-2px);
}

.ios-gw-item:active {
    transform: scale(0.97);
}

.ios-gw-item.selected {
    border-color: #00f59b !important;
    background: linear-gradient(145deg, rgba(0, 245, 155, 0.14) 0%, rgba(13, 22, 43, 0.98) 100%) !important;
    box-shadow: 0 0 18px rgba(0, 245, 155, 0.25), inset 0 0 0 1px #00f59b !important;
}

.ios-gw-radio {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ios-gw-item.selected .ios-gw-radio {
    border-color: #00f59b;
    background: #00f59b;
    box-shadow: 0 0 8px rgba(0, 245, 155, 0.7);
}

.ios-gw-item.selected .ios-gw-radio::after {
    content: '';
    width: 5px;
    height: 8px;
    border: solid #070c18;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.ios-gw-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-chip-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.ios-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    text-align: center;
}

.ios-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.ios-chip:active {
    transform: scale(0.95);
}

.ios-chip.active {
    background: rgba(0, 245, 155, 0.2) !important;
    border-color: #00f59b !important;
    color: #00f59b !important;
    box-shadow: 0 0 12px rgba(0, 245, 155, 0.25);
}

.ios-receipt-card {
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.95) 0%, rgba(5, 9, 18, 0.98) 100%);
    border: 1px dashed rgba(0, 245, 155, 0.35);
    border-radius: 18px;
    padding: 16px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ios-receipt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.ios-btn-cta {
    height: 54px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(255, 199, 0, 0.35);
}

.ios-btn-cta:active:not(:disabled) {
    transform: scale(0.98);
}

.ios-btn-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* iOS Mobile Transaction Card */
.ios-tx-card {
    background: linear-gradient(145deg, rgba(14, 23, 44, 0.85) 0%, rgba(7, 12, 24, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ios-tx-card:active {
    transform: scale(0.99);
}
