/*
 * FreeFall Theme - Centralized Design System
 * ===========================================
 * All colors, animations, and utilities in one place.
 * Change the CSS variables below to rebrand the entire site.
 */

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */
:root {
    /* Background colors */
    --bg-void: #050507;
    --bg-dark: #0a0b0f;
    --bg-surface: #111318;
    --bg-elevated: #1a1c24;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --text-disabled: #3f3f46;
    
    /* Accent colors (pastels) */
    --accent-blue: #7dd3fc;
    --accent-blue-muted: rgba(125, 211, 252, 0.15);
    --accent-yellow: #fde68a;
    --accent-yellow-muted: rgba(253, 230, 138, 0.15);
    --accent-red: #fca5a5;
    --accent-red-muted: rgba(252, 165, 165, 0.15);
    --accent-green: #86efac;
    --accent-green-muted: rgba(134, 239, 172, 0.15);
    
    /* Border & glow */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    --glow-white: rgba(255, 255, 255, 0.08);
    --glow-blue: rgba(125, 211, 252, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.05);
    
    /* Animation timing - Smoother curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-freefall: cubic-bezier(0.55, 0, 0.1, 1);
    
    /* Transition durations */
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    
    /* Spacing */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* ========================================
   BASE STYLES
   ======================================== */
body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent-blue);
    color: var(--bg-void);
}

/* ========================================
   BACKGROUND EFFECTS
   ======================================== */

/* Gradient background */
.bg-freefall {
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(125, 211, 252, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-void) 0%, var(--bg-dark) 50%, var(--bg-surface) 100%);
    min-height: 100vh;
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 3;
}

/* Falling elements container */
.falling-elements {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

/* Individual falling man silhouette */
.falling-man {
    position: absolute;
    width: 30px;
    height: auto;
    opacity: 0.08;
    filter: invert(1);
    animation: fall linear infinite;
    will-change: transform;
}

.falling-man:nth-child(1) { left: 5%; animation-duration: 25s; animation-delay: 0s; width: 20px; }
.falling-man:nth-child(2) { left: 15%; animation-duration: 30s; animation-delay: -5s; width: 25px; }
.falling-man:nth-child(3) { left: 25%; animation-duration: 22s; animation-delay: -10s; width: 18px; }
.falling-man:nth-child(4) { left: 35%; animation-duration: 28s; animation-delay: -3s; width: 22px; }
.falling-man:nth-child(5) { left: 45%; animation-duration: 26s; animation-delay: -8s; width: 24px; }
.falling-man:nth-child(6) { left: 55%; animation-duration: 32s; animation-delay: -15s; width: 20px; }
.falling-man:nth-child(7) { left: 65%; animation-duration: 24s; animation-delay: -12s; width: 28px; }
.falling-man:nth-child(8) { left: 75%; animation-duration: 29s; animation-delay: -7s; width: 22px; }
.falling-man:nth-child(9) { left: 85%; animation-duration: 27s; animation-delay: -20s; width: 26px; }
.falling-man:nth-child(10) { left: 95%; animation-duration: 31s; animation-delay: -18s; width: 19px; }

/* Falling particles */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: fall-particle linear infinite;
}

.particle:nth-child(odd) { width: 2px; height: 2px; opacity: 0.15; }
.particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: -3s; }
.particle:nth-child(3) { left: 30%; animation-duration: 12s; animation-delay: -6s; }
.particle:nth-child(4) { left: 40%; animation-duration: 20s; animation-delay: -2s; }
.particle:nth-child(5) { left: 50%; animation-duration: 16s; animation-delay: -8s; }
.particle:nth-child(6) { left: 60%; animation-duration: 14s; animation-delay: -4s; }
.particle:nth-child(7) { left: 70%; animation-duration: 19s; animation-delay: -10s; }
.particle:nth-child(8) { left: 80%; animation-duration: 17s; animation-delay: -1s; }
.particle:nth-child(9) { left: 90%; animation-duration: 13s; animation-delay: -7s; }

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

