@import url('/assets/stitch-money-variables.css');
/* ==========================================================================
   Creator Cash Flow - Dark Luxury Helper Utilities
   ========================================================================== */

.hidden {
    display: none !important;
}

@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }
    .md\:hidden {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex !important;
    }
    .lg\:hidden {
        display: none !important;
    }
}

body {
    background-color: var(--st-accent) !important;
    color: var(--st-white) !important;
}

.card-shadow {
    box-shadow: 0 4px 30px color-mix(in srgb, var(--st-accent) 40%, transparent);
}

/* 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: var(--st-primary) !important;
    background-color: color-mix(in srgb, var(--st-primary) 8%, transparent) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-primary) 40%, transparent),
                0 10px 30px -5px color-mix(in srgb, var(--st-primary) 30%, transparent),
                0 0 25px color-mix(in srgb, var(--st-primary) 15%, transparent) !important;
}

.onboard-choice-card.active .check-indicator span {
    color: var(--st-primary) !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: color-mix(in srgb, var(--st-primary) 15%, transparent) !important;
    border-color: color-mix(in srgb, var(--st-primary) 40%, transparent) !important;
}

.onboard-choice-card.active .icon-container span {
    color: var(--st-primary) !important;
}

/* Active tab items */
aside nav a.active, .mobile-bottom-nav a.active {
    background-color: color-mix(in srgb, var(--st-white) 5%, transparent) !important;
    border-color: color-mix(in srgb, var(--st-white) 10%, transparent) !important;
    color: var(--st-white) !important;
}

/* Connection platform styling when linked */
.connection-platform-card.connected {
    border-color: var(--st-primary) !important;
    background-color: color-mix(in srgb, var(--st-primary) 3%, transparent) !important;
}

.connection-platform-card.connected .connect-badge {
    background-color: color-mix(in srgb, var(--st-primary) 20%, transparent) !important;
    color: var(--st-primary) !important;
    border-color: var(--st-primary) !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: var(--st-accent) !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: var(--st-accent) !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: color-mix(in srgb, var(--st-primary) 40%, transparent) !important;
    box-shadow: 0 12px 30px -5px color-mix(in srgb, var(--st-accent) 60%, transparent),
                0 0 20px 2px color-mix(in srgb, var(--st-primary) 20%, transparent) !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: color-mix(in srgb, var(--st-accent) 75%, transparent) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid color-mix(in srgb, var(--st-white) 12%, transparent) !important;
    box-shadow: 0 10px 30px -5px color-mix(in srgb, var(--st-accent) 60%, transparent), inset 0 1px 1px 0 color-mix(in srgb, var(--st-white) 15%, transparent) !important;
}

.glass-card {
    background: color-mix(in srgb, var(--st-white) 3%, transparent) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
    border: 1px solid color-mix(in srgb, var(--st-white) 8%, transparent) !important;
    box-shadow: 0 8px 32px 0 color-mix(in srgb, var(--st-accent) 37%, transparent), inset 0 1px 1px 0 color-mix(in srgb, var(--st-white) 10%, transparent) !important;
}

.glass-card-nested {
    background: color-mix(in srgb, var(--st-white) 2%, transparent) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid color-mix(in srgb, var(--st-white) 6%, transparent) !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, color-mix(in srgb, var(--st-primary) 40%, transparent) 0%, color-mix(in srgb, var(--st-primary) 0%, transparent) 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, color-mix(in srgb, var(--st-secondary) 35%, transparent) 0%, color-mix(in srgb, var(--st-secondary) 0%, transparent) 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, color-mix(in srgb, var(--st-secondary) 30%, transparent) 0%, color-mix(in srgb, var(--st-secondary) 0%, transparent) 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, color-mix(in srgb, var(--st-primary) 15%, transparent) 0%, color-mix(in srgb, var(--st-secondary) 8%, transparent) 50%, color-mix(in srgb, var(--st-accent) 0%, transparent) 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: color-mix(in srgb, var(--st-white) 8%, transparent) !important;
    border-color: color-mix(in srgb, var(--st-white) 12%, transparent) !important;
    color: var(--st-white) !important;
}

