/* assets/css/apple.css — Strict Palette: Primary #0235f5, Secondary #fdca0a, and Greys */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --apple-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
    
    /* Strict Colors: Primary #0235f5, Secondary #fdca0a, Greys */
    --primary: #0235f5;
    --primary-hover: #012ac4;
    --primary-soft: rgba(2, 53, 245, 0.08);
    --secondary: #fdca0a;
    --secondary-hover: #d89f04;
    --secondary-soft: rgba(253, 202, 10, 0.15);
    
    --apple-blue: #0235f5;
    --apple-blue-hover: #012ac4;
    --apple-blue-soft: rgba(2, 53, 245, 0.08);
    --apple-bg: #F1F1F1;
    --apple-card: rgba(255, 255, 255, 0.94);
    --apple-border: rgba(0, 0, 0, 0.06);
    --apple-text: #111827;
    --apple-text-muted: #6B7280;
    --apple-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    --apple-shadow-hover: 0 20px 30px -4px rgba(2, 53, 245, 0.12), 0 8px 10px -2px rgba(0, 0, 0, 0.03);
}

.dark {
    --apple-bg: #090A0F;
    --apple-card: rgba(18, 20, 29, 0.90);
    --apple-border: rgba(255, 255, 255, 0.08);
    --apple-text: #F9FAFB;
    --apple-text-muted: #9CA3AF;
    --apple-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.45);
    --apple-shadow-hover: 0 20px 36px -4px rgba(2, 53, 245, 0.25);
}

body {
    font-family: var(--apple-font);
    background-color: var(--apple-bg);
    color: var(--apple-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.018em;
    overflow-x: hidden;
}

/* Hugeicons Stroke Utilities */
.hgi-stroke {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

/* Glassmorphism & Apple Liquid Glass Effect Classes */
.apple-glass {
    background: var(--apple-card);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--apple-border);
}

.apple-liquid-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.48) 100%);
    backdrop-filter: blur(32px) saturate(210%);
    -webkit-backdrop-filter: blur(32px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.75), 0 20px 40px -15px rgba(2, 53, 245, 0.10);
}
.dark .apple-liquid-glass {
    background: linear-gradient(135deg, rgba(24, 27, 38, 0.80) 0%, rgba(14, 16, 24, 0.90) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), 0 20px 50px -10px rgba(0, 0, 0, 0.75);
}

.liquid-glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.65) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.92), 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.dark .liquid-glass-card {
    background: linear-gradient(145deg, rgba(26, 30, 44, 0.80) 0%, rgba(16, 19, 29, 0.90) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12), 0 12px 36px -6px rgba(0, 0, 0, 0.5);
}
.liquid-glass-card:hover {
    transform: translateY(-3px);
    border-color: rgba(2, 53, 245, 0.35);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95), 0 24px 44px -8px rgba(2, 53, 245, 0.18);
}
.dark .liquid-glass-card:hover {
    border-color: rgba(253, 202, 10, 0.40);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.20), 0 24px 48px -8px rgba(2, 53, 245, 0.35);
}

/* Floating Ambient Liquid Orbs */
.liquid-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    pointer-events: none;
    opacity: 0.60;
    z-index: 0;
    will-change: transform;
    animation: liquidFloat 18s ease-in-out infinite alternate;
}
.dark .liquid-orb {
    opacity: 0.40;
}

@keyframes liquidFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(30px, -25px) scale(1.08) rotate(180deg);
    }
    100% {
        transform: translate(-25px, 35px) scale(0.94) rotate(360deg);
    }
}

.glass-cockpit {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.70) 100%);
    backdrop-filter: blur(36px) saturate(210%);
    -webkit-backdrop-filter: blur(36px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.90);
    box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.95), 0 24px 60px -15px rgba(2, 53, 245, 0.15), 0 4px 16px -2px rgba(0, 0, 0, 0.04);
}
.dark .glass-cockpit {
    background: linear-gradient(135deg, rgba(20, 24, 36, 0.88) 0%, rgba(12, 14, 22, 0.94) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.20), 0 30px 70px -15px rgba(0, 0, 0, 0.85);
}

.apple-card {
    background: var(--apple-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--apple-border);
    box-shadow: var(--apple-shadow);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--apple-shadow-hover);
    border-color: rgba(2, 53, 245, 0.25);
}

/* Apple Segmented Controls */
.apple-segmented-control {
    background: rgba(118, 118, 128, 0.08);
    border-radius: 9999px;
    padding: 3.5px;
    display: inline-flex;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.dark .apple-segmented-control {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.06);
}

.apple-segmented-item {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 9999px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--apple-text-muted);
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    white-space: nowrap;
}

