/* ============================================================
   UX ENHANCEMENTS v2 — Premium Polish Layer
   Apple / Stripe / Shopify caliber motion & feedback
   
   Design Principles:
   1. Every transition uses the SAME easing curve
   2. Shadows are soft, layered, and subtle
   3. Animations are GPU-accelerated (transform/opacity only)
   4. Nothing is abrupt — everything interpolates
   5. Consistent 4px spacing rhythm
   ============================================================ */

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Timing — One curve to rule them all */
    --ux-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ux-ease-out: cubic-bezier(0.0, 0, 0.2, 1);
    --ux-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ux-duration-fast: 0.15s;
    --ux-duration: 0.25s;
    --ux-duration-slow: 0.4s;
    --ux-duration-reveal: 0.6s;

    /* Colors — Carefully curated palette */
    --ux-primary: #14532d;
    --ux-primary-rgb: 20, 83, 45;
    --ux-primary-light: rgba(20, 83, 45, 0.08);
    --ux-primary-glow: rgba(20, 83, 45, 0.15);
    --ux-accent: #22c55e;
    --ux-accent-rgb: 34, 197, 94;

    --ux-success: #059669;
    --ux-success-bg: #ecfdf5;
    --ux-error: #dc2626;
    --ux-error-bg: #fef2f2;
    --ux-warning: #d97706;
    --ux-warning-bg: #fffbeb;
    --ux-info: #2563eb;
    --ux-info-bg: #eff6ff;

    /* Shadows — Soft, layered, natural */
    --ux-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --ux-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --ux-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --ux-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --ux-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --ux-shadow-float: 0 25px 50px -12px rgba(0, 0, 0, 0.10);

    /* Radius */
    --ux-radius-sm: 8px;
    --ux-radius: 12px;
    --ux-radius-lg: 16px;
    --ux-radius-xl: 20px;
}


/* ═══════════════════════════════════════════════════════════════
   1. GLOBAL SMOOTHNESS — Base layer
   ═══════════════════════════════════════════════════════════════ */

/* Smooth scroll for everything */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* GPU-hint for animated elements */
.reveal,
.ux-card,
.ux-toast,
.fly-ghost {
    will-change: transform, opacity;
}

/* Better line height for readability */
body {
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Selection color */
::selection {
    background: rgba(var(--ux-primary-rgb), 0.12);
    color: var(--ux-primary);
}


/* ═══════════════════════════════════════════════════════════════
   2. SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════════ */
#ux-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--ux-primary), var(--ux-accent));
    z-index: 9999;
    pointer-events: none;
    transition: none;
    /* Must be instant for smooth tracking */
    opacity: 0.85;
}


/* ═══════════════════════════════════════════════════════════════
   3. BUTTON MICRO-INTERACTIONS — Soft, satisfying, consistent
   ═══════════════════════════════════════════════════════════════ */

button:not(.no-ux),
a[class*="bg-"]:not(.no-ux),
input[type="submit"]:not(.no-ux) {
    transition: transform var(--ux-duration-fast) var(--ux-ease),
        box-shadow var(--ux-duration) var(--ux-ease),
        background-color var(--ux-duration) var(--ux-ease),
        border-color var(--ux-duration) var(--ux-ease),
        opacity var(--ux-duration) var(--ux-ease);
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Hover: subtle lift + soft glow (not harsh shadow) */
button:not(.no-ux):hover:not(:disabled),
a[class*="bg-"]:not(.no-ux):hover,
input[type="submit"]:not(.no-ux):hover:not(:disabled) {
    transform: translateY(-1px) scale(1.005);
    box-shadow: var(--ux-shadow-md);
}

/* Press: satisfying click feel */
button:not(.no-ux):active:not(:disabled),
a[class*="bg-"]:not(.no-ux):active,
input[type="submit"]:not(.no-ux):active:not(:disabled) {
    transform: scale(0.97);
    box-shadow: var(--ux-shadow-xs);
    transition-duration: 0.08s;
}

/* Disabled: muted, no movement */
button:disabled,
input[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(0.1);
}

/* Button loading state */
.ux-btn-loading {
    pointer-events: none;
    opacity: 0.75;
}

/* Spinner */
.ux-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-right-color: currentColor;
    border-radius: 50%;
    animation: ux-spin 0.55s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.ux-btn-loading .ux-spinner {
    display: inline-block;
}

@keyframes ux-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ripple — subtle white glow on click */
.ux-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0);
    animation: ux-ripple-anim 0.5s var(--ux-ease-out);
    pointer-events: none;
}

@keyframes ux-ripple-anim {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}


/* ═══════════════════════════════════════════════════════════════
   4. CARD DEPTH & LIFT — Layered, natural
   ═══════════════════════════════════════════════════════════════ */
.ux-card {
    transition: transform var(--ux-duration) var(--ux-ease),
        box-shadow var(--ux-duration-slow) var(--ux-ease);
    backface-visibility: hidden;
}

.ux-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ux-shadow-lg);
}

.ux-card:active {
    transform: translateY(0);
    box-shadow: var(--ux-shadow-sm);
    transition-duration: 0.1s;
}

/* Elevated card variant — for primary cards */
.ux-card-elevated {
    box-shadow: var(--ux-shadow-md);
}

.ux-card-elevated:hover {
    box-shadow: var(--ux-shadow-xl);
    transform: translateY(-3px);
}


/* ═══════════════════════════════════════════════════════════════
   5. TOAST NOTIFICATIONS — Glassmorphism, smooth entry
   ═══════════════════════════════════════════════════════════════ */
#ux-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 380px;
}

