/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM — NuestroEvento Dark Premium
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --nb-bg:          #080d1a;
    --nb-surface:     #0d1225;
    --nb-card:        #0f1629;
    --nb-card-hover:  #131c33;
    --nb-border:      rgba(255, 255, 255, 0.07);
    --nb-border-glow: rgba(99, 102, 241, 0.4);
    --nb-text-muted:  #8892b0;
    --nb-accent:      #6366f1;
    --nb-accent-glow: rgba(99, 102, 241, 0.35);
    --nb-accent-lite: #818cf8;
    --transition:     all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body { background-attachment: fixed; }

/* ── Light mode: Glassmorphism + Mesh Gradients ─────────────────────────── */
.bg-mesh-light {
    background-color: #f3f4f6;
    background-image:
        radial-gradient(at 80% 0%,  hsla(var(--primary-h), calc(var(--primary-s) * 1%), 90%, 0.7) 0px, transparent 50%),
        radial-gradient(at 0%  50%, hsla(var(--primary-h), calc(var(--primary-s) * 1%), 95%, 0.6) 0px, transparent 50%),
        radial-gradient(at 80% 100%,hsla(var(--primary-h), calc(var(--primary-s) * 1%), 85%, 0.5) 0px, transparent 50%);
}

/* ── Dark mode: Deep Navy + Subtle Grid ─────────────────────────────────── */
.dark .bg-mesh-dark {
    background-color: var(--nb-bg);
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
        radial-gradient(ellipse at 80%  0%,  rgba(99,102,241,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 0%   60%, rgba(99,102,241,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%,rgba(99,102,241,0.10) 0%, transparent 50%);
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.glass-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 32px rgba(31,38,135,0.05);
}
.dark .glass-card {
    background: var(--nb-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--nb-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* Standard panel (modals) */
.glass-panel {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
.dark .glass-panel {
    background: var(--nb-surface);
    backdrop-filter: none;
    border: 1px solid var(--nb-border);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

/* Elevated card — standard interactive card */
.dark .nb-card {
    background: var(--nb-card);
    border: 1px solid var(--nb-border);
    border-radius: 1rem;
    transition: var(--transition);
}
.dark .nb-card:hover {
    background: var(--nb-card-hover);
    border-color: rgba(99,102,241,0.25);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.15),
                0 12px 40px rgba(0,0,0,0.4),
                0 0 30px rgba(99,102,241,0.08);
    transform: translateY(-2px);
}

/* Glow card — light mode */
.nb-glow-card {
    background: #ffffff;
    border: 1px solid #e0e7ff;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(99,102,241,0.08);
}
.nb-glow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 110%, rgba(99,102,241,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.nb-glow-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 32px rgba(99,102,241,0.12);
    transform: translateY(-2px);
}

/* Glow card — dark mode */
.dark .nb-glow-card {
    background: var(--nb-card);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.dark .nb-glow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 110%, rgba(99,102,241,0.3) 0%, transparent 65%);
    pointer-events: none;
}
.dark .nb-glow-card:hover {
    border-color: rgba(99,102,241,0.5);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.2),
                0 16px 48px rgba(0,0,0,0.5),
                0 0 60px rgba(99,102,241,0.15);
    transform: translateY(-3px);
}

/* Hover glow — light mode */
.nb-card-hover {
    transition: var(--transition);
}
.nb-card-hover:hover {
    box-shadow: 0 4px 24px rgba(99,102,241,0.08);
    transform: translateY(-1px);
}

/* Hover glow — dark mode */
.dark .nb-card-hover {
    transition: var(--transition);
    outline: 1px solid var(--nb-border);
    outline-offset: -1px;
}
.dark .nb-card-hover:hover {
    outline-color: rgba(99,102,241,0.3);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.15),
                0 12px 40px rgba(99,102,241,0.1),
                0 4px 24px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.dark .nb-nav-item {
    color: var(--nb-text-muted);
    border-radius: 0.625rem;
    transition: var(--transition);
}
.dark .nb-nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}
.dark .nb-nav-item.active {
    background: linear-gradient(90deg, rgba(99,102,241,0.22) 0%, rgba(99,102,241,0.06) 100%);
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--nb-accent-lite);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL FORM ELEMENTS IN DARK MODE
   (higher specificity than Tailwind utility classes)
   ═══════════════════════════════════════════════════════════════════════════ */

.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.dark select,
.dark textarea {
    background-color: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #f1f5f9 !important;
    color-scheme: dark;
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dark input:not([type="checkbox"]):not([type="radio"]):focus,
.dark select:focus,
.dark textarea:focus {
    border-color: rgba(99,102,241,0.6) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
    outline: none !important;
}
.dark input::placeholder,
.dark textarea::placeholder {
    color: var(--nb-text-muted) !important;
}

.dark select option {
    background-color: var(--nb-bg) !important;
    color: #f1f5f9 !important;
}

/* Autocomplete suggestion dropdown (e.g. supplier "Services" field).
   The global .dark input rule forces input text color but does NOT reach the
   <li> options, which otherwise inherit a dark color on the dark panel and
   become unreadable. These rules guarantee contrast in both themes. */
.suggestion-item {
    color: #1f2937; /* gray-800 — readable on white */
}
.dark .suggestion-item {
    color: #f1f5f9 !important; /* near-white on the dark panel */
}
.suggestion-item:hover {
    background-color: #6366f1; /* indigo-500 */
    color: #ffffff !important;
}

/* ── Phone input with country selector (components/PhoneField) ────────────── */
.phone-field .phone-field-container { width: 100%; }
.phone-field .phone-field-input {
    width: 100% !important;
    height: auto !important;
    padding: 0.625rem 0.75rem 0.625rem 3.25rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
}
.phone-field .flag-dropdown,
.phone-field .flag-dropdown.open {
    background-color: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    border-right: none !important;
    border-radius: 0.5rem 0 0 0.5rem !important;
}
.phone-field .selected-flag:hover,
.phone-field .selected-flag:focus,
.phone-field .flag-dropdown.open .selected-flag {
    background-color: #f3f4f6 !important;
    border-radius: 0.5rem 0 0 0.5rem !important;
}
.phone-field .country-list {
    background-color: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-radius: 0.5rem !important;
}
.phone-field .country-list .country:hover,
.phone-field .country-list .country.highlight {
    background-color: #eef2ff !important;
}
.phone-field .country-list .country .dial-code { color: #6b7280 !important; }
.phone-field .country-list .search {
    background-color: #ffffff !important;
    padding: 0.5rem !important;
}
.phone-field .country-list .search-box {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    border-radius: 0.375rem !important;
}

/* Dark mode */
.dark .phone-field .phone-field-input {
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #f1f5f9 !important;
}
.dark .phone-field .phone-field-input:focus {
    border-color: rgba(99,102,241,0.6) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
}
.dark .phone-field .flag-dropdown,
.dark .phone-field .flag-dropdown.open {
    background-color: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-right: none !important;
}
.dark .phone-field .selected-flag:hover,
.dark .phone-field .selected-flag:focus,
.dark .phone-field .flag-dropdown.open .selected-flag {
    background-color: rgba(255,255,255,0.08) !important;
}
.dark .phone-field .country-list {
    background-color: #1a2236 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}
.dark .phone-field .country-list .country:hover,
.dark .phone-field .country-list .country.highlight {
    background-color: rgba(99,102,241,0.25) !important;
}
.dark .phone-field .country-list .country .dial-code { color: #94a3b8 !important; }
.dark .phone-field .country-list .divider { border-bottom-color: rgba(255,255,255,0.1) !important; }
.dark .phone-field .country-list .search {
    background-color: #1a2236 !important;
}
.dark .phone-field .country-list .search-box {
    background-color: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #f1f5f9 !important;
}

/* Landing page contact form phone input styling */
.landing-phone-field .phone-field-container {
    width: 100% !important;
}
.landing-phone-field .phone-field-input {
    height: 38px !important;
    border-radius: 0.75rem !important;
    font-size: 0.75rem !important;
    padding-left: 3.25rem !important;
    border-color: #e2e8f0 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
}
.landing-phone-field .flag-dropdown {
    border-radius: 0.75rem 0 0 0.75rem !important;
    border-color: #e2e8f0 !important;
    height: 38px !important;
}
.dark .landing-phone-field .phone-field-input {
    background-color: #121829 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
.dark .landing-phone-field .flag-dropdown {
    background-color: #121829 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    height: 38px !important;
}
.dark .landing-phone-field .selected-flag:hover,
.dark .landing-phone-field .selected-flag:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════════════════════════════════ */

.nb-bottom-nav {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.08);
}
.dark .nb-bottom-nav {
    background: rgba(13,18,37,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.nb-bottom-nav-item {
    color: #6b7280;
    transition: var(--transition);
    position: relative;
}
.dark .nb-bottom-nav-item {
    color: var(--nb-text-muted);
}
.nb-bottom-nav-item.active {
    color: var(--nb-accent);
}
.dark .nb-bottom-nav-item.active {
    color: var(--nb-accent-lite);
}
.nb-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    background: var(--nb-accent);
    border-radius: 999px;
}
.dark .nb-bottom-nav-item.active::before {
    background: var(--nb-accent-lite);
    box-shadow: 0 0 12px var(--nb-accent-lite);
}
.nb-bottom-nav-item:hover {
    color: var(--nb-accent);
}
.dark .nb-bottom-nav-item:hover {
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.15); }
    50%       { box-shadow: 0 0 35px rgba(99,102,241,0.35); }
}
@keyframes timelineCurrentGlow {
    0%, 100% {
        box-shadow: 0 0 12px rgba(99,102,241,0.25), 0 0 30px rgba(139,92,246,0.12), 0 4px 20px rgba(99,102,241,0.15);
    }
    50% {
        box-shadow: 0 0 22px rgba(99,102,241,0.45), 0 0 55px rgba(139,92,246,0.25), 0 4px 30px rgba(99,102,241,0.30);
    }
}
.animate-timeline-glow { animation: timelineCurrentGlow 2.5s ease-in-out infinite; }
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes drawCircle {
    from { stroke-dashoffset: 326; }
}

.animate-fade-in-up   { animation: fadeInSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both; }
.animate-fade-in-scale { animation: fadeInScale   0.4s cubic-bezier(0.16,1,0.3,1) both; }
.animate-pulse-glow   { animation: pulseGlow 3s ease-in-out infinite; }
.animate-draw-circle  { animation: drawCircle 1.2s cubic-bezier(0.4,0,0.2,1) both; }

/* stagger-* ahora incluyen la animación automáticamente */
.stagger-1 { animation: fadeInSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.06s; }
.stagger-2 { animation: fadeInSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.14s; }
.stagger-3 { animation: fadeInSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.22s; }
.stagger-4 { animation: fadeInSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.30s; }
.stagger-5 { animation: fadeInSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.38s; }
.stagger-6 { animation: fadeInSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.46s; }

/* ── Fondo gradient para páginas (modo claro + oscuro) ─────────────────── */
.page-bg {
    background-color: #f1f5f9;
    background-image:
        radial-gradient(ellipse at 80% 0%,   hsla(var(--primary-h, 239), 84%, 92%, 0.7) 0px, transparent 55%),
        radial-gradient(ellipse at 0%  60%,  hsla(var(--primary-h, 239), 84%, 95%, 0.5) 0px, transparent 50%),
        radial-gradient(ellipse at 100% 100%,hsla(var(--primary-h, 239), 84%, 90%, 0.4) 0px, transparent 50%);
}
.dark .page-bg {
    background-color: var(--nb-bg);
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
        radial-gradient(ellipse at 80%  0%,   rgba(99,102,241,0.16) 0%, transparent 55%),
        radial-gradient(ellipse at 0%   60%,  rgba(99,102,241,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(99,102,241,0.08) 0%, transparent 50%);
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

/* ── Card con gradiente interno (glass premium) ─────────────────────────── */
.nb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: var(--transition);
}
.nb-card:hover {
    box-shadow: 0 4px 24px rgba(99,102,241,0.07);
    border-color: #c7d2fe;
    transform: translateY(-1px);
}
.dark .nb-card {
    background: var(--nb-card);
    border-color: var(--nb-border);
    box-shadow: none;
}
.dark .nb-card:hover {
    background: var(--nb-card-hover);
    border-color: rgba(99,102,241,0.25);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.15),
                0 12px 40px rgba(0,0,0,0.4),
                0 0 30px rgba(99,102,241,0.08);
    transform: translateY(-2px);
}

/* Card con gradiente sutil en el fondo */
.nb-card-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8f6ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: var(--transition);
}
.nb-card-gradient:hover {
    box-shadow: 0 4px 24px rgba(99,102,241,0.10);
    border-color: #c7d2fe;
}
.dark .nb-card-gradient {
    background: linear-gradient(135deg, var(--nb-card) 0%, #111827 100%);
    border-color: rgba(99,102,241,0.18);
}
.dark .nb-card-gradient:hover {
    border-color: rgba(99,102,241,0.35);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.15),
                0 12px 40px rgba(0,0,0,0.4),
                0 0 40px rgba(99,102,241,0.12);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY HELPERS
   ═══════════════════════════════════════════════════════════════════════════ */

.nb-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #6b7280; /* slate-500 — readable on white */
}
.dark .nb-label {
    color: var(--nb-text-muted); /* #8892b0 — fine on dark */
}
.nb-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}
.dark .nb-stat-value {
    color: #ffffff;
}
.nb-stat-value-sm {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #1e293b;
}
.dark .nb-stat-value-sm {
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGE / STATUS PILLS
   ═══════════════════════════════════════════════════════════════════════════ */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
/* Light mode: high-contrast text on tinted bg */
.badge-green  { background: rgba(34,197,94,0.12);   color: #15803d; border: 1px solid rgba(34,197,94,0.25); }
.badge-yellow { background: rgba(234,179,8,0.12);   color: #a16207; border: 1px solid rgba(234,179,8,0.25); }
.badge-red    { background: rgba(239,68,68,0.12);   color: #b91c1c; border: 1px solid rgba(239,68,68,0.25); }
.badge-blue   { background: rgba(99,102,241,0.12);  color: #4338ca; border: 1px solid rgba(99,102,241,0.25); }
.badge-gray   { background: rgba(100,116,139,0.1);  color: #475569; border: 1px solid rgba(100,116,139,0.2); }
/* Dark mode: bright/neon text on translucent bg */
.dark .badge-green  { background: rgba(34,197,94,0.15);  color: #4ade80; border-color: rgba(34,197,94,0.2); }
.dark .badge-yellow { background: rgba(234,179,8,0.15);  color: #facc15; border-color: rgba(234,179,8,0.2); }
.dark .badge-red    { background: rgba(239,68,68,0.15);  color: #f87171; border-color: rgba(239,68,68,0.2); }
.dark .badge-blue   { background: rgba(99,102,241,0.15); color: #818cf8; border-color: rgba(99,102,241,0.2); }
.dark .badge-gray   { background: rgba(148,163,184,0.1); color: #94a3b8; border-color: rgba(148,163,184,0.15); }

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.dark ::-webkit-scrollbar          { width: 5px; height: 5px; }
.dark ::-webkit-scrollbar-track    { background: transparent; }
.dark ::-webkit-scrollbar-thumb    { background: rgba(255,255,255,0.1); border-radius: 999px; }
.dark ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

nav.scrollbar-none::-webkit-scrollbar { display: none; }

/* ── RSVP public page: always light-mode form controls ─────────────────────
   The global .dark rule above forces near-white text on all inputs, which
   makes them invisible against the white card on the public RSVP page.
   This rule has the same specificity but appears later → it wins.          */
.rsvp-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.rsvp-page select,
.rsvp-page textarea {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #111827 !important;
    color-scheme: light;
}
.rsvp-page input::placeholder,
.rsvp-page textarea::placeholder {
    color: #9ca3af !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    input, select, textarea { font-size: 16px; }
    body { font-size: 16px; }
    .mobile-tab-bar::-webkit-scrollbar { display: none; }
    .mobile-tab-bar { -ms-overflow-style: none; scrollbar-width: none; }
}

/* Safe area for iOS notch / home bar */
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0.5rem); }

/* ── Bottom-nav clearance for modals/overlays ───────────────────────────────
   On mobile (<768px) any fixed full-viewport overlay gets extra bottom
   padding so its content never hides behind the 64px bottom nav bar.
   On md+ screens the bottom nav is hidden so this has no effect.          */
@media (max-width: 767px) {
    .nb-modal-overlay {
        padding-bottom: 4.5rem; /* ~72px — bottom nav (64px) + 8px buffer */
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes slide-in-left {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

@keyframes fade-in-backdrop {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-slide-in-left {
    animation: slide-in-left 0.28s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.animate-slide-out-left {
    animation: slide-out-left 0.24s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes slide-out-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.animate-fade-in-backdrop {
    animation: fade-in-backdrop 0.22s ease both;
}

.animate-fade-out-backdrop {
    animation: fade-out-backdrop 0.20s ease both;
}

@keyframes fade-out-backdrop {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ── Toast / popup animations ───────────────────────────────────────────── */
@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(1.5rem) scale(0.96); }
    to   { opacity: 1; transform: translateX(0)       scale(1); }
}

@keyframes slideOutToRight {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to   { opacity: 0; transform: translateX(1.5rem) scale(0.96); }
}

/* Modal bottom-sheet slide-up (mobile) */
@keyframes sheetSlideUp {
    from { opacity: 0; transform: translateY(1.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-sheet-up {
    animation: sheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Landing Page Animations ─────────────────────────────────────────────── */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes pulseSubtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.88; transform: scale(1.02); }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 50px rgba(139, 92, 246, 0.4); }
}
.animate-float-slow {
    animation: floatSlow 5s ease-in-out infinite;
}
.animate-float-delayed {
    animation: floatSlow 5s ease-in-out 2.5s infinite;
}
.animate-pulse-subtle {
    animation: pulseSubtle 3s ease-in-out infinite;
}
.animate-glow-pulse {
    animation: glowPulse 4s ease-in-out infinite;
}

/* ── Entrance Animations for Landing Page ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-75 { animation-delay: 75ms; }
.delay-150 { animation-delay: 150ms; }
.delay-225 { animation-delay: 225ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Utility to hide scrollbars on horizontal tabs */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

