/* Miftah Shop — premium medium-dark glass, mobile-first */

:root {
    --bg-deep: #0b1220;
    --bg-mid: #152238;
    --glass: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --muted: rgba(255, 255, 255, 0.7);
    --primary: #7c3aed;
    --secondary: #06b6d4;
    --highlight: #22c55e;
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --accent-3: #a78bfa;
    --danger: #fb7185;
    --warn: #fbbf24;
    --success: #22c55e;
    --glow-purple: 0 10px 30px rgba(124, 58, 237, 0.3);
    --shadow: 0 8px 32px rgba(7, 11, 24, 0.5);
    --radius: 20px;
    --radius-sm: 12px;
    --font: "Inter", system-ui, sans-serif;
    --font-display: "Poppins", var(--font);
    --max: 1200px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-bottom: 6rem;
}

body.site-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background-color: #0b1220;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.site-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.25), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.2), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at top left, rgba(106, 92, 255, 0.45) 0%, transparent 44%),
        radial-gradient(circle at 90% 18%, rgba(6, 182, 212, 0.28) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.18) 0%, transparent 48%),
        linear-gradient(165deg, #0b1220 0%, #152238 48%, #0b1220 100%);
    pointer-events: none;
}

.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: float 18s ease-in-out infinite;
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: #7c3aed;
    top: -80px;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 280px;
    height: 280px;
    background: #06b6d4;
    bottom: 10%;
    left: -60px;
    animation-delay: -6s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #db2777;
    top: 40%;
    left: 40%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeUp 0.55s ease both;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.1rem;
    position: relative;
    z-index: 3;
}

.site-header.site-header--premium.glass,
.site-header.glass {
    position: sticky;
    top: 0;
    z-index: 200;
    margin: 0.65rem auto 0;
    max-width: calc(var(--max) + 2rem);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(1.35);
    -webkit-backdrop-filter: blur(12px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: box-shadow 0.35s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}

.site-header.site-header--premium.glass:hover {
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow:
        0 12px 42px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(124, 58, 237, 0.18),
        0 0 48px rgba(124, 58, 237, 0.14);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-brand:hover .logo-mark {
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.55);
    transform: scale(1.03);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.42);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.32rem;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #fff 0%, rgba(255, 255, 255, 0.88) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    padding: 0.52rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.94rem;
    transition:
        color 0.25s ease,
        background 0.3s var(--ease-out),
        text-shadow 0.3s ease,
        box-shadow 0.3s var(--ease-out);
}

.main-nav .nav-link--with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.main-nav .nav-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.88);
}

.main-nav .nav-link-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.main-nav .nav-link-text {
    font-weight: 600;
}

.main-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.32rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.32s var(--ease-out);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.45);
}

.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
}

.main-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.main-nav .nav-link.is-active {
    color: #fff;
    background: rgba(124, 58, 237, 0.18);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}

.main-nav .nav-link.is-active::after {
    transform: scaleX(1);
}

.main-nav .cart-nav-link::after {
    display: none;
}

.main-nav .cart-nav-link:hover {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.main-nav .cart-nav-link.is-active {
    background: rgba(6, 182, 212, 0.12);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.cart-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.38rem;
    height: 1.38rem;
    padding: 0 0.38rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.nav-link--admin {
    border: 1px dashed rgba(255, 255, 255, 0.22);
    margin-left: 0.15rem;
}

.nav-link--admin:hover {
    border-color: rgba(124, 58, 237, 0.45);
}

.nav-text-btn.nav-linkish {
    padding: 0.52rem 0.9rem;
    border-radius: var(--radius-sm);
    margin: 0;
}

.nav-text-btn.nav-linkish.nav-linkish--with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    width: auto;
}

.nav-text-btn.nav-linkish .nav-link-icon {
    color: rgba(255, 255, 255, 0.88);
}

.nav-text-btn.nav-linkish .nav-link-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.nav-text-btn.nav-linkish:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.25s ease;
    transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@keyframes mainNavReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-nav.is-open {
        animation: none;
    }

    .main-nav .nav-link::after {
        transition: none;
    }

    .nav-toggle span {
        transition: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.55rem);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem;
        gap: 0.15rem;
        border-radius: var(--radius);
        background: rgba(11, 18, 32, 0.92);
        backdrop-filter: blur(16px) saturate(1.2);
        -webkit-backdrop-filter: blur(16px) saturate(1.2);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 58, 237, 0.12);
    }

    .main-nav.is-open {
        display: flex;
        animation: mainNavReveal 0.38s var(--ease-out) both;
    }

    .main-nav a {
        padding: 0.72rem 1rem;
    }

    .main-nav .nav-link::after {
        left: 1rem;
        right: 1rem;
        bottom: 0.45rem;
    }

    .site-header .container {
        position: relative;
    }
}

.site-main {
    padding: 2rem 1.1rem 3.5rem;
    min-height: 60vh;
}

/* Footer — premium SaaS-style */
.site-footer--premium.glass-footer {
    margin: 2.5rem auto 5.75rem;
    max-width: calc(var(--max) + 2rem);
    padding: 2rem 1.5rem 1.25rem;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%),
        rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        var(--shadow),
        0 -1px 0 rgba(124, 58, 237, 0.2),
        0 -20px 48px rgba(124, 58, 237, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 3rem;
        text-align: left;
        align-items: start;
    }
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin: 0 0 0.85rem;
}