.ux-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--ux-radius-lg);
    box-shadow: var(--ux-shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translateX(110%) scale(0.95);
    opacity: 0;
    transition: transform var(--ux-duration-slow) var(--ux-ease-spring),
        opacity var(--ux-duration) var(--ux-ease);
    pointer-events: auto;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.ux-toast.ux-toast-visible {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.ux-toast.ux-toast-exit {
    transform: translateX(110%) scale(0.95);
    opacity: 0;
    transition: transform 0.3s var(--ux-ease),
        opacity 0.2s var(--ux-ease);
}

.ux-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--ux-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ux-toast-success .ux-toast-icon {
    background: var(--ux-success-bg);
    color: var(--ux-success);
}

.ux-toast-error .ux-toast-icon {
    background: var(--ux-error-bg);
    color: var(--ux-error);
}

.ux-toast-warning .ux-toast-icon {
    background: var(--ux-warning-bg);
    color: var(--ux-warning);
}

.ux-toast-info .ux-toast-icon {
    background: var(--ux-info-bg);
    color: var(--ux-info);
}

.ux-toast-content {
    flex: 1;
    min-width: 0;
}

.ux-toast-title {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.ux-toast-message {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 1px;
    line-height: 1.4;
}

.ux-toast-close {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #cbd5e1;
    flex-shrink: 0;
    transition: all var(--ux-duration-fast) var(--ux-ease);
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

.ux-toast-close:hover {
    background: #f1f5f9;
    color: #475569;
    transform: none !important;
    box-shadow: none !important;
}

/* Progress bar */
.ux-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    overflow: hidden;
}

.ux-toast-progress-bar {
    height: 100%;
    animation: ux-toast-countdown linear forwards;
    border-radius: 0 0 var(--ux-radius-lg) var(--ux-radius-lg);
}

.ux-toast-success .ux-toast-progress-bar {
    background: var(--ux-success);
}

.ux-toast-error .ux-toast-progress-bar {
    background: var(--ux-error);
}

.ux-toast-warning .ux-toast-progress-bar {
    background: var(--ux-warning);
}

.ux-toast-info .ux-toast-progress-bar {
    background: var(--ux-info);
}

@keyframes ux-toast-countdown {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}


/* ═══════════════════════════════════════════════════════════════
   6. SKELETON / SHIMMER — Premium Loading States
   ═══════════════════════════════════════════════════════════════ */
/* Global page loading state */
body {
    transition: opacity 0.3s ease-in-out;
}

body.is-loading {
    opacity: 0;
    /* Ensures no flashing before DOM ready, but usually we just fade real content */
}

/* Base Skeleton Class */
.sk {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 12px;
    z-index: 10;
}

.sk::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.4) 20%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.4) 80%,
            rgba(255, 255, 255, 0) 100%);
    animation: sk-shimmer 1.4s ease infinite;
}

@keyframes sk-shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Image wrapper skeleton */
.sk-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* Parent elements must define aspect ratio or height */
}

.sk-img-wrapper.is-loaded {
    background: transparent;
}

.sk-img-wrapper.is-loaded::after {
    display: none;
    animation: none;
}

.sk-img-wrapper img {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.sk-img-wrapper.is-loaded img {
    opacity: 1;
}

/* Text Skeletons */
.sk-text {
    height: 12px;
    margin-bottom: 8px;
    width: 100%;
    border-radius: 6px;
}

.sk-title {
    height: 24px;
    margin-bottom: 12px;
    width: 70%;
    border-radius: 8px;
}

.sk-circle {
    border-radius: 50%;
}

.sk-btn {
    height: 48px;
    width: 100%;
    border-radius: 12px;
}

/* Specific component skeletons */
.sk-product-card {
    height: 380px;
}

.sk-hero {
    height: 100%;
    width: 100%;
}


/* ═══════════════════════════════════════════════════════════════
   7. STATUS BADGES — Semantic, consistent
   ═══════════════════════════════════════════════════════════════ */
.ux-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 20px;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.5;
    transition: all var(--ux-duration-fast) var(--ux-ease);
}

.ux-badge-pending {
    background: #fefce8;
    color: #a16207;
    border-color: #fde047;
}

.ux-badge-processing {
    background: #fffbeb;
    color: #b45309;
    border-color: #fcd34d;
}

.ux-badge-shipped {
    background: #eef2ff;
    color: #4338ca;
    border-color: #a5b4fc;
}

.ux-badge-in-transit,
.ux-badge-in_transit {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.ux-badge-delivered {
    background: #ecfdf5;
    color: #047857;
    border-color: #6ee7b7;
}

.ux-badge-cancelled {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.ux-badge-paid {
    background: #ecfdf5;
    color: #047857;
    border-color: #6ee7b7;
}

.ux-badge-rejected {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.ux-badge-approved {
    background: #ecfdf5;
    color: #047857;
    border-color: #6ee7b7;
}

.ux-badge-under-review,
.ux-badge-under_review {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.ux-badge-awaiting-images,
.ux-badge-awaiting_images {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #c4b5fd;
}


/* ═══════════════════════════════════════════════════════════════
   8. PULSE / LIVE INDICATOR
   ═══════════════════════════════════════════════════════════════ */
.ux-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ux-success);
    position: relative;
    flex-shrink: 0;
}

.ux-pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--ux-success);
    animation: ux-pulse-ring 2s var(--ux-ease-out) infinite;
    opacity: 0;
}

@keyframes ux-pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.ux-pulse-amber {
    background: var(--ux-warning);
}

.ux-pulse-amber::before {
    background: var(--ux-warning);
}

