/* ============================================================================
 * sales-gems-carousel.css
 * ----------------------------------------------------------------------------
 * Stylesheet for the public /sales-gems directory page.
 *
 * Each of the four banner templates (classic / vibrant / minimal / festive)
 * gets its own card visual — not just colors, but a different layout shape,
 * motion language and aesthetic. A buyer who's seen the footer rotation
 * should recognise a seller's gem at a glance.
 *
 *  • CLASSIC  — heirloom-portrait card, double gold border, slow rotating
 *               diamond watermark behind the product. Tall.
 *  • VIBRANT  — neon-arcade landscape card, holographic gradient with
 *               glitchy outline + animated grid background. Wide.
 *  • MINIMAL  — editorial / magazine card. Generous white space, a single
 *               green hairline, hairline-thin chip for the discount.
 *  • FESTIVE  — Ghana flag-inspired diagonal stripes, black star accent,
 *               confetti animation. Loud and proud.
 *
 * Added 2026-05-22.
 * ========================================================================== */

:root {
    --sgc-ink:        #0b1020;
    --sgc-ink-soft:   #4b5563;
    --sgc-muted:      #9ca3af;
    --sgc-bg:         #f6f7fb;
    --sgc-bg-deep:    #0b0f1a;
    --sgc-radius:     16px;
    --sgc-radius-sm:   8px;
    --sgc-shadow:     0 6px 22px rgba(15,23,42,.10), 0 1px 3px rgba(15,23,42,.06);
    --sgc-shadow-hi:  0 18px 48px rgba(15,23,42,.18);
    --sgc-ease:       cubic-bezier(.2,.7,.2,1);
    --sgc-display-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ============================================================================
 *  Hero
 * ========================================================================== */

.sgc-hero {
    position: relative;
    overflow: hidden;
    /* 2026-05-22 tweak — incorporate the site's deep-green palette into
       the hero gradient. Top stays the existing dusky navy so the
       purple/gold orbs still feel at home; the bottom now bleeds through
       --green-800 (#0a3a26 "deep green") into --green-900 (#062818
       "deep dark green") before fading to near-black. Keeps the
       jewel-vault drama while reading as on-brand tondomarket green. */
    background: radial-gradient(120% 95% at 20% 0%,
        #1b2046  0%,
        #122a3d 28%,
        #052618 58%,
        #062818 82%,
        #03100a 100%);
    color: #fff;
    padding: 64px 0 80px;
    margin-bottom: 32px;
    isolation: isolate;
}

.sgc-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sgc-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 75%);
}
.sgc-orb {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: .20;
    animation: sgcFloat 14s ease-in-out infinite alternate;
}

.sgc-orb-1 { width: 320px; height: 320px; left: -60px;  top: -40px;  background: #7c3aed; }
.sgc-orb-2 { width: 260px; height: 260px; right: -40px; top:  60px;  background: #d4a017; animation-delay: -4s; }
.sgc-orb-3 { width: 220px; height: 220px; left: 40%;    bottom: -80px; background: #ec4899; animation-delay: -8s; }

@keyframes sgcFloat {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(20px,-18px) scale(1.06); }
    100% { transform: translate(-12px,14px) scale(0.96); }
}

.sgc-hero-inner { position: relative; z-index: 1; text-align: center; }

.sgc-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: .72rem; letter-spacing: .22em; font-weight: 600;
    color: #ffd9a8;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}
.sgc-pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.65);
    animation: sgcPulse 1.6s infinite;
}
@keyframes sgcPulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.65); }
    70%  { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.sgc-hero-title {
    margin: 0;
    font-family: var(--sgc-display-font);
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #fff;
}
.sgc-shine {
    background: linear-gradient(120deg, #fbbf24 0%, #ffe7a3 25%, #f59e0b 50%, #ffe7a3 75%, #fbbf24 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sgcShine 5s linear infinite;
}
@keyframes sgcShine { to { background-position: 220% 0; } }

.sgc-hero-sub {
    max-width: 640px; margin: 14px auto 0;
    color: rgba(255,255,255,0.78);
    font-size: 1.02rem; line-height: 1.55;
}

.sgc-stats {
    display: inline-flex; align-items: center; gap: 22px;
    margin: 28px auto 0;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}
.sgc-stat { text-align: center; min-width: 70px; }
.sgc-stat-num {
    font-family: var(--sgc-display-font); font-weight: 800;
    font-size: 1.8rem; color: #fff; line-height: 1;
}
.sgc-stat-label {
    color: rgba(255,255,255,0.7);
    font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    margin-top: 4px;
}
.sgc-stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.15); padding: 0; min-width: 1px; }