.footer-text,
.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-nav {
        align-items: flex-start;
    }
}

.footer-nav a {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 2px;
    transition: color 0.3s var(--ease-out), text-shadow 0.25s, background-size 0.35s var(--ease-out);
}

.footer-nav a:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.45);
    background-size: 100% 1px;
}

.footer-social-icons {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-social-icons {
        justify-content: flex-start;
    }
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.08);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow:
        0 10px 32px rgba(124, 58, 237, 0.4),
        0 0 24px rgba(6, 182, 212, 0.2);
}

.footer-bottom {
    margin-top: 1.75rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -1px 0 rgba(124, 58, 237, 0.15);
    text-align: center;
}

.footer-copy {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.footer-staff-hint {
    margin: 0.5rem 0 0;
    font-size: 0.7rem;
}

.footer-staff-link {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-staff-link:hover {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
}

/* Tawk.to widget loads its own UI (bottom-right) */

.legal-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.legal-page h1 {
    font-family: var(--font-display);
    color: #fff;
    margin: 0 0 1rem;
}

.legal-page--policy {
    max-width: 720px;
}

.legal-lead {
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.legal-h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 1.5rem 0 0.5rem;
}

.legal-page .legal-h2 + p {
    margin-top: 0.35rem;
}

.legal-list {
    margin: 0.35rem 0 0.25rem;
    padding-left: 1.35rem;
    line-height: 1.6;
}

.legal-list li {
    margin-bottom: 0.35rem;
}

.text-secondary {
    color: var(--text-secondary);
}

.about-page .text-secondary + .text-secondary {
    margin-top: 1.1rem;
}

.link-inline {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.link-inline:hover {
    text-decoration: underline;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    align-items: center;
}

.hero.glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: 1.1fr 0.9fr;
        padding: 2.75rem 2.5rem;
    }
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--secondary);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero .lead {
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
    max-width: 42ch;
}

.hero .lead.hero-lead-follow {
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

@keyframes heroCopyIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy-animate .hero-content > .eyebrow,
.hero-copy-animate .hero-content > h1,
.hero-copy-animate .hero-content > .lead,
.hero-copy-animate .hero-content > .btn {
    animation: heroCopyIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-copy-animate .hero-content > .eyebrow {
    animation-delay: 0.03s;
}

.hero-copy-animate .hero-content > h1 {
    animation-delay: 0.09s;
}

.hero-copy-animate .hero-content > p.lead:not(.hero-lead-follow) {
    animation-delay: 0.16s;
}

.hero-copy-animate .hero-content > p.lead.hero-lead-follow {
    animation-delay: 0.22s;
}

.hero-copy-animate .hero-content > .btn {
    animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy-animate .hero-content > .eyebrow,
    .hero-copy-animate .hero-content > h1,
    .hero-copy-animate .hero-content > .lead,
    .hero-copy-animate .hero-content > .btn {
        animation: none;
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: min(100%, 320px);
    aspect-ratio: 1;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.4), rgba(6, 182, 212, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow), var(--glow-purple);
    animation: float 12s ease-in-out infinite;
}

/* Hero product showcase (auto carousel) */
.hero-showcase-wrap {
    width: min(100%, 320px);
    animation: float 12s ease-in-out infinite;
}

.hero-showcase {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow), 0 0 0 1px rgba(124, 58, 237, 0.12), var(--glow-purple);
    animation: heroFrameGlow 5.5s ease-in-out infinite alternate;
}

.hero-showcase.glass-card {
    border-radius: 24px;
}

.hero-showcase-shimmer {
    position: absolute;
    inset: -40%;
    background: conic-gradient(
        from 220deg,
        transparent 0deg,
        rgba(167, 139, 250, 0.14) 55deg,
        transparent 110deg,
        rgba(6, 182, 212, 0.1) 200deg,
        transparent 280deg
    );
    animation: heroShimmerSpin 18s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.hero-showcase-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    perspective: 1100px;
    transform-style: preserve-3d;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: inherit;
    overflow: hidden;
    opacity: 0;
    z-index: 0;
    transform: scale(1.07) translateY(18px) rotateX(6deg);
    filter: blur(12px);
    transition:
        opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        z-index 0s linear 0.5s;
    pointer-events: none;
    outline: none;
}

.hero-slide:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(6, 182, 212, 0.85);
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
    transform: scale(1) translateY(0) rotateX(0);
    filter: blur(0);
    pointer-events: auto;
    transition:
        opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        z-index 0s linear 0s;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
}

.hero-slide.is-active .hero-slide-img {
    animation: heroKenBurns 15s cubic-bezier(0.33, 1, 0.36, 1) forwards;
}

.hero-slide-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    margin: 0.5rem;
    border-radius: 14px;
    font-size: 0.78rem;
    background: rgba(7, 11, 24, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-slide-name {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.hero-slide-price {
    font-weight: 700;
    color: #a5f3fc;
    flex-shrink: 0;
}

.hero-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.hero-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.08);
}

.hero-carousel-dot.is-active {
    width: 26px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.95), rgba(6, 182, 212, 0.85));
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.45);
}

@keyframes heroFrameGlow {
    from {
        box-shadow: var(--shadow), 0 0 0 1px rgba(124, 58, 237, 0.12), var(--glow-purple);
    }
    to {
        box-shadow:
            var(--shadow),
            0 0 28px rgba(124, 58, 237, 0.38),
            0 0 0 1px rgba(6, 182, 212, 0.22);
    }
}

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

