/**
 * Market Experts - Shared Background Effects
 * Used across all custom pages (complete, cart, forgotpassword)
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    --me-bg-dark: #0a0e17;
    --me-bg-card: rgba(15, 23, 42, 0.85);
    --me-primary: #3b82f6;
    --me-primary-dark: #2563eb;
    --me-secondary: #8b5cf6;
    --me-accent: #06b6d4;
    --me-success: #22c55e;
    --me-danger: #ef4444;
    --me-warning: #f59e0b;
    --me-text-white: #ffffff;
    --me-text-gray: #94a3b8;
    --me-text-dim: #64748b;
    --me-border: rgba(255, 255, 255, 0.08);
    --me-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --me-gradient-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #0891b2 100%);
}

/* ==================== BASE STYLES ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body.me-custom-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--me-bg-dark);
    color: var(--me-text-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    -webkit-font-smoothing: antialiased;
}

/* ==================== BACKGROUND GRID ==================== */
.me-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ==================== BACKGROUND GLOWS ==================== */
.me-bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.me-bg-glow-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: rgba(59, 130, 246, 0.15);
    animation: me-pulse-glow 8s ease-in-out infinite;
}

.me-bg-glow-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
    background: rgba(139, 92, 246, 0.12);
    animation: me-pulse-glow 10s ease-in-out infinite reverse;
    animation-delay: -3s;
}

.me-bg-glow-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(6, 182, 212, 0.1);
    animation: me-pulse-glow 12s ease-in-out infinite;
}

@keyframes me-pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ==================== PARTICLES ==================== */
.me-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.me-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: me-particle-float 20s ease-in-out infinite;
}

.me-particle:nth-child(3n) { animation-name: me-particle-diagonal; animation-duration: 25s; }
.me-particle:nth-child(5n) { animation-name: me-particle-circular; animation-duration: 30s; }
.me-particle:nth-child(7n) { animation-name: me-particle-wave; animation-duration: 18s; }

@keyframes me-particle-float {
    0%, 100% { opacity: 0.3; transform: translate(0, 0) scale(1); }
    25% { opacity: 1; transform: translate(30px, -50px) scale(1.5); }
    50% { opacity: 0.5; transform: translate(-20px, -100px) scale(1.2); }
    75% { opacity: 0.8; transform: translate(40px, -30px) scale(1.3); }
}

@keyframes me-particle-diagonal {
    0%, 100% { opacity: 0.2; transform: translate(0, 0) scale(1); }
    33% { opacity: 1; transform: translate(80px, -80px) scale(1.8); }
    66% { opacity: 0.4; transform: translate(-40px, -160px) scale(1); }
}

@keyframes me-particle-circular {
    0% { opacity: 0.3; transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { opacity: 1; transform: translate(50px, -30px) rotate(90deg) scale(1.5); }
    50% { opacity: 0.5; transform: translate(0, -60px) rotate(180deg) scale(1.2); }
    75% { opacity: 0.8; transform: translate(-50px, -30px) rotate(270deg) scale(1.4); }
    100% { opacity: 0.3; transform: translate(0, 0) rotate(360deg) scale(1); }
}

@keyframes me-particle-wave {
    0%, 100% { opacity: 0.4; transform: translate(0, 0) scale(1); }
    20% { opacity: 1; transform: translate(20px, -40px) scale(1.6); }
    40% { opacity: 0.6; transform: translate(-30px, -80px) scale(1.2); }
    60% { opacity: 0.9; transform: translate(40px, -50px) scale(1.4); }
    80% { opacity: 0.5; transform: translate(-10px, -90px) scale(1.1); }
}

/* ==================== CURSOR GLOW ==================== */
.me-cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(40px);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .me-cursor-glow { display: none; }
    .me-bg-glow { display: none; }
    .me-floating-orb { display: none; }
    #me-glitch-numbers { display: none; }
    #me-smoke-canvas { display: none !important; }
    .ind-market-canvas { display: none; }
}

/* ==================== FLOATING ORBS ==================== */
.me-floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.me-orb-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -50px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
    animation: me-orb-float 20s ease-in-out infinite;
}

.me-orb-2 {
    width: 350px;
    height: 350px;
    top: 15%;
    right: 5%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    animation: me-orb-float 25s ease-in-out infinite reverse;
    animation-delay: -5s;
}

.me-orb-3 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 25%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    animation: me-orb-float 18s ease-in-out infinite;
    animation-delay: -10s;
}

/* Additional bottom orb for better visibility */
.me-orb-4 {
    width: 350px;
    height: 350px;
    bottom: 15%;
    right: 10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    animation: me-orb-float 22s ease-in-out infinite reverse;
    animation-delay: -8s;
}