/* Filter chips */
.sgc-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin: 22px auto 0;
}
.sgc-chip {
    appearance: none; border: 0; cursor: pointer;
    padding: 8px 16px; border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-family: var(--sgc-display-font); font-size: .82rem; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all .25s var(--sgc-ease);
}
.sgc-chip:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.sgc-chip.is-active {
    background: #fff; color: var(--sgc-ink);
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ============================================================================
 *  Grid
 * ========================================================================== */

.sgc-grid-wrap { padding-bottom: 60px; }
.sgc-grid {
    /* 2026-05-22 — strict 4-col on PC, 2-col on phone. The original
       `repeat(auto-fill, minmax(280px, 1fr))` produced a variable
       column count which made some breakpoints look sparse (3 wide
       on tablets) and broke the "40 per page" math the user wants.
       Strict grid + explicit breakpoint = predictable rhythm
       regardless of screen width. */
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}
@media (max-width: 980px)  { .sgc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 760px)  { .sgc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 380px)  { .sgc-grid { grid-template-columns: 1fr; } }

.sgc-card {
    position: relative;
    border-radius: var(--sgc-radius);
    overflow: hidden;
    transition: transform .35s var(--sgc-ease), box-shadow .35s var(--sgc-ease), opacity .4s var(--sgc-ease);
    will-change: transform;
    opacity: 0;
    transform: translateY(18px);
    animation: sgcCardIn .55s var(--sgc-ease) forwards;
}
/* Stagger the entrance using nth-child. */
.sgc-card:nth-child(1)  { animation-delay: 0.03s; }
.sgc-card:nth-child(2)  { animation-delay: 0.07s; }
.sgc-card:nth-child(3)  { animation-delay: 0.11s; }
.sgc-card:nth-child(4)  { animation-delay: 0.15s; }
.sgc-card:nth-child(5)  { animation-delay: 0.19s; }
.sgc-card:nth-child(6)  { animation-delay: 0.23s; }
.sgc-card:nth-child(7)  { animation-delay: 0.27s; }
.sgc-card:nth-child(8)  { animation-delay: 0.31s; }
.sgc-card:nth-child(n+9){ animation-delay: 0.35s; }

@keyframes sgcCardIn {
    to { opacity: 1; transform: none; }
}

.sgc-card.is-expiring {
    animation: sgcCardOut .55s var(--sgc-ease) forwards;
}
@keyframes sgcCardOut {
    0%   { opacity: 1; transform: none; filter: saturate(1); }
    100% { opacity: 0; transform: translateY(-12px) scale(0.96); filter: saturate(0.4); }
}

.sgc-card.is-hidden-filter {
    display: none !important;
}

.sgc-card:hover { transform: translateY(-4px); box-shadow: var(--sgc-shadow-hi); }

.sgc-cta-form { margin-top: 12px; }
.sgc-cta {
    appearance: none; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px 16px;
    border-radius: 12px;
    font-family: var(--sgc-display-font); font-weight: 700; font-size: .92rem;
    background: var(--sgc-cta-bg);
    color: var(--sgc-cta-color);
    transition: transform .15s var(--sgc-ease), filter .2s var(--sgc-ease);
    text-decoration: none;
}
.sgc-cta:hover  { transform: translateY(-1px); filter: brightness(1.05); }
.sgc-cta:active { transform: translateY(1px); }

/* ============================================================================
 *  CLASSIC — heirloom card
 * ========================================================================== */

.sgc-tpl-classic {
    background:
        linear-gradient(rgba(11,16,32,0.92), rgba(11,16,32,0.92)),
        var(--sgc-bg);
    color: #fff;
    padding: 14px;
    box-shadow: 0 14px 36px rgba(11,16,32,0.18);
}
.sgc-classic-frame {
    position: relative;
    border: 1px solid rgba(255,225,150,0.30);
    border-radius: 12px;
    padding: 18px 16px 18px;
    background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.0) 50%);
}
.sgc-classic-frame::after {
    content: ""; position: absolute; inset: 5px; border-radius: 8px;
    border: 1px solid rgba(255,225,150,0.16);
    pointer-events: none;
}
.sgc-classic-watermark {
    position: absolute; top: 50%; left: 50%;
    width: 70%; aspect-ratio: 1;
    transform: translate(-50%, -50%);
    color: var(--sgc-accent);
    opacity: 0.10;
    animation: sgcClassicSpin 38s linear infinite;
    pointer-events: none;
}
@keyframes sgcClassicSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.sgc-classic-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
    position: relative;
}
.sgc-classic-ribbon {
    font-size: .68rem; letter-spacing: .25em;
    color: var(--sgc-accent); font-weight: 700;
}
.sgc-classic-seal {
    background: var(--sgc-accent);
    color: #1a1a2e;
    font-weight: 800; font-size: .78rem;
    padding: 6px 10px; border-radius: 999px;
    box-shadow: 0 4px 14px rgba(253,230,138,0.30);
}
.sgc-classic-art {
    position: relative; width: 100%; aspect-ratio: 16 / 11;
    border-radius: 8px; overflow: hidden;
    background: rgba(255,255,255,0.05);
    margin: 6px 0 14px;
    border: 1px solid rgba(255,225,150,0.18);
}
.sgc-classic-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgc-classic-noart { display: grid; place-items: center; height: 100%; font-size: 3rem; }