@keyframes heroKenBurns {
    0% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-showcase-wrap {
        animation: none;
    }

    .hero-showcase {
        animation: none;
    }

    .hero-showcase-shimmer {
        animation: none;
        opacity: 0.25;
    }

    .hero-slide {
        filter: none !important;
        transform: none !important;
        transition: opacity 0.35s ease;
    }

    .hero-slide:not(.is-active) {
        transform: none !important;
    }

    .hero-slide.is-active .hero-slide-img {
        animation: none;
        transform: none;
    }
}

/* Glass cards */
.glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

.glass-card:hover:not(.product-card--premium):not(.hero-showcase) {
    transform: translateY(-4px);
    box-shadow: var(--glow-purple), 0 16px 48px rgba(7, 11, 24, 0.55);
    border-color: rgba(255, 255, 255, 0.16);
}

@keyframes cardShineSweep {
    0% {
        transform: skewX(-12deg) translateX(-100%);
        opacity: 0;
    }
    18% {
        opacity: 1;
    }
    100% {
        transform: skewX(-12deg) translateX(120%);
        opacity: 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    min-height: 44px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.2s, filter 0.2s;
}

.btn:hover {
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    color: #fff;
    box-shadow: var(--glow-purple);
}

.btn-primary:hover {
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.45);
    transform: scale(1.02) translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.98) translateY(0);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.text-danger {
    color: var(--danger) !important;
}

/* Sections */
.section-block {
    margin-top: 2rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0;
    color: #fff;
}

.section-head-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.link-arrow {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.25s, text-shadow 0.25s;
}

.link-arrow:hover {
    text-decoration: underline;
    color: #fff;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.muted {
    color: var(--muted);
}

/* Product grid — premium interactive cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.65rem;
    }
}

.product-card--premium.glass-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        transform 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out),
        border-color 0.45s var(--ease-out);
}

.product-card--premium.glass-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: 72%;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(
        100deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 60%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transform: skewX(-12deg) translateX(-100%);
    transition: opacity 0.35s var(--ease-out);
}

.product-card--premium.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        var(--glow-purple),
        0 24px 56px rgba(7, 11, 24, 0.55),
        0 0 0 1px rgba(124, 58, 237, 0.35),
        0 0 40px rgba(124, 58, 237, 0.15);
    border-color: rgba(255, 255, 255, 0.18);
}

.product-card--premium.glass-card:hover::after {
    opacity: 1;
    animation: cardShineSweep 0.85s var(--ease-out) forwards;
}

.product-card--premium .product-card-tilt {
    transition: transform 0.12s linear;
    transform-style: preserve-3d;
    will-change: transform;
}

.product-card-visual {
    position: relative;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(11, 18, 32, 0.65);
    border-radius: var(--radius-sm);
}

.product-card--premium .product-image-wrap {
    margin: 0.65rem 0.65rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.product-card--premium:hover .product-image-wrap {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card--premium .product-image-wrap img.product-img {
    --parallax-x: 0px;
    --parallax-y: 0px;
    transition: filter 0.55s var(--ease-out), transform 0.4s var(--ease-out);
}

.product-card--premium .product-image-wrap img.product-img:not(.is-loaded) {
    filter: blur(14px);
    transform: scale(1.06) translate3d(0, 0, 0);
}

.product-card--premium .product-image-wrap img.product-img.is-loaded {
    filter: brightness(1);
    transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
}

.product-card--premium:hover .product-image-wrap img.product-img.is-loaded {
    filter: brightness(1.07);
    transform: scale(1.12) translate3d(var(--parallax-x), var(--parallax-y), 0);
}

.product-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7, 11, 20, 0.92) 0%,
        rgba(11, 18, 32, 0.55) 42%,
        transparent 72%
    );
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
}

.product-card--premium:hover .product-card-gradient {
    opacity: 1;
}

.product-card-hover-info {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 5.5rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    pointer-events: none;
}

.product-card--premium:hover .product-card-hover-info {
    opacity: 1;
    transform: translateY(0);
}

.hover-info-price {
    font-family: var(--font-display);
    font-size: 1.38rem;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 0 28px rgba(124, 58, 237, 0.75),
        0 0 48px rgba(6, 182, 212, 0.35),
        0 2px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
}

.hover-info-stock {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
}

.hover-info-stock.status-sold-out {
    background: rgba(239, 68, 68, 0.35);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.55);
}

.hover-info-stock.status-low-stock {
    background: rgba(245, 158, 11, 0.3);
    color: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.hover-info-stock.status-in-stock {
    background: rgba(34, 197, 94, 0.28);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.product-card-actions {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem 0.85rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    pointer-events: none;
}

.product-card--premium:hover .product-card-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.quick-add-form {
    margin: 0;
    width: 100%;
    max-width: 200px;
}

.btn-overlay {
    width: 100%;
    max-width: 200px;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn-overlay:hover {
    transform: scale(1.02);
}

.btn-overlay:active {
    transform: scale(0.98);
}

.btn-view:hover {
    transform: scale(1.02);
    background: rgba(124, 58, 237, 0.5);
    border-color: rgba(124, 58, 237, 0.65);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
}

.btn-view:active {
    transform: scale(0.98);
}

.btn-quick-add {
    background: rgba(34, 197, 94, 0.28);
    border-color: rgba(34, 197, 94, 0.5);
}

.btn-quick-add:hover {
    transform: scale(1.02);
    background: rgba(34, 197, 94, 0.45);
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.3);
}

.btn-quick-add:active {
    transform: scale(0.98);
}

.btn-overlay-muted {
    cursor: default;
    opacity: 0.75;
}

/* Touch / coarse pointers */
@media (hover: none), (pointer: coarse) {
    .product-card--premium .product-card-actions {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        justify-content: flex-end;
        padding-bottom: 0.65rem;
        background: linear-gradient(to top, rgba(7, 11, 20, 0.94), transparent);
    }

    .product-card--premium .product-card-hover-info {
        opacity: 1;
        transform: none;
        bottom: 4.75rem;
    }

    .product-card--premium .product-card-gradient {
        opacity: 0.72;
    }

    .product-card--premium .product-image-wrap img {
        filter: none;
        transform: none;
    }

    .product-card--premium.glass-card:hover {
        transform: none;
    }
}