/* Falling animation */
@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.08;
    }
    95% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(15deg);
        opacity: 0;
    }
}

@keyframes fall-particle {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(calc(100vh + 20px));
        opacity: 0;
    }
}

/* Gravity drop-in effect */
@keyframes gravity-drop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Subtle pulse */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Glow pulse */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--glow-white);
    }
    50% {
        box-shadow: 0 0 40px var(--glow-white), 0 0 60px var(--glow-blue);
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Spin */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Wind sway - subtle air resistance effect */
@keyframes wind-sway-subtle {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(1px) rotate(0.2deg); }
    50% { transform: translateX(-1px) rotate(-0.1deg); }
    75% { transform: translateX(0.5px) rotate(0.1deg); }
}

@keyframes wind-sway-medium {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(2px) rotate(0.3deg); }
    40% { transform: translateX(-1px) rotate(-0.2deg); }
    60% { transform: translateX(1.5px) rotate(0.2deg); }
    80% { transform: translateX(-0.5px) rotate(-0.1deg); }
}

/* Air drift - floating in wind */
@keyframes air-drift {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-3px) translateX(2px); }
    50% { transform: translateY(-1px) translateX(-1px); }
    75% { transform: translateY(-2px) translateX(1px); }
}

/* Breathe - subtle scale pulsing like air movement */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Turbulence - quick jitter for action states */
@keyframes turbulence {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1px, 1px); }
    20% { transform: translate(1px, -1px); }
    30% { transform: translate(-1px, -1px); }
    40% { transform: translate(1px, 1px); }
    50% { transform: translate(0, -1px); }
    60% { transform: translate(-1px, 0); }
    70% { transform: translate(1px, 0); }
    80% { transform: translate(0, 1px); }
    90% { transform: translate(-1px, 1px); }
}

/* ========================================
   ANIMATION UTILITIES
   ======================================== */
.animate-gravity-drop {
    opacity: 1;
}

.animate-float {
    /* Disabled — was causing re-animation on navigation */
}

.animate-pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 4s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent 0%, var(--glow-white) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-wind-sway {
    /* Disabled — was causing odd motion on hover/refresh */
}

.animate-wind-sway-hover:hover {
    /* Disabled */
}

.animate-air-drift {
    /* Disabled — was causing odd motion */
}

.animate-breathe {
    /* Disabled — was causing odd pulsing */
}

/* Stagger children — items are immediately visible, no entrance animation */
.stagger-children > * {
    opacity: 1;
}

/* ========================================
   GLASS CARD COMPONENTS
   ======================================== */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-smooth);
    will-change: transform, box-shadow;
}

.card-glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-default);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-glass-static {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

/* Glowing border card */
.card-glow {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--border-strong) 0%, transparent 50%, var(--border-subtle) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
    cursor: pointer;
    border: none;
    outline: none;
    will-change: transform, box-shadow;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Primary button - white */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-void);
}

.btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md), 0 0 25px var(--glow-white), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    transition-duration: var(--duration-fast);
}

/* Secondary button - ghost */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
    transition-duration: var(--duration-fast);
}

/* Danger button */
.btn-danger {
    background: var(--accent-red-muted);
    color: var(--accent-red);
    border: 1px solid rgba(252, 165, 165, 0.2);
}

.btn-danger:hover {
    background: rgba(252, 165, 165, 0.25);
    border-color: var(--accent-red);
}

/* Ghost button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-ghost:active {
    transform: translateY(0);
    transition-duration: var(--duration-fast);
}

/* Small button */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Large button */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ========================================
   FORM INPUTS
   ======================================== */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.input::placeholder {
    color: var(--text-muted);
}

.input:hover {
    border-color: var(--border-default);
}

.input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-muted), inset 0 0 20px rgba(125, 211, 252, 0.03);
}

.input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Textarea */
textarea.input {
    min-height: 100px;
    resize: vertical;
}