/* 3D iPhone 16 Pro Titanium Styling */
.perspective-1200 {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.iphone-chassis {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    will-change: transform, box-shadow;
}

.iphone-chassis:hover {
    transform: rotateY(-3deg) rotateX(3deg) translateY(-4px);
    box-shadow: 0 35px 100px -15px color-mix(in srgb, var(--st-primary) 25%, transparent), 0 30px 80px color-mix(in srgb, var(--st-accent) 90%, transparent);
}

@media (pointer: coarse), (max-width: 640px) {
    .perspective-1000, .perspective-1200 {
        perspective: none !important;
    }
    #arc-browser-frame, .iphone-chassis {
        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 color-mix(in srgb, var(--st-primary) 60%, transparent);
    }
    40% {
        transform: scale(1.04);
        box-shadow: 0 0 35px 15px color-mix(in srgb, var(--st-primary) 40%, transparent), 0 0 70px 30px color-mix(in srgb, var(--st-primary) 15%, transparent);
    }
    80% {
        transform: scale(0.98);
        box-shadow: 0 0 15px 5px color-mix(in srgb, var(--st-primary) 20%, transparent);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--st-primary) 0%, transparent);
    }
}

@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;
}

/* ==========================================================================
   MOBILE LUXURY OPTIMIZATIONS & SMARTPHONE TOUCH EXPERIENCE
   ========================================================================== */