/* Bottom center glow orb */
.me-orb-5 {
    width: 600px;
    height: 350px;
    bottom: -80px;
    left: 50%;
    margin-left: -300px;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.25) 0%, rgba(139, 92, 246, 0.15) 40%, transparent 70%);
    animation: me-orb-pulse 15s ease-in-out infinite;
}

@keyframes me-orb-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes me-orb-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* ==================== GLOW LINES ==================== */
.me-glow-lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.me-glow-line {
    position: absolute;
    width: 2px;
    height: 150px;
    animation: me-line-fall 8s linear infinite;
}

.me-glow-line.green {
    background: linear-gradient(to bottom, transparent, #22c55e, transparent);
    box-shadow: 0 0 15px #22c55e;
}

.me-glow-line.red {
    background: linear-gradient(to bottom, transparent, #ef4444, transparent);
    box-shadow: 0 0 15px #ef4444;
}

@keyframes me-line-fall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ==================== GLITCH NUMBERS ==================== */
.me-glitch-numbers {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.me-glitch-price {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: rgba(59, 130, 246, 0.3);
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    animation: me-glitch-flicker 0.1s infinite;
}

@keyframes me-glitch-flicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.15; }
}

/* ==================== SHARED NAVBAR ==================== */
.me-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--me-border);
    z-index: 1000;
    transition: all 0.3s;
}

.me-navbar.scrolled {
    padding: 12px 40px;
    background: rgba(3, 7, 18, 0.95);
}

/* Brand Logo */
.me-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 5;
}

.me-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.me-brand-text .me-name {
    display: flex;
    align-items: flex-end;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.me-brand-text .me-name span {
    background: linear-gradient(90deg, #64748b, #06b6d4, #22d3ee, #67e8f9, #22d3ee, #06b6d4, #64748b);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-sweep 4s linear infinite;
    line-height: 1;
}

.me-brand-text .me-name .me-icon-a {
    height: 1.15em;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(6,182,212,0.3));
    margin: 0 -1px;
    display: block;
    margin-bottom: 0.03em;
}

.me-brand-text .me-trading {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-top: 2px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #6d28d9, #7c3aed, #8b5cf6, #a78bfa, #c4b5fd, #a78bfa, #8b5cf6, #7c3aed, #6d28d9);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-sweep 3s linear infinite;
    filter: drop-shadow(0 0 12px rgba(139,92,246,0.5)) drop-shadow(0 0 25px rgba(124,58,237,0.25));
}

.me-trading-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.me-trading-line::before,
.me-trading-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
}

/* Shimmer Line */
.me-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #22d3ee, #67e8f9, #22d3ee, #06b6d4);
    background-size: 200% 100%;
    animation: shimmer-sweep 3s linear infinite;
}

@keyframes shimmer-sweep {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Legacy support for old nav-logo class */
.me-nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.me-nav-logo img {
    height: 42px;
    width: auto;
}

/* Nav Links */
.me-nav-links {
    display: flex;
    gap: 8px;
}

.me-nav-link {
    color: var(--me-text-gray);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s, background 0.3s;
    position: relative;
    animation: nav-link-idle 4s ease-in-out infinite;
    animation-delay: calc(var(--n, 0) * 0.5s);
}

.me-nav-links .me-nav-link:nth-child(1) { --n: 0; }
.me-nav-links .me-nav-link:nth-child(2) { --n: 1; }
.me-nav-links .me-nav-link:nth-child(3) { --n: 2; }
.me-nav-links .me-nav-link:nth-child(4) { --n: 3; }
.me-nav-links .me-nav-link:nth-child(5) { --n: 4; }

.me-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
    box-shadow: 0 0 6px rgba(139,92,246,0.4);
}

.me-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    animation: none;
}

.me-nav-link:hover::after {
    width: 60%;
    left: 20%;
}

@keyframes nav-link-idle {
    0%, 100% { color: #94a3b8; text-shadow: none; }
    50% { color: #e2e8f0; text-shadow: 0 0 12px rgba(6,182,212,0.35), 0 0 4px rgba(139,92,246,0.2); }
}

/* Support Link */
.me-nav-support {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--me-text-gray);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: support-idle 4s ease-in-out infinite;
}

.me-nav-support svg {
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.me-nav-support::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), rgba(6,182,212,0.5), transparent);
    animation: outline-scan-idle 6s linear infinite;
}

.me-nav-support:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.12);
    animation: none;
}

.me-nav-support:hover svg {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.5));
}

.me-nav-support:hover::after {
    animation: none;
    left: 100%;
    transition: left 0.5s ease;
}

@keyframes support-idle {
    0%, 100% { border-color: rgba(139, 92, 246, 0.15); color: #94a3b8; }
    50% { border-color: rgba(139, 92, 246, 0.35); color: #c0cedf; }
}

/* CTA Buttons */
.me-nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.me-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Outline button - cyber border pulse */
.me-nav-btn-outline {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--me-text-white);
    animation: outline-border-breathe 3s ease-in-out infinite;
}

.me-nav-btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(6,182,212,0.08));
    opacity: 0;
    transition: opacity 0.3s;
}

