/* ==========================================================================
   Creator Cash Flow - Dark Luxury Helper Utilities
   ========================================================================== */

body {
    background-color: #050505 !important;
    color: #FFFFFF !important;
}

.card-shadow {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Modal overlay transitions */
.modal-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-overlay.active .codex-modal {
    transform: scale(1) !important;
}

/* Active onboarding selections (Emerald ring & glow + Selection springs) */
.onboard-choice-card {
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease, 
                background-color 0.25s ease !important;
}

.onboard-choice-card.active {
    border-color: #22C55E !important;
    background-color: rgba(34, 197, 94, 0.08) !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4), 
                0 10px 30px -5px rgba(34, 197, 94, 0.3), 
                0 0 25px rgba(34, 197, 94, 0.15) !important;
}

.onboard-choice-card.active .check-indicator span {
    color: #22C55E !important;
    animation: selectionIndicatorSpring 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    display: inline-block;
}

.onboard-choice-card.active .icon-container {
    animation: iconBoxSpring 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    background-color: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
}

.onboard-choice-card.active .icon-container span {
    color: #22C55E !important;
}

/* Active tab items */
aside nav a.active, .mobile-bottom-nav a.active {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
}

/* Connection platform styling when linked */
.connection-platform-card.connected {
    border-color: #22C55E !important;
    background-color: rgba(34, 197, 94, 0.03) !important;
}

.connection-platform-card.connected .connect-badge {
    background-color: rgba(34, 197, 94, 0.2) !important;
    color: #22C55E !important;
    border-color: #22C55E !important;
}

/* ==========================================================================
   PHYLLO CONNECT MODAL STYLING OVERRIDES (UNIVERSAL FULL-SCREEN)
   ========================================================================== */

/* Universal Default: Full-screen display to maximize compatibility across all viewports */
.modal-phyllo {
    position: fixed !important;
    z-index: 2147483647 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #0b0b0b !important;
    display: block !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.modal-phyllo iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #0b0b0b !important;
}

/* ==========================================================================
   PREMIUM MOTION & HOVER ANIMATIONS (FEATURES F9 & F10)
   ========================================================================== */

/* 1. Feature F9: Spring Keyframes for Active Selection Indicators */
@keyframes selectionIndicatorSpring {
    0% {
        transform: scale(0.4) rotate(-20deg);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.35) rotate(6deg);
    }
    75% {
        transform: scale(0.92) rotate(-2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes iconBoxSpring {
    0% {
        transform: scale(0.85);
    }
    50% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

/* 2. Feature F10: Hero Entrance Fade Slide Up Keyframes & Stagger Base */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stagger-item {
    opacity: 0;
    will-change: opacity, transform;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-0 { animation-delay: 0ms; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
    .hero-stagger-item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Other fadeSlideUp consumers */
.onboarding-wrapper h1, 
.dashboard-balance-header h1 {
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 3. Feature F9: Vibrant Emerald Hover Lifts & Border Glows for Cards */
.card-shadow,
.onboard-choice-card,
.connection-platform-card,
.glass-card,
.glass-card-nested,
.floating-badge,
.activity-card-item {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease, 
                background-color 0.25s ease !important;
    will-change: transform, box-shadow;
}

.card-shadow:hover,
.onboard-choice-card:hover,
.connection-platform-card:hover,
.glass-card:hover,
.glass-card-nested:hover,
.floating-badge:hover,
.activity-card-item:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 
                0 0 20px 2px rgba(34, 197, 94, 0.2) !important;
}

/* Active Press Micro-Feedback */
.card-shadow:active,
.onboard-choice-card:active,
.connection-platform-card:active,
.glass-card:active,
.glass-card-nested:active,
.floating-badge:active,
.activity-card-item:active {
    transform: translateY(0px) scale(0.98) !important;
    transition: transform 0.1s ease !important;
}

/* ==========================================================================
   FEATURE F1 & F4: GLASSMORPHIC UTILITIES
   ========================================================================== */

.glass-pill-nav {
    background: rgba(11, 11, 11, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.glass-card-nested {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ==========================================================================
   FEATURE F2: AMBIENT MULTI-COLOR MESH BACKDROPS
   ========================================================================== */

.ambient-mesh-wrapper {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 750px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.ambient-orb-emerald {
    top: -5%;
    left: 10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.40) 0%, rgba(34, 197, 94, 0) 70%);
    animation: floatEmerald 18s ease-in-out infinite alternate;
}

.ambient-orb-teal {
    top: 5%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.35) 0%, rgba(6, 182, 212, 0) 70%);
    animation: floatTeal 22s ease-in-out infinite alternate -6s;
}

.ambient-orb-indigo {
    top: 25%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.30) 0%, rgba(99, 102, 241, 0) 70%);
    animation: floatIndigo 26s ease-in-out infinite alternate -12s;
}

.ambient-mesh-center-glow {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.15) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(0, 0, 0, 0) 75%);
    filter: blur(80px);
    pointer-events: none;
    animation: pulseCenterCore 14s ease-in-out infinite alternate;
}

@keyframes floatEmerald {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.35;
    }
    33% {
        transform: translate(60px, 40px) scale(1.12);
        opacity: 0.48;
    }
    66% {
        transform: translate(-40px, 70px) scale(0.95);
        opacity: 0.28;
    }
    100% {
        transform: translate(45px, -30px) scale(1.08);
        opacity: 0.42;
    }
}