.product-card-body {
    padding: 1.05rem 1rem 1.25rem;
}

.product-card-body-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s var(--ease-out);
}

.product-card-body-link:hover {
    opacity: 0.94;
}

.product-card-body-link:hover h3 {
    text-decoration: underline;
    text-decoration-color: rgba(124, 58, 237, 0.65);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.3s var(--ease-out);
}

.product-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--secondary);
    font-weight: 600;
}

.product-card-body h3 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0.4rem 0;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card--premium .product-price {
    font-family: var(--font-display);
    font-weight: 700;
    margin: 0.15rem 0 0;
    font-size: 1.18rem;
    color: #c4b5fd;
    text-shadow: 0 0 24px rgba(124, 58, 237, 0.55), 0 0 40px rgba(6, 182, 212, 0.2);
    letter-spacing: -0.02em;
    transition: color 0.35s var(--ease-out), text-shadow 0.35s var(--ease-out);
}

.product-card--premium:hover .product-price {
    color: #ddd6fe;
    text-shadow: 0 0 32px rgba(124, 58, 237, 0.7), 0 0 48px rgba(6, 182, 212, 0.28);
}

.product-price {
    font-weight: 700;
    margin: 0;
    color: var(--primary);
    font-size: 1.05rem;
}

.product-price.big {
    font-size: 1.55rem;
}

.product-image-wrap.large {
    border-radius: var(--radius-sm);
}

.badge-sold,
.badge-low {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.badge-sold {
    background: rgba(251, 113, 133, 0.9);
    color: #1a0508;
}

.badge-low {
    background: rgba(251, 191, 36, 0.95);
    color: #1a1404;
}

/* Page head */
.page-head {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.page-head h1 {
    font-family: var(--font-display);
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    color: #fff;
}

/* Shop layout */
.shop-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 960px) {
    .shop-layout {
        grid-template-columns: 260px 1fr;
        align-items: start;
    }
}

.filters {
    padding: 1.25rem;
    position: sticky;
    top: 5.5rem;
}

.filters-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

.filter-form .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.field span {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1rem;
    border-radius: var(--radius);
}

.pagination.glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.page-info {
    color: var(--muted);
    font-size: 0.9rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
}

.empty-state-rich {
    padding: 2.25rem 1.75rem;
    max-width: 28rem;
    margin-inline: auto;
}

.empty-state-rich p {
    margin: 0.35rem 0 0;
    line-height: 1.5;
}

.product-grid .span-grid,
.product-grid .shop-empty-wide {
    grid-column: 1 / -1;
    justify-self: stretch;
}

.shop-empty-wide {
    max-width: 36rem;
}

/* Skeleton / loading shimmer (product cards, utilities) */
@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-line,
.skeleton-block {
    border-radius: var(--radius-sm);
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.12) 45%,
        rgba(255, 255, 255, 0.04) 90%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-line {
    height: 0.65rem;
    margin: 0.35rem 0;
}

.skeleton-block {
    min-height: 4rem;
}

.product-card--premium .product-image-wrap:has(img.product-img:not(.is-loaded))::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        rgba(124, 58, 237, 0.08) 0%,
        rgba(6, 182, 212, 0.14) 40%,
        rgba(124, 58, 237, 0.08) 80%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.25s ease-in-out infinite;
    pointer-events: none;
}

.product-card--premium .product-image-wrap img.product-img {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-line,
    .skeleton-block,
    .product-card--premium .product-image-wrap:has(img.product-img:not(.is-loaded))::before {
        animation: none;
        background: rgba(255, 255, 255, 0.06);
    }
}

/* Product detail */
.product-detail-media {
    padding: 0.65rem;
}

.product-detail {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 880px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.product-detail-info {
    padding: 1.5rem;
}

.product-detail-info h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0.5rem 0 0.75rem;
    color: #fff;
}