.me-nav-btn-outline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.6), rgba(6,182,212,0.6), transparent);
    animation: outline-scan-idle 5s linear infinite;
}

.me-nav-btn-outline:hover {
    border-color: rgba(139, 92, 246, 0.6);
    text-shadow: 0 0 8px rgba(139,92,246,0.4);
    box-shadow: 0 0 20px rgba(139,92,246,0.15), inset 0 0 20px rgba(139,92,246,0.05);
    animation: none;
}

.me-nav-btn-outline:hover::before {
    opacity: 1;
}

.me-nav-btn-outline:hover::after {
    animation: none;
    left: 100%;
    transition: left 0.5s ease;
}

@keyframes outline-border-breathe {
    0%, 100% { border-color: rgba(139, 92, 246, 0.2); box-shadow: 0 0 0 rgba(139,92,246,0); }
    50% { border-color: rgba(139, 92, 246, 0.45); box-shadow: 0 0 12px rgba(139,92,246,0.08); }
}

@keyframes outline-scan-idle {
    0% { left: -100%; }
    40% { left: 100%; }
    100% { left: 100%; }
}

/* Primary button - glitch glow */
.me-nav-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 200% 200%;
    animation: btn-gradient-shift 4s ease infinite, primary-glow-breathe 3s ease-in-out infinite;
    border: none;
    color: white;
}

.me-nav-btn-primary::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4, #8b5cf6);
    background-size: 300% 300%;
    animation: btn-gradient-shift 4s ease infinite, primary-blur-breathe 3s ease-in-out infinite;
    z-index: -1;
    transition: opacity 0.3s, filter 0.3s;
}

@keyframes primary-glow-breathe {
    0%, 100% { box-shadow: 0 4px 20px -4px rgba(59,130,246,0.4), 0 0 15px rgba(139,92,246,0.1); }
    50% { box-shadow: 0 4px 25px -2px rgba(59,130,246,0.6), 0 0 30px rgba(139,92,246,0.2); }
}

@keyframes primary-blur-breathe {
    0%, 100% { opacity: 0.4; filter: blur(6px); }
    50% { opacity: 0.7; filter: blur(10px); }
}

.me-nav-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.me-nav-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px -4px rgba(59, 130, 246, 0.6), 0 0 40px rgba(139,92,246,0.3);
    animation: btn-gradient-shift 4s ease infinite, btn-glitch-pulse 0.4s ease;
}

.me-nav-btn-primary:hover::before {
    opacity: 1;
    filter: blur(14px);
}

.me-nav-btn-primary:hover::after {
    opacity: 1;
}

@keyframes btn-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes btn-glitch-pulse {
    0% { transform: translateY(-2px) scale(1.02); }
    20% { transform: translateY(-2px) scale(1.02) translateX(-2px) skewX(-1deg); }
    40% { transform: translateY(-2px) scale(1.02) translateX(2px) skewX(1deg); }
    60% { transform: translateY(-2px) scale(1.02) translateX(-1px); }
    80% { transform: translateY(-2px) scale(1.02) translateX(1px); }
    100% { transform: translateY(-2px) scale(1.02); }
}

/* Mobile Menu Button */
.me-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu Panel */
.me-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 80px 24px 32px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.me-mobile-menu.open {
    transform: translateY(0);
}

.me-mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.me-mobile-link {
    display: block;
    padding: 14px 16px;
    color: var(--me-text-gray);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border-left: 2px solid transparent;
}

.me-mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #8b5cf6, #06b6d4);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.me-mobile-link:hover {
    color: #fff;
    background: linear-gradient(90deg, rgba(139,92,246,0.08), transparent);
    padding-left: 22px;
}

.me-mobile-link:hover::before {
    transform: scaleY(1);
}

.me-mobile-support {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--me-border);
    color: var(--me-text-gray);
}

.me-mobile-support svg {
    flex-shrink: 0;
}

.me-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--me-border);
}

.me-mobile-cta .me-nav-btn {
    width: 100%;
    justify-content: center;
}

/* ==================== SECURE BADGE ==================== */
.me-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    color: var(--me-success);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==================== PAGE TITLE SECTION ==================== */
.me-page-title {
    text-align: center;
    margin-bottom: 48px;
}