.ux-pulse-blue {
    background: var(--ux-info);
}

.ux-pulse-blue::before {
    background: var(--ux-info);
}


/* ═══════════════════════════════════════════════════════════════
   9. FORM INPUT FOCUS — Soft glow, not harsh ring
   ═══════════════════════════════════════════════════════════════ */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
    transition: border-color var(--ux-duration) var(--ux-ease),
        box-shadow var(--ux-duration) var(--ux-ease),
        background-color var(--ux-duration) var(--ux-ease) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
    border-color: rgba(var(--ux-primary-rgb), 0.4) !important;
    box-shadow: 0 0 0 3px var(--ux-primary-light),
        0 1px 2px rgba(0, 0, 0, 0.04) !important;
    background-color: #fff !important;
    outline: none !important;
}

/* Validation states */
.ux-valid {
    border-color: rgba(5, 150, 105, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.06) !important;
}

.ux-invalid {
    border-color: rgba(220, 38, 38, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06) !important;
}

/* Error shake — subtle, not jarring */
@keyframes ux-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(2px);
    }
}

.ux-shake {
    animation: ux-shake 0.4s var(--ux-ease);
}

/* Floating label support */
.ux-float-label {
    position: relative;
}

.ux-float-label label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
    transition: all var(--ux-duration) var(--ux-ease);
    background: transparent;
    padding: 0 4px;
}

.ux-float-label input:focus~label,
.ux-float-label input:not(:placeholder-shown)~label,
.ux-float-label textarea:focus~label,
.ux-float-label textarea:not(:placeholder-shown)~label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: var(--ux-primary);
    font-weight: 600;
    background: white;
}


/* ═══════════════════════════════════════════════════════════════
   10. PAGE TRANSITIONS — Smooth fade + slide
   ═══════════════════════════════════════════════════════════════ */
body {
    animation: ux-pageEnter var(--ux-duration-slow) var(--ux-ease-out) both !important;
}

body.ux-leaving {
    animation: ux-pageLeave 0.2s var(--ux-ease) forwards !important;
}

@keyframes ux-pageEnter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ux-pageLeave {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-3px);
    }
}


/* ═══════════════════════════════════════════════════════════════
   11. NAVIGATION STATES
   ═══════════════════════════════════════════════════════════════ */
.ux-nav-active {
    color: var(--ux-primary) !important;
    position: relative;
}

.ux-nav-active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 2px;
    background: var(--ux-primary);
    border-radius: 2px;
    animation: ux-navIndicator 0.3s var(--ux-ease-spring) both;
}

@keyframes ux-navIndicator {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 14px;
        opacity: 1;
    }
}

/* Hover underline — grows from center */
header nav a:not(.ux-nav-active) {
    position: relative;
}

header nav a:not(.ux-nav-active)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ux-primary);
    border-radius: 2px;
    transition: all var(--ux-duration) var(--ux-ease);
    transform: translateX(-50%);
}

header nav a:not(.ux-nav-active):hover::after {
    width: 14px;
}


/* ═══════════════════════════════════════════════════════════════
   12. LAST UPDATED / META LABELS
   ═══════════════════════════════════════════════════════════════ */
.ux-last-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    padding: 4px 10px;
    background: #f8fafc;
    border-radius: var(--ux-radius-sm);
    border: 1px solid #e2e8f0;
    transition: all var(--ux-duration) var(--ux-ease);
}


/* ═══════════════════════════════════════════════════════════════
   13. COUNT-UP & CELEBRATION
   ═══════════════════════════════════════════════════════════════ */
.ux-count-up {
    display: inline-block;
    transition: all 0.3s var(--ux-ease);
}

@keyframes ux-celebration-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.12);
    }

    45% {
        transform: scale(0.96);
    }

    70% {
        transform: scale(1.04);
    }
}

.ux-celebrate {
    animation: ux-celebration-bounce 0.7s var(--ux-ease-out);
}

@keyframes ux-checkmark-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.ux-checkmark-circle {
    animation: ux-pageEnter 0.3s var(--ux-ease) forwards;
}

.ux-checkmark-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: ux-checkmark-draw 0.5s 0.3s var(--ux-ease) forwards;
}


/* ═══════════════════════════════════════════════════════════════
   14. ORDER TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.ux-order-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 0;
}

.ux-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    position: relative;
}

.ux-timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
    transition: background var(--ux-duration-slow) var(--ux-ease);
}

.ux-timeline-step.ux-step-done:not(:last-child)::after {
    background: var(--ux-success);
}

.ux-timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-size: 11px;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    transition: all var(--ux-duration-slow) var(--ux-ease);
}

.ux-step-done .ux-timeline-dot {
    background: var(--ux-success);
    border-color: var(--ux-success);
    color: white;
}

.ux-step-active .ux-timeline-dot {
    background: white;
    border-color: var(--ux-info);
    color: var(--ux-info);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.ux-timeline-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    text-align: center;
    margin-top: 2px;
}

.ux-step-done .ux-timeline-label {
    color: var(--ux-success);
}

.ux-step-active .ux-timeline-label {
    color: var(--ux-info);
    font-weight: 800;
}


/* ═══════════════════════════════════════════════════════════════
   15. ALERT SYSTEM — Replaces raw <p> errors
   ═══════════════════════════════════════════════════════════════ */
.ux-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--ux-radius);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    animation: ux-alertEnter 0.35s var(--ux-ease-out) both;
}

