:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-rgb: 99, 102, 241;
    --gradient-end: #8b5cf6;
    --accent: #06b6d4;
    --accent-rgb: 6, 182, 212;
    --text-on-primary: #ffffff;
    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--gradient-end) 100%);
    --primary-glow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    --accent-gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    
    --success: #22c55e;
    --success-rgb: 34, 197, 94;
    --success-light: #dcfce7;
    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-rgb: 245, 158, 11;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-rgb: 59, 130, 246;
    --info-light: #dbeafe;
    
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-dark: #64748b;
    --gray-light: #cbd5e1;
    
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --input-bg: #f8fafc;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-color: 0 4px 14px rgba(var(--primary-rgb), 0.15);
    --shadow-glow: 0 0 30px rgba(var(--primary-rgb), 0.12);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    --font-mono: 'Roboto Mono', 'SF Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Scroll Reveal Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ─── Staggered fade-in for child elements ─── */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
@keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Noise overlay for depth ─── */
.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ─── Section Tag ─── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

/* ─── Hero Section ─── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 10rem 2rem 6rem;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.dark-mode .hero {
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--primary-rgb), 0.12), transparent 70%),
                var(--bg);
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    will-change: transform;
}

.hero-orb-1 {
    width: 500px; height: 500px;
    top: -15%; right: -5%;
    background: rgba(var(--primary-rgb), 0.18);
    animation: orbFloat1 18s ease-in-out infinite;
}
.hero-orb-2 {
    width: 350px; height: 350px;
    bottom: -10%; left: 5%;
    background: rgba(139, 92, 246, 0.14);
    animation: orbFloat2 22s ease-in-out infinite;
}
.hero-orb-3 {
    width: 200px; height: 200px;
    top: 40%; left: 50%;
    background: rgba(59, 130, 246, 0.12);
    animation: orbFloat3 15s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%,100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes orbFloat2 {
    0%,100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.05); }
}
@keyframes orbFloat3 {
    0%,100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 15px); }
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content { display: flex; flex-direction: column; gap: 1.25rem; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}

@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--dark);
    background: linear-gradient(135deg, var(--dark) 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .hero-title {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-dark);
    max-width: 480px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-hero.btn-primary {
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35), 0 0 0 0 rgba(var(--primary-rgb), 0);
}

.btn-hero.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4), 0 0 0 4px rgba(var(--primary-rgb), 0.08);
    transform: translateY(-3px);
}

.btn-glass {
    background: rgba(var(--primary-rgb), 0.06);
    border: 1.5px solid rgba(var(--primary-rgb), 0.18);
    color: var(--primary);
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.btn-glass:hover {
    background: rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
}

/* Hero Stats — glassmorphism cards */
.hero-stats {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-divider {
    width: 1px;
    height: auto;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-xl);
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.06);
    transition: var(--transition);
    min-width: 110px;
}

.stat-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.12);
    transform: translateY(-2px);
}

.dark-mode .stat-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Hero Visual / Mock Card ─── */
.hero-visual { position: relative; perspective: 800px; }

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.hero-mock-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(var(--primary-rgb), 0.06);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card-stack:hover .mock-card-front {
    transform: translateY(-4px);
}

.hero-card-stack:hover .mock-card-back {
    transform: rotate(4deg) translateY(-2px);
}

.mock-card-back {
    position: absolute;
    top: -18px;
    left: 18px;
    right: -18px;
    bottom: 18px;
    opacity: 0.5;
    transform: rotate(3deg);
    z-index: 0;
    padding: 1.25rem;
}

.mock-card-front {
    position: relative;
    z-index: 1;
}

.mock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mock-pair {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mock-pair i { color: #f7931a; font-size: 1.1rem; }

.mock-price {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
}

.mock-green { color: var(--success); }
.mock-red { color: var(--danger); }

.mock-chart {
    width: 100%;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(var(--primary-rgb), 0.03);
}

.mock-chart-svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawChart 2s ease-out 0.5s forwards;
}
.chart-fill {
    opacity: 0;
    animation: fadeChartFill 1s ease-out 1.8s forwards;
}

@keyframes drawChart {
    to { stroke-dashoffset: 0; }
}
@keyframes fadeChartFill {
    to { opacity: 1; }
}

.mock-card-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mock-stat {
    flex: 1;
    background: var(--bg);
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-family: 'Roboto Mono', monospace;
    color: var(--dark);
}

.mock-stat-label {
    font-size: 0.65rem;
    color: var(--gray);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.mock-card-actions {
    display: flex;
    gap: 0.5rem;
}

.mock-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.mock-btn-buy { background: var(--success); color: white; }
.mock-btn-sell { background: var(--danger); color: white; }

.mock-card-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.mock-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-yellow { background: #f59e0b; }
.dot-blue { background: #3b82f6; }

.mock-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--border);
}

.bar-sm { width: 50px; }
.bar-md { width: 100px; flex: 1; }
.bar-lg { width: 140px; flex: 1; }

.mock-bar.mock-green { background: rgba(16, 185, 129, 0.2); }
.mock-bar.mock-red { background: rgba(239, 68, 68, 0.2); }

/* Floating Badges */
.hero-floating-badge {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 2;
    animation: badgeFloat 4s ease-in-out infinite;
}

.hero-floating-badge i { color: var(--primary); font-size: 0.7rem; }

.float-badge-1 { top: 45%; left: -65px; animation-delay: 0s; }
.float-badge-2 { bottom: 12%; right: -45px; animation-delay: 2s; }

@keyframes badgeFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── Trust Bar ─── */
.trust-bar {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 1rem auto 2.5rem auto;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
}

.trust-bar-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* Trust label as badge */
.trust-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
    border: 1.5px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 2rem;
    padding: 0.45em 1.3em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.trust-label i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Marquee wrapper with gradient fade edges */
.trust-marquee-wrap {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: trustScroll 45s linear infinite;
    width: max-content;
    padding: 0.75rem 0;
}

@keyframes trustScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.trust-logos:hover { animation-play-state: paused; }

/* Individual chain chip */
.trust-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1.2rem 0.55rem 0.55rem;
    border-radius: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.trust-logo:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--chain-color, var(--primary-light));
    box-shadow:
        0 4px 16px rgba(0,0,0,0.06),
        0 0 0 1px var(--chain-color, rgba(var(--primary-rgb), 0.12)),
        0 8px 24px var(--chain-glow, rgba(var(--primary-rgb), 0.08));
}

/* Chain icon circle */
.trust-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--chain-color, var(--primary));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--chain-color, var(--primary)) 10%, transparent),
        color-mix(in srgb, var(--chain-color, var(--primary)) 18%, transparent)
    );
    border: 1.5px solid color-mix(in srgb, var(--chain-color, var(--primary)) 20%, transparent);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.trust-logo:hover .trust-logo-icon {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--chain-color, var(--primary)) 18%, transparent),
        color-mix(in srgb, var(--chain-color, var(--primary)) 28%, transparent)
    );
    border-color: color-mix(in srgb, var(--chain-color, var(--primary)) 35%, transparent);
    box-shadow: 0 0 12px var(--chain-glow, rgba(var(--primary-rgb), 0.15));
    transform: scale(1.08);
}

