/* Font is now loaded via index.html for better performance */

:root {
    --primary: #1a1a1a;
    --accent: #d4af37;
    --bg-pearl: #fdfdfd;
    --text-dark: #1a1a1a;
    --text-light: #1a1a1a;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 15px 45px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: normal !important;
}

body {
    background:
        radial-gradient(circle at 50% -8%, rgba(212, 175, 55, 0.16), transparent 36%),
        linear-gradient(180deg, #f3f5f8 0%, var(--bg-pearl) 260px);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Almarai', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
.brand-font {
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Luxury Header & Navigation */
header {
    height: auto;
    padding: var(--space-32) 0 var(--space-12) 0;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    text-align: center;
}

header .container {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.brand-title {
    display: block;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0;
}

.brand-stack {
    display: inline-block;
}

.brand-subtitle {
    margin-top: -2px;
    font-size: 0.72rem;
    letter-spacing: 0;
    color: #777;
    text-align: right;
    width: 100%;
    padding-right: 0;
    transform: none;
}

/* Natural Slider Section */
.slider-section {
    padding: var(--space-8) 0 var(--space-64) 0;
    background: transparent;
}

.swiper {
    width: 90%;
    max-width: 550px;
    aspect-ratio: 1 / 1;
    height: auto;
    background: transparent;
    box-shadow:
        0 26px 60px rgba(15, 18, 28, 0.16),
        0 10px 24px rgba(15, 18, 28, 0.1),
        0 2px 8px rgba(15, 18, 28, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.product-slider {
    position: relative;
    isolation: isolate;
}

.product-slider::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 14px;
    background: transparent;
    box-shadow:
        0 28px 64px rgba(12, 16, 24, 0.24),
        0 12px 28px rgba(12, 16, 24, 0.16),
        0 3px 10px rgba(12, 16, 24, 0.1);
    z-index: -1;
    pointer-events: none;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    transition: transform 8s ease-out;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Super smooth slow zoom */
}

.swiper-slide-active img {
    transform: scale(1.12);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
    position: static !important;
    transform: none;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 1px solid rgba(26, 26, 26, 0.15);
    border-radius: 999px;
    background: var(--white);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--accent) !important;
}

.slider-pagination {
    margin: 0;
    text-align: center;
    line-height: 1;
    width: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slider-controls {
    width: fit-content;
    margin: var(--space-12) auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: ltr;
}

.slider-controls .swiper-pagination-horizontal.swiper-pagination-bullets,
.slider-controls .swiper-pagination-bullets.swiper-pagination-horizontal {
    width: auto !important;
}

.slider-controls .swiper-pagination-bullet {
    margin: 0 4px !important;
}

/* Product Quick Summary */

/* Product Quick Summary */
.product-summary {
    text-align: center;
    margin-top: var(--space-32);
}

.product-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #000;
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    margin-bottom: var(--space-24);
    font-weight: 500;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.current-price {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}

.old-price {
    font-size: 1.2rem;
    color: #000;
    text-decoration: line-through;
    opacity: 1;
}

.discount-badge {
    background: var(--accent);
    color: #000;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.product-promo {
    margin-top: var(--space-24);
    color: #000;
    font-size: 0.95rem;
    line-height: 1.8;
}

.product-promo p {
    margin-bottom: 5px;
    opacity: 1;
}

/* Countdown Timer */
.countdown-section {
    margin-top: var(--space-32);
    background: linear-gradient(135deg, #fff 0%, var(--bg-pearl) 100%);
    padding: var(--space-24);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-soft);
    display: inline-block;
    min-width: 320px;
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #000;
    font-weight: 600;
    letter-spacing: 0;
}

.hourglass-icon {
    font-size: 1.4rem;
    display: inline-block;
    transform-origin: 50% 55%;
    animation: hourglassTick 1.9s ease-in-out infinite;
}

.timer-display {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.timer-block {
    text-align: center;
}

.timer-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--white);
    padding: 10px;
    border-radius: 6px;
    min-width: 55px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 5px;
}

.timer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0;
}

/* Stock Scarcity Indicator */
.stock-scarcity {
    margin-top: var(--space-32);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.order-trust-line {
    margin-top: var(--space-12);
    font-size: 0.88rem;
    color: #000;
    font-weight: 600;
}

.stock-text {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.stock-text span {
    color: #000;
    font-weight: 700;
}

.progress-container {
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 37%;
    border-radius: 10px;
    animation: pulseGlow 2s infinite ease-in-out;
}

/* Primary Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    padding: 16px 38px;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-primary {
    background: #1a1a1a;
    color: #fff;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Customer Stories */
.customer-stories-section {
    padding: var(--space-48) 0 var(--space-64);
    margin-top: -10px;
}

.customer-stories-header {
    text-align: center;
    margin-bottom: var(--space-24);
}

.customer-stories-header h2 {
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: 6px;
}

.customer-stories-header p {
    max-width: 760px;
    margin: 0 auto;
    color: #000;
}

.stories-subtitle {
    margin-bottom: var(--space-16);
}

.stories-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.story-bubble {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    isolation: isolate;
}

.story-bubble::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
    animation: storyRingSpin 3.8s linear infinite;
    z-index: 0;
}

.story-bubble::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    z-index: 1;
}

.story-inner {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    padding: 3px;
    background: #fff;
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 2;
}

.story-poster {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.story-play-icon {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
}

.story-play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid #fff;
}

.live-visitors-line {
    margin-top: var(--space-24);
    text-align: center;
    font-weight: 600;
}

#liveVisitorsCount {
    color: #000;
    margin: 0 6px;
}

@media (min-width: 701px) {
    .container {
        padding: 0 28px;
    }

    .slider-section .container {
        max-width: 1140px;
    }

    .product-summary {
        max-width: 780px;
        margin-inline: auto;
    }

    .product-promo p {
        max-width: 68ch;
        margin-inline: auto;
    }

    .customer-stories-section .container {
        max-width: 1080px;
    }

    .stories-row {
        gap: 22px;
    }

    .story-inner {
        width: 126px;
        height: 126px;
    }
}

@media (min-width: 992px) {
    .slider-section {
        padding-bottom: 72px;
    }

    .slider-section .container {
        display: grid;
        grid-template-columns: minmax(360px, 540px) minmax(420px, 1fr);
        grid-template-areas:
            "media summary"
            "controls summary";
        align-items: start;
        column-gap: clamp(32px, 4vw, 64px);
        row-gap: 14px;
    }

    .product-slider {
        grid-area: media;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .slider-controls {
        grid-area: controls;
        margin: 14px 0 0;
        justify-self: center;
    }

    .product-summary {
        grid-area: summary;
        margin-top: 0;
        max-width: none;
        text-align: right;
        padding-top: 10px;
    }

    .price-container {
        justify-content: flex-start;
    }

    .product-promo p {
        margin-inline: 0;
        max-width: 62ch;
    }

    .countdown-section {
        display: block;
        width: min(100%, 470px);
        min-width: 0;
    }

    .timer-display {
        justify-content: flex-start;
    }

    .product-cta {
        margin-top: 32px !important;
        text-align: right;
    }

    .order-trust-line {
        text-align: right;
    }

    .stock-scarcity {
        margin-right: 0;
        margin-left: 0;
        max-width: 470px;
        text-align: right;
    }

    .progress-container {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }

    .customer-stories-section .container {
        padding: 34px 36px 30px;
        border-radius: 24px;
        border: 1px solid rgba(16, 20, 31, 0.08);
        background: rgba(255, 255, 255, 0.64);
        box-shadow: 0 18px 42px rgba(16, 20, 31, 0.08);
    }
}

/* Story Modal */
.story-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 20px;
}

.story-modal.active {
    display: flex;
}

.story-modal-content {
    width: min(440px, 100%);
    position: relative;
}

.story-modal video {
    width: 100%;
    max-height: 78vh;
    background: #000;
    border-radius: 16px;
}

.story-close {
    position: absolute;
    top: -42px;
    left: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Order Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: min(540px, 100%);
    height: 100vh;
    background: #fff;
    z-index: 1001;
    transform: translateX(-102%);
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.14);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling for iOS Safari */
}

.drawer-container.active {
    transform: translateX(0);
}

.drawer-close {
    border: 0;
    background: rgba(0, 0, 0, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    position: absolute;
    top: 24px;
    left: 16px;
    /* Positioned on the left for RTL layouts */
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.drawer-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.drawer-content {
    padding: 60px 26px 28px;
}

.drawer-brand-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 0;
    line-height: 1;
    color: #1a1a1a;
}

.drawer-brand-subtitle {
    font-size: 0.75rem;
    color: #777;
    letter-spacing: 0;
    margin-top: 2px;
    line-height: 1;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    min-height: 50px;
    padding: 13px 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input[type="text"],
.form-group textarea {
    direction: rtl;
    text-align: right;
}

.form-group textarea {
    min-height: 50px;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: inset -3px 0 0 #d4af37;
}

.field-error {
    display: block;
    color: #c63737;
    min-height: 18px;
    font-size: 0.82rem;
    margin-top: 4px;
}

.field-invalid {
    border-color: #c63737 !important;
    box-shadow: 0 0 0 3px rgba(198, 55, 55, 0.1) !important;
}

.submit-btn {
    min-height: 54px;
    position: relative;
    border-radius: 10px;
    letter-spacing: 0;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    display: none;
    animation: spin 0.8s linear infinite;
    margin-inline-end: 8px;
}

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

.submit-btn.is-loading .submit-text {
    opacity: 0.9;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #25d366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.36);
    z-index: 1200;
    animation: whatsappPulse 2.1s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

body.drawer-open .whatsapp-float {
    opacity: 0;
    pointer-events: none;
}

header .brand-stack,
.slider-section .product-slider,
.slider-section .product-summary,
.customer-stories-section,
footer {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeRise 0.65s ease-out forwards;
}

header .brand-stack {
    animation-delay: 0.05s;
}

.slider-section .product-slider {
    animation-delay: 0.12s;
}

.slider-section .product-summary {
    animation-delay: 0.2s;
}

.customer-stories-section {
    animation-delay: 0.28s;
}

footer {
    animation-delay: 0.34s;
}

/* Dashboard Status Badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-no-action {
    background: #95a5a6;
    color: white;
}

.badge-confirmed {
    background: #3498db;
    color: white;
}

.badge-sold {
    background: #2ecc71;
    color: white;
}

.badge-returned {
    background: #e74c3c;
    color: white;
}

.status-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

.status-select:focus {
    border-color: #667eea;
}

/* Dashboard Specific Styles */
.dashboard {
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.12), transparent 35%),
        radial-gradient(circle at 90% 0%, rgba(26, 26, 26, 0.05), transparent 25%),
        #f7f8fb;
}

.dashboard-shell {
    max-width: 1460px;
    padding-top: 24px;
    padding-bottom: 40px;
}

.dashboard-layout {
    position: relative;
}

.dashboard-sidebar {
    position: fixed;
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: 84px;
    background: linear-gradient(170deg, #121317 0%, #1f2128 100%);
    border-radius: 16px;
    padding: 52px 10px 12px;
    color: #fff;
    box-shadow: 0 18px 30px rgba(17, 20, 30, 0.2);
    transform: translateX(130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 2100;
}

.dashboard-sidebar.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.dashboard-drawer-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #d7dce8;
    background: #fff;
    color: #1d2536;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-drawer-toggle.is-hidden {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

.dashboard-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 22, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 2050;
}

.dashboard-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.dashboard-drawer-close {
    position: absolute;
    top: 8px;
    left: 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.sidebar-link {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: inherit;
    text-align: center;
    height: 50px;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    display: grid;
    place-items: center;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-link.is-active {
    background: #d4af37;
    border-color: #d4af37;
    color: #161616;
    font-weight: 700;
}

.sidebar-logout {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #ffebeb;
    border: 1px solid rgba(255, 86, 86, 0.48);
    background: rgba(255, 86, 86, 0.12);
    border-radius: 10px;
    height: 50px;
    line-height: 48px;
    transition: var(--transition);
}

.sidebar-logout:hover {
    background: rgba(255, 86, 86, 0.24);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-icon-svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: currentColor;
}

.sidebar-link.is-active .nav-icon-svg {
    transform: scale(1.05);
}

.dashboard-content {
    min-width: 0;
    position: relative;
}

.dashboard-tab {
    display: none;
}

.dashboard-tab.is-active {
    display: block;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(16, 17, 20, 0.07);
    padding: 22px;
    margin-bottom: 20px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-head h2 {
    margin: 0 0 4px;
    font-size: 1.3rem;
}

.orders-panel .panel-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 6px;
    position: relative;
    padding-top: 4px;
}

.orders-panel .panel-head h2 {
    margin-bottom: 10px;
}

.stats-panel .panel-head {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.orders-panel .table-meta {
    position: absolute;
    left: 0;
    top: 0;
    align-self: auto;
}

.panel-head p {
    margin: 0;
    color: #6f7482;
}

.table-meta {
    background: #f7f9fc;
    border: 1px solid #e5e8ef;
    border-radius: 12px;
    padding: 10px 14px;
    color: #616776;
    font-size: 0.95rem;
}

.table-meta strong {
    margin-inline-start: 6px;
    color: #1a1a1a;
}

.table-tools {
    display: grid;
    grid-template-columns: 1.8fr repeat(2, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-item label {
    color: #4d5464;
    font-size: 0.92rem;
    font-weight: 700;
}

.tool-item input,
.tool-item select {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #d9dde6;
    padding: 0 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
}

.tool-item input:focus,
.tool-item select:focus {
    outline: none;
    border-color: #2f66ff;
    box-shadow: 0 0 0 3px rgba(47, 102, 255, 0.12);
}

.orders-table-wrap {
    border: 1px solid #eceef3;
    border-radius: 14px;
    overflow: hidden;
    overflow-x: auto;
}

.dashboard table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.dashboard th {
    background: #f6f8fc;
    color: #5f6779;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 1px solid #e6e9f0;
    white-space: nowrap;
}

.dashboard th,
.dashboard td {
    padding: 14px 12px;
    text-align: right;
}

.dashboard td {
    border-bottom: 1px solid #eff2f7;
    color: #1f2430;
    font-size: 0.95rem;
}

.search-hit {
    background: rgba(255, 221, 87, 0.55);
    color: #111;
    padding: 0 2px;
    border-radius: 4px;
}

.dashboard tbody tr.row-no-action {
    background: rgba(212, 175, 55, 0.12);
}

.dashboard tbody tr.row-no-action:hover {
    background: rgba(212, 175, 55, 0.18);
}

.dashboard tbody tr:hover {
    background: #fbfcff;
}

.dashboard tbody tr[data-order-id] {
    cursor: pointer;
}

.table-empty {
    text-align: center;
    color: #7b8293;
    padding: 26px;
}

.table-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.table-footer p {
    margin: 0;
    color: #616776;
}

.load-more-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #51607a;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.load-more-indicator.is-active {
    opacity: 1;
    transform: translateY(0);
}

.load-more-spinner {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(81, 96, 122, 0.25);
    border-top-color: #51607a;
    animation: spin 0.8s linear infinite;
}

.pager-actions {
    display: flex;
    gap: 10px;
}

.pager-actions button {
    border: 1px solid #d8dce7;
    background: #fff;
    color: #111;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: inherit;
    cursor: pointer;
}

.pager-actions button:hover:not(:disabled) {
    border-color: #2f66ff;
    color: #2f66ff;
}

.pager-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.status-select {
    min-width: 130px;
    background: #fff;
}

.stats-panel .stats-grid {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(230px, 270px));
    justify-content: center;
    gap: 12px;
}

.stats-kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.kpi-card {
    border: 1px solid #dfe6f2;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(13, 22, 38, 0.07);
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: center;
}

.kpi-card h3 {
    margin: 0 0 4px;
    font-size: 0.86rem;
    color: #647089;
}

.kpi-card p {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #192033;
}

.stats-detail-tabs {
    display: inline-flex;
    gap: 8px;
    background: #f1f4fa;
    border: 1px solid #e2e8f3;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 12px;
}

.stats-tab-btn {
    border: 0;
    background: transparent;
    color: #5f6b82;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.stats-tab-btn.is-active {
    background: #fff;
    color: #1e293d;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}

.stats-tab-panel {
    display: none;
}

.stats-tab-panel.is-active {
    display: block;
}

.stats-block {
    border: 1px solid #e7ecf4;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 8px 22px rgba(26, 33, 48, 0.05);
}

.stats-block-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #5e6678;
}

.stats-split {
    margin-bottom: 0;
}

.stats-inline-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.mini-insight {
    border: 1px solid #e5ebf5;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    color: #5c667a;
}

.mini-insight strong {
    color: #1b2437;
    font-size: 1rem;
}

.stats-panel .stat-card {
    border: 1px solid #e6ebf3;
    border-top-width: 3px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
    padding: 10px 12px;
    text-align: right;
    border-radius: 12px;
    min-height: 86px;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    max-width: 270px;
    justify-self: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stats-panel .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(17, 24, 39, 0.1);
    border-color: #d7deea;
}

.stats-panel .stats-grid-main {
    margin-bottom: 0;
}

.stats-panel .stats-grid-secondary,
.stats-panel .stats-grid-extra {
    margin-top: 10px;
    margin-bottom: 0;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
}

.stat-today {
    border-top-color: #ff9f1a;
}

.stat-outline {
    border-top-color: #d6dce8;
    background: #fbfcff;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.chart-card {
    border: 1px solid #edf0f5;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.chart-card h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #5a6274;
}

.chart-card canvas {
    width: 100% !important;
    height: 300px !important;
}

.stats-panel .stat-card h3 {
    margin: 0;
    color: #71798b;
    font-size: 0.86rem;
    line-height: 1.3;
}

.stats-panel .stat-card p {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1;
    color: #1a1a1a;
    font-weight: 800;
    text-align: left;
}

.stats-panel .stat-card .stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #f1f5fb;
    color: #3f4d67;
}

.stats-panel .stat-card .stat-icon svg {
    width: 18px;
    height: 18px;
}

.stat-total .stat-icon {
    background: #ebf0ff;
    color: #2f66ff;
}

.stat-no-action .stat-icon {
    background: #fff6e9;
    color: #e39a19;
}

.stat-confirmed .stat-icon {
    background: #e9f5ff;
    color: #2f66ff;
}

.stat-sold .stat-icon {
    background: #e9f8f0;
    color: #28a562;
}

.stat-returned .stat-icon {
    background: #ffecef;
    color: #e24a4a;
}

.stat-today .stat-icon {
    background: #fff2e8;
    color: #f1812a;
}

.stat-total {
    border-top-color: #111;
}

.stat-confirmed {
    border-top-color: #2f66ff;
}

.stat-sold {
    border-top-color: #2cbc74;
}

.stat-returned {
    border-top-color: #f04b4b;
}

.stat-no-action {
    border-top-color: #8f97a8;
}

.order-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 18, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 16px;
}

.order-modal.is-open {
    display: flex;
}

.order-modal-card {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 88vh;
    overflow: auto;
    padding: 20px;
}

.order-modal-close {
    position: absolute;
    top: 10px;
    left: 12px;
    border: 0;
    background: transparent;
    font-size: 1.9rem;
    cursor: pointer;
    line-height: 1;
}

.order-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-inline-end: 26px;
    margin-bottom: 14px;
}

.order-modal-head h3 {
    margin: 0;
}

.order-modal-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.order-modal-item {
    background: #f7f9fc;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    padding: 10px 12px;
}

.order-modal-item-full {
    grid-column: 1 / -1;
}

.order-modal-item strong {
    display: block;
    color: #5f6779;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.order-modal-item span {
    color: #161b25;
    word-break: break-word;
}

.order-modal-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-modal-actions label {
    font-weight: 700;
    color: #4d5464;
}

.order-modal-actions .status-select {
    min-width: 180px;
}

@media (max-width: 900px) {
    .dashboard-shell {
        padding-top: 14px;
    }

    .dashboard-layout {
        gap: 0;
    }

    .dashboard-content {
        padding-top: 0;
    }

    .stats-split {
        margin-bottom: 0;
    }

    .dashboard-sidebar {
        width: 76px;
        top: 10px;
        right: 10px;
        bottom: 10px;
        padding-top: 46px;
    }

    .table-tools {
        grid-template-columns: 1fr;
    }

    .order-modal-body {
        grid-template-columns: 1fr;
    }

    .order-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .chart-card canvas {
        height: 240px !important;
    }

    .stats-detail-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .table-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pager-actions {
        width: 100%;
    }

    .pager-actions button {
        flex: 1;
    }
}

@media (max-width: 700px) {
    header {
        padding: var(--space-24) 0 var(--space-8);
    }

    .slider-section {
        padding: var(--space-8) 0 var(--space-48) 0;
    }

    .product-summary {
        margin-top: var(--space-24);
    }

    .customer-stories-section {
        padding: var(--space-32) 0 var(--space-48);
    }

    .customer-stories-header {
        margin-bottom: var(--space-16);
    }

    .countdown-section {
        min-width: 0;
        width: 100%;
        margin-top: var(--space-24);
        padding: var(--space-16);
    }

    .timer-display {
        gap: 10px;
    }

    .timer-value {
        min-width: 48px;
        font-size: 1.4rem;
    }

    .story-inner {
        width: 94px;
        height: 94px;
    }

    .drawer-content {
        padding: 46px 16px 20px;
    }

    /* Bottom Sheet Optimization */
    .drawer-container {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 92vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(105%);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        padding-bottom: env(safe-area-inset-bottom, 20px);
        /* Support for modern mobile notch bars */
    }

    .drawer-container.active {
        transform: translateY(0);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents auto-zoom on iOS */
    }
}

/* Animations */
@keyframes hourglassTick {

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

    25% {
        transform: rotate(-10deg) scale(1.04);
    }

    75% {
        transform: rotate(10deg) scale(1.04);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes whatsappPulse {

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

    50% {
        transform: scale(1.03);
    }
}

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

@keyframes storyRingSpin {
    to {
        transform: rotate(360deg);
    }
}


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

@media (prefers-reduced-motion: reduce) {

    header .brand-stack,
    .slider-section .product-slider,
    .slider-section .product-summary,
    .customer-stories-section,
    footer {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .story-bubble::before {
        animation: none;
    }
}