@keyframes ux-alertEnter {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ux-alert-error {
    background: var(--ux-error-bg);
    color: var(--ux-error);
    border-color: #fecaca;
}

.ux-alert-success {
    background: var(--ux-success-bg);
    color: var(--ux-success);
    border-color: #a7f3d0;
}

.ux-alert-warning {
    background: var(--ux-warning-bg);
    color: var(--ux-warning);
    border-color: #fde68a;
}

.ux-alert-info {
    background: var(--ux-info-bg);
    color: var(--ux-info);
    border-color: #bfdbfe;
}

.ux-alert i,
.ux-alert svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}


/* ═══════════════════════════════════════════════════════════════
   16. WELCOME BANNER
   ═══════════════════════════════════════════════════════════════ */
.ux-welcome-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdfa 100%);
    border: 1px solid rgba(187, 247, 208, 0.6);
    border-radius: var(--ux-radius-lg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: ux-pageEnter 0.5s var(--ux-ease-out) both;
}

.ux-welcome-banner .ux-welcome-wave {
    display: inline-block;
    animation: ux-wave 1.8s var(--ux-ease) 0.4s 2;
    transform-origin: 70% 70%;
}

@keyframes ux-wave {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60%,
    100% {
        transform: rotate(0deg);
    }
}


/* ═══════════════════════════════════════════════════════════════
   17. TABLE & LIST ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */
tbody tr {
    transition: background-color var(--ux-duration-fast) var(--ux-ease);
}

/* Sidebar nav slide */
aside nav a,
aside .space-y-1 a {
    transition: all var(--ux-duration) var(--ux-ease) !important;
}

aside nav a:hover,
aside .space-y-1 a:hover {
    transform: translateX(2px);
}


/* ═══════════════════════════════════════════════════════════════
   18. SCROLLBAR — Minimal, elegant
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}


/* ═══════════════════════════════════════════════════════════════
   19. STAGGER ANIMATION SYSTEM — Lists animate sequentially
   ═══════════════════════════════════════════════════════════════ */
.ux-stagger>* {
    animation: ux-staggerIn var(--ux-duration-reveal) var(--ux-ease-out) both;
}

.ux-stagger>*:nth-child(1) {
    animation-delay: 0.04s;
}

.ux-stagger>*:nth-child(2) {
    animation-delay: 0.08s;
}

.ux-stagger>*:nth-child(3) {
    animation-delay: 0.12s;
}

.ux-stagger>*:nth-child(4) {
    animation-delay: 0.16s;
}

.ux-stagger>*:nth-child(5) {
    animation-delay: 0.20s;
}

.ux-stagger>*:nth-child(6) {
    animation-delay: 0.24s;
}

.ux-stagger>*:nth-child(7) {
    animation-delay: 0.28s;
}

.ux-stagger>*:nth-child(8) {
    animation-delay: 0.32s;
}

.ux-stagger>*:nth-child(9) {
    animation-delay: 0.36s;
}

.ux-stagger>*:nth-child(10) {
    animation-delay: 0.40s;
}

.ux-stagger>*:nth-child(n+11) {
    animation-delay: 0.44s;
}

@keyframes ux-staggerIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ═══════════════════════════════════════════════════════════════
   20. IMAGE LOADING — Smooth appearance
   ═══════════════════════════════════════════════════════════════ */
img {
    transition: opacity var(--ux-duration-slow) var(--ux-ease);
}

img.ux-img-loaded {
    opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════
   21. EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.ux-empty-state {
    text-align: center;
    padding: 48px 24px;
    animation: ux-pageEnter 0.5s var(--ux-ease-out) both;
}

.ux-empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--ux-radius-lg);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #cbd5e1;
}