/* Select */
select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Checkbox */
.checkbox {
    width: 1.25rem;
    height: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.checkbox:checked {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid transparent;
}

.badge-default {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.badge-blue {
    background: var(--accent-blue-muted);
    color: var(--accent-blue);
    border-color: rgba(125, 211, 252, 0.2);
}

.badge-yellow {
    background: var(--accent-yellow-muted);
    color: var(--accent-yellow);
    border-color: rgba(253, 230, 138, 0.2);
}

.badge-red {
    background: var(--accent-red-muted);
    color: var(--accent-red);
    border-color: rgba(252, 165, 165, 0.2);
}

.badge-green {
    background: var(--accent-green-muted);
    color: var(--accent-green);
    border-color: rgba(134, 239, 172, 0.2);
}

/* ========================================
   LOGO STYLES
   ======================================== */
.logo-white {
    filter: invert(1) brightness(2);
}

.logo-glow {
    filter: invert(1) brightness(2) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.logo-header {
    height: 24px;
    width: auto;
}

.logo-hero {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
    transform: translateX(2px);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    box-shadow: inset 3px 0 0 var(--text-primary);
}

.nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Admin variant */
.nav-link-admin.active {
    box-shadow: inset 3px 0 0 var(--accent-blue);
}

/* ========================================
   TABLES
   ======================================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.table td {
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr {
    transition: background var(--duration-normal) var(--ease-smooth);
}

.table tr:hover td {
    background: var(--bg-card);
}

/* ========================================
   ALERTS / TOASTS
   ======================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
}

.alert-success {
    background: var(--accent-green-muted);
    color: var(--accent-green);
    border: 1px solid rgba(134, 239, 172, 0.2);
}

.alert-error {
    background: var(--accent-red-muted);
    color: var(--accent-red);
    border: 1px solid rgba(252, 165, 165, 0.2);
}

.alert-warning {
    background: var(--accent-yellow-muted);
    color: var(--accent-yellow);
    border: 1px solid rgba(253, 230, 138, 0.2);
}

.alert-info {
    background: var(--accent-blue-muted);
    color: var(--accent-blue);
    border: 1px solid rgba(125, 211, 252, 0.2);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--accent-blue); }
.text-yellow { color: var(--accent-yellow); }
.text-red { color: var(--accent-red); }
.text-green { color: var(--accent-green); }

/* Background colors */
.bg-void { background: var(--bg-void); }
.bg-dark { background: var(--bg-dark); }
.bg-surface { background: var(--bg-surface); }
.bg-elevated { background: var(--bg-elevated); }

/* Border utilities */
.border-subtle { border-color: var(--border-subtle); }
.border-default { border-color: var(--border-default); }
.border-strong { border-color: var(--border-strong); }

/* Glow effects */
.glow-sm { box-shadow: 0 0 15px var(--glow-white); }
.glow-md { box-shadow: 0 0 30px var(--glow-white); }
.glow-lg { box-shadow: 0 0 50px var(--glow-white); }
.glow-blue { box-shadow: 0 0 30px var(--glow-blue); }

/* Z-index scale */
.z-behind { z-index: -1; }
.z-base { z-index: 0; }
.z-dropdown { z-index: 10; }
.z-sticky { z-index: 20; }
.z-fixed { z-index: 30; }
.z-modal { z-index: 9999; }
.z-toast { z-index: 10000; }

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-default) var(--bg-dark);
}

/* ========================================
   RESPONSIVE HELPERS
   ======================================== */
@media (max-width: 640px) {
    .btn {
        width: 100%;
    }
    
    .card-glass {
        border-radius: var(--radius-lg);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .falling-man,
    .particle {
        display: none;
    }
}

/* ========================================
   CONTEXT MENU
   ======================================== */
.context-menu {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 255, 255, 0.1);
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
}

.context-menu-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.context-menu-item.active {
    color: var(--accent-blue);
}

.context-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: var(--accent-blue);
    border-radius: 1px;
}

.context-menu-item.has-submenu {
    padding-right: 0.5rem;
}

