/* ========================================
   CRYPTO QR GENERATOR - PROFESSIONAL WEB3 THEME
   Theme: "Neon Noir" - Cyberpunk Web3 
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS Variables - Neon Noir Palette */
:root {
    /* Dark Background Layers - True Black */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #151515;
    --bg-card: rgba(45, 45, 45, 0.7);
    --bg-card-hover: rgba(60, 60, 60, 0.8);
    --bg-glass: rgba(20, 20, 20, 0.9);

    /* Neon Noir Gradients */
    --gradient-primary: linear-gradient(135deg, #2CFF05 0%, #00cc00 100%);
    --gradient-secondary: linear-gradient(135deg, #BF00FF 0%, #8000aa 100%);
    --gradient-accent: linear-gradient(135deg, #2CFF05 0%, #BF00FF 100%);
    --gradient-gold: linear-gradient(135deg, #2CFF05 0%, #00ff88 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(44, 255, 5, 0.12) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(191, 0, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(44, 255, 5, 0.08) 0px, transparent 50%);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-accent: #2CFF05;

    /* Accent Colors - Neon Noir */
    --accent-primary: #2CFF05;
    --accent-secondary: #BF00FF;
    --accent-blue: #00ccff;
    --accent-cyan: #2CFF05;
    --accent-pink: #BF00FF;
    --accent-green: #2CFF05;
    --accent-gold: #00ff88;

    /* Borders - Subtle Neon */
    --border-color: rgba(44, 255, 5, 0.15);
    --border-hover: rgba(44, 255, 5, 0.3);
    --border-active: rgba(44, 255, 5, 0.5);

    /* Shadows - Neon Glow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(44, 255, 5, 0.25);
    --shadow-glow-accent: 0 0 60px rgba(191, 0, 255, 0.2);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 5rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-normal: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Mesh Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Glass Panel */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);

    /* Mobile Touch Improvements */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1002;
    /* Ensure it is above other nav elements */
}

.mobile-menu-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.mobile-menu-btn:active {
    transform: scale(0.92);
    border-color: var(--accent-primary);
    background: rgba(44, 255, 5, 0.1);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-glow {
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 4px 30px rgba(102, 126, 234, 0.5);
    }
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: var(--bg-tertiary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ========================================
   COIN SELECTOR
   ======================================== */
.coin-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: var(--spacing-sm);
}

.coin-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    min-height: 100px;
}

.coin-option:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.coin-option.selected {
    background: rgba(44, 255, 5, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(44, 255, 5, 0.2);
}

.coin-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
}

.coin-icon-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.coin-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.coin-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.coin-tag {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 700;
    background: rgba(44, 255, 5, 0.2);
    color: var(--accent-primary);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.coin-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* ========================================
   QR PREVIEW
   ======================================== */
.qr-preview {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-stats {
    display: inline-flex;
    gap: var(--spacing-xl);
    padding: 1.25rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-top: var(--spacing-xl);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   GRIDS
   ======================================== */
.wallets-grid,
.chains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.wallet-card,
.chain-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.wallet-card:hover,
.chain-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.wallet-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.chain-card img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.chain-card span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-item {
    margin-bottom: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.pricing-card {
    position: relative;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    -webkit-text-fill-color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin: var(--spacing-xl) 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 600;
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-features li.disabled::before {
    content: '—';
    color: var(--text-muted);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    margin-top: var(--spacing-3xl);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-lg);
    color: var(--accent-green);
    font-size: 0.95rem;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.25rem;
    }

    .hero-stats {
        gap: var(--spacing-lg);
    }

    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    /* Mobile Navigation - Enhanced */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--spacing-xl);
        gap: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
        overflow-y: auto;
        z-index: 999;
        animation: slideDown 0.3s var(--ease-out);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        min-height: 56px;
        /* Larger touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        text-align: center;
        transition: all var(--transition-fast);
        /* Touch-specific enhancements */
        touch-action: manipulation;
        /* Removes 300ms delay */
        -webkit-tap-highlight-color: rgba(0, 255, 136, 0.2);
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--bg-card);
        border-color: var(--accent-primary);
    }

    /* Active/pressed state for touch feedback */
    .nav-links a:active {
        transform: scale(0.98);
        background: var(--accent-primary);
        color: var(--bg-primary);
        border-color: var(--accent-primary);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 56px;
        /* Larger touch target */
        min-height: 56px;
        padding: 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 255, 136, 0.2);
        cursor: pointer;
        border-radius: var(--radius-md);
        transition: background var(--transition-fast);
    }

    .mobile-menu-btn:active {
        background: rgba(0, 255, 136, 0.1);
        transform: scale(0.95);
    }

    /* Hero Section */
    .hero {
        padding: 7rem 0 3rem;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-md);
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    /* Grids */
    .wallets-grid,
    .chains-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: var(--spacing-sm);
    }

    .wallet-card,
    .chain-card {
        padding: var(--spacing-md);
    }

    .wallet-logo-img {
        width: 36px;
        height: 36px;
    }

    .chain-card img {
        width: 28px;
        height: 28px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .services-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .card {
        padding: var(--spacing-lg);
    }

    /* Section Headers */
    .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    /* Toast - Move to top on mobile */
    .toast {
        bottom: auto;
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        transform: translateY(-120%);
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* Large phones */
@media (max-width: 600px) {
    :root {
        --container-padding: 0.875rem;
    }

    /* Buttons - Touch friendly */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .btn-sm {
        min-height: 40px;
        padding: 0.625rem 1rem;
    }

    /* Forms - Larger touch targets */
    .form-input,
    .form-select {
        min-height: 48px;
        padding: 0.875rem 1rem;
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    /* Typography adjustments */
    h3 {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    p {
        font-size: 0.95rem;
    }

    /* Coin Selector */
    .coin-selector {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    }

    .coin-option {
        padding: var(--spacing-sm);
        font-size: 0.75rem;
    }

    .coin-icon {
        width: 28px;
        height: 28px;
    }

    /* FAQ Items */
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        min-height: 56px;
    }

    .faq-answer-content {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }

    /* Navbar */
    .navbar .container {
        padding: 0 var(--container-padding);
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-icon img {
        width: 24px;
        height: 24px;
    }

    /* Hero */
    .hero {
        padding: 6rem 0 2.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    /* Stats */
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Grids - 2 columns minimum */
    .wallets-grid,
    .chains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Cards */
    .card {
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
    }

    /* Pricing */
    .pricing-price {
        font-size: 2.25rem;
    }

    .pricing-features li {
        padding: 0.625rem 0;
        font-size: 0.9rem;
    }
}

/* Extra small phones (320px and below) */
@media (max-width: 360px) {
    :root {
        --container-padding: 0.625rem;
    }

    /* Navbar adjustments */
    .logo {
        font-size: 1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-icon img {
        width: 22px;
        height: 22px;
    }

    /* Hero adjustments */
    .hero {
        padding: 5.5rem 0 2rem;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Grids - single column for very small screens */
    .wallets-grid,
    .chains-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .wallet-card,
    .chain-card {
        padding: 0.75rem;
    }

    .wallet-logo-img {
        width: 28px;
        height: 28px;
    }

    .chain-card img {
        width: 24px;
        height: 24px;
    }

    .chain-card span,
    .wallet-card span {
        font-size: 0.75rem;
    }

    /* Cards */
    .card {
        padding: 0.875rem;
        border-radius: var(--radius-md);
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Section headers */
    .section-header h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .section-header p {
        font-size: 0.85rem;
    }

    /* Stats */
    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* Pricing */
    .pricing-price {
        font-size: 2rem;
    }

    .pricing-features li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
}

/* Mobile Footer Improvements */
@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-xl) 0;
    }

    .footer-content {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem !important;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 1rem !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center;
        gap: 0.75rem !important;
    }
}

/* Mobile Hero Visual Optimization */
@media (max-width: 900px) {
    .hero-container {
        gap: var(--spacing-xl) !important;
    }

    .visual-container {
        min-height: 300px !important;
    }

    .glass-panel {
        max-width: 280px !important;
        padding: 1.5rem !important;
    }
}

/* Mobile Founders Grid */
@media (max-width: 768px) {
    .founders-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .founder-card {
        padding: 1rem !important;
    }

    .founder-img-wrapper {
        width: 70px !important;
        height: 70px !important;
    }

    .founder-info h3 {
        font-size: 0.9rem !important;
    }

    .founder-role {
        font-size: 0.75rem !important;
    }

    .founder-tag {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.4rem !important;
    }
}

@media (max-width: 480px) {
    .founders-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .founder-img-wrapper {
        width: 60px !important;
        height: 60px !important;
    }

    .founder-info h3 {
        font-size: 0.8rem !important;
    }
}

/* Mobile Services Grid */
@media (max-width: 600px) {

    .features,
    .services {
        padding: 2rem 0 !important;
    }

    .features .container,
    .services .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .services-grid,
    .features-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .service-item,
    .feature-card {
        padding: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .service-icon,
    .feature-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 0.5rem !important;
    }

    .service-icon svg,
    .feature-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .service-item h4,
    .feature-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.35rem !important;
    }

    .service-item p,
    .feature-card p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }

    .feature-card .text-highlight {
        font-size: 0.7rem !important;
    }
}

/* Mobile Steps */
@media (max-width: 600px) {
    .steps {
        gap: var(--spacing-md) !important;
    }

    .step {
        padding: var(--spacing-md) !important;
    }

    .step-number {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
    }

    .step h3 {
        font-size: 1rem !important;
    }

    .step p {
        font-size: 0.85rem !important;
    }
}

/* Mobile CTA Section */
@media (max-width: 600px) {
    .features .card[style*="text-align: center"] {
        padding: 2rem 1rem !important;
    }
}

/* Mobile Crypto Carousel */
@media (max-width: 600px) {
    .crypto-carousel {
        padding: var(--spacing-lg) 0;
    }

    .crypto-item {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .crypto-item img {
        width: 28px;
        height: 28px;
    }

    .crypto-item-name {
        font-size: 0.85rem;
    }

    .crypto-item-symbol {
        font-size: 0.75rem;
    }
}

/* Mobile Visionaries Section */
@media (max-width: 600px) {
    .visionaries-section {
        padding: 2rem 0 !important;
    }
}

/* Splash Screen Mobile */
@media (max-width: 480px) {
    .splash-logo-container {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .splash-text {
        font-size: 1.3rem;
    }

    .splash-line {
        margin: 1.5rem auto;
    }

    .splash-footer {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }
}

/* Improve touch scrolling */
@media (max-width: 768px) {

    .chains-grid,
    .wallets-grid {
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure inputs don't zoom on iOS */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(var(--spacing-2xl), env(safe-area-inset-bottom));
    }

    .nav-links {
        padding-bottom: max(var(--spacing-xl), env(safe-area-inset-bottom));
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mb-2xl {
    margin-bottom: var(--spacing-2xl);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mt-2xl {
    margin-top: var(--spacing-2xl);
}

.text-center {
    text-align: center;
}

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

.hidden {
    display: none !important;
}

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Premium Splash Screen - Neon Noir Cyberpunk */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s;
    overflow: hidden;
}

/* Matrix-style grid background */
.splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(44, 255, 5, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(44, 255, 5, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Neon glow orbs */
.splash-screen::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(44, 255, 5, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes orbPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.splash-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2.5rem;
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

.splash-logo {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    box-shadow:
        0 0 30px rgba(44, 255, 5, 0.5),
        0 0 60px rgba(44, 255, 5, 0.3),
        0 0 100px rgba(44, 255, 5, 0.15);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(44, 255, 5, 0.5), 0 0 60px rgba(44, 255, 5, 0.3), 0 0 100px rgba(44, 255, 5, 0.15);
    }

    50% {
        box-shadow: 0 0 50px rgba(44, 255, 5, 0.7), 0 0 80px rgba(44, 255, 5, 0.5), 0 0 120px rgba(44, 255, 5, 0.25);
    }
}

.splash-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, rgba(44, 255, 5, 0.25) 0%, rgba(191, 0, 255, 0.1) 40%, transparent 70%);
    animation: glowRotate 8s linear infinite;
}

@keyframes glowRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.splash-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.6;
    opacity: 0;
    animation: textGlitch 0.8s ease forwards 0.3s;
    text-shadow: 0 0 20px rgba(44, 255, 5, 0.5);
}

@keyframes textGlitch {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }

    50% {
        opacity: 0.8;
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.splash-heart {
    display: inline-block;
    color: #2CFF05;
    animation: heartPulse 1.2s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(44, 255, 5, 0.8);
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

.splash-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.splash-highlight {
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2CFF05, #BF00FF, transparent);
    margin: 2rem auto;
    border-radius: var(--radius-full);
    opacity: 0;
    animation: lineExpand 0.8s ease forwards 0.8s;
}

@keyframes lineExpand {
    0% {
        opacity: 0;
        width: 0;
    }

    100% {
        opacity: 1;
        width: 80px;
    }
}

.splash-footer {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #2CFF05;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1s;
    text-shadow: 0 0 10px rgba(44, 255, 5, 0.5);
}

/* Table Scrolling Container */
.table-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.table-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.table-scroll-hint {
    display: none;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .table-scroll-hint {
        display: block;
    }
}

/* ========================================
   INTERACTIVE EDITOR HANDLES
   ======================================== */
.element-selected {
    outline: 2px dashed var(--accent-primary);
    cursor: move;
}

.resize-handle {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: nwse-resize;
    z-index: 101;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.rotation-handle {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    cursor: grab;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.rotation-handle::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: var(--accent-primary);
}

.rotation-knob {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ========================================
   MOBILE & TOUCH OPTIMIZATIONS
   ======================================== */
#qrContainer {
    touch-action: none;
    /* Disables browser handling of gestures (scrolling/zooming) within the container */
    user-select: none;
    -webkit-user-select: none;
}

.external-logo-wrapper,
.qr-text-label,
.qr-overlay-item,
.resize-handle,
.rotation-handle {
    touch-action: none;
}

/* Disable Callouts for Mobile */
#qrContainer,
.external-logo-wrapper,
.qr-text-label,
.qr-overlay-item {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}