/* ═══════════════════════════════════════════════════════════════
   22. RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    #ux-toast-container {
        top: auto;
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .ux-toast {
        min-width: auto;
    }

    /* Reduce motion for mobile */
    .ux-card:hover {
        transform: translateY(-1px);
    }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    body {
        animation: none !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   23. PRINT — Hide overlays
   ═══════════════════════════════════════════════════════════════ */
@media print {

    #ux-scroll-progress,
    #ux-toast-container,
    .ux-pulse::before {
        display: none !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   24. FOCUS-VISIBLE — Keyboard accessibility
   ═══════════════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid rgba(var(--ux-primary-rgb), 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════
   25. BEST SELLERS CAROUSEL
   ═══════════════════════════════════════════════════════════════ */

/* Hide scrollbar across browsers */
.bs-carousel::-webkit-scrollbar {
    display: none;
}

.bs-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ── Card Structure — Perfect Alignment ── */
.bs-card {
    flex: 0 0 280px;
    max-width: 280px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;

    /* Smooth, Apple-quality hover easing */
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* Hover: subtle lift + layered shadow — NOT harsh */
.bs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06),
        0 16px 40px -8px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--ux-primary-rgb), 0.12);
}

/* ── Fixed-height Image Container ── */
.bs-card .bs-img-wrap {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.bs-card .bs-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bs-card:hover .bs-img-wrap img {
    transform: scale(1.08);
}

/* ── Content Section — Fill remaining space ── */
.bs-card .bs-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 20px 20px;
}

/* Category label — fixed height row */
.bs-card .bs-category {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
    line-height: 1;
}

/* Title — fixed 2 lines, always same height */
.bs-card .bs-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    min-height: 36px;
    /* exactly 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Social proof — fixed height slot */
.bs-card .bs-social-proof {
    height: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

/* ── Pricing & Button — Pinned to bottom ── */
.bs-card .bs-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.bs-card .bs-price {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.bs-card .bs-vat {
    font-size: 8px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.bs-card .bs-unit-price {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

/* ── Action Button — Smooth, consistent ── */
.bs-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 0;
    background: #0f172a;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.15);
}

.bs-action-btn:hover {
    background: var(--ux-accent, #22c55e);
    color: #0f172a;
    transform: scale(1.02);
    box-shadow: 0 4px 15px -3px rgba(var(--ux-primary-rgb), 0.25);
}

.bs-action-btn:active {
    transform: scale(0.97);
    transition-duration: 0.08s;
}

/* ── Quick View Overlay ── */
.bs-card .bs-quick-view {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.bs-card:hover .bs-quick-view {
    background: rgba(15, 23, 42, 0.04);
}

.bs-card .bs-quick-view span {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #0f172a;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 8px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.bs-card:hover .bs-quick-view span {
    opacity: 1;
    transform: translateY(0);
}

/* ── Badges ── */
.bs-card .bs-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.bs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 8px;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.08);
}

.bs-badge-top {
    background: #fbbf24;
    color: #78350f;
}

.bs-badge-pack {
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Responsive Sizing ── */
@media (min-width: 768px) {
    .bs-card {
        flex: 0 0 300px;
        max-width: 300px;
        min-width: 300px;
    }

    .bs-card .bs-img-wrap {
        height: 220px;
    }
}

@media (min-width: 1280px) {
    .bs-card {
        flex: 0 0 320px;
        max-width: 320px;
        min-width: 320px;
    }

    .bs-card .bs-img-wrap {
        height: 240px;
    }
}

@media (max-width: 640px) {
    .bs-card {
        flex: 0 0 260px;
        max-width: 260px;
        min-width: 260px;
    }

    .bs-card .bs-img-wrap {
        height: 180px;
        padding: 16px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   26. STICKY FOOTER & LAYOUT FIXES
   ═══════════════════════════════════════════════════════════════ */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure the main content area grows to fill space */
main,
.flex-1,
.flex-grow {
    flex-grow: 1 !important;
}

/* Ensure footer is at the bottom */
footer {
    margin-top: auto;
}


/* ═══════════════════════════════════════════════════════════════
   27. CORE INVENTORY v2 — Premium Dark Section
   Glassmorphic cards · Color-matched glow · Scroll reveal
   ═══════════════════════════════════════════════════════════════ */

/* ── Section — Dark immersive background ── */
.ci-section-v2 {
    padding: 6rem 0;
    background: linear-gradient(165deg, #0c1222 0%, #111827 40%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background orbs */
.ci-v2-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    animation: ciOrbFloat 20s ease-in-out infinite alternate;
}

.ci-v2-bg-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    top: -10%;
    right: -5%;
}

.ci-v2-bg-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    bottom: -15%;
    left: -5%;
    animation-delay: -10s;
}

@keyframes ciOrbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -20px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

/* Subtle grid pattern overlay */
.ci-v2-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ── Header ── */
.ci-v2-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .ci-v2-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.ci-v2-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.ci-v2-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: ciPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

@keyframes ciPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.ci-v2-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .ci-v2-title {
        font-size: 3rem;
    }
}

.ci-v2-subtitle {
    color: rgba(148, 163, 184, 0.8);
    font-size: 14px;
    font-weight: 500;
    max-width: 420px;
}

.ci-v2-browse-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.ci-v2-browse-all:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.ci-v2-browse-all i,
.ci-v2-browse-all svg {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ci-v2-browse-all:hover i,
.ci-v2-browse-all:hover svg {
    transform: translateX(4px);
}


/* ── Card Grid ── */
.ci-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .ci-v2-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}


/* ── Card ── */
.ci-v2-card {
    --accent: #10b981;
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    cursor: pointer;

    /* Start hidden for scroll animation */
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

/* Scroll reveal */
.ci-v2-card.ci-v2-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hover state */
.ci-v2-card:hover {
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.4),
        0 0 40px -10px var(--accent);
}

.ci-v2-card:active {
    transform: translateY(-4px) scale(0.98) !important;
    transition-duration: 0.15s;
}


/* ── Card Image ── */
.ci-v2-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ci-v2-card:hover .ci-v2-card-img {
    transform: scale(1.08);
}


/* ── Gradient Overlay — Premium multi-layer ── */
.ci-v2-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.02) 30%,
            rgba(0, 0, 0, 0.3) 60%,
            rgba(0, 0, 0, 0.85) 100%);
    transition: opacity 0.5s ease;
}

.ci-v2-card:hover .ci-v2-card-overlay {
    opacity: 0.95;
}


/* ── Hover glow — color-matched ambient light ── */
.ci-v2-card-glow {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(ellipse at 50% 120%,
            var(--accent) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.ci-v2-card:hover .ci-v2-card-glow {
    opacity: 0.45;
}


/* ── Card Border — Accent glow ring on hover ── */
.ci-v2-card-border {
    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: 20px;
    border: 2px solid transparent;
    transition:
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    pointer-events: none;
}

.ci-v2-card:hover .ci-v2-card-border {
    border-color: var(--accent);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}


/* ── Card Content ── */
.ci-v2-card-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .ci-v2-card-content {
        padding: 1.5rem;
    }
}


/* ── Top: Icon + Count ── */
.ci-v2-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ci-v2-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent);
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.4s ease,
        box-shadow 0.4s ease;
    flex-shrink: 0;
}

.ci-v2-card:hover .ci-v2-card-icon {
    transform: scale(1.08) rotate(-4deg);
    background: var(--accent);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.ci-v2-card-count {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition:
        background 0.4s ease,
        border-color 0.4s ease;
}

.ci-v2-card:hover .ci-v2-card-count {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}


/* ── Bottom: Name + Desc + CTA ── */
.ci-v2-card-bottom {
    display: flex;
    flex-direction: column;
}

.ci-v2-card-name {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
    .ci-v2-card-name {
        font-size: 1.3rem;
    }
}

.ci-v2-card:hover .ci-v2-card-name {
    transform: translateY(-4px);
}

.ci-v2-card-desc {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin: 6px 0 0;
    line-height: 1.4;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition:
        max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease 0.08s,
        transform 0.4s ease 0.08s;
}

.ci-v2-card:hover .ci-v2-card-desc {
    max-height: 40px;
    opacity: 1;
    transform: translateY(0);
}


/* ── CTA — Slide-up reveal ── */
.ci-v2-card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.ci-v2-card:hover .ci-v2-card-cta {
    opacity: 1;
    transform: translateY(0);
}

.ci-v2-card-cta svg {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ci-v2-card:hover .ci-v2-card-cta svg {
    transform: translateX(4px);
}


/* ── Shimmer sweep on hover ── */
.ci-v2-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.05) 45%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 55%,
            transparent 60%);
    background-size: 300% 100%;
    background-position: 100% 0;
    pointer-events: none;
    transition: background-position 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ci-v2-card:hover::after {
    background-position: -100% 0;
}


/* ── Responsive ── */
@media (max-width: 768px) {
    .ci-section-v2 {
        padding: 4rem 0;
    }

    .ci-v2-card-content {
        padding: 1rem;
    }

    .ci-v2-card-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .ci-v2-card-icon i,
    .ci-v2-card-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .ci-v2-card-count {
        font-size: 8px;
        padding: 3px 8px;
    }

    .ci-v2-card-name {
        font-size: 13px !important;
    }

    .ci-v2-card-desc {
        display: block;
        max-height: 40px;
        opacity: 0.8;
        transform: translateY(0);
        font-size: 10px;
        margin-top: 4px;
        line-height: 1.3;
    }

    .ci-v2-card-cta {
        opacity: 1;
        transform: translateY(0);
        margin-top: 8px;
        padding-top: 6px;
    }

    .ci-v2-card {
        transform-style: flat;
    }
}

@media (max-width: 480px) {
    .ci-v2-card {
        aspect-ratio: 2 / 3;
    }

    .ci-v2-grid {
        gap: 0.75rem;
    }
}


/* ═══════════════════════════════════════════════════════════════
   REVIEW SYSTEM — Stars, Cards, Forms
   ═══════════════════════════════════════════════════════════════ */

/* ── Star Rating Display ── */
.rv-stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.rv-star {
    color: #e5e7eb;
    transition: color 0.15s ease;
}

.rv-star.filled {
    color: #f59e0b;
}

.rv-star.half {
    background: linear-gradient(90deg, #f59e0b 50%, #e5e7eb 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rv-avg {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin-left: 6px;
}

.rv-count {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-left: 4px;
}

/* ── Star Picker (form input) ── */
.rv-picker {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.rv-picker .rv-pick-star {
    font-size: 28px;
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.rv-picker .rv-pick-star:hover,
.rv-picker .rv-pick-star.active {
    color: #f59e0b;
    transform: scale(1.15);
}

.rv-picker:hover .rv-pick-star {
    color: #e5e7eb;
}

.rv-picker:hover .rv-pick-star:hover,
.rv-picker:hover .rv-pick-star:hover~.rv-pick-star-reverse,
.rv-picker .rv-pick-star.active {
    color: #f59e0b;
}

/* Hover fill: all stars up to hovered one */
.rv-picker:hover .rv-pick-star:hover,
.rv-picker:hover .rv-pick-star:has(~ .rv-pick-star:hover) {
    color: #f59e0b;
}

/* ── Review Card ── */
.rv-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.2s ease;
}

.rv-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.rv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rv-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rv-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.rv-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.rv-date {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.rv-text {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin-top: 8px;
}

/* ── Verified Purchase Badge ── */
.rv-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 8px;
    border-radius: 6px;
}

/* ── Rating Breakdown Bars ── */
.rv-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rv-breakdown-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rv-breakdown-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    width: 45px;
    flex-shrink: 0;
}

.rv-breakdown-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.rv-breakdown-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 4px;
    transition: width 0.6s ease-out;
}

.rv-breakdown-count {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Review Tab Content ── */
.rv-tab-content {
    display: none;
}

.rv-tab-content.active {
    display: block;
    animation: rvFadeIn 0.3s ease;
}

@keyframes rvFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Compact star display for cards ── */
.rv-stars-sm {
    display: inline-flex;
    gap: 1px;
    align-items: center;
}

.rv-stars-sm .rv-star {
    font-size: 11px;
}

.rv-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #92400e;
}

/* ── Top Rated Section ── */
.top-rated-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    z-index: 5;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM REVIEW FORM UI
   ═══════════════════════════════════════════════════════════════ */

/* ── Form Container ── */
.rv-premium-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

/* ── Section Header ── */
.rv-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.rv-form-header .icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.rv-form-header h4 {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.rv-form-header p {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* ── Form Cards ── */
.rv-form-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rv-form-card:hover,
.rv-form-card:focus-within {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.rv-form-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.rv-form-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
}

/* ── Interactive Stars ── */
.rv-picker-premium {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rv-picker-stars {
    display: flex;
    gap: 6px;
    cursor: pointer;
}

.rv-picker-stars .rv-pick-star {
    font-size: 32px;
    color: #e2e8f0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
    user-select: none;
}

.rv-picker-stars .rv-pick-star:hover {
    transform: scale(1.15) translateY(-2px);
}

.rv-picker-stars:hover .rv-pick-star {
    color: #e2e8f0;
}

.rv-picker-stars:hover .rv-pick-star:hover,
.rv-picker-stars:hover .rv-pick-star:has(~ .rv-pick-star:hover),
.rv-picker-stars .rv-pick-star.active {
    color: #f59e0b;
}

.rv-rating-label {
    font-size: 14px;
    font-weight: 800;
    color: #f59e0b;
    background: #fffbeb;
    padding: 6px 12px;
    border-radius: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rv-rating-label.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Review Text Area ── */
.rv-textarea {
    width: 100%;
    min-height: 120px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: #334155;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.6;
}

.rv-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #10b981);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.rv-textarea::placeholder {
    color: #94a3b8;
}

/* ── Upload Area (Drag & Drop UI) ── */
.rv-upload-area {
    position: relative;
    width: 100%;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.rv-upload-area:hover,
.rv-upload-area.dragover {
    border-color: var(--primary-color, #10b981);
    background: #f0fdf4;
}

.rv-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.rv-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.rv-upload-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.rv-upload-area:hover .rv-upload-icon,
.rv-upload-area.dragover .rv-upload-icon {
    background: #d1fae5;
    color: #059669;
    transform: translateY(-2px);
}

.rv-upload-text {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.rv-upload-subtext {
    font-size: 12px;
    color: #94a3b8;
}

.rv-upload-preview {
    margin-top: 16px;
    display: none;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.rv-upload-preview.has-file {
    display: flex;
    animation: rvFadeIn 0.3s ease;
}

.rv-upload-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.rv-upload-filename {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rv-upload-clear {
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    z-index: 20;
    position: relative;
}

/* ── CTA Button ── */
.rv-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color, #10b981), #059669);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    padding: 18px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rv-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.rv-cta:active {
    transform: translateY(1px);
}

/* ── Trust Microcopy ── */
.rv-trust-box {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rv-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.rv-trust-item i {
    color: #10b981;
}

/* -- Tab System Visibility Controls -- */
.rv-tab-content {
    display: none;
    animation: rvFadeIn 0.4s ease;
}

.rv-tab-content.active {
    display: block;
}

@keyframes rvFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ═══════════════════════════════════════════════════════════════
   BANNER SLIDER — Full-width Homepage Carousel
   Fade transition · Auto-play · Pause on hover · Dots + Arrows
   ═══════════════════════════════════════════════════════════════ */

/* ── Container ── */
.slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: var(--ux-radius-xl, 20px);
    box-shadow: var(--ux-shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.07));
    background: #f0f4f3;
}

@media (min-width: 768px) {
    .slider { height: 340px; }
}
@media (min-width: 1024px) {
    .slider { height: 380px; }
}
@media (min-width: 1440px) {
    .slider { height: 420px; }
}
@media (min-width: 1920px) {
    .slider { height: 460px; }
}

/* ── Individual Slides (fade, not slide) ── */
.slider .slide-link {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    text-decoration: none;
}

.slider .slide-link.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.slider .slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* Ken Burns — disabled for banner clarity */
.slider .slide-link.active .slide {
    transform: none;
}

/* ── Gradient Overlay — text readability ── */
.slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(15, 23, 42, 0.75) 0%,
        rgba(15, 23, 42, 0.45) 40%,
        rgba(15, 23, 42, 0.10) 70%,
        transparent 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* ── Slide Content (text overlay) ── */
.slider .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    pointer-events: none;
    padding: 40px 36px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s 0.3s ease, transform 0.6s 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.slider .slide-link.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slider .slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

.slider .slide-tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: ux-pulse-ring 2s ease infinite;
}

.slider .slide-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.slider .slide-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.slider .slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    width: fit-content;
    pointer-events: auto;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.slider .slide-cta:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .slider .slide-title { font-size: 36px; }
    .slider .slide-desc { font-size: 14px; }
    .slider .slide-content { padding: 48px 44px; max-width: 540px; }
}

@media (min-width: 1024px) {
    .slider .slide-title { font-size: 40px; }
}


/* ── Navigation Arrows — Glassmorphic ── */
.slider .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    padding: 0;
    outline: none;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease,
                border-color 0.3s ease;
}

.slider:hover .nav-arrow {
    opacity: 1;
}

.slider .nav-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.slider .nav-arrow:active {
    transform: translateY(-50%) scale(0.92) !important;
    transition-duration: 0.1s;
}

.slider .nav-arrow--prev { left: 18px; }
.slider .nav-arrow--next { right: 18px; }

.slider .nav-arrow svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}


/* ── Navigation Dots — Pill-style ── */
.slider .dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider .dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.slider .dots .dot.active {
    background: #fff;
    width: 26px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.slider .dots .dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.65);
    transform: scale(1.2);
}


/* ── Progress Bar — Bottom of slider ── */
.slider .slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #22c55e);
    z-index: 12;
    width: 0%;
    border-radius: 0 3px 0 0;
    opacity: 0.85;
}

.slider .slide-progress.animating {
    width: 100%;
    transition: width 4s linear;
}


/* ── Mobile Responsive ── */
@media (max-width: 767px) {
    .slider {
        height: 280px;
        border-radius: var(--ux-radius-lg, 16px);
    }

    .slider .nav-arrow {
        width: 38px;
        height: 38px;
        opacity: 0.8;
    }
    .slider:hover .nav-arrow { opacity: 1; }
    .slider .nav-arrow--prev { left: 10px; }
    .slider .nav-arrow--next { right: 10px; }
    .slider .nav-arrow svg { width: 16px; height: 16px; }

    .slider .slide-content {
        padding: 24px 20px;
        gap: 6px;
        max-width: 280px;
    }
    .slider .slide-title { font-size: 20px; }
    .slider .slide-desc { font-size: 11px; display: none; }
    .slider .slide-tag { font-size: 8px; padding: 4px 10px; }
    .slider .slide-cta { font-size: 9px; padding: 8px 16px; }

    .slider .dots {
        bottom: 12px;
        gap: 6px;
        padding: 5px 10px;
    }
    .slider .dots .dot { width: 6px; height: 6px; }
    .slider .dots .dot.active { width: 20px; }
}

@media (max-width: 480px) {
    .slider { height: 220px; border-radius: var(--ux-radius, 12px); }
    .slider .slide-content { padding: 18px 16px; max-width: 240px; }
    .slider .slide-title { font-size: 17px; }
    .slider .slide-cta { display: none; }
    .slider .slide-overlay {
        background: linear-gradient(
            to top,
            rgba(15, 23, 42, 0.7) 0%,
            rgba(15, 23, 42, 0.25) 50%,
            transparent 100%
        );
    }
}


/* ═══════════════════════════════════════════════════════════════
   HERO SECTION — Premium Dark Redesign
   Dark gradient · Ambient orbs · Glassmorphic image · Trust strip
   ═══════════════════════════════════════════════════════════════ */

.hp-hero {
    position: relative;
    background: linear-gradient(145deg, #0c1220 0%, #162033 40%, #0f1a2e 100%);
    padding: 72px 0 0;
    overflow: hidden;
}

/* ── Ambient Background ── */
.hp-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hp-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
}

.hp-hero-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #10b981, transparent);
    top: -100px;
    right: -80px;
    animation: hp-orb-float 12s ease-in-out infinite alternate;
}