/* 1. Universal Native Touch Physics & High-DPI Rendering */
html {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button, a, .onboard-choice-card, .admin-tab-btn, .mobile-nav-item {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

/* 2. Responsive Floating Badges & Anti-Overflow Guard */
@media (max-width: 640px) {
    .floating-badge.badge-top-right {
        top: -12px !important;
        right: 8px !important;
        padding: 6px 10px !important;
        transform: scale(0.88) !important;
        transform-origin: top right !important;
    }
    
    .floating-badge.badge-bottom-left {
        bottom: -12px !important;
        left: 8px !important;
        padding: 6px 10px !important;
        transform: scale(0.88) !important;
        transform-origin: bottom left !important;
    }

    .marketing-page-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .glass-pill-nav {
        padding: 8px 12px !important;
        border-radius: 9999px !important;
    }

    /* Onboarding Card on Mobile */
    #onboard-card {
        width: 95% !important;
        max-height: 90vh !important;
        padding: 20px 16px !important;
        margin: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile Table Scroll Wrappers */
    .table-responsive-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        margin-left: -8px;
        margin-right: -8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Mobile Bottom Navigation with iPhone Safe Area Insets */
    .mobile-bottom-nav {
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
        background: color-mix(in srgb, var(--st-accent) 88%, transparent) !important;
        backdrop-filter: blur(24px) saturate(190%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
        box-shadow: 0 -10px 30px color-mix(in srgb, var(--st-accent) 70%, transparent), inset 0 1px 0 color-mix(in srgb, var(--st-white) 10%, transparent) !important;
    }
    
    .mobile-nav-item {
        min-height: 48px;
        padding: 6px 12px;
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .mobile-nav-item.active {
        color: var(--st-primary) !important;
        background: color-mix(in srgb, var(--st-primary) 12%, transparent) !important;
    }

    .mobile-nav-item.active span {
        color: var(--st-primary) !important;
    }

    /* Admin Navigation Scrollbar Hidden on Mobile */
    .admin-tab-strip {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        padding-bottom: 6px !important;
        width: 100% !important;
    }
    
    .admin-tab-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

/* Custom Scrollbar Utility */
@supports not (scrollbar-width: none) {
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   EDITORIAL HERO 3-SCENE ANIMATION & MOTION SYSTEM
   ========================================================================== */

/* Scene transitions */
.hero-scene-container {
    position: relative;
    min-height: 290px;
}

.hero-scene {
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.hero-scene.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.hero-scene.inactive {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

/* Scene Switcher Pills */
.scene-pill {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-pill.active {
    background-color: color-mix(in srgb, var(--st-white) 12%, transparent) !important;
    border-color: color-mix(in srgb, var(--st-primary) 50%, transparent) !important;
    color: var(--st-white) !important;
    box-shadow: 0 0 20px color-mix(in srgb, var(--st-primary) 20%, transparent);
}

.scene-pill.active .scene-dot {
    background-color: var(--st-primary) !important;
    box-shadow: 0 0 10px var(--st-primary);
}

/* Waterfall Flow Connectors (Scene C) */
.waterfall-step {
    position: relative;
    transition: all 0.3s ease;
}

.waterfall-step:not(:last-child)::after {
    content: '↓';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: color-mix(in srgb, var(--st-white) 30%, transparent);
    font-weight: 900;
}

/* ==========================================================================
   ANIMATED MONEY FLOW PARTICLES & STREAMS
   ========================================================================== */

@keyframes moneyStreamFlow {
    from {
        stroke-dashoffset: 40;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.money-flow-line {
    stroke-dasharray: 6 6;
    animation: moneyStreamFlow 1.2s linear infinite;
}

/* Editorial 01 / 02 / 03 Numbering */
.editorial-num {
    font-family:var(--st-font);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, color-mix(in srgb, var(--st-white) 50%, transparent) 0%, color-mix(in srgb, var(--st-white) 8%, transparent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Magnetic Button Hover Physics */
.btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-magnetic:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px -5px color-mix(in srgb, var(--st-primary) 40%, transparent);
}

.btn-magnetic:active {
    transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   CREATOR HEALTH SCORE & FINANCIAL READINESS DESIGN SYSTEM
   ========================================================================== */

.health-score-badge {
    background: radial-gradient(circle at top right, color-mix(in srgb, var(--st-primary) 25%, transparent), transparent 70%),
                color-mix(in srgb, var(--st-accent) 80%, transparent);
    border: 1px solid color-mix(in srgb, var(--st-primary) 40%, transparent);
    box-shadow: 0 8px 32px 0 color-mix(in srgb, var(--st-primary) 15%, transparent);
}

.readiness-check-item {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.readiness-check-item:hover {
    background: color-mix(in srgb, var(--st-white) 5%, transparent);
    border-color: color-mix(in srgb, var(--st-white) 15%, transparent);
    transform: translateX(3px);
}

.records-stat-card {
    background: linear-gradient(135deg, color-mix(in srgb, var(--st-white) 4%, transparent) 0%, color-mix(in srgb, var(--st-white) 1%, transparent) 100%);
    border: 1px solid color-mix(in srgb, var(--st-white) 8%, transparent);
    transition: all 0.25s ease;
}

.records-stat-card:hover {
    border-color: color-mix(in srgb, var(--st-primary) 30%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--st-accent) 50%, transparent);
}

/* ==========================================================================
   MODERN LUXURY ANIMATION & MOTION SYSTEM
   ========================================================================== */

/* 1. Ambient Background Mesh Glow Orbs */
.ambient-glow-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
    animation: meshBreathe 10s ease-in-out infinite alternate;
}

@keyframes meshBreathe {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.25;
    }
    50% {
        transform: translate3d(30px, -25px, 0) scale(1.15);
        opacity: 0.45;
    }
    100% {
        transform: translate3d(-20px, 20px, 0) scale(0.95);
        opacity: 0.3;
    }
}

/* 2. Floating Levitation for Badges & Mockup Cards */
.levitate-slow {
    animation: levitate 5s ease-in-out infinite;
    will-change: transform;
}

.levitate-reverse {
    animation: levitate 6s ease-in-out 1.5s infinite reverse;
    will-change: transform;
}

@keyframes levitate {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* 3. Stream Pulse Signals on Platform Nodes */
.stream-node-pulse {
    position: relative;
}

.stream-node-pulse::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid color-mix(in srgb, var(--st-primary) 60%, transparent);
    opacity: 0;
    animation: streamRingPulse 2.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes streamRingPulse {
    0% {
        transform: scale(0.96);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.08);
        opacity: 0;
    }
    100% {
        transform: scale(1.12);
        opacity: 0;
    }
}

/* 5. Scroll-Driven Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.24s;
}

.reveal-delay-3 {
    transition-delay: 0.36s;
}

/* 6. Subtle Shimmer Effect on Editorial Headings */
.shimmer-text {
    background: linear-gradient(
        110deg,
        var(--st-white) 0%,
        var(--st-white) 40%,
        var(--st-primary) 50%,
        var(--st-white) 60%,
        var(--st-white) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 75% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 7. Interactive Spotlight Glare on Hover */
.glass-card-interactive {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-interactive:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--st-white) 20%, transparent);
    box-shadow: 0 20px 40px -15px color-mix(in srgb, var(--st-accent) 70%, transparent), 0 0 30px -10px color-mix(in srgb, var(--st-primary) 15%, transparent);
}

/* 8. Pulsing Status Dots */
.live-beacon {
    position: relative;
}

.live-beacon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 9999px;
    background-color: inherit;
    opacity: 0.4;
    animation: beaconPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beaconPing {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    75%, 100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* 9. Card Pop-Up Entrance Animation */
@keyframes cardPopUp {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.95);
        filter: blur(4px);
    }
    65% {
        transform: translateY(-2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.card-popup {
    animation: cardPopUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}

.stagger-1 { animation-delay: 0.04s; }
.stagger-2 { animation-delay: 0.09s; }
.stagger-3 { animation-delay: 0.14s; }
.stagger-4 { animation-delay: 0.19s; }
.stagger-5 { animation-delay: 0.24s; }
.stagger-6 { animation-delay: 0.29s; }

/* ==========================================================================
   10. App Loading Screen & Icon Assembly Motion
   ========================================================================== */
#app-loading-screen {
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#app-loading-screen.dismissed {
    opacity: 0 !important;
    transform: scale(1.05) !important;
    pointer-events: none !important;
}

.loader-nexus-core {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--st-primary) 35%, transparent), color-mix(in srgb, var(--st-accent) 95%, transparent));
    border: 1px solid color-mix(in srgb, var(--st-primary) 40%, transparent);
    box-shadow: 0 0 50px color-mix(in srgb, var(--st-primary) 30%, transparent), inset 0 1px 2px color-mix(in srgb, var(--st-white) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nexusGlow 2s ease-in-out infinite alternate;
}

@keyframes nexusGlow {
    0% {
        box-shadow: 0 0 30px color-mix(in srgb, var(--st-primary) 25%, transparent), inset 0 1px 2px color-mix(in srgb, var(--st-white) 30%, transparent);
        transform: scale(0.98);
    }
    100% {
        box-shadow: 0 0 60px color-mix(in srgb, var(--st-primary) 50%, transparent), inset 0 1px 2px color-mix(in srgb, var(--st-white) 50%, transparent);
        transform: scale(1.04);
    }
}

.converging-icon {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--st-white) 15%, transparent);
    box-shadow: 0 10px 25px color-mix(in srgb, var(--st-accent) 50%, transparent);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-yt {
    background: color-mix(in srgb, var(--st-primary) 18%, transparent);
    border-color: color-mix(in srgb, var(--st-primary) 40%, transparent);
    color: var(--st-primary);
    top: -30px;
    left: 29px;
    animation: convergeTop 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.icon-tt {
    background: color-mix(in srgb, var(--st-secondary) 18%, transparent);
    border-color: color-mix(in srgb, var(--st-secondary) 40%, transparent);
    color: var(--st-secondary);
    top: 5px;
    right: -32px;
    animation: convergeRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.icon-ig {
    background: color-mix(in srgb, var(--st-primary) 18%, transparent);
    border-color: color-mix(in srgb, var(--st-primary) 40%, transparent);
    color: var(--st-primary);
    bottom: -28px;
    right: -10px;
    animation: convergeBottomRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.icon-sp {
    background: color-mix(in srgb, var(--st-secondary) 18%, transparent);
    border-color: color-mix(in srgb, var(--st-secondary) 40%, transparent);
    color: var(--st-secondary);
    bottom: -28px;
    left: -10px;
    animation: convergeBottomLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.icon-pt {
    background: color-mix(in srgb, var(--st-primary) 18%, transparent);
    border-color: color-mix(in srgb, var(--st-primary) 40%, transparent);
    color: var(--st-primary);
    top: 5px;
    left: -32px;
    animation: convergeLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

@keyframes convergeTop {
    0% { transform: translateY(-70px) scale(0.4); opacity: 0; }
    70% { transform: translateY(6px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes convergeRight {
    0% { transform: translate(70px, -20px) scale(0.4); opacity: 0; }
    70% { transform: translate(-6px, 2px) scale(1.1); opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes convergeBottomRight {
    0% { transform: translate(60px, 60px) scale(0.4); opacity: 0; }
    70% { transform: translate(-5px, -5px) scale(1.1); opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes convergeBottomLeft {
    0% { transform: translate(-60px, 60px) scale(0.4); opacity: 0; }
    70% { transform: translate(5px, -5px) scale(1.1); opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes convergeLeft {
    0% { transform: translate(-70px, -20px) scale(0.4); opacity: 0; }
    70% { transform: translate(6px, 2px) scale(1.1); opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

.loader-progress-bar {
    width: 0%;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}



/* ==========================================================================
   GLASSMORPHISM OVERRIDES (Premium Fintech Aesthetic)
   ========================================================================== */

/* 1. The Global Header */
.public-header {
    background: color-mix(in srgb, var(--st-accent) 60%, transparent) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--st-white) 8%, transparent) !important;
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

/* 2. Modals (Invite Modal, Content Rooms) */
.modal-content, .codex-modal {
    background: color-mix(in srgb, var(--st-accent) 65%, transparent) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid color-mix(in srgb, var(--st-white) 12%, transparent) !important;
    box-shadow: 0 24px 64px color-mix(in srgb, var(--st-accent) 80%, transparent), inset 0 1px 0 color-mix(in srgb, var(--st-white) 10%, transparent) !important;
    border-radius: 24px !important;
}

/* 3. Dashboard Panels / Cards */
.hq-panel, .glass-card, .onboard-choice-card, .card-shadow {
    background: color-mix(in srgb, var(--st-accent) 40%, transparent) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid color-mix(in srgb, var(--st-white) 6%, transparent) !important;
    box-shadow: 0 8px 32px color-mix(in srgb, var(--st-accent) 40%, transparent) !important;
    transition: all 0.3s ease !important;
}

.hq-panel:hover, .glass-card:hover, .onboard-choice-card:hover {
    background: color-mix(in srgb, var(--st-panel) 50%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--st-white) 15%, transparent) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 48px color-mix(in srgb, var(--st-primary) 5%, transparent), 0 8px 24px color-mix(in srgb, var(--st-accent) 60%, transparent) !important;
}

/* 4. Glassy Inputs & Form Fields */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select, textarea, .copy-link-box input {
    background: color-mix(in srgb, var(--st-white) 3%, transparent) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid color-mix(in srgb, var(--st-white) 10%, transparent) !important;
    color: var(--st-white) !important;
    transition: all 0.2s ease !important;
}

input:focus, select:focus, textarea:focus {
    background: color-mix(in srgb, var(--st-white) 6%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--st-primary) 40%, transparent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-primary) 10%, transparent) !important;
    outline: none !important;
}
/* ==========================================================================
   AMBIENT MESH BACKGROUND & FULL GLASSMORPHISM
   ========================================================================== */

/* 1. Ambient Background Glows */
body {
    background: var(--st-accent) !important;
    position: relative;
    overflow-x: hidden;
}

body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: pulseGlow 15s ease-in-out infinite alternate;
}

body::before {
    width: 600px;
    height: 600px;
    background: color-mix(in srgb, var(--st-primary) 15%, transparent); /* Emerald glow */
    top: -200px;
    left: -200px;
}

body::after {
    width: 500px;
    height: 500px;
    background: color-mix(in srgb, var(--st-secondary) 15%, transparent); /* Deep blue glow */
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.2) translate(50px, -20px); opacity: 0.5; }
    100% { transform: scale(0.9) translate(-30px, 40px); opacity: 0.3; }
}

/* 2. Glassmorphism Everywhere */
.hq-form, .hq-insight-strip article, .pilot-auth-panel, .pilot-auth-story {
    background: color-mix(in srgb, var(--st-accent) 40%, transparent) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid color-mix(in srgb, var(--st-white) 8%, transparent) !important;
    box-shadow: 0 16px 40px color-mix(in srgb, var(--st-accent) 50%, transparent) !important;
    border-radius: 24px;
}

/* 3. Premium Segmented Control (Replacing the ugly Select dropdown) */
.role-segmented-control {
    display: flex;
    gap: 8px;
    background: color-mix(in srgb, var(--st-accent) 40%, transparent);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--st-white) 5%, transparent);
    margin-bottom: 16px;
}

.role-segmented-control label {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
    margin: 0 !important;
}

.role-segmented-control input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-segmented-control span.role-btn {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--st-line);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
}

.role-segmented-control input[type="radio"]:checked + span.role-btn {
    background: color-mix(in srgb, var(--st-white) 10%, transparent);
    color: var(--st-white);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--st-accent) 40%, transparent);
    border: 1px solid color-mix(in srgb, var(--st-white) 10%, transparent);
}

/* Fix focus rings */
input:focus-visible, .role-segmented-control input:focus-visible + span {
    outline: 2px solid color-mix(in srgb, var(--st-primary) 50%, transparent) !important;
    outline-offset: 2px;
}
/* ==========================================================================
   SCROLL ANIMATIONS & REVEALS
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals for grids */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Product polish: depth is reserved for hierarchy, not decoration. */
html { scroll-behavior: smooth; }
/* Keep arrow glyphs typographic on Android/iOS instead of falling back to emoji. */
body, button, a, .cc-btn, .cc-link, .panel-link { font-variant-emoji: text; }
.public-header { isolation: isolate; }
.public-header::after { content:''; position:absolute; inset:auto 4% -1px; height:1px; background:linear-gradient(90deg,transparent,color-mix(in srgb, var(--st-primary) 55.00000000000001%, transparent),transparent); opacity:.7; }
.ce-hero { position:relative; overflow:hidden; }
.ce-hero::before { content:''; position:absolute; width:40rem; height:40rem; right:-16rem; top:-23rem; border:1px solid color-mix(in srgb, var(--st-primary) 16%, transparent); border-radius:50%; box-shadow:0 0 0 72px color-mix(in srgb, var(--st-primary) 2.5%, transparent),0 0 0 144px color-mix(in srgb, var(--st-primary) 1.7999999999999998%, transparent); pointer-events:none; }
.ce-hero-copy h1 { text-wrap:balance; }.ce-hero-copy p { max-width:34rem; }
.ce-product-stage { transform-style:preserve-3d; animation:ccf-stage-float 7s ease-in-out infinite; }
.ce-stage-main,.ce-float-card { backdrop-filter:blur(18px) saturate(130%); -webkit-backdrop-filter:blur(18px) saturate(130%); }
.ce-float-card { animation:ccf-card-drift 6s ease-in-out infinite alternate; }.ce-float-payment { animation-delay:-2.5s; }
.ce-role { position:relative; overflow:hidden; }.ce-role::after { content:''; position:absolute; inset:auto 0 0; height:2px; background:linear-gradient(90deg,var(--cc-accent),transparent); opacity:0; transition:opacity .25s ease; }.ce-role:hover::after { opacity:1; }.ce-role:hover { transform:translateY(-5px); }
.cc-demo-shell { background-image:linear-gradient(color-mix(in srgb, var(--st-white) 1.7000000000000002%, transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb, var(--st-white) 1.7000000000000002%, transparent) 1px,transparent 1px); background-size:42px 42px; }
.cc-demo-main .cc-metric,.cc-demo-main .cc-box,.cc-demo-main .cc-campaign-banner { box-shadow:0 18px 45px color-mix(in srgb, var(--st-accent) 18%, transparent); }.cc-demo-main .cc-metric:hover { transform:translateY(-3px); transition:transform .22s ease; }
@keyframes ccf-stage-float { 0%,100%{transform:translateY(0) rotateX(0)} 50%{transform:translateY(-10px) rotateX(1deg)} } @keyframes ccf-card-drift { from{transform:translate3d(0,0,0)} to{transform:translate3d(0,-8px,0)} }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; } }
@media(max-width:700px){ .public-header::after{inset-inline:18px}.ce-hero::before{right:-27rem}.ce-product-stage,.ce-float-card{animation:none} }

/* Brand and agency workspaces: a focused operational view rather than an empty state. */
.role-workspace{background:var(--st-accent);min-height:100vh}.role-workspace-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 68px)}.role-rail{padding:30px 14px;border-right:1px solid var(--st-panel);background:color-mix(in srgb, var(--st-accent) 76%, transparent)}.role-rail .cc-kicker{display:block;margin:0 12px 18px;color:var(--st-primary)}.role-rail button{display:flex;width:100%;align-items:center;justify-content:space-between;border:0;background:transparent;color:var(--st-line);padding:12px;border-radius:10px;text-align:left;font:600 13px inherit;cursor:pointer}.role-rail button:hover,.role-rail button.is-active{color:var(--st-paper);background:color-mix(in srgb, var(--st-primary) 10%, transparent)}.role-rail button b{display:grid;place-items:center;min-width:20px;height:20px;border-radius:10px;background:var(--st-panel);color:var(--st-primary);font-size:10px}.role-rail>div{margin:32px 8px 0;padding:16px;border-top:1px solid var(--st-panel)}.role-rail small,.role-rail span{display:block;color:var(--st-line);font-size:10px}.role-rail strong{display:block;margin:7px 0;color:var(--st-paper);font-size:20px}.role-content{max-width:1440px;width:100%;margin:auto;padding:30px clamp(22px,4vw,60px) 80px}.role-context{display:flex;justify-content:space-between;color:var(--st-line);font-size:10px;letter-spacing:1px;text-transform:uppercase}.role-context span{display:flex;gap:8px;align-items:center}.role-context i{width:7px;height:7px;border-radius:50%;background:var(--st-primary);box-shadow:0 0 0 5px color-mix(in srgb, var(--st-primary) 10%, transparent)}.role-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;padding:30px 0;border-bottom:1px solid var(--st-panel)}.role-heading h1{margin:8px 0 12px;font-size:clamp(38px,5vw,66px);line-height:.98;letter-spacing:-3px}.role-heading h1 em{color:var(--st-primary);font-style:normal}.role-heading p{max-width:540px;margin:0;color:var(--st-line)}.role-metrics{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:14px;margin:18px 0}.role-metric,.role-panel{border:1px solid var(--st-panel);border-radius:18px;background:color-mix(in srgb, var(--st-panel) 82%, transparent);box-shadow:0 20px 50px color-mix(in srgb, var(--st-accent) 18%, transparent)}.role-metric{padding:22px}.role-metric span,.role-metric small{display:block;color:var(--st-line);font-size:11px}.role-metric strong{display:block;margin:14px 0 7px;color:var(--st-paper);font-size:clamp(28px,3vw,42px);letter-spacing:-1.5px}.role-metric-hero{background:radial-gradient(circle at 88% 16%,color-mix(in srgb, var(--st-primary) 16%, transparent),transparent 32%),linear-gradient(135deg,var(--st-panel),var(--st-accent))}.role-metric .up{color:var(--st-primary)}.metric-bar{height:5px;border-radius:5px;margin-top:22px;background:var(--st-muted);overflow:hidden}.metric-bar i{display:block;height:100%;background:var(--st-primary);border-radius:inherit}.role-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.role-panel{padding:23px}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:18px}.panel-head h2{margin:6px 0 0;font-size:19px}.creative-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:15px 0;border-top:1px solid var(--st-panel)}.creative-row strong,.creative-row small{display:block}.creative-row small{margin-top:4px;color:var(--st-line);font-size:11px}.role-avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;border:1px solid var(--st-secondary);background:var(--st-panel);color:var(--st-secondary);font-size:10px}.role-avatar.alt{border-color:var(--st-primary);background:var(--st-panel);color:var(--st-primary)}.panel-link{border:0;background:transparent;padding:16px 0 0;color:var(--st-primary);font:600 12px inherit;cursor:pointer}.role-timeline{list-style:none;margin:5px 0 0;padding:0}.role-timeline li{display:flex;gap:12px;min-height:62px;color:var(--st-line)}.role-timeline i{display:grid;place-items:center;flex:0 0 auto;width:25px;height:25px;border:1px solid var(--st-muted);border-radius:50%;font-style:normal;font-size:10px}.role-timeline b,.role-timeline small{display:block}.role-timeline b{color:var(--st-line);font-size:13px}.role-timeline small{margin-top:4px;font-size:11px}.role-timeline .done i{background:var(--st-panel);color:var(--st-primary);border-color:var(--st-muted)}.role-timeline .current{color:var(--st-paper)}.role-timeline .current i{background:var(--st-primary);color:var(--st-panel);border-color:var(--st-primary)}.role-sheet{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:18px;background:color-mix(in srgb, var(--st-accent) 72%, transparent);backdrop-filter:blur(12px)}.role-sheet[hidden]{display:none}.role-sheet>div{position:relative;width:min(600px,100%);padding:30px;border:1px solid var(--st-muted);border-radius:22px;background:var(--st-accent);box-shadow:0 30px 90px color-mix(in srgb, var(--st-accent) 60%, transparent)}.sheet-close{position:absolute;right:16px;top:12px;border:0;background:none;color:var(--st-line);font-size:27px;cursor:pointer}.role-sheet h2{margin:10px 0}.role-sheet p{color:var(--st-line)}.sheet-preview{display:grid;place-items:center;height:220px;margin:24px 0;border-radius:16px;background:radial-gradient(circle,color-mix(in srgb, var(--st-primary) 20%, transparent),transparent 16%),linear-gradient(135deg,var(--st-panel),var(--st-accent))}.sheet-preview span{position:absolute;align-self:end;justify-self:start;margin:16px;color:var(--st-line);font-size:10px;letter-spacing:1px}.sheet-preview button{width:60px;height:60px;border:0;border-radius:50%;background:var(--st-primary);color:var(--st-panel);font-size:18px}.sheet-actions{display:flex;justify-content:flex-end;gap:10px}

/* One shared glass layer for high-level workspace cards. Dense data stays solid. */
.role-metric,.role-panel,.cc-demo-main .cc-metric,.cc-demo-main .cc-box,.cc-demo-main .cc-campaign-banner{position:relative;overflow:hidden;background:linear-gradient(135deg,color-mix(in srgb, var(--st-panel) 72%, transparent),color-mix(in srgb, var(--st-accent) 60%, transparent))!important;border-color:color-mix(in srgb, var(--st-paper) 14.000000000000002%, transparent)!important;backdrop-filter:blur(18px) saturate(135%);-webkit-backdrop-filter:blur(18px) saturate(135%);box-shadow:0 22px 56px color-mix(in srgb, var(--st-accent) 24%, transparent),inset 0 1px color-mix(in srgb, var(--st-white) 7.000000000000001%, transparent)}.role-metric::before,.role-panel::before,.cc-demo-main .cc-metric::before,.cc-demo-main .cc-box::before,.cc-demo-main .cc-campaign-banner::before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,color-mix(in srgb, var(--st-white) 7.000000000000001%, transparent),transparent 34%);opacity:.72}.role-metric:hover,.role-panel:hover,.cc-demo-main .cc-metric:hover,.cc-demo-main .cc-box:hover{border-color:color-mix(in srgb, var(--st-primary) 30%, transparent)!important;box-shadow:0 28px 66px color-mix(in srgb, var(--st-accent) 30%, transparent),0 0 0 1px color-mix(in srgb, var(--st-primary) 5%, transparent),inset 0 1px color-mix(in srgb, var(--st-white) 9%, transparent)}
@media(max-width:900px){.role-workspace-shell{grid-template-columns:1fr}.role-rail{display:flex;align-items:center;gap:5px;overflow:auto;padding:10px;border-right:0;border-bottom:1px solid var(--st-panel)}.role-rail .cc-kicker,.role-rail>div{display:none}.role-rail button{width:auto;white-space:nowrap}.role-metrics,.role-grid{grid-template-columns:1fr}.role-metric-hero{min-height:150px}}@media(max-width:620px){.role-content{padding:22px 16px 56px}.role-context small{display:none}.role-heading{display:block;padding:24px 0}.role-heading .cc-btn{margin-top:18px}.role-heading h1{font-size:43px;letter-spacing:-2px}.role-metrics{gap:10px}.role-metric,.role-panel{padding:17px;border-radius:15px}.creative-row{grid-template-columns:auto minmax(0,1fr) auto}.creative-row .cc-btn{grid-column:2/-1;width:100%}.sheet-actions{display:grid;grid-template-columns:1fr}.sheet-actions .cc-btn{width:100%}}

/* Mobile tap targets — WCAG 2.5.8 (>=24px) / Apple HIG (44px): header, footer, prose and form links + buttons */
@media (max-width: 640px) {
  .public-header a:not(.cc-btn), .customer-footer a, .invite-header a, .campaign-header a,
  .ccf-n-request a, .customer-main a:not(.cc-btn), .campaign-root a:not(.cc-btn) { min-height: 44px; display: inline-flex; align-items: center; }
  button:not(.admin-tab-btn) { min-height: 44px; }
}