.product-desc {
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.stock-line {
    font-weight: 600;
    margin: 0 0 1rem;
}

.text-warn {
    color: var(--warn);
}

.add-cart-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.field.inline {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.field.inline input {
    width: 5rem;
}

.link-back {
    color: var(--accent-2);
    text-decoration: none;
}

/* Cart */
.cart-row {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.85rem;
}

@media (max-width: 560px) {
    .cart-row {
        grid-template-columns: 72px 1fr;
    }

    .cart-row-total {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.cart-thumb img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 1;
    object-fit: cover;
}

.cart-row-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.cart-row-body h3 a {
    color: inherit;
    text-decoration: none;
}

.cart-row-body h3 a:hover {
    color: var(--accent-2);
}

.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    margin-top: 1rem;
}

.cart-summary {
    text-align: right;
}

.subtotal {
    margin: 0 0 0.5rem;
}

.inline-form {
    display: inline;
}

/* Checkout */
.checkout-grid {
    display: grid;
    gap: 1.25rem;
    max-width: 720px;
}

@media (min-width: 720px) {
    .checkout-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 900px;
    }
}

.checkout-form,
.checkout-note {
    padding: 1.5rem;
}

.check-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.check-list li {
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(251, 113, 133, 0.15);
    border: 1px solid rgba(251, 113, 133, 0.4);
    color: #fecdd3;
}

.alert-success {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
}

/* Success */
.success-hero {
    max-width: 520px;
    margin: 2rem auto;
    padding: 2.5rem;
    text-align: center;
}

.success-hero h1 {
    font-family: var(--font-display);
    margin: 0 0 0.75rem;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Admin */
.admin-body .admin-bg {
    opacity: 0.85;
}

.admin-top {
    margin-top: 0.75rem;
}

.admin-nav {
    gap: 0.2rem;
}

.admin-top .logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.admin-top .admin-link {
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: rgba(254, 202, 202, 0.95);
}

.admin-top .admin-link:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fff;
}

.admin-main {
    padding-bottom: 2rem;
}

.admin-footer {
    margin-top: auto;
}

.admin-page-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .admin-page-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.25rem 1.35rem;
}

.stat-card.accent {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(6, 182, 212, 0.14));
    border-color: rgba(124, 58, 237, 0.25);
}

.stat-card.accent-commission {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(124, 58, 237, 0.2));
    border-color: rgba(34, 197, 94, 0.28);
}

.stat-card.accent-commission-soft {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(34, 197, 94, 0.1));
    border-color: rgba(167, 139, 250, 0.22);
}

.commission-kpi-value {
    color: #c4b5fd;
    text-shadow: 0 0 18px rgba(167, 139, 250, 0.35);
}

/* Executive dashboard insights */
.exec-insights-section {
    margin-bottom: 2.5rem;
}

.exec-subhead {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.75rem 0 0.85rem;
    color: rgba(255, 255, 255, 0.92);
}

.exec-insights-section .exec-subhead:first-of-type {
    margin-top: 0;
}

.exec-year-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .exec-year-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.exec-year-card,
.exec-yoy-card {
    padding: 1.15rem 1.25rem;
}

.exec-year-label {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
}

.exec-year-stats,
.exec-yoy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.exec-year-stats li,
.exec-yoy-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.35rem;
}

.exec-year-stats li:last-child,
.exec-yoy-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exec-yoy-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.exec-yoy--up {
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
}

.exec-yoy--down {
    box-shadow: 0 0 28px rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.22);
}

.exec-yoy-note {
    margin: 0.75rem 0 0;
    line-height: 1.35;
}

.exec-mini-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .exec-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .exec-mini-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.exec-customer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 640px) {
    .exec-customer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.exec-customer-grid .exec-top-customers {
    grid-column: 1 / -1;
}

.exec-mini-card {
    padding: 1.1rem 1.2rem;
}

.exec-trend-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0.35rem 0;
    font-size: 0.95rem;
}

.exec-trend {
    font-weight: 700;
    font-size: 1.15rem;
    margin-left: 0.15rem;
}

.exec-trend--up {
    color: #4ade80;
}

.exec-trend--down {
    color: #f87171;
}

.exec-trend--flat {
    color: rgba(255, 255, 255, 0.45);
}

.metric-up {
    color: #4ade80 !important;
}

.metric-down {
    color: #f87171 !important;
}

.sparkline {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 44px;
    margin-top: 0.6rem;
}

.sparkline-bar {
    flex: 1;
    min-height: 3px;
    align-self: flex-end;
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.95), rgba(124, 58, 237, 0.45));
    border-radius: 3px 3px 1px 1px;
    opacity: 0.92;
}

.mini-bar-block {
    margin-top: 0.65rem;
}

.mini-bar-block:first-of-type {
    margin-top: 0.35rem;
}

.mini-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
    color: var(--muted);
}