.hp-hero-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6, transparent);
    bottom: -120px;
    left: -60px;
    animation: hp-orb-float 15s ease-in-out infinite alternate-reverse;
}

@keyframes hp-orb-float {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -20px) scale(1.1); }
}

.hp-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Layout Grid ── */
.hp-hero-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .hp-hero-grid-layout {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 60px;
    }
}

/* ── Text Content ── */
.hp-hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: 6px;
    width: fit-content;
}

.hp-hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: ux-pulse-ring 2s ease infinite;
}

.hp-hero-title {
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0;
}

@media (min-width: 768px) {
    .hp-hero-title { font-size: 48px; }
}

@media (min-width: 1024px) {
    .hp-hero-title { font-size: 56px; }
}

.hp-hero-title-accent {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    line-height: 1.6;
    max-width: 440px;
    margin: 0;
}

/* ── CTA Buttons ── */
.hp-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.hp-hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hp-hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
}

.hp-hero-cta-primary:active {
    transform: translateY(1px);
}

.hp-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 12px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.hp-hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ── Stats Row ── */
.hp-hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hp-hero-stat-num {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hp-hero-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hp-hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

/* ── Image Frame ── */
.hp-hero-visual {
    display: flex;
    justify-content: center;
}

.hp-hero-img-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hp-hero-img-glow {
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hp-hero-img-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Trust Strip ── */
.hp-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
    .hp-hero-trust {
        justify-content: space-between;
        gap: 12px;
    }
}

.hp-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hp-hero-trust-highlight {
    color: #10b981;
}

.hp-hero-trust-icon {
    font-size: 14px;
}

.hp-hero-trust-sep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    display: none;
}