.sgc-classic-title {
    margin: 0 0 4px; font-size: 1.06rem; font-weight: 700;
    color: #fff; line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sgc-classic-by {
    font-size: .76rem; color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
}
.sgc-classic-prices {
    display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px;
}
.sgc-classic-was { color: rgba(255,255,255,0.5); text-decoration: line-through; font-size: .82rem; }
.sgc-classic-now { color: var(--sgc-accent); font-weight: 800; font-size: 1.15rem; }

.sgc-classic-timer {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,225,150,0.18);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    color: var(--sgc-accent);
}
.sgc-classic-cta {
    box-shadow: 0 6px 16px rgba(217,119,6,0.25);
}

/* ============================================================================
 *  VIBRANT — neon-arcade card
 * ========================================================================== */

.sgc-tpl-vibrant {
    /* 2026-05-22 — Originally `grid-column: span 2` so the vibrant card
       was twice as wide as the others. Removed when the page moved to
       a strict 4-col PC / 2-col phone grid — a 2-wide vibrant breaks
       the 40-per-page math AND collapses on phone (would take the
       whole row, leaving a single 1-card row). Card content now flows
       into a single-column layout that still looks good — the wide
       landscape design adapts to portrait when the column is narrow. */
    background: var(--sgc-bg);
    padding: 0;
    color: #fff;
    box-shadow: 0 14px 36px rgba(168,85,247,0.28);
    border-radius: 18px;
}

.sgc-vibrant-frame {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    min-height: 280px;
}
.sgc-vibrant-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 50% 100%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000 20%, transparent 75%);
    pointer-events: none;
}
.sgc-vibrant-glitch {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
    background-size: 100% 6px;
    animation: sgcVibrantScan 4s linear infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
}
@keyframes sgcVibrantScan { to { background-position: 0 100%; } }