.context-menu-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.375rem 0;
}

.context-submenu {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 255, 255, 0.1);
}

/* Cursor style for context menu trigger */
.cursor-context-menu {
    cursor: context-menu;
}

/* ========================================
   CONFIRMATION MODAL
   ======================================== */
.confirm-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 255, 255, 0.1),
        0 0 80px rgba(0, 0, 0, 0.3);
}

/* ========================================
   ALPINE.JS CLOAK
   ======================================== */
[x-cloak] {
    display: none !important;
}

/* ========================================
   CHECKBOX IMPROVEMENTS
   ======================================== */
.checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.checkbox:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.checkbox:checked {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid var(--bg-void);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-blue-muted);
}

/* ========================================
   BADGE RED (for Denied status)
   ======================================== */
.badge-red {
    background: var(--accent-red-muted);
    color: var(--accent-red);
    border-color: rgba(252, 165, 165, 0.2);
}

/* ========================================
   FREEFALL LANDING PAGE ENHANCEMENTS
   ======================================== */

/* Smooth link underline animations */
a {
    transition: color var(--duration-normal) var(--ease-smooth);
}

/* Icon hover lift effect */
.icon-lift {
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.icon-lift:hover {
    transform: translateY(-2px);
}

/* Text with air drift on hover — disabled */
.text-drift:hover {}

/* Logo subtle breathing effect — disabled */
.logo-breathe {}

/* Smooth focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    transition: outline-offset var(--duration-fast) var(--ease-smooth);
}

/* Enhanced scrollbar with smooth transitions */
::-webkit-scrollbar-thumb {
    transition: background var(--duration-normal) var(--ease-smooth);
}

/* Landing page hero text — disabled entrance animation */
.hero-text-float {}

/* Feature icon — disabled float on hover */
.feature-icon-float:hover {}

/* Gradient text with shimmer */
.text-gradient-shimmer {
    background: linear-gradient(
        90deg,
        var(--text-primary) 0%,
        var(--accent-blue) 25%,
        var(--text-primary) 50%,
        var(--accent-blue) 75%,
        var(--text-primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Page transitions — disabled to prevent flash/re-animation */
.page-transition-enter {
    opacity: 1;
}

.page-transition-enter-active {
    opacity: 1;
}

/* Air resistance effect on scroll */
.scroll-air-resistance {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ========================================
   FORM HELPERS & TOOLTIPS
   ======================================== */

/* Form guidance banner at the top of forms */
.form-guide {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--accent-blue-muted);
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: var(--radius-lg);
    color: var(--accent-blue);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.form-guide svg {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
}

/* Subtle helper text below form fields */
.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Required field indicator */
.field-required::after {
    content: ' *';
    color: var(--accent-red);
    font-weight: 400;
}

/* Inline tooltip (appears on hover/focus of a ? icon) */
.tip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 700;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 0.375rem;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.tip-trigger:hover {
    background: var(--accent-blue-muted);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Subtle pulse ring around elements that need attention */
@keyframes attention-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(125, 211, 252, 0); }
}

.needs-attention {
    animation: attention-ring 2s ease-in-out 3;
}

/* ========================================
   IMPROVED BUTTON VISIBILITY
   ======================================== */

/* Ensure btn-primary has enough contrast and looks clearly clickable */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-void);
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-sm);
}

/* Ensure btn-secondary looks clickable with visible border */
.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    font-weight: 600;
}

/* Ensure btn-danger is clearly visible */
.btn-danger {
    background: rgba(252, 165, 165, 0.2);
    color: var(--accent-red);
    border: 1px solid rgba(252, 165, 165, 0.3);
    font-weight: 600;
}

/* Make ghost links look more interactive */
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-weight: 600;
}

/* Ensure clickable links in forms are clearly visible */
a.form-link {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(125, 211, 252, 0.4);
    transition: all var(--duration-fast) var(--ease-smooth);
}

a.form-link:hover {
    color: #bae6fd;
    text-decoration-color: #bae6fd;
}