.mini-bar-track {
    height: 9px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-bar-fill {
    display: block;
    height: 100%;
    border-radius: 6px;
    min-width: 0;
    transition: width 0.45s var(--ease-out);
}

.mini-bar-fill--commission {
    background: linear-gradient(90deg, #6d28d9, #a78bfa);
}

.mini-bar-fill--profit {
    background: linear-gradient(90deg, #047857, #34d399);
}

.row-warn-soft {
    background: rgba(251, 191, 36, 0.04) !important;
}

.normal-weight {
    font-weight: 400;
}

.exec-tables-grid {
    margin-bottom: 0;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.45rem;
    display: block;
}

.stat-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.table-wrap {
    overflow-x: auto;
    padding: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.row-warn {
    background: rgba(251, 191, 36, 0.08) !important;
}

.row-danger {
    background: rgba(251, 113, 133, 0.1) !important;
}

.actions {
    white-space: nowrap;
}

.actions form {
    display: inline;
}

.admin-search {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.admin-search input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
}

.pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.1);
}

.status-pending { background: rgba(251, 191, 36, 0.25); color: #fde68a; }
.status-shipped { background: rgba(34, 211, 238, 0.2); color: #a5f3fc; }
.status-delivered { background: rgba(74, 222, 128, 0.2); color: #bbf7d0; }

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pills .pill {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.filter-pills .pill.active {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-color: transparent;
    color: #fff;
}

.pill.inv-ok { background: rgba(74, 222, 128, 0.2); color: #bbf7d0; }
.pill.inv-low { background: rgba(251, 191, 36, 0.25); color: #fde68a; }
.pill.inv-out { background: rgba(251, 113, 133, 0.25); color: #fecdd3; }

/* Orders admin */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    padding: 1.25rem;
}

.order-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.order-card-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--font-display);
}

.order-card-total {
    text-align: right;
}

.status-form {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.status-form select {
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
}

.order-items-mini {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Notifications */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notif-item {
    padding: 1rem 1.15rem;
}

.notif-item.type-low_stock {
    border-left: 3px solid var(--warn);
}

.notif-item.type-out_of_stock {
    border-left: 3px solid var(--danger);
}

.notif-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    display: block;
    margin-bottom: 0.35rem;
}

.notif-item p {
    margin: 0 0 0.35rem;
}

.notif-item time {
    font-size: 0.8rem;
}

/* Product edit form */
.product-edit-form,
.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-edit-form {
    padding: 1.5rem;
    max-width: 640px;
}

/* Login */
.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-wrap {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.login-card {
    padding: 2rem;
}

.login-card h1 {
    font-family: var(--font-display);
    margin: 0 0 0.25rem;
}

.login-card .hint {
    font-size: 0.8rem;
    margin-top: 1rem;
}

.login-card code {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Stock status badges (storefront + admin) */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.status-sold-out {
    background: rgba(239, 68, 68, 0.28);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.55);
}

.status-low-stock {
    background: rgba(245, 158, 11, 0.28);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.status-in-stock {
    background: rgba(34, 197, 94, 0.26);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.product-status-overlay {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    left: auto;
    z-index: 6;
    max-width: calc(100% - 1.1rem);
    text-align: right;
    font-size: 0.65rem;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
}

.text-success-soft {
    color: var(--highlight);
}

.profit-text {
    color: var(--success) !important;
    font-weight: 700;
}

/* Reporting dashboard */
.report-section {
    margin-bottom: 2rem;
}

.report-section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 720px) {
    .report-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.report-card {
    padding: 1.25rem 1.35rem;
}

.report-card h3 {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
}

.report-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.report-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.report-list li:last-child {
    border-bottom: none;
}

.report-list span:first-child {
    color: var(--muted);
}

.charts-section {
    margin-bottom: 2.25rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .charts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.chart-card {
    padding: 1.15rem 1.25rem 1.35rem;
}

.chart-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-family: var(--font-display);
}

.chart-canvas-wrap {
    position: relative;
    height: 240px;
    width: 100%;
}

@media (max-width: 480px) {
    .chart-canvas-wrap {
        height: 200px;
    }
}

.dashboard-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 960px) {
    .dashboard-two-col {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.notif-list.compact .notif-item {
    padding: 0.75rem 0.9rem;
}

.empty-state.compact {
    padding: 1.25rem;
}

.compact-table td,
.compact-table th {
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.15rem;
}

.pill.tag-sold-out {
    text-decoration: none;
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.2);
    border: 1px solid rgba(251, 113, 133, 0.35);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill.tag-sold-out:hover {
    background: rgba(251, 113, 133, 0.32);
}

/* Order line profit breakdown */
.order-totals-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
}

.order-totals-stack span {
    color: var(--muted);
}

.order-totals-stack strong {
    color: var(--text);
    margin-left: 0.35rem;
}

.order-card-total strong {
    display: inline;
    margin-bottom: 0;
    font-size: inherit;
}

.order-items-detailed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.order-items-detailed li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--glass-border);
    font-size: 0.88rem;
}

@media (min-width: 640px) {
    .order-items-detailed li {
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 0.75rem;
    }
}

.order-items-detailed .oi-main {
    font-weight: 500;
}

.order-items-detailed .oi-prices {
    font-size: 0.82rem;
}

.order-items-detailed .oi-profit {
    font-weight: 700;
    font-size: 0.9rem;
}

.page-head.glass {
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

/* Scroll reveal (storefront product grid) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .animate-in {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn:hover,
    .btn-primary:hover,
    .btn-overlay:hover,
    .btn-view:hover,
    .btn-quick-add:hover {
        transform: none;
    }

    .product-card--premium.glass-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    .product-card--premium:hover .product-image-wrap img.product-img.is-loaded {
        transform: none;
        filter: brightness(1);
    }

    body::before,
    .orb {
        animation: none !important;
    }
}

/* --- Production checkout, auth, order tracking, product detail --- */
.row-muted {
    opacity: 0.72;
}

.small-meta {
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.nav-logout-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.nav-text-btn {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.2s, box-shadow 0.35s var(--ease-out);
}

.nav-text-btn:hover {
    color: #fff;
    box-shadow: 0 1px 0 0 rgba(124, 58, 237, 0.85);
}

.narrow-form {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

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

.checkout-page {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 960px) {
    .checkout-page {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.checkout-section-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 1.25rem 0 0.75rem;
    color: #fff;
}

.checkout-section-title:first-of-type {
    margin-top: 0;
}

.checkout-form-main {
    padding: 1.35rem 1.5rem;
}

.radio-line,
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.radio-line input,
.checkbox-line input {
    width: auto;
    accent-color: var(--primary);
}

.checkout-payment-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.checkout-payment-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    font-family: var(--font);
}

.checkout-pay-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.35));
}

.checkout-pay-strip-text {
    letter-spacing: 0.02em;
}

.checkout-paypal-panel {
    margin: 1rem 0 0.5rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    max-width: 100%;
}

.checkout-paypal-panel[hidden] {
    display: none !important;
}

.checkout-qr-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin: 0.35rem 0 0 1.85rem;
    max-width: 100%;
}

.checkout-qr-hint[hidden] {
    display: none !important;
}

.checkout-qr-hint-change {
    padding: 0.2rem 0.65rem;
    font-size: 0.82rem;
}

.checkout-qr-modal-overlay[hidden] {
    display: none !important;
}

.checkout-qr-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(7, 11, 24, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    backdrop-filter: blur(8px);
}

.checkout-qr-modal-dialog {
    position: relative;
    max-width: 340px;
    width: 100%;
    padding: 1.35rem 1.2rem 1.25rem;
    text-align: center;
}

.checkout-qr-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.55rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text, #fff);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-qr-modal-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.checkout-qr-modal-title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-family: var(--font-display);
    padding-right: 1.5rem;
}

.checkout-qr-pick-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 1rem;
}

.checkout-qr-step-show {
    text-align: center;
}

.checkout-qr-back {
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    padding: 0.35rem 0.65rem;
}

.checkout-qr-show-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-family: var(--font-display);
}

.checkout-qr-show-sub {
    margin: 0 0 0.65rem;
    line-height: 1.4;
}

.checkout-qr-modal-figure {
    margin: 0 0 0.75rem;
}

.checkout-qr-modal-figure img {
    max-width: 100%;
    width: min(260px, 100%);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.checkout-paypal-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.checkout-paypal-badge {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #003087, #009cde);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 112, 186, 0.35);
}

.paypal-button-container {
    min-height: 48px;
    max-width: 100%;
    width: 100%;
}

.paypal-sdk-loading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.paypal-sdk-loading-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #003087, #009cde);
    box-shadow: 0 0 12px rgba(0, 157, 222, 0.6);
    animation: paypal-pulse 1s ease-in-out infinite;
}

@keyframes paypal-pulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .paypal-sdk-loading-dot {
        animation: none;
        opacity: 1;
    }
}

.paypal-inline-err {
    margin: 0;
    color: var(--warn);
}

.small-print {
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}

.btn-checkout-submit {
    margin-top: 1rem;
}

.checkout-summary-side {
    padding: 1.35rem 1.5rem;
    position: sticky;
    top: 5.5rem;
}

.checkout-summary-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-summary-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 0.65rem;
    align-items: center;
}

.cs-thumb-wrap img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.cs-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cs-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-totals-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.checkout-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.checkout-total-final {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--glass-border);
    font-size: 1.05rem;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.checkout-total-price {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: #fff;
    text-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
}

.glass-inset {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.check-list.compact {
    font-size: 0.88rem;
}

.order-timeline {
    list-style: none;
    margin: 1.25rem 0 1.75rem;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 14px;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 0;
}

.order-timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    color: var(--text);
}

.order-timeline-step .otl-dot {
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 auto 0.45rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.order-timeline-step.is-done .otl-dot {
    background: rgba(34, 197, 94, 0.5);
    border-color: rgba(34, 197, 94, 0.85);
}

.order-timeline-step.is-current .otl-dot {
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.65);
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.45);
}

.order-track-detail {
    padding: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.order-track-grid {
    display: grid;
    gap: 1.25rem;
    margin: 1rem 0;
}

@media (min-width: 560px) {
    .order-track-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.order-track-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-track-items li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.product-detail-premium .product-detail-hero-img {
    max-width: min(100%, 520px);
    margin: 0 auto;
}

.product-detail-hero-img img.product-img-detail {
    width: 100%;
    height: auto;
    max-height: min(70vh, 640px);
    object-fit: cover;
    display: block;
}

.product-price-glow {
    text-shadow: 0 0 28px rgba(124, 58, 237, 0.4);
}

.related-products-block {
    margin-top: 2.5rem;
}

@media (min-width: 900px) {
    .chart-card-wide {
        grid-column: 1 / -1;
    }
}

.chart-canvas-tall {
    height: 280px;
}

.insights-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .insights-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.insights-card-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-family: var(--font-display);
    color: #fff;
}

.product-detail-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .product-detail-layout {
        grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
    }
}

.product-detail-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 1rem;
}