.trust-logo-icon i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-logo:hover .trust-logo-icon i {
    transform: scale(1.12);
}

/* Chain name */
.trust-logo-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-dark);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.trust-logo:hover .trust-logo-name {
    color: var(--dark);
}

/* Token Listing Section */
.listing {
    padding: 6rem 2rem;
    background-color: var(--bg);
}

.listing-container {
    max-width: 1400px;
    margin: 0 auto;
}

.listing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.listing-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.listing-image img {
    width: 100%;
    height: auto;
    display: block;
}

.listing-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.feature-item {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.feature-item .feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-item p {
    color: var(--gray-dark);
}

.listing-steps {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
}

.listing-steps h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.listing-steps ol {
    counter-reset: step;
    padding-left: 0;
}

.listing-steps ol li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.listing-steps ol li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .listing-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .listing-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .listing {
        padding: 4rem 1rem;
    }
    
    .listing-steps {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .feature-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .listing-steps .btn {
        width: 100%;
    }
}
.dark-mode {
    --bg: #0b0e14;
    --card-bg: #131722;
    --dark: #e8eaed;
    --light: #1e222d;
    --gray: #787b86;
    --gray-dark: #b2b5be;
    --border: #1e222d;
    --input-bg: #1e222d;
    --glass-bg: rgba(19, 23, 34, 0.92);
    --glass-border: rgba(255, 255, 255, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.18);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.35);
}
.dark-mode ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
}
.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Utility Classes */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--gray) !important; }
.text-mono { font-family: var(--font-mono) !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: none;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.04);
    padding: 0.75rem 2rem;
    transition: var(--transition-slow);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border-bottom-color: var(--border);
    padding: 0.6rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-color);
    transition: var(--transition-bounce);
    letter-spacing: -0.02em;
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: var(--primary-glow);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    justify-content: center;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 40%);
    pointer-events: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.2);
    filter: brightness(0.96);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--success-rgb), 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 6px 20px rgba(var(--success-rgb), 0.35);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--danger-rgb), 0.3);
}

.btn-danger:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 6px 20px rgba(var(--danger-rgb), 0.35);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.btn-outline::after { display: none; }

.btn-outline:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.12);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gray-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section override removed — styles are above */

/* Features Section */
.features {
    padding: 6rem 2rem;
    background-color: var(--card-bg);
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-dark);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background-color: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    border: 1px solid var(--border);
    transition: var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--primary-rgb), 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.1), 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
    transform: scale(1.1) rotate(-3deg);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.feature-description {
    color: var(--gray-dark);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Market Section */
.market {
    padding: 6rem 2rem;
    background-color: var(--bg);
}

.market-container {
    max-width: 1400px;
    margin: 0 auto;
}

.market-table-container {
    background-color: var(--card-bg);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.market-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg);
}

.market-tabs {
    display: flex;
    gap: 0.5rem;
}

.market-tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-dark);
}

.market-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.market-tab:not(.active):hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.market-search {
    position: relative;
    width: 250px;
}

.market-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.market-search input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--dark);
    transition: var(--transition);
}

.market-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--bg);
}

th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 1rem;
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

.market-name {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.market-price {
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
}

.market-change {
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
}

.market-change.positive {
    color: var(--success);
}

.market-change.negative {
    color: var(--danger);
}

.loading-message {
    text-align: center;
    padding: 2rem;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-message i {
    animation: spin 1s linear infinite;
}

.view-all-btn {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* CTA Section */
.cta {
    padding: 7rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--gradient-end) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: orbFloat1 20s ease-in-out infinite;
}

.cta-orb-1 { width: 600px; height: 600px; top: -40%; right: -10%; }
.cta-orb-2 { width: 400px; height: 400px; bottom: -30%; left: -5%; animation-delay: -10s; }

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cta-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 560px;
    line-height: 1.7;
}

.cta-steps {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1.5px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.cta-step:hover .cta-step-num {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.cta-step-arrow {
    font-size: 0.65rem;
    opacity: 0.5;
}

#cta-button-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 2rem;
    background-color: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 5rem;
    color: var(--primary-light);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-rating {
    color: var(--warning);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-dark);
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    line-height: 0;
    color: var(--primary-light);
    opacity: 0.3;
}

.testimonial-text::before {
    vertical-align: top;
    margin-right: 0.25rem;
}

.testimonial-text::after {
    vertical-align: bottom;
    margin-left: 0.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

/* FAQ Section */
.faq {
    padding: 7rem 2rem;
    background-color: var(--card-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-slow);
    background: var(--card-bg);
}

.faq-item.active {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.08);
}

.faq-item:not(:last-child) {
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--bg);
    color: var(--dark);
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Footer */
.footer {
    padding: 5rem 2rem 3rem;
    background-color: #070a0f;
    color: #cbd5e1;
    border-top: none;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.3), transparent);
}

.footer .footer-title {
    color: #f1f5f9;
}

.footer .footer-link a {
    color: #94a3b8;
}

.footer .footer-link a:hover {
    color: #e2e8f0;
}

.footer .footer-logo-text {
    color: #f1f5f9;
}

.footer .footer-description {
    color: #94a3b8;
}