@keyframes floatTeal {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.30;
    }
    33% {
        transform: translate(-70px, 45px) scale(0.92);
        opacity: 0.44;
    }
    66% {
        transform: translate(45px, 60px) scale(1.15);
        opacity: 0.25;
    }
    100% {
        transform: translate(-30px, -35px) scale(1.05);
        opacity: 0.38;
    }
}

@keyframes floatIndigo {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    33% {
        transform: translate(50px, -60px) scale(1.16);
        opacity: 0.38;
    }
    66% {
        transform: translate(-60px, 35px) scale(0.90);
        opacity: 0.20;
    }
    100% {
        transform: translate(35px, 50px) scale(1.10);
        opacity: 0.34;
    }
}

@keyframes pulseCenterCore {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) scale(1.15);
        opacity: 1.0;
    }
}

@media (max-width: 640px) {
    .ambient-mesh-wrapper {
        height: 500px;
    }
    .ambient-orb {
        filter: blur(60px);
    }
    .ambient-orb-emerald,
    .ambient-orb-teal,
    .ambient-orb-indigo {
        width: 320px;
        height: 320px;
    }
}

/* ==========================================================================
   FEATURE F3: ARC BROWSER HERO MOCKUP STYLING & ANIMATIONS
   ========================================================================== */

.perspective-1000 {
    perspective: 1000px;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes floatBadgeDelayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

.animate-float {
    animation: floatBadge 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatBadgeDelayed 5s ease-in-out 1.5s infinite;
}

.arc-tab-btn.active {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

@media (pointer: coarse), (max-width: 640px) {
    .perspective-1000 {
        perspective: none !important;
    }
    #arc-browser-frame {
        transform: none !important;
    }
}

/* ==========================================================================
   FEATURE F5, F6, F8: WIZARD KEYFRAMES & MOTION TRANSITIONS
   ========================================================================== */

/* Validation Shake Keyframes */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.animate-shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Step Entry Animation */
@keyframes onboardStepIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.onboarding-step:not(.hidden) {
    animation: onboardStepIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Celebratory Launch Transition Keyframes */
@keyframes launchPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    40% {
        transform: scale(1.04);
        box-shadow: 0 0 35px 15px rgba(34, 197, 94, 0.4), 0 0 70px 30px rgba(34, 197, 94, 0.15);
    }
    80% {
        transform: scale(0.98);
        box-shadow: 0 0 15px 5px rgba(34, 197, 94, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes celebratoryPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    60% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.launching-pulse {
    animation: launchPulse 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.celebratory-icon {
    animation: celebratoryPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}