.apple-segmented-item:hover {
    color: var(--apple-text);
}

.apple-segmented-item.active {
    background: #FFFFFF;
    color: #0235f5;
    box-shadow: 0 2px 8px rgba(2, 53, 245, 0.15), 0 1px 2px rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

.dark .apple-segmented-item.active {
    background: #111827;
    color: #fdca0a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Quick Amount Presets Chips */
.preset-chip {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: rgba(2, 53, 245, 0.06);
    color: #0235f5;
    border: 1px solid rgba(2, 53, 245, 0.18);
    cursor: pointer;
    transition: all 0.15s ease;
}
.preset-chip:hover {
    background: #0235f5;
    color: #FFFFFF;
    transform: scale(1.04);
}
.dark .preset-chip {
    background: rgba(253, 202, 10, 0.10);
    color: #fdca0a;
    border-color: rgba(253, 202, 10, 0.25);
}
.dark .preset-chip:hover {
    background: #fdca0a;
    color: #000000;
}

/* Nav Dropdown Menu & Liquid Sheen */
.apple-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    border-radius: 1.25rem;
    padding: 6px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    z-index: 50;
    transform-origin: top right;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dark .apple-dropdown-menu {
    background: rgba(20, 24, 35, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), 0 24px 50px -10px rgba(0, 0, 0, 0.7);
}

.apple-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--apple-text);
    text-decoration: none;
    transition: all 0.16s ease;
}
.apple-dropdown-item:hover {
    background: rgba(2, 53, 245, 0.08);
    color: #0235f5;
    transform: translateX(2px);
}
.dark .apple-dropdown-item:hover {
    background: rgba(253, 202, 10, 0.12);
    color: #fdca0a;
}

/* Apple Buttons */
.apple-btn-primary {
    background: linear-gradient(135deg, #0235f5 0%, #011f99 100%);
    color: #FFFFFF;
    border-radius: 9999px;
    font-weight: 600;
    padding: 10px 22px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(2, 53, 245, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.apple-btn-primary:hover {
    transform: translateY(-1px) scale(1.015);
    box-shadow: 0 8px 24px rgba(2, 53, 245, 0.42);
    background: linear-gradient(135deg, #2554f7 0%, #0235f5 100%);
}

.apple-btn-primary:active {
    transform: scale(0.985);
}

.apple-btn-secondary {
    background: rgba(118, 118, 128, 0.08);
    color: var(--apple-text);
    border-radius: 9999px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-decoration: none;
}
.dark .apple-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.apple-btn-secondary:hover {
    background: rgba(118, 118, 128, 0.16);
    transform: translateY(-1px);
}

/* Secondary Gold Button */
.apple-btn-secondary-gold {
    background: linear-gradient(135deg, #fdca0a 0%, #d89f04 100%);
    color: #000000;
    border-radius: 9999px;
    font-weight: 700;
    padding: 10px 22px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(253, 202, 10, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.apple-btn-secondary-gold:hover {
    transform: translateY(-1px) scale(1.015);
    box-shadow: 0 8px 22px rgba(253, 202, 10, 0.45);
    background: linear-gradient(135deg, #fde047 0%, #fdca0a 100%);
}

/* Custom Apple Range Slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background: rgba(118, 118, 128, 0.18);
    outline: none;
    transition: background 0.2s;
    cursor: pointer;
}
.dark input[type=range] {
    background: rgba(255, 255, 255, 0.15);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22), 0 0 1px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s, box-shadow 0.15s;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

input[type=range]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22), 0 0 1px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(2, 53, 245, 0.40);
}

input[type=range]::-webkit-slider-thumb:active {
    transform: scale(1.28);
    background: #0235f5;
}

/* Hide Number Input Spinners for Clean Apple Typography */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(118, 118, 128, 0.25);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(118, 118, 128, 0.45);
}

/* Metric Numerals */
.metric-num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "cv01" 1;
    letter-spacing: -0.03em;
}

/* Gradient Texts: Primary #0235f5, Secondary #fdca0a, and Greys */
.text-gradient-blue {
    background: linear-gradient(135deg, #0235f5 0%, #01196b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-secondary, .text-gradient-gold {
    background: linear-gradient(135deg, #fdca0a 0%, #d89f04 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
    background: linear-gradient(135deg, #0235f5 0%, #fdca0a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-emerald {
    background: linear-gradient(135deg, #fdca0a 0%, #0235f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes appleFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apple-animate-in {
    animation: appleFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(2, 53, 245, 0.20);
    }
    50% {
        box-shadow: 0 0 25px rgba(2, 53, 245, 0.45);
    }
}

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