.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stars-static {
    color: #fbbf24;
    letter-spacing: 0.08em;
}

.product-stock-highlight .stock-count-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    font-weight: 600;
}

.product-reviews-section {
    margin-top: 2rem;
}

.reviews-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
}

.review-stars {
    color: #fbbf24;
    letter-spacing: 0.05em;
}

.review-comment {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.reviews-list-card,
.review-form-card {
    padding: 1.25rem 1.35rem;
}

.order-success-hero {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.5rem;
}

.success-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.25);
    border: 2px solid rgba(34, 197, 94, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #86efac;
}

.order-confirm-summary {
    text-align: left;
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
}

.order-confirm-summary p {
    margin: 0.35rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.confirm-grand {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.comms-note {
    font-size: 0.88rem;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
}

/* —— v4: analytics, inventory, reviews, trust, order lifecycle —— */

.analytics-extra-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
    .analytics-extra-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .analytics-extra-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.compare-card .compare-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.9rem;
}

.compare-card .compare-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.compare-card .compare-list .metric-trend {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.85;
}

.compare-card .compare-list .metric-trend.is-up {
    color: #86efac;
}

.compare-card .compare-list .metric-trend.is-down {
    color: #fb7185;
}

.inventory-insight-pill {
    font-size: 0.82rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.reorder-flag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: rgba(251, 113, 133, 0.2);
    color: #fecdd3;
}

.order-timeline-cell {
    max-width: 14rem;
    line-height: 1.35;
}

.product-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.35rem;
}