.me-page-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.me-page-title p {
    font-size: 1.1rem;
    color: var(--me-text-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* ==================== SHARED FOOTER ==================== */
.me-footer {
    padding: 60px 40px 30px;
    border-top: 1px solid var(--me-border);
    position: relative;
    z-index: 2;
}

.me-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.me-footer-links-left,
.me-footer-links-right {
    display: flex;
    gap: 24px;
    flex: 1;
}

.me-footer-links-left {
    justify-content: flex-end;
}

.me-footer-links-right {
    justify-content: flex-start;
}

.me-footer-link {
    color: var(--me-text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    overflow: hidden;
    animation: footer-link-idle 4s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.6s);
}

.me-footer-links-left .me-footer-link:nth-child(1) { --i: 0; }
.me-footer-links-left .me-footer-link:nth-child(2) { --i: 1; }
.me-footer-links-right .me-footer-link:nth-child(1) { --i: 2; }
.me-footer-links-right .me-footer-link:nth-child(2) { --i: 3; }
.me-footer-links-right .me-footer-link:nth-child(3) { --i: 4; }
.me-footer-links-right .me-footer-link:nth-child(4) { --i: 5; }

.me-footer-link::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.me-footer-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(6,182,212,0.06));
    opacity: 0;
    transition: opacity 0.3s;
}

.me-footer-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(139,92,246,0.3);
    animation: footer-link-glitch 0.3s ease;
}

@keyframes footer-link-idle {
    0%, 100% { color: #94a3b8; }
    50% { color: #b8c9e0; text-shadow: 0 0 6px rgba(139,92,246,0.12); }
}

.me-footer-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.me-footer-link:hover::after {
    opacity: 1;
}

@keyframes footer-link-glitch {
    0% { transform: translate(0); }
    15% { transform: translate(-1px, 1px); }
    30% { transform: translate(1px, -1px); opacity: 0.85; }
    45% { transform: translate(-1px, 0); }
    60% { transform: translate(1px, 1px); opacity: 0.9; }
    75% { transform: translate(0, -1px); }
    100% { transform: translate(0); }
}

.me-footer-brand {
    flex-shrink: 0;
}

.me-brand-footer .me-brand-text .me-name {
    font-size: 1.4rem;
}

.me-brand-footer .me-brand-text .me-trading {
    font-size: 0.95rem;
    letter-spacing: 0.3em;
}

.me-brand-footer .me-brand-text .me-name .me-icon-a {
    margin-bottom: 0.02em;
}

.me-footer-copy-row {
    text-align: center;
    color: var(--me-text-dim);
    font-size: 0.825rem;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--me-border);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Legacy class support */
.me-page-footer {
    padding: 28px 40px;
    border-top: 1px solid var(--me-border);
    text-align: center;
    position: relative;
    z-index: 1;
}

.me-page-footer p {
    font-size: 0.8rem;
    color: var(--me-text-dim);
    margin: 0;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: 16px;
}

.btn-primary {
    background: var(--me-gradient);
    color: #fff;
    box-shadow: 0 4px 20px -4px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px -5px rgba(59, 130, 246, 0.6);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-discord {
    background: #5865f2;
    color: #fff;
    box-shadow: 0 4px 20px -4px rgba(88, 101, 242, 0.5);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px -5px rgba(88, 101, 242, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--me-border);
    color: var(--me-text-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--me-text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ==================== CTA BUTTONS (used in other pages) ==================== */
.me-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    background: var(--me-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
}

.me-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.me-cta-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.me-cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: none;
}

/* ==================== SPINNER ==================== */
@keyframes me-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.me-spinner {
    animation: me-spin 1s linear infinite;
}

/* ==================== MARKET CANVAS ==================== */
.ind-market-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.07;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .me-navbar {
        padding: 14px 20px;
    }

    .me-navbar.scrolled {
        padding: 10px 20px;
    }

    .me-brand-text .me-name {
        font-size: 1.3rem;
    }

    .me-brand-text .me-trading {
        font-size: 0.9rem;
        letter-spacing: 0.25em;
    }

    .me-nav-links {
        display: none;
    }

    .me-nav-cta {
        display: none;
    }

    .me-nav-support {
        display: none;
    }

    .me-mobile-menu-btn {
        display: block;
    }

    .me-mobile-menu {
        display: block;
    }

    .me-page-title h1 {
        font-size: 2rem;
    }

    .me-page-title p {
        font-size: 1rem;
    }

    .me-secure-badge span {
        display: none;
    }

    .ind-market-canvas {
        opacity: 0.05;
    }

    .me-footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .me-footer-brand {
        order: -1;
    }

    .me-footer-links-left,
    .me-footer-links-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .me-footer {
        padding: 40px 20px 24px;
    }

    .me-footer-link {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .me-navbar {
        padding: 12px 16px;
    }

    .me-nav-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .me-page-title h1 {
        font-size: 1.6rem;
    }

    .me-footer {
        padding: 32px 16px 20px;
    }

    .me-footer-links-left,
    .me-footer-links-right {
        gap: 12px;
    }

    .me-footer-link {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}