.sgc-vibrant-art {
    position: relative; z-index: 1;
    width: 100%; min-height: 240px;
    overflow: hidden;
}
.sgc-vibrant-art::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(0,0,0,0.4) 100%);
}
.sgc-vibrant-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgc-vibrant-noart { display: grid; place-items: center; height: 100%; font-size: 4rem; color: #fff; }

.sgc-vibrant-burst {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    width: 78px; height: 78px;
    display: grid; place-items: center;
}
.sgc-vibrant-burst-bg {
    position: absolute; inset: 0;
    background: #fde047;
    clip-path: polygon(50% 0%,61% 18%,82% 12%,79% 33%,98% 40%,82% 55%,93% 75%,72% 73%,66% 94%,50% 80%,34% 94%,28% 73%,7% 75%,18% 55%,2% 40%,21% 33%,18% 12%,39% 18%);
    animation: sgcBurstSpin 12s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(253,224,71,0.5));
}
@keyframes sgcBurstSpin { to { transform: rotate(360deg); } }
.sgc-vibrant-burst-pct {
    position: relative; z-index: 1;
    font-family: var(--sgc-display-font); font-weight: 800;
    font-size: 1.15rem; color: #3b0a45;
    line-height: 1;
}
.sgc-vibrant-burst-off {
    position: absolute; bottom: 18px; left: 0; right: 0;
    text-align: center; font-size: .58rem; letter-spacing: .15em;
    font-weight: 800; color: #3b0a45;
}

