/* ═══════════════════════════════════════════════════════════════════════════════
   APEX CLEAN UI - Premium Minimal Design System
   Removes all floating clutter for professional DeFi aesthetic
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   HIDE ALL FLOATING CIRCULAR BUTTONS - Complete Cleanup
   ───────────────────────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════
   NUCLEAR CLEANUP - Hide ALL floating elements across entire platform
   ══════════════════════════════════════════════════════════════════════════ */

/* FAB Menu System */
#fab-menu-container,
.fab-main,
.fab-quick-actions,
.fab-expanded-menu,

/* Analytics & Dashboard */
#analytics-toggle,
#acc-toggle,
#apex-analytics-toggle,
#apex-analytics-panel,
#gpu-analytics-toggle,
#gpu-analytics-panel,
#apex-distribution-toggle,
#apex-distribution-panel,
#analytics-overlay,
#analytics-panel,

/* Feature Toggles */
#staking-toggle,
#staking-overlay,
#staking-modal,
#portfolio-toggle,
#portfolio-panel,
#apex-portfolio-widget,
#portfolio-particles,
#security-toggle,
#security-panel,
#signing-overlay,
#ai-support-toggle,
#apex-health-toggle,
#apex-health-dashboard,
#global-access-toggle,
#global-access-panel,
#nfc-toggle,
#thermal-toggle,
#wakelock-toggle,
#gamepad-toggle,
#gamepad-panel,

/* Community & Social */
.community-hub-toggle,
.community-hub-panel,
.global-access-toggle,
.portfolio-toggle,

/* Emergency & Survival Mode */
.survival-container,
.emergency-container,

/* Sponsor & Referral */
.referral-gem-btn,

/* Generic Floating Buttons */
#bottom-buttons-container,
.floating-btn,
.floating-button,
.floating-action-btn,
.fab-button,
[data-fab-hidden="true"],

/* Catch-all for fixed circular buttons */
[style*="position: fixed"][style*="border-radius: 50%"],
[style*="position:fixed"][style*="border-radius:50%"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CLEAN NAVIGATION - Glass Morphism Header
   ───────────────────────────────────────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 0, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 32px);
}

/* Clean nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(212, 196, 232, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.1);
}

.nav-link.active {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   GLASS MORPHISM CARDS - Premium Container Styling
   ───────────────────────────────────────────────────────────────────────────── */

.glass-card,
.card,
.lux-card,
.stat-card,
.feature-card,
.claim-card {
    background: rgba(15, 0, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover,
.card:hover,
.lux-card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   PRIMARY CTA BUTTON - Launch Your Token Focus
   ───────────────────────────────────────────────────────────────────────────── */

.btn-primary,
.cta-primary,
.launch-cta,
.pulse-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #ff6b35 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(168, 85, 247, 0.35);
    animation: gradientShift 4s ease infinite;
}

.btn-primary:hover,
.cta-primary:hover,
.launch-cta:hover,
.pulse-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Secondary button style */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #c084fc;
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: #a855f7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CLEAN HERO SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #c084fc 0%, #ff6b35 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(160, 144, 192, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CLEAN STATS DISPLAY
   ───────────────────────────────────────────────────────────────────────────── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(160, 144, 192, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MINIMAL FORM INPUTS
   ───────────────────────────────────────────────────────────────────────────── */

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    color: #e0d6f0;
    background: rgba(20, 0, 30, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CLEAN FOOTER
   ───────────────────────────────────────────────────────────────────────────── */

footer {
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    margin-top: 80px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-link {
    color: rgba(160, 144, 192, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #c084fc;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .nav {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .btn-primary,
    .cta-primary {
        width: 100%;
        padding: 16px 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATIONS - Subtle & Professional
   ───────────────────────────────────────────────────────────────────────────── */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Subtle background glow */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 107, 53, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(244, 114, 182, 0.08), transparent);
}

/* ─────────────────────────────────────────────────────────────────────────────
   COMPREHENSIVE FLOATING ELEMENT CLEANUP
   ───────────────────────────────────────────────────────────────────────────── */

/* Hide any dynamically created fixed-position circular elements */
div[style*="position: fixed"][style*="bottom"][style*="right"]:not(.nav):not(#ai-support-panel):not(.modal):not(.notification),
button[style*="position: fixed"][style*="bottom"]:not([class*="nav"]),
a[style*="position: fixed"][style*="bottom"][style*="right"] {
    display: none !important;
}

/* IMPORTANT: Overlays must NOT be force-shown - let JS control them */
/* These elements are excluded from the nuclear cleanup above */

/* Full-page overlays - hidden by default, JS shows them */
#acc-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Show overlays only when JS adds .open class */
#acc-overlay.open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99990 !important;
}

/* Modal overlays - let original CSS handle visibility */
.modal-overlay {
    /* Don't interfere - original CSS has opacity:0, visibility:hidden */
}

/* ─────────────────────────────────────────────────────────────────────────────
   PREMIUM MICRO-INTERACTIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Smooth scroll everywhere */
html {
    scroll-behavior: smooth;
}

/* Premium focus states */
*:focus-visible {
    outline: 2px solid rgba(168, 85, 247, 0.6);
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: #fff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 0, 15, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a855f7, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c084fc, #f472b6);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ELITE TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium heading styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CUTTING-EDGE EFFECTS
   ───────────────────────────────────────────────────────────────────────────── */

/* Premium hover lift effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

/* Glow pulse animation */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
    50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.5), 0 0 60px rgba(236, 72, 153, 0.2); }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg,
        rgba(168, 85, 247, 0.1) 0%,
        rgba(168, 85, 247, 0.2) 50%,
        rgba(168, 85, 247, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE-FIRST EXCELLENCE
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    /* Touch-friendly tap targets */
    button, a, .clickable {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Better mobile typography */
    body {
        font-size: 16px; /* Prevents iOS zoom on input focus */
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAUNCHPAD SPECIFIC - Clean Token Launch Interface
   ───────────────────────────────────────────────────────────────────────────── */

.launch-wizard {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(15, 0, 20, 0.8);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 24px;
}

.wizard-step {
    margin-bottom: 32px;
}

.wizard-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e0d6f0;
    margin-bottom: 16px;
}

/* Progress indicator - clean line style instead of circles */
.wizard-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.wizard-progress-step {
    flex: 1;
    height: 4px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.wizard-progress-step.active {
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

.wizard-progress-step.completed {
    background: #10b981;
}