.footer .social-link {
    background-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.footer .social-link:hover {
    background-color: var(--primary);
    color: white;
}

.footer .newsletter-form input {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.footer .newsletter-form input::placeholder {
    color: #64748b;
}

.footer .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

.footer .footer-legal-link a {
    color: #64748b;
}

.footer .footer-legal-link a:hover {
    color: #e2e8f0;
}

.footer .app-btn {
    background-color: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .app-btn:hover {
    background-color: rgba(var(--primary-rgb), 0.2);
    color: white;
}

.footer .payment-icons {
    color: #64748b;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-color);
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.footer-logo-text span {
    color: var(--primary);
}

.footer-description {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition-bounce);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-link:hover {
    color: white;
    background: var(--primary-gradient);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
    border-color: transparent;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-dark);
    font-size: 0.875rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-link a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal-link a:hover {
    color: var(--primary);
}

.app-download p {
    margin: 1.5rem 0 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.app-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg);
    border-radius: var(--radius-md);
    color: var(--dark);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.app-btn:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

/* Footer PWA install modal */
.pwa-install-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.pwa-install-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.pwa-install-modal {
    width: min(680px, 100%);
    background: var(--card-bg, #1e2329);
    border: 1px solid var(--border, rgba(255,255,255,0.12));
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.24s ease;
    color: var(--text-primary, #eaecef);
    max-height: 88vh;
    overflow: hidden;
}

.pwa-install-modal-overlay.show .pwa-install-modal {
    transform: translateY(0) scale(1);
}

.pwa-install-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
}

.pwa-install-modal-head h3 {
    margin: 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-install-modal-close {
    border: 0;
    background: rgba(148, 163, 184, 0.14);
    color: inherit;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    cursor: pointer;
}

.pwa-install-modal-body {
    padding: 16px 18px 18px;
    overflow: auto;
    max-height: calc(88vh - 68px);
}

.pwa-install-modal-body p {
    margin: 0 0 12px;
    color: var(--text-secondary, #bfc7d5);
}

.pwa-install-apk {
    margin: 2px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(14, 203, 129, 0.28);
    border-radius: 12px;
    background: rgba(14, 203, 129, 0.08);
}

.pwa-install-apk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(14, 203, 129, 0.45);
    color: #0ecb81;
    background: rgba(14, 203, 129, 0.12);
    font-weight: 700;
    font-size: 0.93rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pwa-install-apk-btn:hover {
    background: rgba(14, 203, 129, 0.2);
    border-color: rgba(14, 203, 129, 0.65);
    color: #37d996;
}

.pwa-install-apk small {
    color: var(--text-secondary, #bfc7d5);
    font-size: 0.78rem;
}

.pwa-install-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.pwa-install-step {
    border: 1px solid var(--border, rgba(255,255,255,0.12));
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
}

.pwa-install-step h4 {
    margin: 0 0 6px;
    font-size: 0.9rem;
}

.pwa-install-step ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary, #bfc7d5);
    font-size: 0.83rem;
    line-height: 1.45;
}

.pwa-install-how {
    margin-top: 12px;
    border-radius: 12px;
    padding: 12px;
    border: 1px dashed rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.08);
    color: #bae6fd;
    font-size: 0.84rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .pwa-install-steps {
        grid-template-columns: 1fr;
    }

    .pwa-install-modal {
        border-radius: 14px;
    }
}

.footer-newsletter {
    max-width: 300px;
}

.newsletter-text {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin: 0.5rem 0 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--dark);
}

.payment-methods {
    margin-top: 1.5rem;
}

.payment-methods p {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--gray);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--gradient-end) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1rem;
}

.loading-overlay p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.theme-btn {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    color: var(--primary);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.theme-btn:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    color: var(--primary);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
    }
    
    .hero-subtitle { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    
    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-about, 
    .footer-newsletter {
        grid-column: span 3;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        display: none !important;
    }

    .header-container {
        height: 48px;
    }

    .logo-icon {
        width: 32px; height: 32px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--card-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 200;
        overflow-y: auto;
    }

    .nav-links .nav-link {
        padding: 1rem 0;
        font-size: 1.25rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
        border-radius: 8px;
    }

    .nav-actions .btn i {
        font-size: 0.78rem !important;
    }

    .nav-links.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        z-index: 201;
        font-size: 1.15rem;
        transition: background .15s;
    }

    .mobile-menu-btn:active {
        background: var(--border);
    }
    
    .hero {
        padding: 5.5rem 1rem 2rem;
    }
    
    .hero-visual { display: none; }
    
    .hero-stats { display: none !important; }
    .stat-divider { display: none !important; }

    .hero-title { font-size: 1.75rem; line-height: 1.2; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-badge { font-size: 0.75rem; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features, .market, .faq, .cta {
        padding: 3.5rem 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .market-table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .market-tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .market-search {
        width: 100%;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-steps { gap: 0.5rem; }
    .cta-step-arrow { display: none; }
    
    .trust-bar { padding: 0; margin: 1rem auto 1.5rem; }
    .trust-logos { gap: 0.75rem; }
    .trust-logos { gap: 1.5rem; }
    .trust-logo { font-size: 0.75rem; }
    
    .footer {
        padding: 3rem 1rem 2rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-about, 
    .footer-newsletter {
        grid-column: span 2;
    }
    
    .faq-question {
        padding: 1.25rem 1rem;
        font-size: 0.9rem;
    }

    /* Hide non-essential homepage sections on mobile */
    .footer,
    .faq-container,
    .faq,
    .features,
    .trust-bar,
    .market,
    .cta {
        display: none !important;
    }

    /* ── Mobile Auth Hero (non-logged-in) ── */
    .mob-auth-hero {
        text-align: center;
        padding: 0.5rem 0 1rem;
    }
    .mob-auth-hero > * {
        opacity: 0; animation: _heroFadeUp .5s ease forwards;
    }
    .mob-auth-hero > :nth-child(1) { animation-delay: 0s; }
    .mob-auth-hero > :nth-child(2) { animation-delay: .07s; }
    .mob-auth-hero > :nth-child(3) { animation-delay: .12s; }
    .mob-auth-hero > :nth-child(4) { animation-delay: .18s; }
    .mob-auth-hero > :nth-child(5) { animation-delay: .24s; }
    .mob-auth-hero > :nth-child(6) { animation-delay: .30s; }
    .mob-auth-hero > :nth-child(7) { animation-delay: .36s; }
    .mob-auth-hero > :nth-child(8) { animation-delay: .42s; }
    @keyframes _heroFadeUp {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .mob-auth-logo {
        width: 82px; height: 82px;
        margin: 0 auto 1.2rem;
        background: linear-gradient(145deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 100%);
        border: 1.5px solid rgba(255,255,255,.1);
        animation: _heroFadeUp .5s ease forwards;
        border-radius: 26px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.9rem; color: #fff;
        box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.04), inset 0 1px 0 rgba(255,255,255,.08);
        overflow: hidden;
        position: relative;
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    }
    .mob-auth-logo::after {
        content: '';
        position: absolute; inset: 0;
        background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
        background-size: 200% 200%;
        animation: _logoShimmer 4s ease 1s infinite;
    }
    .mob-auth-logo img {
        height: 52px; width: auto; object-fit: contain;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
        position: relative; z-index: 1;
    }
    .mob-auth-logo i { position: relative; z-index: 1; font-size: 2.2rem; }
    @keyframes _logoShimmer {
        0%,100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }
    .mob-auth-title {
        font-size: 1.65rem; font-weight: 800;
        background: linear-gradient(135deg, var(--text-primary, #eaecef) 30%, var(--primary, #6366f1) 100%);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        background-clip: text;
        margin: 0 0 0.4rem;
        line-height: 1.2;
        letter-spacing: -0.025em;
    }
    .mob-auth-subtitle {
        font-size: 0.88rem;
        color: var(--text-secondary);
        margin: 0 0 1.3rem;
        line-height: 1.55;
        max-width: 300px;
        margin-left: auto; margin-right: auto;
    }
    .mob-auth-buttons {
        display: flex; gap: 10px;
        margin-bottom: 1.2rem;
    }
    .mob-auth-btn {
        display: flex; align-items: center; justify-content: center;
        gap: 8px; padding: 14px 16px; flex: 1;
        border-radius: 14px; font-size: 0.93rem; font-weight: 700;
        text-decoration: none; transition: all 0.2s ease;
        border: none; cursor: pointer;
        position: relative; overflow: hidden;
    }
    .mob-auth-btn-login {
        background: linear-gradient(135deg, var(--primary, #6366f1), #818cf8);
        color: #fff;
        box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
    }
    .mob-auth-btn-login:active { transform: scale(0.96); box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3); }
    .mob-auth-btn-signup {
        background: rgba(99, 102, 241, 0.06);
        color: var(--primary, #6366f1);
        border: 1.5px solid rgba(99, 102, 241, 0.18);
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
    }
    .mob-auth-btn-signup:active { background: rgba(99, 102, 241, 0.14); transform: scale(0.96); }
    .mob-auth-features {
        display: flex; justify-content: center; gap: 7px;
        flex-wrap: wrap; margin-bottom: 0.15rem;
    }
    .mob-auth-feat {
        display: flex; align-items: center; gap: 5px;
        font-size: 0.7rem; color: var(--text-secondary, #9ba3b0);
        background: rgba(255,255,255,.03);
        border: 1px solid rgba(255,255,255,.05);
        border-radius: 20px; padding: 5px 10px;
        transition: border-color .2s;
    }
    .mob-auth-feat i {
        font-size: 0.65rem; color: var(--primary, #6366f1);
    }

    /* ── Stats Trust Bar ── */
    .mob-auth-stats {
        display: flex; align-items: center; justify-content: center;
        gap: 0; margin-top: 1.15rem;
        background: linear-gradient(135deg, rgba(99,102,241,.04), rgba(139,92,246,.04));
        border: 1px solid rgba(99,102,241,.08);
        border-radius: 16px; padding: 14px 8px;
    }
    .mob-auth-stat {
        flex: 1; display: flex; flex-direction: column;
        align-items: center; gap: 3px;
    }
    .mob-auth-stat-val {
        font-size: 1.05rem; font-weight: 800;
        color: var(--text-primary, #eaecef);
        letter-spacing: -0.02em;
        font-variant-numeric: tabular-nums;
    }
    .mob-auth-stat-lbl {
        font-size: 0.62rem; font-weight: 500;
        color: var(--text-secondary, #9ba3b0);
        text-transform: uppercase; letter-spacing: 0.05em;
    }
    .mob-auth-stat-sep {
        width: 1px; height: 30px;
        background: rgba(99,102,241,.1);
        flex-shrink: 0;
    }

    /* ── Trending Ticker ── */
    .mob-home-ticker {
        margin-top: 1.15rem;
        background: var(--card-bg, #1e2329);
        border: 1px solid var(--border, rgba(255,255,255,.06));
        border-radius: 16px;
        padding: 14px 14px 8px;
        overflow: hidden;
    }
    .mob-ticker-hdr {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 8px; padding: 0 2px;
    }
    .mob-ticker-hdr > span {
        font-size: 0.85rem; font-weight: 700;
        color: var(--text-primary, #eaecef);
        display: flex; align-items: center; gap: 6px;
    }
    .mob-ticker-link {
        font-size: 0.72rem; color: var(--primary, #6366f1);
        text-decoration: none; font-weight: 600;
        display: flex; align-items: center; gap: 3px;
        transition: opacity .15s;
    }
    .mob-ticker-link:active { opacity: .7; }
    .mob-ticker-link i { font-size: 0.6rem; }
    .mob-ticker-list {
        display: flex; flex-direction: column;
    }
    .mob-ticker-row {
        display: flex; align-items: center;
        padding: 9px 4px;
        border-bottom: 1px solid rgba(255,255,255,.035);
        text-decoration: none;
        border-radius: 10px;
        transition: background .15s;
        gap: 10px;
        width: 100%;
    }
    .mob-ticker-row:last-child { border-bottom: none; }
    .mob-ticker-row:active { background: rgba(255,255,255,.03); }
    .mob-ticker-coin {
        width: 32px; height: 32px; flex-shrink: 0;
    }
    .mob-ticker-icon {
        width: 32px; height: 32px; border-radius: 50%;
        object-fit: cover;
        background: rgba(255,255,255,.04);
    }
    .mob-ticker-avatar {
        width: 32px; height: 32px; border-radius: 50%;
        background: linear-gradient(135deg, var(--primary, #6366f1), #a78bfa);
        display: flex; align-items: center; justify-content: center;
        font-size: 0.72rem; font-weight: 700; color: #fff;
    }
    .mob-ticker-info {
        flex: 0 0 auto; min-width: 0;
        direction: ltr; text-align: left;
    }
    .mob-ticker-name {
        font-size: 0.85rem; font-weight: 700;
        color: var(--text-primary, #eaecef);
        direction: ltr; text-align: left;
        white-space: nowrap;
    }
    .mob-ticker-pair {
        font-weight: 400; font-size: 0.7rem;
        color: var(--text-secondary, #9ba3b0);
        margin-left: 1px;
    }
    .mob-ticker-price {
        font-size: 0.82rem; font-weight: 600;
        color: var(--text-primary, #eaecef);
        text-align: right;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        margin-left: auto; flex-shrink: 0;
    }
    .mob-ticker-chg {
        min-width: 64px; text-align: center;
        font-size: 0.73rem; font-weight: 700;
        padding: 5px 8px; border-radius: 8px;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .mob-ticker-chg.up {
        background: rgba(14, 203, 129, 0.1);
        color: #0ecb81;
    }
    .mob-ticker-chg.down {
        background: rgba(246, 70, 93, 0.1);
        color: #f6465d;
    }
    .mob-ticker-skel {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 0; gap: 12px;
    }
    .mob-ticker-skel span {
        height: 14px; border-radius: 6px;
        background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
        background-size: 200% 100%;
        animation: _skelPulse 1.5s ease infinite;
    }
    .mob-ticker-skel span:nth-child(1) { width: 60px; }
    .mob-ticker-skel span:nth-child(2) { flex: 1; }
    .mob-ticker-skel span:nth-child(3) { width: 56px; }
    @keyframes _skelPulse {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    /* ── Feature cards – 2×2 grid with unique accents ── */
    .mob-auth-feature-cards {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 10px; margin-top: 1.15rem;
    }
    .mob-auth-fcard {
        background: var(--card-bg, #1e2329);
        border: 1px solid var(--border, rgba(255,255,255,.06));
        border-radius: 16px;
        padding: 18px 14px 16px;
        display: flex; flex-direction: column;
        gap: 10px; text-align: center;
        transition: border-color .2s, transform .2s;
    }
    .mob-auth-fcard:active { border-color: rgba(99,102,241,.2); transform: scale(0.97); }
    .mob-auth-fcard-icon {
        width: 42px; height: 42px;
        margin: 0 auto;
        border-radius: 13px;
        display: flex; align-items: center; justify-content: center;
        font-size: 17px;
    }
    /* Unique accent per card */
    .mob-auth-fcard:nth-child(1) .mob-auth-fcard-icon { background: rgba(99,102,241,.1); color: #818cf8; }
    .mob-auth-fcard:nth-child(2) .mob-auth-fcard-icon { background: rgba(245,158,11,.1); color: #f59e0b; }
    .mob-auth-fcard:nth-child(3) .mob-auth-fcard-icon { background: rgba(14,203,129,.1); color: #0ecb81; }
    .mob-auth-fcard:nth-child(4) .mob-auth-fcard-icon { background: rgba(236,72,153,.1); color: #ec4899; }
    .mob-auth-fcard h3 {
        font-size: 0.82rem; font-weight: 700;
        color: var(--text-primary, #eaecef);
        margin: 0; line-height: 1.25;
    }
    .mob-auth-fcard p {
        font-size: 0.7rem; line-height: 1.5;
        color: var(--text-secondary, #9ba3b0);
        margin: 0;
    }
}
/* Market section - responsive on all screens */
@media (max-width: 1023px) {
    .market .market-table-container {
        border-radius: var(--radius-xl);
    }

    .market table thead {
        display: none;
    }

    .market table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .market table tbody td {
        padding: 0.25rem 0;
        border: none;
        font-size: 0.85rem;
    }

    .market table tbody td:first-child {
        grid-column: 1 / -1;
        font-weight: 600;
    }

    .market table tbody td:last-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 480px) {
    .hero {
        padding: 6rem 1rem 2.5rem;
    }
    .hero-title { font-size: 1.85rem; }
    .hero-badge { font-size: 0.7rem; }
    .hero-subtitle { font-size: 0.95rem; }
    
    .hero-stats { gap: 0.75rem; }
    .stat-divider { display: none; }
    .stat-value { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero { width: 100%; justify-content: center; text-align: center; display: flex; }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-steps {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #cta-button-container {
        flex-direction: column;
        width: 100%;
    }
    
    #cta-button-container .btn { width: 100%; text-align: center; justify-content: center; display: flex; }
    
    .trust-logos { gap: 0.6rem; }
    .trust-logos { gap: 1.25rem; }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-about, 
    .footer-newsletter {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .scroll-top-btn {
        bottom: 5rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .theme-toggle {
        bottom: 1.5rem;
        right: 1rem;
    }
    .theme-btn {
        width: 40px;
        height: 40px;
    }
}

/* Dark mode adjustments */
.dark-mode .faq-question {
    background-color: var(--card-bg);
    color: var(--dark);
}

.dark-mode .faq-question:hover {
    background-color: rgba(var(--primary-rgb), 0.06);
}

.dark-mode .header {
    --glass-bg: rgba(11, 14, 20, 0.92);
    --glass-border: rgba(255, 255, 255, 0.04);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dark-mode .footer {
    background-color: #070a0f;
}

.dark-mode .feature-icon {
    background: rgba(var(--primary-rgb), 0.1);
}

.dark-mode .stat-item {
    border-color: rgba(255, 255, 255, 0.04);
}

.dark-mode .feature-card {
    border-color: rgba(255, 255, 255, 0.04);
    background: var(--card-bg);
}

.dark-mode .feature-card:hover {
    border-color: rgba(var(--primary-rgb), 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dark-mode .faq-item {
    border-color: rgba(255, 255, 255, 0.04);
}

.dark-mode .faq-item.active {
    border-color: rgba(var(--primary-rgb), 0.2);
}

.dark-mode .trust-bar {
    background: transparent;
    border-color: transparent;
}

.dark-mode .trust-logo {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-mode .trust-logo:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dark-mode .trust-logo-name {
    color: var(--gray);
}

.dark-mode .trust-logo:hover .trust-logo-name {
    color: #e8eaed;
}

.dark-mode .mock-card-back,
.dark-mode .mock-card-front {
    background: var(--card-bg);
    border-color: var(--border);
}

.dark-mode .mock-stat {
    background: rgba(255, 255, 255, 0.04);
}

.dark-mode .hero-grid-lines {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

.dark-mode .hero-floating-badge {
    background: var(--card-bg);
    border-color: var(--border);
}

.dark-mode .market-table-container {
    border-color: rgba(255, 255, 255, 0.04);
}

.dark-mode table td {
    border-color: rgba(255, 255, 255, 0.04);
}

.dark-mode thead {
    background-color: rgba(255, 255, 255, 0.02);
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background-color: var(--input-bg);
    border-color: var(--border);
    color: var(--dark);
}

.dark-mode .btn-outline {
    border-color: rgba(var(--primary-rgb), 0.4);
}

.dark-mode .loading-overlay {
    background: linear-gradient(135deg, #070a0f 0%, var(--primary-dark) 100%);
}

/* ─── Enhanced UI Polish ─── */

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Global input styling */
input, select, textarea {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.7rem 1rem;
    color: var(--dark);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

input::placeholder, textarea::placeholder {
    color: var(--gray);
}

/* Improved table row hover */
.markets-table tbody tr {
    transition: background-color 0.15s ease;
}

.markets-table tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.03);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
}

.badge-warning {
    background: rgba(var(--warning-rgb), 0.1);
    color: var(--warning);
}

.badge-info {
    background: rgba(var(--info-rgb), 0.1);
    color: var(--info);
}

.badge-primary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

/* Card component */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

/* Skeleton loading animation */
@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.skeleton {
    background: var(--border);
    border-radius: var(--radius-sm);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* Price ticker animations */
@keyframes price-flash-green {
    0% { background-color: rgba(var(--success-rgb), 0.2); }
    100% { background-color: transparent; }
}

@keyframes price-flash-red {
    0% { background-color: rgba(var(--danger-rgb), 0.2); }
    100% { background-color: transparent; }
}

.price-up {
    animation: price-flash-green 0.6s ease-out;
    color: var(--success) !important;
}

.price-down {
    animation: price-flash-red 0.6s ease-out;
    color: var(--danger) !important;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 0.35rem 0.7rem;
    background: var(--dark);
    color: var(--light);
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Notification dot */
.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    position: absolute;
    top: -2px;
    right: -2px;
    border: 2px solid var(--card-bg);
}

/* Newsletter form improvements */
.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

/* CTA section button styling override for white on purple */
.cta .btn-primary {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Professional monospace number styling */
.mono-price, .market-price, .stat-value, .balance-amount {
    font-family: var(--font-mono);
    font-feature-settings: 'tnum' 1;
    letter-spacing: -0.02em;
}

/* Smooth page transitions */
.page-enter {
    animation: pageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty state styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--gray);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 300px;
}

/* Responsive table card layout for mobile */
@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tbody tr {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        position: relative;
    }
    
    .responsive-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.35rem 0;
        border: none;
        font-size: 0.85rem;
    }
    
    .responsive-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray);
        font-size: 0.75rem;
        text-transform: uppercase;
    }
}

/* ═══════════════════════════════════════════
   MOBILE ACCOUNT DETAILS PANEL
   ═══════════════════════════════════════════ */
.mob-account-panel {
    padding: 0;
    direction: ltr;
    text-align: left;
}
.mob-account-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
}
.mob-account-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #6366f1), var(--primary-dark, #4f46e5));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,.25);
    position: relative; overflow: visible; cursor: pointer;
}
.mob-avatar-edit {
    position: absolute; bottom: -2px; right: -2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary, #6366f1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 8px;
    border: 2px solid var(--bg, #0b0e14);
    pointer-events: none;
}
.mob-notif-dot {
    position: absolute; top: 4px; right: 4px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #f6465d;
    border: 1.5px solid var(--bg, #0b0e14);
}
.mob-account-settings {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border, rgba(255,255,255,.06));
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary, #9ba3b0); font-size: 14px;
    text-decoration: none; flex-shrink: 0;
    transition: background .15s, color .15s;
    position: relative; cursor: pointer;
}
.mob-account-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mob-account-top { display: flex; align-items: center; gap: 6px; }
.mob-account-arrow { font-size: 10px; color: var(--text-secondary, #9ba3b0); opacity: .5; transition: opacity .15s; }
.mob-account-info:active .mob-account-arrow { opacity: 1; }
.mob-account-welcome { font-size: 11px; color: var(--text-secondary, #9ba3b0); font-weight: 500; }
.mob-account-name { font-size: 15px; font-weight: 700; color: var(--text-primary, #eaecef); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-account-email { font-size: 11px; color: var(--text-secondary, #9ba3b0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .6; margin-top: 1px; }

/* Balance card */
.mob-balance-card { background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.06)); border: 1px solid var(--border, rgba(255,255,255,.06)); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.mob-bal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mob-bal-label { font-size: 12px; color: var(--text-secondary, #9ba3b0); font-weight: 500; }
.mob-bal-eye { background: none; border: none; color: var(--text-secondary, #9ba3b0); font-size: 13px; padding: 4px; cursor: pointer; opacity: .6; transition: opacity .15s; }
.mob-bal-eye:active { opacity: 1; }
.mob-bal-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.mob-bal-total { font-size: 28px; font-weight: 800; color: var(--text-primary, #eaecef); letter-spacing: -0.5px; line-height: 1.1; }
.mob-bal-currency { font-size: 13px; font-weight: 600; color: var(--text-secondary, #9ba3b0); opacity: .7; }
.mob-bal-pnl-row { display: flex; align-items: center; gap: 6px; }
.mob-bal-pnl-label { font-size: 11px; color: var(--text-secondary, #9ba3b0); font-weight: 500; }
.mob-bal-pnl { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.mob-bal-pnl._up, .mob-bal-pnl:not(._down) { background: rgba(14,203,129,.12); color: #0ecb81; }
.mob-bal-pnl._down { background: rgba(246,70,93,.12); color: #f6465d; }
.mob-account-settings:active { background: rgba(255,255,255,.08); color: var(--text-primary, #eaecef); }

/* Logout modal */
.mob-logout-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 10000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; }
.mob-logout-overlay.show { opacity: 1; }
.mob-logout-overlay.show .mob-logout-sheet { transform: translateY(0); }
.mob-logout-sheet { background: var(--card-bg, #1e2329); border-radius: 20px 20px 0 0; padding: 16px 24px 32px; width: 100%; max-width: 420px; text-align: center; transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1); }
.mob-logout-handle { width: 36px; height: 4px; background: rgba(255,255,255,.15); border-radius: 4px; margin: 0 auto 20px; }
.mob-logout-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; margin: 0 auto 12px; overflow: hidden; }
.mob-logout-name { font-size: 16px; font-weight: 700; color: var(--text-primary, #eaecef); }
.mob-logout-email { font-size: 12px; color: var(--text-secondary, #9ba3b0); margin-bottom: 20px; }
.mob-logout-btn { width: 100%; padding: 14px; border: none; border-radius: 12px; background: #f6465d; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; transition: background .15s; }
.mob-logout-btn:active { background: #d63850; }
.mob-logout-cancel { width: 100%; padding: 12px; border: 1px solid var(--border, rgba(255,255,255,.08)); border-radius: 12px; background: transparent; color: var(--text-secondary, #9ba3b0); font-size: 14px; font-weight: 500; cursor: pointer; }

/* ═══════════════════════════════════════════
   MOBILE AUTH MODAL (bottom sheet)
   ═══════════════════════════════════════════ */
.mob-auth-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 10001; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mob-auth-modal-overlay.show { opacity: 1; pointer-events: auto; }
.mob-auth-modal-overlay.show .mob-auth-modal-sheet { transform: translateY(0); }
.mob-auth-modal-sheet { background: var(--card-bg, #1e2329); border-radius: 24px 24px 0 0; padding: 12px 24px calc(32px + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: 420px; transform: translateY(100%); transition: transform .35s cubic-bezier(.32,.72,0,1); max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 -8px 40px rgba(0,0,0,.4); }
.mob-auth-modal-handle { width: 40px; height: 4px; background: rgba(255,255,255,.12); border-radius: 4px; margin: 0 auto 12px; }
.mob-auth-modal-header { display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.mob-auth-modal-brand { display: flex; align-items: center; gap: 10px; }
.mob-auth-modal-brand span { font-size: 17px; font-weight: 800; color: var(--text-primary, #eaecef); letter-spacing: -0.02em; }
.mob-auth-modal-logo-img { height: 32px; width: auto; object-fit: contain; border-radius: 8px; }
.mob-auth-modal-logo-icon { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--primary, #6366f1), #a78bfa); display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; }
.mob-auth-modal-top { text-align: center; margin-bottom: 20px; }
.mob-auth-modal-logo { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #6366f1, #8b5cf6); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; margin: 0 auto 10px; }
.mob-auth-modal-top h2 { font-size: 18px; font-weight: 700; color: var(--text-primary, #eaecef); margin: 0; }
.mob-auth-modal-tabs { display: flex; gap: 0; background: rgba(255,255,255,.04); border-radius: 12px; padding: 3px; margin-bottom: 22px; }
.mob-auth-modal-tab { flex: 1; padding: 11px; border: none; border-radius: 10px; background: transparent; color: var(--text-secondary, #9ba3b0); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .25s; }
.mob-auth-modal-tab.active { background: linear-gradient(135deg, var(--primary, #6366f1), #818cf8); color: #fff; box-shadow: 0 2px 12px rgba(99,102,241,.3); }
.mob-auth-modal-form { display: flex; flex-direction: column; gap: 16px; }
.mob-auth-input-group { display: flex; flex-direction: column; gap: 6px; }
.mob-auth-input-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary, #9ba3b0); letter-spacing: 0.02em; }
.mob-auth-input-group input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--border, rgba(255,255,255,.08)); background: rgba(255,255,255,.03); color: var(--text-primary, #eaecef); font-size: 15px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; box-sizing: border-box; }
.mob-auth-input-group input:focus { border-color: var(--primary, #6366f1); background: rgba(99,102,241,.04); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.mob-auth-input-group input::placeholder { color: var(--text-secondary, #9ba3b0); opacity: .45; }
.mob-auth-input-pass { position: relative; }
.mob-auth-input-pass input { padding-right: 44px; }
.mob-auth-pass-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-secondary, #9ba3b0); font-size: 15px; cursor: pointer; padding: 4px; transition: color .15s; }
.mob-auth-pass-toggle:active { color: var(--primary, #6366f1); }
.mob-auth-modal-err { font-size: 12px; color: #f6465d; min-height: 16px; }
.mob-auth-modal-btn { width: 100%; padding: 14px; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--primary, #6366f1), #818cf8); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 16px rgba(99,102,241,.3); }
.mob-auth-modal-btn:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(99,102,241,.2); }
.mob-auth-modal-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.mob-auth-forgot { text-align: center; font-size: 13px; color: var(--primary, #6366f1); text-decoration: none; margin-top: 4px; background: none; border: none; cursor: pointer; display: block; width: 100%; padding: 6px 0; font-weight: 500; }
.mob-auth-2fa-icon { text-align: center; font-size: 44px; color: var(--primary, #6366f1); margin-bottom: 10px; }
.mob-auth-2fa-desc { text-align: center; font-size: 13px; color: var(--text-secondary, #9ba3b0); margin: 0 0 10px; line-height: 1.5; }
.mob-auth-captcha-group { display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.02); border-radius: 14px; padding: 14px; border: 1px solid var(--border, rgba(255,255,255,.06)); }
.mob-auth-captcha-label { font-size: 11px; font-weight: 600; color: var(--text-secondary, #9ba3b0); text-transform: uppercase; letter-spacing: 0.5px; }
.mob-auth-captcha-row { display: flex; align-items: center; gap: 10px; }
.mob-auth-captcha-row canvas { border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,.1)); height: 52px; flex: 1; }
.mob-auth-captcha-refresh { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border, rgba(255,255,255,.08)); background: rgba(255,255,255,.04); color: var(--text-secondary, #9ba3b0); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.mob-auth-captcha-refresh:active { background: rgba(99,102,241,.1); color: var(--primary, #6366f1); transform: scale(.9); }
.mob-auth-captcha-group .mob-auth-input-group { margin: 0; }
.mob-auth-divider { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.mob-auth-divider::before, .mob-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border, rgba(255,255,255,.08)); }
.mob-auth-divider span { font-size: 12px; color: var(--text-secondary, #9ba3b0); white-space: nowrap; }
.mob-auth-passkey-btn { width: 100%; padding: 13px; border-radius: 14px; border: 1.5px solid rgba(99,102,241,.15); background: rgba(99,102,241,.05); color: var(--text-primary, #eaecef); font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, border-color .15s; }
.mob-auth-passkey-btn:active { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.25); }
.mob-auth-passkey-btn:disabled { opacity: .5; cursor: not-allowed; }
.mob-auth-passkey-btn i { font-size: 18px; color: var(--primary, #6366f1); }
.mob-auth-2fa-toggle { margin-top: -4px; }
.mob-auth-2fa-toggle-btn { background: none; border: none; color: var(--text-secondary, #9ba3b0); font-size: 12px; cursor: pointer; padding: 6px 0; display: flex; align-items: center; gap: 6px; transition: color .15s; }
.mob-auth-2fa-toggle-btn:hover, .mob-auth-2fa-toggle-btn.active { color: var(--primary, #6366f1); }
.mob-auth-2fa-toggle-btn i { font-size: 12px; }
.mob-auth-2fa-inline { margin-top: -4px; }

.mob-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.mob-detail-card {
    background: var(--card-bg, #1e2329);
    border: 1px solid var(--border, rgba(255,255,255,.06));
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s, transform .15s;
}
.mob-detail-card.mob-clickable { cursor: pointer; }
.mob-detail-card.mob-clickable:active { transform: scale(0.97); background: rgba(255,255,255,.04); }
.mob-detail-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.mob-detail-icon._green { background: rgba(14,203,129,.12); color: #0ecb81; }
.mob-detail-icon._red { background: rgba(246,70,93,.12); color: #f6465d; }
.mob-detail-icon._orange { background: rgba(243,186,47,.12); color: #f3ba2f; }
.mob-detail-icon._blue { background: rgba(99,102,241,.12); color: #6366f1; }
.mob-detail-icon._gold { background: rgba(243,186,47,.12); color: #f3ba2f; }
.mob-detail-icon._teal { background: rgba(20,184,166,.12); color: #14b8a6; }
.mob-detail-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mob-detail-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-secondary, #9ba3b0); }
.mob-detail-val { font-size: 12px; font-weight: 600; color: var(--text-primary, #eaecef); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-detail-val .fa-chevron-right { font-size: 10px; margin-left: 4px; opacity: .5; }
.mob-detail-val._verified { color: #0ecb81; }
.mob-detail-val._pending { color: #f3ba2f; }
.mob-detail-val._unverified { color: #f6465d; }
.mob-detail-val._on { color: #0ecb81; }
.mob-detail-val._off { color: #f6465d; }
.mob-level-badge { background: linear-gradient(135deg, #f3ba2f, #e5a800); color: #000; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.mob-skel { background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%); background-size: 200% 100%; animation: mobSkelShine 1.4s infinite; border-radius: 6px; height: 16px; width: 60px; display: inline-block; }
@keyframes mobSkelShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Quick Action Buttons */
.mob-quick-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border, rgba(255,255,255,.06));
}
.mob-qa {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-secondary, #9ba3b0);
    font-size: 11px;
    font-weight: 600;
    transition: color .15s;
}
.mob-qa:active { color: var(--text-primary, #eaecef); }
.mob-qa-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: transform .15s;
}
.mob-qa:active .mob-qa-icon { transform: scale(0.92); }
.mob-qa-icon._blue { background: rgba(99,102,241,.12); color: #6366f1; }
.mob-qa-icon._orange { background: rgba(243,186,47,.12); color: #f3ba2f; }
.mob-qa-icon._green { background: rgba(14,203,129,.12); color: #0ecb81; }
.mob-qa-icon._purple { background: rgba(139,92,246,.12); color: #8b5cf6; }

/* Recent Transactions */
.mob-recent-tx {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border, rgba(255,255,255,.06));
}
.mob-section-hdr {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.mob-section-hdr span { font-size: 12px; font-weight: 700; color: var(--text-primary, #eaecef); }
.mob-section-hdr a { font-size: 11px; color: var(--primary, #6366f1); text-decoration: none; font-weight: 600; }
.mob-section-hdr a:active { opacity: .7; }
.mob-tx-list { display: flex; flex-direction: column; gap: 0; }
.mob-tx-skel { display: flex; flex-direction: column; gap: 8px; }
.mob-tx-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.03));
}
.mob-tx-row:last-child { border-bottom: none; }
.mob-tx-icon {
    width: 32px; height: 32px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; flex-shrink: 0;
}
.mob-tx-info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mob-tx-type { font-size: 12px; font-weight: 600; color: var(--text-primary, #eaecef); }
.mob-tx-cur { font-weight: 500; color: var(--text-secondary, #9ba3b0); }
.mob-tx-date { font-size: 10px; color: var(--text-secondary, #9ba3b0); }
.mob-tx-right { text-align: right; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.mob-tx-amount { font-size: 12px; font-weight: 700; }
.mob-tx-empty {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 20px; color: var(--text-secondary, #9ba3b0); font-size: 12px;
}
.mob-tx-empty i { font-size: 20px; opacity: .4; }

/* Support tickets */
.mob-support-divider { height: 1px; background: var(--border, rgba(255,255,255,.06)); margin: 16px 0; }
.mob-tickets-wrap { display: flex; flex-direction: column; gap: 0; }
.mob-ticket-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.04));
}
.mob-ticket-item:last-child { border-bottom: none; }
.mob-ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mob-ticket-subj { font-size: 13px; font-weight: 600; color: var(--text-primary, #eaecef); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.mob-ticket-meta { font-size: 10px; color: var(--text-secondary, #9ba3b0); margin-top: 2px; }

/* ═══════════════════════════════════════════
   MOBILE MODALS (bottom sheet style)
   ═══════════════════════════════════════════ */
.mob-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: 10000;
    background: rgba(0,0,0,.6);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.mob-modal-overlay.open { opacity: 1; visibility: visible; }
.mob-modal {
    width: 100%; max-width: 480px;
    max-height: 85vh;
    background: var(--card-bg, #1e2329);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.mob-modal-overlay.open .mob-modal { transform: translateY(0); }
.mob-modal-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
    flex-shrink: 0;
}
.mob-modal-hdr h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--text-primary, #eaecef); }
.mob-modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.06); border: none;
    color: var(--text-secondary, #9ba3b0); font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .15s;
}
.mob-modal-close:hover { background: rgba(255,255,255,.1); }
.mob-modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* Modal form elements */
.mob-form-row { margin-bottom: 12px; }
.mob-form-row label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary, #9ba3b0); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; }
.mob-form-row input[type="text"],
.mob-form-row input[type="date"],
.mob-form-row input[type="password"],
.mob-form-row select,
.mob-form-row textarea {
    width: 100%; padding: 11px 14px;
    background: var(--input-bg, rgba(255,255,255,.04));
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: 10px; color: var(--text-primary, #eaecef);
    font-size: 14px; outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
.mob-form-row textarea { resize: vertical; font-family: inherit; }
.mob-form-row input:focus,
.mob-form-row select:focus,
.mob-form-row textarea:focus { border-color: var(--primary, #6366f1); }
.mob-form-row input[type="file"] {
    width: 100%; padding: 10px 12px;
    background: var(--input-bg, rgba(255,255,255,.04));
    border: 1px dashed var(--border, rgba(255,255,255,.12));
    border-radius: 10px; color: var(--text-secondary, #9ba3b0);
    font-size: 13px; box-sizing: border-box;
}
.mob-req { color: #f6465d; }
.mob-net-btn, .mob-wth-net-btn {
    padding: 8px 14px; border-radius: 8px;
    border: 1px solid var(--border, rgba(255,255,255,.08));
    background: var(--input-bg, rgba(255,255,255,.04));
    color: var(--text-secondary, #848E9C);
    font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.mob-net-btn._active, .mob-wth-net-btn._active {
    border-color: #F0B90B; background: rgba(240,185,11,.1); color: #F0B90B;
}
.mob-input {
    width: 100%; padding: 12px 14px;
    background: var(--input-bg, rgba(255,255,255,.04));
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: 10px; color: var(--text-primary, #eaecef);
    font-size: 16px; text-align: center; letter-spacing: 8px;
    outline: none; box-sizing: border-box;
}
.mob-input:focus { border-color: var(--primary, #6366f1); }

.mob-btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px; border: none; border-radius: 12px;
    background: var(--primary, #6366f1); color: #fff;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: opacity .15s;
}
.mob-btn-primary:active { opacity: .85; }
.mob-btn-outline {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px; border-radius: 12px;
    background: transparent; border: 1px solid var(--border, rgba(255,255,255,.1));
    color: var(--text-primary, #eaecef); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.mob-btn-outline:active { background: rgba(255,255,255,.04); }

/* KYC modal specifics */
.mob-kyc-badge {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.mob-kyc-badge._ok { color: #0ecb81; }
.mob-kyc-badge._wait { color: #f3ba2f; }
.mob-kyc-details { display: flex; flex-direction: column; gap: 0; }
.mob-kyc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.04));
    font-size: 14px;
}
.mob-kyc-row:last-child { border-bottom: none; }
.mob-kyc-row span:first-child { color: var(--text-secondary, #9ba3b0); font-size: 13px; }
.mob-kyc-row span:last-child { font-weight: 600; color: var(--text-primary, #eaecef); }

/* 2FA modal specifics */
.mob-2fa-section {}
.mob-2fa-status { display: flex; align-items: center; gap: 14px; }
.mob-2fa-status div { flex: 1; }
.mob-2fa-status strong { font-size: 15px; color: var(--text-primary, #eaecef); display: block; }

/* Fees modal specifics */
.mob-fees-current { text-align: center; }
.mob-level-big { font-size: 24px; font-weight: 800; color: #f3ba2f; margin-bottom: 16px; }
.mob-level-big i { margin-right: 6px; }
.mob-fees-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mob-fee-item {
    background: rgba(255,255,255,.03); border-radius: 12px; padding: 14px 10px;
    display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.mob-fee-item span { font-size: 11px; color: var(--text-secondary, #9ba3b0); }
.mob-fee-item strong { font-size: 15px; color: var(--text-primary, #eaecef); }
.mob-tier-table { font-size: 13px; }
.mob-tier-hdr {
    display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; padding: 8px 10px;
    color: var(--text-secondary, #9ba3b0); font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .3px;
}
.mob-tier-row {
    display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; padding: 10px;
    border-radius: 8px; color: var(--text-primary, #eaecef);
}
.mob-tier-row._active { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2); }

/* Wallet modal specifics */
.mob-wallet-total { text-align: center; margin-bottom: 18px; }
.mob-wallet-amount { font-size: 28px; font-weight: 800; color: var(--text-primary, #eaecef); }
.mob-wallet-label { font-size: 12px; color: var(--text-secondary, #9ba3b0); margin-top: 2px; }
.mob-wallet-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.mob-wallet-act {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: rgba(255,255,255,.03); border: 1px solid var(--border, rgba(255,255,255,.06));
    border-radius: 12px; padding: 14px 8px; text-decoration: none;
    color: var(--text-primary, #eaecef); font-size: 12px; font-weight: 600;
    transition: background .15s;
}
.mob-wallet-act i { font-size: 18px; color: var(--primary, #6366f1); }
.mob-wallet-act:active { background: rgba(255,255,255,.06); }
.mob-wallet-list {}
.mob-wallet-coin {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.04));
}
.mob-wallet-coin:last-child { border-bottom: none; }
.mob-coin-left { display: flex; align-items: center; gap: 10px; }
.mob-coin-icon {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary, #6366f1);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
}
.mob-coin-name { font-size: 14px; font-weight: 600; color: var(--text-primary, #eaecef); }
.mob-coin-right { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.mob-coin-bal { font-size: 14px; font-weight: 600; color: var(--text-primary, #eaecef); }
.mob-coin-locked { font-size: 11px; color: var(--text-secondary, #9ba3b0); }

/* ═══════════════════════════════════════════
   SLIDER CAPTCHA MODAL — static fallback CSS
   Ensures captcha is ALWAYS visible above all overlays.
   ═══════════════════════════════════════════ */
#slider-captcha-modal { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; z-index: 200000 !important; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#slider-captcha-modal.active { display: flex !important; }