.sgc-vibrant-body {
    position: relative; z-index: 1;
    padding: 22px 20px;
    background: var(--sgc-bg);
    display: flex; flex-direction: column;
    justify-content: center;
}
.sgc-vibrant-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.16);
    padding: 5px 10px; border-radius: 999px;
    font-size: .68rem; letter-spacing: .2em; font-weight: 700;
    width: max-content; margin-bottom: 10px;
}
.sgc-blip {
    width: 7px; height: 7px; border-radius: 50%;
    background: #fef9c3; box-shadow: 0 0 10px #fef9c3;
    animation: sgcPulse 1.6s infinite;
}
.sgc-vibrant-title {
    margin: 0 0 12px; font-size: 1.25rem; font-weight: 800;
    color: #fff; line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sgc-vibrant-meta {
    display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px;
}
.sgc-vibrant-was { color: rgba(255,255,255,0.55); text-decoration: line-through; font-size: .9rem; }
.sgc-vibrant-now { color: #fef9c3; font-weight: 800; font-size: 1.55rem; }

.sgc-vibrant-timer {
    color: rgba(255,255,255,0.85); font-size: .82rem; margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}
.sgc-vibrant-cta {
    background: #fde047 !important; color: #3b0a45 !important;
    text-transform: uppercase; letter-spacing: .08em;
    box-shadow: 0 6px 16px rgba(253,224,71,0.4);
}

/* ============================================================================
 *  MINIMAL — editorial card
 * ========================================================================== */

.sgc-tpl-minimal {
    background: #fefce8;
    color: #1f2937;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(31,41,55,0.06), inset 0 0 0 1px rgba(31,41,55,0.06);
}
.sgc-minimal-frame { display: flex; flex-direction: column; height: 100%; }
.sgc-minimal-art {
    position: relative;
    width: 100%; aspect-ratio: 4/3;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}
.sgc-minimal-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgc-minimal-noart { display: grid; place-items: center; height: 100%; color: #d4d4d4; font-size: 3.5rem; font-weight: 200; }
.sgc-minimal-chip {
    position: absolute; top: 10px; right: 10px;
    background: #16a34a; color: #fff;
    font-weight: 700; font-size: .72rem;
    padding: 4px 9px; border-radius: 4px;
    letter-spacing: .04em;
}
.sgc-minimal-body { display: flex; flex-direction: column; flex: 1; }
.sgc-minimal-eyebrow {
    font-size: .66rem; letter-spacing: .25em; font-weight: 600;
    color: #16a34a; margin-bottom: 6px;
}
.sgc-minimal-title {
    margin: 0 0 10px;
    font-family: var(--sgc-display-font);
    font-weight: 600; font-size: 1.08rem;
    color: #111827; line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sgc-minimal-rule { height: 1px; background: #16a34a; width: 32px; margin: 6px 0 10px; }
.sgc-minimal-by { font-size: .78rem; color: #6b7280; margin-bottom: 10px; }
.sgc-minimal-prices { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sgc-minimal-was { color: #9ca3af; text-decoration: line-through; font-size: .82rem; }
.sgc-minimal-now { color: #15803d; font-weight: 700; font-size: 1.2rem; }
.sgc-minimal-timer {
    font-size: .78rem; color: #6b7280;
    font-variant-numeric: tabular-nums;
    margin-bottom: 12px;
    margin-top: auto;
}
.sgc-minimal-timer span { color: #15803d; font-weight: 600; }
.sgc-minimal-cta {
    background: #16a34a !important; color: #fff !important;
    border-radius: 4px;
    text-transform: none; letter-spacing: 0;
    font-weight: 600;
}
.sgc-minimal-arrow { transition: transform .25s var(--sgc-ease); }
.sgc-minimal-cta:hover .sgc-minimal-arrow { transform: translateX(4px); }

/* ============================================================================
 *  FESTIVE — Ghana flag-inspired card
 * ========================================================================== */

.sgc-tpl-festive {
    background: #fff;
    color: #1f2937;
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(220,38,38,0.18);
    border: 1px solid #fef08a;
}
.sgc-festive-frame {
    position: relative;
    padding: 16px;
    overflow: hidden;
    border-radius: 14px;
}
.sgc-festive-stripes {
    position: absolute; top: 0; left: 0; right: 0;
    height: 6px; display: flex;
    pointer-events: none;
}
.sgc-festive-stripe { flex: 1; }
.sgc-festive-red   { background: #dc2626; }
.sgc-festive-gold  { background: #d4a017; }
.sgc-festive-green { background: #15803d; }
.sgc-festive-confetti {
    position: absolute; inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.sgc-festive-confetti span {
    position: absolute; width: 8px; height: 8px;
    border-radius: 2px;
    opacity: 0;
    animation: sgcConfetti 7s ease-in-out infinite;
}
.sgc-festive-confetti span:nth-child(1) { left:  6%; top: -10px; background: #dc2626; animation-delay: 0s;   }
.sgc-festive-confetti span:nth-child(2) { left: 18%; top: -10px; background: #d4a017; animation-delay: 0.5s; }
.sgc-festive-confetti span:nth-child(3) { left: 32%; top: -10px; background: #15803d; animation-delay: 1s;   }
.sgc-festive-confetti span:nth-child(4) { left: 46%; top: -10px; background: #dc2626; animation-delay: 1.5s; }
.sgc-festive-confetti span:nth-child(5) { left: 58%; top: -10px; background: #d4a017; animation-delay: 2s;   }
.sgc-festive-confetti span:nth-child(6) { left: 72%; top: -10px; background: #15803d; animation-delay: 2.5s; }
.sgc-festive-confetti span:nth-child(7) { left: 84%; top: -10px; background: #dc2626; animation-delay: 3s;   }
.sgc-festive-confetti span:nth-child(8) { left: 92%; top: -10px; background: #d4a017; animation-delay: 3.5s; }
@keyframes sgcConfetti {
    0%   { transform: translateY(0)    rotate(0);   opacity: 0; }
    10%  { opacity: 0.85; }
    100% { transform: translateY(600px) rotate(540deg); opacity: 0; }
}

.sgc-festive-head {
    display: flex; align-items: center; gap: 12px;
    margin: 8px 0 12px;
    position: relative; z-index: 1;
}
.sgc-festive-star {
    width: 44px; height: 44px;
    background: #0b1020;
    color: #d4a017;
    border-radius: 50%;
    display: grid; place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(11,16,32,0.20);
}
.sgc-festive-head-text { flex: 1; min-width: 0; }
.sgc-festive-eyebrow {
    font-size: .66rem; letter-spacing: .22em; font-weight: 700;
    color: #dc2626;
}
.sgc-festive-by { font-size: .78rem; color: #6b7280; margin-top: 2px; }
.sgc-festive-stamp {
    background: linear-gradient(135deg, #dc2626 0%, #d4a017 100%);
    color: #fff;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: grid; place-items: center;
    text-align: center;
    font-weight: 800; font-size: 1rem;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(220,38,38,0.30);
    flex-shrink: 0;
    transform: rotate(-8deg);
}
.sgc-festive-stamp span { font-size: .58rem; letter-spacing: .12em; opacity: 0.92; }
.sgc-festive-art {
    width: 100%; aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    background: #fffbeb;
    margin-bottom: 12px;
    position: relative; z-index: 1;
}
.sgc-festive-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgc-festive-noart { display: grid; place-items: center; height: 100%; font-size: 3rem; color: #d4a017; }
.sgc-festive-title {
    margin: 0 0 10px;
    font-size: 1.06rem; font-weight: 700;
    color: #1f2937; line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative; z-index: 1;
}
.sgc-festive-prices {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 10px;
    position: relative; z-index: 1;
}
.sgc-festive-was { color: #9ca3af; text-decoration: line-through; font-size: .82rem; }
.sgc-festive-arr { color: #d4a017; font-weight: 700; }
.sgc-festive-now { color: #15803d; font-weight: 800; font-size: 1.2rem; }

.sgc-festive-timer {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 6px;
    background: #fffbeb;
    border: 1px solid #fef08a;
    color: #7f1d1d;
    font-size: .8rem; font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-bottom: 12px;
    position: relative; z-index: 1;
}
.sgc-festive-cta {
    background: linear-gradient(135deg, #dc2626 0%, #d4a017 50%, #15803d 100%) !important;
    color: #fff !important;
    font-weight: 700;
    position: relative; z-index: 1;
}

/* ============================================================================
 *  Grid foot + Empty state
 * ========================================================================== */

.sgc-grid-foot {
    margin-top: 32px;
    text-align: center;
    color: var(--sgc-muted);
    font-size: .85rem;
}

.sgc-empty-wrap { padding: 40px 16px 80px; }
.sgc-empty {
    display: grid; grid-template-columns: 220px 1fr; gap: 32px;
    align-items: center;
    padding: 36px;
    border-radius: 20px;
    background: radial-gradient(120% 80% at 0% 0%, #1b2046 0%, #0b0f1a 70%);
    color: #fff;
    box-shadow: var(--sgc-shadow-hi);
    margin-bottom: 28px;
}
@media (max-width: 640px) {
    .sgc-empty { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
    .sgc-empty-stage { margin: 0 auto; }
}

.sgc-empty-stage {
    position: relative; width: 220px; height: 220px;
    display: grid; place-items: center;
}
.sgc-empty-gem {
    animation: sgcGemHover 6s ease-in-out infinite;
    filter: drop-shadow(0 16px 30px rgba(124,58,237,0.45));
}
@keyframes sgcGemHover {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-10px) rotate(2deg); }
}
.sgc-spark {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 12px #fbbf24;
    opacity: 0;
    animation: sgcSpark 3s ease-in-out infinite;
}
.sgc-spark-a { top: 10%;  left: 14%; animation-delay: 0s; }
.sgc-spark-b { top: 24%;  right: 8%; animation-delay: 0.7s; background: #ec4899; box-shadow: 0 0 12px #ec4899; }
.sgc-spark-c { bottom: 18%; left: 8%; animation-delay: 1.4s; background: #06b6d4; box-shadow: 0 0 12px #06b6d4; }
.sgc-spark-d { bottom: 12%; right: 18%; animation-delay: 2.1s; }
@keyframes sgcSpark {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    40%      { opacity: 1; transform: scale(1.2); }
    60%      { opacity: 1; transform: scale(1); }
}

.sgc-empty-copy h2 {
    margin: 0 0 10px;
    font-family: var(--sgc-display-font); font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: #fff; line-height: 1.15;
}
.sgc-empty-eyebrow {
    font-size: .72rem; letter-spacing: .22em; font-weight: 600;
    color: #fde68a;
    margin-bottom: 10px;
}
.sgc-empty-copy p {
    color: rgba(255,255,255,0.78);
    line-height: 1.55;
    max-width: 520px;
    margin: 0 0 18px;
}
.sgc-empty-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .sgc-empty-ctas { justify-content: center; } }
.sgc-btn {
    appearance: none; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px;
    font-family: var(--sgc-display-font); font-weight: 600; font-size: .9rem;
    text-decoration: none;
    transition: transform .2s var(--sgc-ease), filter .2s var(--sgc-ease);
}
.sgc-btn:hover { transform: translateY(-1px); }
/* 2026-05-22 tweak — main.css declares a site-wide
       `a:hover { color: var(--green-900); }` rule. Without an explicit
   override our ghost button — which is an <a> tag — picked up dark
   green text on its already-dark hover background and became
   effectively invisible. Both button variants now pin their hover
   color explicitly so the global rule can't reach them. */
.sgc-btn-primary        { background: linear-gradient(135deg, #fbbf24, #d97706); color: #1a1a2e; }
.sgc-btn-primary:hover,
.sgc-btn-primary:focus  { color: #1a1a2e; }
.sgc-btn-ghost   {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.sgc-btn-ghost:hover,
.sgc-btn-ghost:focus {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.45);
}

.sgc-empty-tiles {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.sgc-empty-tiles li {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--sgc-shadow);
    border: 1px solid rgba(15,23,42,0.06);
}
.sgc-tile-ico { font-size: 1.6rem; margin-bottom: 6px; }
.sgc-empty-tiles strong { display: block; color: var(--sgc-ink); margin-bottom: 4px; font-size: .98rem; }
.sgc-empty-tiles span { color: var(--sgc-ink-soft); font-size: .85rem; line-height: 1.4; }

/* ============================================================================
 *  Pagination (carousel page)  — added 2026-05-22
 * ========================================================================== */

.sgc-pager {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin: 36px 0 8px;
    flex-wrap: wrap;
}
.sgc-pager-arrow,
.sgc-pager-num {
    appearance: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    color: #0b1020;
    font-family: var(--sgc-display-font); font-weight: 600; font-size: .88rem;
    text-decoration: none;
    transition: background .2s var(--sgc-ease), border-color .2s var(--sgc-ease), transform .15s var(--sgc-ease), color .2s var(--sgc-ease);
}
.sgc-pager-arrow:hover,
.sgc-pager-num:hover  {
    background: #0b1020;
    color: #fff;
    border-color: #0b1020;
    transform: translateY(-1px);
}
.sgc-pager-arrow.is-disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}
.sgc-pager-strip {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.sgc-pager-num.is-current {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #1a1a2e;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.30);
}
.sgc-pager-num.is-current:hover { transform: none; }
.sgc-pager-gap {
    display: inline-flex; align-items: center;
    padding: 0 8px;
    color: #9ca3af;
    font-size: .9rem;
}
.sgc-pager-info {
    text-align: center;
    color: var(--sgc-muted);
    font-size: .84rem;
    margin: 6px 0 0;
}
.sgc-pager-info strong { color: var(--sgc-ink); }

/* ============================================================================
 *  Seller dashboard — per-carousel-gem analytics cards  (2026-05-22)
 *  Loaded by the same stylesheet so admin/seller pages don't need a
 *  second <link>. Scoped under .sgc-seller-* to avoid colliding with
 *  the seller dashboard's existing .tile / .card rules.
 * ========================================================================== */

.sgc-seller-section {
    margin: 1.4rem 0 1.2rem;
}
.sgc-seller-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    margin: 0 0 .6rem;
}
.sgc-seller-head h2 {
    margin: 0;
    font-family: var(--sgc-display-font);
    font-weight: 700; font-size: 1.05rem;
    color: var(--sgc-ink);
    display: flex; align-items: center; gap: 8px;
}
.sgc-seller-head h2::before {
    content: '';
    width: 8px; height: 8px; border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
    animation: sgcPulse 1.6s infinite;
    flex-shrink: 0;
}
.sgc-seller-head small { color: var(--sgc-muted); font-size: .82rem; }

.sgc-seller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.sgc-seller-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 4px 14px rgba(15,23,42,0.04);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.sgc-seller-card::before {
    /* Brand stripe along the top — colored per template slug so the
       seller can tell at a glance which template the gem uses. */
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #fbbf24, #d97706);
}
.sgc-seller-card[data-tpl="vibrant"]::before { background: linear-gradient(90deg, #ec4899, #06b6d4); }
.sgc-seller-card[data-tpl="minimal"]::before { background: linear-gradient(90deg, #16a34a, #84cc16); }
.sgc-seller-card[data-tpl="festive"]::before { background: linear-gradient(90deg, #dc2626, #d4a017, #15803d); }

.sgc-seller-row {
    display: flex; align-items: center; gap: 12px;
}
.sgc-seller-thumb {
    width: 56px; height: 56px;
    border-radius: 10px;
    overflow: hidden; flex-shrink: 0;
    background: #f3f4f6;
    display: grid; place-items: center;
}
.sgc-seller-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgc-seller-thumb-fb { font-size: 1.4rem; color: #9ca3af; }

.sgc-seller-meta { min-width: 0; flex: 1; }
.sgc-seller-title {
    font-weight: 700; font-size: .95rem; color: var(--sgc-ink);
    margin: 0; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.sgc-seller-sub {
    color: var(--sgc-muted); font-size: .76rem; margin-top: 2px;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.sgc-seller-sub .sgc-seller-tpl {
    text-transform: capitalize;
    background: rgba(15,23,42,0.05);
    padding: 1px 8px; border-radius: 999px;
    color: var(--sgc-ink-soft);
}

.sgc-seller-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    margin-top: 2px;
}
.sgc-seller-stat {
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
}
.sgc-seller-stat-num {
    font-family: var(--sgc-display-font);
    font-weight: 800; font-size: 1.15rem;
    color: var(--sgc-ink);
    line-height: 1.1;
}
.sgc-seller-stat-label {
    font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--sgc-muted);
    margin-top: 2px;
}

.sgc-seller-foot {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .76rem; color: var(--sgc-muted);
    padding-top: 6px;
    border-top: 1px dashed rgba(15,23,42,0.08);
    font-variant-numeric: tabular-nums;
}
.sgc-seller-foot strong { color: #15803d; }
.sgc-seller-foot .sgc-seller-discount {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #1a1a2e;
    padding: 2px 8px; border-radius: 999px; font-weight: 700;
    font-size: .72rem;
}

/* Empty state inside the section. */
.sgc-seller-empty {
    background: #f8fafc;
    border: 1px dashed rgba(15,23,42,0.10);
    border-radius: 12px;
    padding: 18px;
    color: var(--sgc-muted);
    font-size: .88rem;
    text-align: center;
}
.sgc-seller-empty strong { color: var(--sgc-ink); }
.sgc-seller-empty a { color: #d97706; font-weight: 600; }

/* ============================================================================
 *  Reduced motion: respect users who opt out of animations.
 * ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .sgc-card, .sgc-orb, .sgc-shine, .sgc-pulse-dot,
    .sgc-classic-watermark, .sgc-vibrant-grid, .sgc-vibrant-glitch,
    .sgc-vibrant-burst-bg, .sgc-blip, .sgc-spark, .sgc-empty-gem,
    .sgc-festive-confetti span {
        animation: none !important;
    }
    .sgc-card { opacity: 1; transform: none; }
}