.product-title-row h1 {
    margin: 0;
}

.title-rating-bloc {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stars-visual {
    display: inline-block;
    position: relative;
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 0.06em;
    --rating: 0;
}

.stars-visual-bg {
    color: rgba(255, 255, 255, 0.22);
}

.stars-visual-fg {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    width: calc((var(--rating) / 5) * 100%);
    color: #fbbf24;
}

.title-rating-meta {
    font-size: 0.95rem;
}

.review-breakdown-block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.review-breakdown-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.review-breakdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.review-breakdown-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.review-breakdown-list .breakdown-label {
    color: #fbbf24;
    font-weight: 600;
    min-width: 2.5rem;
}

.review-sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.review-sort-link {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.review-sort-link:hover {
    color: var(--text);
    border-color: var(--glass-border);
}

.review-sort-link.is-active {
    color: #fff;
    background: rgba(124, 58, 237, 0.35);
    border-color: rgba(167, 139, 250, 0.45);
}

.review-stars-filled {
    font-size: 1.05rem;
}

.trust-badges-checkout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
}

.trust-badge {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.trust-badge-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.trust-badge strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.1rem;
}

.order-lifecycle-times {
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
}

.order-lifecycle-times p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.stock-urgency-card {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fbbf24;
}

.stock-urgency-msg {
    font-weight: 700;
}

.order-success-layout {
    max-width: 520px;
}

.success-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #86efac;
    margin: 0 0 0.35rem;
}

.order-success-lead {
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
}

.order-num-highlight {
    color: #a78bfa;
}

.order-success-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0.75rem 0 1rem;
}

.order-confirm-summary-enhanced .order-summary-heading {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.pill.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.pill.status-shipped {
    background: rgba(6, 182, 212, 0.2);
    color: #a5f3fc;
}

.pill.status-delivered {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

/* —— v5: checkout payment overlay, product gallery & sticky bar, account order, BI —— */

/* [hidden] must beat .btn display rules */
.checkout-pay-overlay[hidden],
.checkout-pay-dismiss[hidden] {
    display: none !important;
}

.checkout-pay-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 11, 24, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}

.checkout-pay-modal {
    max-width: 380px;
    width: 100%;
    padding: 1.5rem 1.35rem;
    text-align: center;
}

.checkout-pay-status {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.checkout-pay-status.pay-msg-success {
    color: #86efac;
}

.checkout-pay-status.pay-msg-error {
    color: #fda4af;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.product-gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
    opacity: 0.85;
    transition: border-color 0.2s, opacity 0.2s;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
    border-color: rgba(167, 139, 250, 0.85);
    opacity: 1;
}

.product-gallery-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
}

.product-hero-commerce-block {
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
}

.product-price-hero .product-price {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.stock-count-hero {
    font-size: 0.95rem;
    font-weight: 700;
}

.product-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 0.65rem 0;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(11, 18, 32, 0.92) 30%);
    pointer-events: none;
}

.product-sticky-bar .product-sticky-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    max-width: var(--max);
    margin: 0 auto;
}

.product-sticky-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.product-sticky-name {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
}

.product-sticky-price {
    font-size: 1.05rem;
    font-weight: 700;
}

.product-sticky-cta {
    flex-shrink: 0;
}

.product-buy-anchor {
    display: block;
    height: 1px;
    margin: 0;
    padding: 0;
}

.product-trust-section {
    margin-top: 1.5rem;
}

.trust-badges-product {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

@media (min-width: 640px) {
    .trust-badges-product {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.account-order-detail {
    padding: 1.25rem 1.35rem;
    max-width: 720px;
}

.account-order-timeline {
    margin: 0 0 1rem;
}

.account-order-subh {
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
}

.account-order-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-order-items li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.account-order-grand {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.account-reorder-form {
    margin: 1.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.order-table-link {
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
}

.order-table-link:hover {
    text-decoration: underline;
}

.mono-textarea {
    font-family: ui-monospace, monospace;
    font-size: 0.82rem;
}

.admin-highlight-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .admin-highlight-grid {
        grid-template-columns: 1fr 1.4fr;
    }
}

.order-trend-summary {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.email-status-line.email-sent {
    color: #86efac;
}

.email-status-line.email-failed {
    color: #fda4af;
}

.email-status-line.email-pending {
    color: rgba(255, 255, 255, 0.55);
}

.email-status-admin.email-sent {
    color: #86efac;
}

.email-status-admin.email-failed {
    color: #fda4af;
}

.email-status-admin.email-pending {
    color: rgba(255, 255, 255, 0.6);
}