@media (min-width: 768px) {
    .hp-hero-trust-sep { display: block; }
}

/* ── Mobile Responsive ── */
@media (max-width: 767px) {
    .hp-hero {
        padding: 40px 0 0;
    }

    .hp-hero-title {
        font-size: 32px;
    }

    .hp-hero-subtitle {
        font-size: 15px;
    }

    .hp-hero-stats {
        gap: 14px;
    }

    .hp-hero-stat-num {
        font-size: 18px;
    }

    .hp-hero-cta-primary,
    .hp-hero-cta-secondary {
        padding: 14px 24px;
        font-size: 12px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   SLIDER V2 — Full-width clean wrapper
   ═══════════════════════════════════════════════════════════════ */

.slider-v2-wrap {
    max-width: 100%;
    padding: 6px 12px 2px;
}

@media (min-width: 768px) {
    .slider-v2-wrap { padding: 8px 20px 4px; }
}

@media (min-width: 1200px) {
    .slider-v2-wrap { padding: 8px 32px 4px; }
}

.slider.slider-v2 {
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
    .slider.slider-v2 { border-radius: 20px; }
}


/* ═══════════════════════════════════════════════════════════════
   HERO — Centered Layout + Stat Cards
   ═══════════════════════════════════════════════════════════════ */

.hp-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px 0 40px;
}

.hp-hero-title--center {
    max-width: 820px;
}

.hp-hero-subtitle--center {
    max-width: 560px;
    text-align: center;
}

.hp-hero-actions--center {
    justify-content: center;
}

/* ── Glassmorphic Stat Cards ── */
.hp-hero-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding-bottom: 36px;
}

@media (min-width: 768px) {
    .hp-hero-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

.hp-hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.hp-hero-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.hp-hero-card-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.hp-hero-card-num {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hp-hero-card-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

@media (max-width: 767px) {
    .hp-hero-card {
        padding: 18px 12px;
    }

    .hp-hero-card-icon { font-size: 22px; }
    .hp-hero-card-num { font-size: 20px; }
    .hp-hero-card-label { font-size: 9px; }
}