/* ============================================
   PREMIUM FINTECH EFFECTS
   Advanced visual effects for premium UI
   ============================================ */

/* ============================================
   GLASSMORPHISM UTILITIES
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-subtle {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-strong {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark .glass-subtle {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   GRADIENT UTILITIES
   ============================================ */

.gradient-primary {
    background: linear-gradient(135deg,
            oklch(from var(--primary) l c h) 0%,
            oklch(from var(--primary) calc(l * 1.1) c h) 100%);
}

.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            oklch(from var(--primary) l c h / 0.05) 0%,
            transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

.gradient-border {
    position: relative;
    background: var(--card);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg,
            oklch(from var(--primary) l c h / 0.5) 0%,
            oklch(from var(--primary) l c h / 0.1) 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* ============================================
   ELEVATION SYSTEM
   ============================================ */

.surface-1 {
    background: oklch(0.99 0.002 280);
    box-shadow:
        0 1px 2px 0 rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

.surface-2 {
    background: oklch(0.985 0.003 280);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 2px 4px -1px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

.surface-3 {
    background: oklch(0.98 0.004 280);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 4px 6px -2px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

.dark .surface-1 {
    background: oklch(0.24 0.01 275);
    box-shadow:
        0 1px 2px 0 rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dark .surface-2 {
    background: oklch(0.26 0.012 275);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 2px 4px -1px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dark .surface-3 {
    background: oklch(0.28 0.014 275);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.5),
        0 4px 6px -2px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ============================================
   GLOW EFFECTS
   ============================================ */

.glow-primary {
    box-shadow:
        0 0 20px oklch(from var(--primary) l c h / 0.3),
        0 0 40px oklch(from var(--primary) l c h / 0.1);
}

.glow-hover {
    transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
    box-shadow:
        0 0 20px oklch(from var(--primary) l c h / 0.4),
        0 0 40px oklch(from var(--primary) l c h / 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

.glow-subtle {
    box-shadow: 0 0 30px oklch(from var(--primary) l c h / 0.15);
}

/* ============================================
   SHIMMER EFFECT
   ============================================ */

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 2s infinite;
}

.dark .shimmer::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ============================================
   RIPPLE EFFECT
   ============================================ */

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

.dark .ripple-effect {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   LOADING SKELETONS
   ============================================ */

.skeleton {
    background: linear-gradient(90deg,
            oklch(0.95 0 0) 0%,
            oklch(0.97 0 0) 50%,
            oklch(0.95 0 0) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.dark .skeleton {
    background: linear-gradient(90deg,
            oklch(0.25 0.01 275) 0%,
            oklch(0.28 0.01 275) 50%,
            oklch(0.25 0.01 275) 100%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ============================================
   HOVER LIFT EFFECT
   ============================================ */

.lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lift:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 24px -4px rgba(0, 0, 0, 0.12),
        0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

.lift-subtle {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lift-subtle:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 16px -4px rgba(0, 0, 0, 0.1),
        0 4px 8px -2px rgba(0, 0, 0, 0.06);
}

/* ============================================
   SCALE EFFECTS
   ============================================ */

.scale-hover {
    transition: transform 0.2s ease;
}

.scale-hover:hover {
    transform: scale(1.02);
}

.scale-hover-subtle {
    transition: transform 0.2s ease;
}

.scale-hover-subtle:hover {
    transform: scale(1.01);
}

/* ============================================
   FADE ANIMATIONS
   ============================================ */

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ============================================
   SLIDE ANIMATIONS
   ============================================ */

.slide-in-up {
    animation: slideInUp 0.35s ease-out;
}

.slide-in-down {
    animation: slideInDown 0.35s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   SCALE ANIMATIONS
   ============================================ */

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   PULSE ANIMATION
   ============================================ */

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ============================================
   SPINNER LOADING
   ============================================ */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */

.smooth-scroll {
    scroll-behavior: smooth;
}

/* ============================================
   FOCUS GLOW
   ============================================ */

.focus-glow:focus {
    outline: none;
    box-shadow:
        0 0 0 3px oklch(from var(--primary) l c h / 0.1),
        0 0 0 1px var(--primary);
}

.focus-glow:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px oklch(from var(--primary) l c h / 0.2),
        0 0 0 1px var(--primary),
        0 0 20px oklch(from var(--primary) l c h / 0.3);
}

/* ============================================
   CLEAN FUTURIST TOKENS
   ============================================ */

:root {
    --futurist-bg: #f8fafc;
    --futurist-card: rgba(255, 255, 255, 0.7);
    --futurist-border: rgba(0, 0, 0, 0.04);
    --futurist-border-strong: rgba(0, 0, 0, 0.08);
    --futurist-glow: oklch(from var(--primary) l c h / 0.05);
}

.dark {
    --futurist-bg: #09090b;
    --futurist-card: rgba(24, 24, 27, 0.4);
    --futurist-border: rgba(255, 255, 255, 0.1);
    --futurist-border-strong: rgba(255, 255, 255, 0.2);
    --futurist-glow: oklch(from var(--primary) l c h / 0.15);
}

.futurist-panel {
    background: var(--futurist-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--futurist-border);
    transition: var(--transition);
}

.futurist-panel:hover {
    border-color: var(--futurist-border-strong);
    box-shadow: 0 10px 40px -10px var(--futurist-glow);
}

.high-contrast-border {
    border: 2px solid var(--futurist-border-strong);
}

.deep-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .deep-glass {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-green-red {
    background: linear-gradient(to right, #22c55e, #eab308, #ef4444);
}

.skeleton-pulse {
    animation: skeleton-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }
}