/* ════════════════════════════════════════════════════════════════════
   SevinHub v5.0 — Premium 2026 Polish Layer
   Loaded after sevinhub.css and admin.css. Augments, never replaces.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --v5-grad-1: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
  --v5-grad-2: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #7c3aed 100%);
  --v5-grad-3: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --v5-grad-text: linear-gradient(90deg, #a78bfa 0%, #60a5fa 35%, #22d3ee 70%, #a78bfa 100%);
  --v5-mesh-1: radial-gradient(circle at 20% 0%, rgba(124,58,237,.22), transparent 45%);
  --v5-mesh-2: radial-gradient(circle at 80% 20%, rgba(59,130,246,.18), transparent 50%);
  --v5-mesh-3: radial-gradient(circle at 50% 100%, rgba(6,182,212,.12), transparent 55%);
  --v5-glass:  rgba(17,17,32,.6);
  --v5-glass-h: rgba(22,22,42,.78);
  --v5-stroke: rgba(255,255,255,.08);
  --v5-stroke-strong: rgba(255,255,255,.14);
  --v5-shadow-lg: 0 24px 60px -20px rgba(0,0,0,.6), 0 0 0 1px var(--v5-stroke);
  --v5-shadow-glow: 0 0 80px -10px rgba(124,58,237,.4);
  --v5-radius: 16px;
  --v5-radius-lg: 22px;
  --v5-radius-xl: 28px;
}

/* ─────────────────────────────────────────────
   1. Live ticker (top of homepage)
   ───────────────────────────────────────────── */
.v5-ticker {
  background: linear-gradient(90deg, rgba(124,58,237,.10), rgba(59,130,246,.10) 40%, rgba(6,182,212,.08));
  border-bottom: 1px solid var(--v5-stroke);
  font-size: .8rem;
  color: var(--text-secondary);
  padding: .55rem 0;
  overflow: hidden;
  position: relative;
}
.v5-ticker-inner {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: v5tickerScroll 50s linear infinite;
  will-change: transform;
}
.v5-ticker:hover .v5-ticker-inner { animation-play-state: paused; }
.v5-ticker-item { display: inline-flex; align-items: center; gap: .5rem; }
.v5-ticker-item i { color: var(--purple-light); }
.v5-ticker-item .v5-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
  animation: v5pulseGreen 1.6s ease-in-out infinite;
}
.v5-ticker-item strong { color: var(--text-primary); font-weight: 600; }
.v5-ticker-sep { color: var(--text-muted); }
@keyframes v5tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes v5pulseGreen { 0%,100% { box-shadow: 0 0 0 4px rgba(16,185,129,.15);} 50% { box-shadow: 0 0 0 8px rgba(16,185,129,0);} }

/* ─────────────────────────────────────────────
   2. Trust strip (under hero)
   ───────────────────────────────────────────── */
.v5-trust-strip {
  background: rgba(8,8,15,.5);
  border-top: 1px solid var(--v5-stroke);
  border-bottom: 1px solid var(--v5-stroke);
  padding: 1.25rem 0;
}
.v5-trust-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1.75rem;
  font-size: .78rem; color: var(--text-muted);
}
.v5-trust-item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; letter-spacing: .02em;
  transition: color .2s;
}
.v5-trust-item:hover { color: var(--text-primary); }
.v5-trust-item i { font-size: 1rem; color: var(--purple-light); }
.v5-trust-divider {
  width: 1px; height: 18px; background: var(--v5-stroke);
}

/* ─────────────────────────────────────────────
   3. Aurora/mesh hero background
   ───────────────────────────────────────────── */
.sh-hero.v5-aurora { background: var(--bg-base) !important; }
.sh-hero.v5-aurora::before { display: none !important; } /* suppress legacy grid */
.v5-aurora {
  position: relative;
  background:
    var(--v5-mesh-1),
    var(--v5-mesh-2),
    var(--v5-mesh-3),
    var(--bg-base);
}
.v5-aurora::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 85%);
  pointer-events: none;
}
.v5-aurora-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55;
  pointer-events: none;
  animation: v5floatBlob 14s ease-in-out infinite;
}
.v5-aurora-blob.b1 { top: -120px; left: 5%; width: 320px; height: 320px; background: #7c3aed; }
.v5-aurora-blob.b2 { top: 20%; right: -80px; width: 280px; height: 280px; background: #3b82f6; animation-delay: -5s; }
.v5-aurora-blob.b3 { bottom: -120px; left: 40%; width: 360px; height: 360px; background: #06b6d4; animation-delay: -9s; opacity: .35; }
@keyframes v5floatBlob {
  0%,100% { transform: translateY(0) translateX(0) scale(1); }
  50%     { transform: translateY(-30px) translateX(20px) scale(1.06); }
}

/* ─────────────────────────────────────────────
   4. Animated gradient text
   ───────────────────────────────────────────── */
.v5-grad-text {
  background: var(--v5-grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: v5gradShift 6s ease-in-out infinite;
}
@keyframes v5gradShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* ─────────────────────────────────────────────
   5. Premium primary button (magnetic feel)
   ───────────────────────────────────────────── */
.btn-v5 {
  position: relative; display: inline-flex; align-items: center; gap: .55rem;
  background: var(--v5-grad-1);
  background-size: 200% 200%;
  color: #fff !important;
  border: none; border-radius: 14px;
  font-weight: 700; font-size: .92rem;
  padding: .85rem 1.6rem;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 10px 32px -8px rgba(124,58,237,.55), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background-position .6s;
  overflow: hidden;
}
.btn-v5::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .7s;
}
.btn-v5:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 44px -8px rgba(124,58,237,.6); }
.btn-v5:hover::before { transform: translateX(100%); }
.btn-v5:active { transform: translateY(0); }
.btn-v5.ghost {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--v5-stroke-strong);
  box-shadow: none;
}
.btn-v5.ghost:hover { background: rgba(255,255,255,.07) !important; border-color: var(--purple); }

/* ─────────────────────────────────────────────
   6. Hero badge (with status dot)
   ───────────────────────────────────────────── */
.v5-hero-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(124,58,237,.10);
  border: 1px solid rgba(124,58,237,.35);
  border-radius: 999px;
  padding: .35rem 1rem .35rem .55rem;
  font-size: .78rem; font-weight: 600;
  color: var(--purple-light);
  backdrop-filter: blur(8px);
}
.v5-hero-pill .v5-pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
  animation: v5pulseGreen 1.6s ease-in-out infinite;
}

/* ─────────────────────────────────────────────
   7. Bento grid
   ───────────────────────────────────────────── */
.v5-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.v5-bento > .cell {
  background: linear-gradient(160deg, rgba(22,22,42,.85), rgba(13,13,26,.85));
  border: 1px solid var(--v5-stroke);
  border-radius: var(--v5-radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .25s, box-shadow .25s;
}
.v5-bento > .cell:hover {
  border-color: rgba(124,58,237,.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(124,58,237,.45);
}
.v5-bento > .cell::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,58,237,.25), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0;
  transition: opacity .25s;
}
.v5-bento > .cell:hover::before { opacity: 1; }
.v5-bento .cell h4 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; letter-spacing: -.015em; }
.v5-bento .cell p { font-size: .85rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.v5-bento .cell .v5-cell-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--v5-grad-1);
  color: #fff; font-size: 1.15rem;
  margin-bottom: .85rem;
  box-shadow: 0 8px 20px -6px rgba(124,58,237,.6);
}
.v5-bento .cell.span-4  { grid-column: span 4; }
.v5-bento .cell.span-6  { grid-column: span 6; }
.v5-bento .cell.span-8  { grid-column: span 8; }
.v5-bento .cell.span-12 { grid-column: span 12; }
.v5-bento .cell.span-3  { grid-column: span 3; }

@media (max-width: 992px) {
  .v5-bento .cell.span-3,
  .v5-bento .cell.span-4 { grid-column: span 6; }
  .v5-bento .cell.span-6,
  .v5-bento .cell.span-8 { grid-column: span 12; }
}
@media (max-width: 576px) {
  .v5-bento .cell.span-3,
  .v5-bento .cell.span-4,
  .v5-bento .cell.span-6 { grid-column: span 12; }
}

/* ─────────────────────────────────────────────
   8. Comparison table (Why SevinHub)
   ───────────────────────────────────────────── */
.v5-compare {
  background: linear-gradient(180deg, rgba(124,58,237,.05), transparent);
  border: 1px solid var(--v5-stroke);
  border-radius: var(--v5-radius-lg);
  overflow: hidden;
}
.v5-compare table { width: 100%; border-collapse: collapse; }
.v5-compare th, .v5-compare td {
  padding: .95rem 1.25rem;
  text-align: left;
  font-size: .87rem;
  border-bottom: 1px solid var(--v5-stroke);
}
.v5-compare th {
  font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em; font-size: .72rem;
  background: rgba(255,255,255,.02);
}
.v5-compare td.us {
  background: linear-gradient(180deg, rgba(124,58,237,.12), rgba(124,58,237,.04));
  color: var(--text-primary); font-weight: 600;
}
.v5-compare th.us {
  background: linear-gradient(180deg, rgba(124,58,237,.18), rgba(124,58,237,.06));
  color: var(--purple-light);
}
.v5-compare .check { color: #10b981; font-size: 1.15rem; }
.v5-compare .x     { color: #ef4444; font-size: 1.15rem; }
.v5-compare tr:last-child td { border-bottom: none; }

/* ─────────────────────────────────────────────
   9. FAQ accordion
   ───────────────────────────────────────────── */
.v5-faq { display: flex; flex-direction: column; gap: .75rem; }
.v5-faq-item {
  background: var(--v5-glass);
  border: 1px solid var(--v5-stroke);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.v5-faq-item:hover { border-color: var(--v5-stroke-strong); }
.v5-faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 1.35rem;
  font-weight: 600; font-size: .95rem;
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: space-between;
}
.v5-faq-item summary::-webkit-details-marker { display: none; }
.v5-faq-item summary::after {
  content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--purple-light);
  transition: transform .25s;
}
.v5-faq-item[open] summary::after { transform: rotate(45deg); }
.v5-faq-item[open] { background: var(--v5-glass-h); border-color: rgba(124,58,237,.3); }
.v5-faq-body {
  padding: 0 1.35rem 1.2rem;
  font-size: .88rem; color: var(--text-secondary); line-height: 1.75;
}

/* ─────────────────────────────────────────────
   10. Refined section headings (kicker)
   ───────────────────────────────────────────── */
.v5-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.22);
  border-radius: 999px;
  padding: .35rem .85rem;
  color: var(--purple-light);
  margin-bottom: 1rem;
}
.v5-h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.v5-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═════════════════════════════════════════════
   ADMIN v5 — Command Center
   ═════════════════════════════════════════════ */

/* KPI card with trend */
.v5-kpi {
  position: relative;
  background: linear-gradient(160deg, rgba(20,20,40,.96), rgba(10,10,22,.96));
  border: 1px solid var(--v5-stroke);
  border-radius: var(--v5-radius-lg);
  padding: 1.25rem 1.35rem;
  overflow: hidden;
  transition: transform .22s, border-color .2s, box-shadow .25s;
}
.v5-kpi:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,.35);
  box-shadow: 0 18px 40px -14px rgba(124,58,237,.45);
}
.v5-kpi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--kpi-grad, var(--v5-grad-1));
}
.v5-kpi-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .6rem;
}
.v5-kpi-label {
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.v5-kpi-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(124,58,237,.12); color: var(--purple-light);
  font-size: .95rem;
}
.v5-kpi-icon.green { background: rgba(16,185,129,.12); color: #34d399; }
.v5-kpi-icon.blue  { background: rgba(59,130,246,.12); color: var(--blue-light); }
.v5-kpi-icon.cyan  { background: rgba(6,182,212,.12); color: #22d3ee; }
.v5-kpi-icon.orange{ background: rgba(245,158,11,.12); color: #fbbf24; }
.v5-kpi-icon.red   { background: rgba(239,68,68,.12); color: #f87171; }
.v5-kpi-value {
  font-size: 1.85rem; font-weight: 800; line-height: 1.05;
  letter-spacing: -.02em; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.v5-kpi-foot {
  margin-top: .55rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .76rem;
}
.v5-delta {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .15rem .5rem; border-radius: 999px;
  font-weight: 700; font-size: .72rem;
}
.v5-delta.up   { background: rgba(16,185,129,.12); color: #34d399; }
.v5-delta.down { background: rgba(239,68,68,.12);  color: #f87171; }
.v5-delta.flat { background: rgba(255,255,255,.05); color: var(--text-muted); }
.v5-kpi-foot .vs { color: var(--text-muted); }
.v5-kpi-spark {
  position: absolute; bottom: 0; left: 0; right: 0; height: 32px;
  opacity: .55; pointer-events: none;
}

/* Activity feed */
.v5-feed {
  display: flex; flex-direction: column;
  max-height: 480px; overflow-y: auto;
}
.v5-feed::-webkit-scrollbar { width: 4px; }
.v5-feed::-webkit-scrollbar-thumb { background: rgba(124,58,237,.4); border-radius: 2px; }
.v5-feed-item {
  display: flex; gap: .85rem; padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--v5-stroke);
  transition: background .15s;
}
.v5-feed-item:hover { background: rgba(124,58,237,.04); }
.v5-feed-item:last-child { border-bottom: none; }
.v5-feed-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.v5-feed-icon.order  { background: rgba(16,185,129,.14); color: #34d399; }
.v5-feed-icon.user   { background: rgba(59,130,246,.14); color: var(--blue-light); }
.v5-feed-icon.dl     { background: rgba(124,58,237,.14); color: var(--purple-light); }
.v5-feed-icon.review { background: rgba(245,158,11,.14); color: #fbbf24; }
.v5-feed-icon.ticket { background: rgba(239,68,68,.14); color: #f87171; }
.v5-feed-icon.service{ background: rgba(6,182,212,.14); color: #22d3ee; }
.v5-feed-icon.seller { background: rgba(236,72,153,.14); color: #f472b6; }
.v5-feed-body { flex: 1; min-width: 0; font-size: .85rem; }
.v5-feed-body strong { font-weight: 600; color: var(--text-primary); }
.v5-feed-body .v5-feed-meta {
  display: block; font-size: .72rem; color: var(--text-muted); margin-top: .15rem;
}
.v5-feed-amt {
  font-size: .85rem; font-weight: 700;
  color: #34d399; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Needs attention smart inbox */
.v5-attn {
  display: grid; gap: .55rem;
  padding: 1rem 1.5rem;
}
.v5-attn-row {
  display: flex; align-items: center; gap: .85rem;
  padding: .65rem .85rem;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--v5-stroke);
  border-radius: 12px;
  font-size: .85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .18s;
}
.v5-attn-row:hover {
  background: rgba(124,58,237,.08);
  border-color: rgba(124,58,237,.35);
  color: var(--text-primary);
  transform: translateX(2px);
}
.v5-attn-row i {
  font-size: 1.1rem; width: 24px; text-align: center;
}
.v5-attn-row .v5-attn-count {
  margin-left: auto;
  background: var(--purple);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: .18rem .55rem;
  border-radius: 999px;
  min-width: 28px; text-align: center;
}
.v5-attn-row.empty { opacity: .55; }
.v5-attn-row.empty .v5-attn-count {
  background: rgba(16,185,129,.15); color: #34d399;
}

/* Funnel widget */
.v5-funnel {
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: .85rem;
}
.v5-funnel-row {
  display: flex; align-items: center; gap: 1rem;
  font-size: .85rem;
}
.v5-funnel-label {
  width: 110px; flex-shrink: 0; color: var(--text-secondary); font-weight: 600;
}
.v5-funnel-bar {
  flex: 1; height: 28px; background: rgba(255,255,255,.04);
  border-radius: 7px; overflow: hidden; position: relative;
}
.v5-funnel-fill {
  position: absolute; inset: 0;
  background: var(--v5-grad-1);
  border-radius: 7px;
  box-shadow: 0 4px 14px -4px rgba(124,58,237,.6);
  display: flex; align-items: center; padding: 0 .75rem;
  color: #fff; font-size: .78rem; font-weight: 700;
  transition: width .8s cubic-bezier(.34,1.56,.64,1);
}
.v5-funnel-val {
  width: 100px; flex-shrink: 0; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-primary);
}
.v5-funnel-val small { display: block; font-weight: 500; color: var(--text-muted); font-size: .7rem; }

/* Top products list */
.v5-top-list { padding: 0; }
.v5-top-row {
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem 1.5rem;
  border-bottom: 1px solid var(--v5-stroke);
  text-decoration: none;
  transition: background .15s;
}
.v5-top-row:hover { background: rgba(124,58,237,.06); }
.v5-top-row:last-child { border-bottom: none; }
.v5-top-rank {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(124,58,237,.12);
  color: var(--purple-light);
  font-size: .8rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.v5-top-rank.gold   { background: linear-gradient(135deg,#fbbf24,#f59e0b); color:#000; box-shadow: 0 4px 12px -4px rgba(245,158,11,.6); }
.v5-top-rank.silver { background: linear-gradient(135deg,#e5e7eb,#9ca3af); color:#000; }
.v5-top-rank.bronze { background: linear-gradient(135deg,#fb923c,#9a3412); color:#fff; }
.v5-top-info { flex: 1; min-width: 0; }
.v5-top-title { font-size: .87rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v5-top-meta  { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }
.v5-top-val {
  font-size: .9rem; font-weight: 700; color: #34d399;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Command Palette */
.v5-palette-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(4,4,12,.78);
  backdrop-filter: blur(10px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  animation: v5fadeIn .15s ease;
}
.v5-palette-backdrop.open { display: flex; }
.v5-palette {
  width: min(640px, calc(100vw - 2rem));
  background: linear-gradient(180deg, #131326, #0d0d1c);
  border: 1px solid rgba(124,58,237,.4);
  border-radius: 18px;
  box-shadow: 0 32px 80px -20px rgba(0,0,0,.7), 0 0 60px -10px rgba(124,58,237,.45);
  overflow: hidden;
  animation: v5popIn .22s cubic-bezier(.34,1.56,.64,1);
}
.v5-palette-input {
  width: 100%; box-sizing: border-box;
  background: transparent;
  border: none; border-bottom: 1px solid var(--v5-stroke);
  color: var(--text-primary);
  font-size: 1.05rem;
  padding: 1.1rem 1.25rem;
  font-weight: 500;
  outline: none;
}
.v5-palette-input::placeholder { color: var(--text-muted); }
.v5-palette-results {
  max-height: 55vh; overflow-y: auto;
  padding: .35rem 0;
}
.v5-palette-results::-webkit-scrollbar { width: 4px; }
.v5-palette-results::-webkit-scrollbar-thumb { background: rgba(124,58,237,.4); border-radius: 2px; }
.v5-palette-group {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-muted);
  padding: .65rem 1.25rem .25rem;
}
.v5-palette-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.25rem;
  font-size: .88rem; color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  border-left: 2px solid transparent;
}
.v5-palette-item i {
  font-size: 1rem; width: 20px; text-align: center; color: var(--purple-light);
}
.v5-palette-item .v5-palette-meta {
  margin-left: auto;
  font-size: .7rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .35rem;
}
.v5-palette-item:hover,
.v5-palette-item.active {
  background: rgba(124,58,237,.12);
  color: var(--text-primary);
  border-left-color: var(--purple);
}
.v5-palette-empty {
  padding: 2rem 1.25rem; text-align: center;
  color: var(--text-muted); font-size: .85rem;
}
.v5-palette-foot {
  padding: .55rem 1.25rem;
  border-top: 1px solid var(--v5-stroke);
  display: flex; gap: 1rem;
  font-size: .7rem; color: var(--text-muted);
  background: rgba(0,0,0,.2);
}
.v5-palette-foot kbd {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--v5-stroke);
  border-radius: 4px;
  padding: .1rem .4rem;
  font-family: inherit;
  font-size: .68rem;
}

/* Cmd+K hint chip in topbar */
.v5-kbd-hint {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--v5-stroke);
  border-radius: 8px;
  padding: .35rem .65rem;
  font-size: .76rem; color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.v5-kbd-hint:hover { border-color: var(--purple); color: var(--text-primary); }
.v5-kbd-hint kbd {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--v5-stroke);
  border-radius: 4px;
  padding: .05rem .35rem;
  font-family: inherit; font-size: .7rem;
}

@keyframes v5fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes v5popIn  {
  from { opacity: 0; transform: translateY(-10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card header tweak for v5 */
.admin-card .v5-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(90deg, rgba(124,58,237,.06), transparent);
  border-bottom: 1px solid var(--v5-stroke);
  margin: -1.5rem -1.5rem 0;
}
.v5-card-head h3 {
  font-size: .92rem; font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: .55rem;
}
.v5-card-head h3 i { color: var(--purple-light); }
.v5-card-head .v5-card-actions { display: flex; gap: .5rem; }
.v5-link-arrow {
  font-size: .78rem; color: var(--purple-light);
  text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: .25rem;
  transition: gap .2s;
}
.v5-link-arrow:hover { gap: .5rem; color: var(--blue-light); }

/* Insights page chart styles */
.v5-chart-wrap {
  padding: 1.5rem;
  position: relative;
}
.v5-chart-axis {
  font-size: .68rem; fill: var(--text-muted);
  font-family: inherit;
}
.v5-chart-grid line { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.v5-chart-area-rev { fill: url(#v5GradRev); opacity: .25; }
.v5-chart-line-rev { stroke: #34d399; stroke-width: 2.2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.v5-chart-line-ord { stroke: var(--blue-light); stroke-width: 2; fill: none; stroke-dasharray: 4 3; }
.v5-chart-dot { fill: #34d399; }
.v5-chart-legend {
  display: flex; gap: 1.25rem; padding-bottom: .75rem;
  font-size: .78rem; color: var(--text-muted);
}
.v5-chart-legend .swatch {
  display: inline-block; width: 14px; height: 3px;
  border-radius: 2px; vertical-align: middle; margin-right: .35rem;
}

/* Dashboard hero stat (revenue today, big) */
.v5-hero-stat {
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(59,130,246,.08));
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--v5-radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1.5rem;
  position: relative; overflow: hidden;
}
.v5-hero-stat::before {
  content: ''; position: absolute;
  top: -50%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(124,58,237,.3), transparent 60%);
  pointer-events: none;
}
.v5-hero-stat .lbl {
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.v5-hero-stat .val {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -.025em;
  color: var(--text-primary); line-height: 1; margin-top: .35rem;
  font-variant-numeric: tabular-nums;
}
.v5-hero-stat .v5-now-dot {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; color: #34d399; font-weight: 600;
  margin-top: .55rem;
}
.v5-hero-stat .v5-now-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #10b981; animation: v5pulseGreen 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}
.v5-hero-stat .right { text-align: right; position: relative; z-index: 1; }
.v5-hero-stat .right .v5-mini-label {
  font-size: .72rem; color: var(--text-muted);
}
.v5-hero-stat .right .v5-mini-val {
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
}

/* Tab pills (insights) */
.v5-tabs {
  display: inline-flex;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--v5-stroke);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.v5-tabs a {
  padding: .4rem .9rem;
  font-size: .82rem; font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all .15s;
}
.v5-tabs a:hover { color: var(--text-primary); }
.v5-tabs a.active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff !important;
}

/* Region / country list */
.v5-geo {
  padding: 1rem 1.5rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.v5-geo-row { display: flex; align-items: center; gap: .75rem; font-size: .85rem; }
.v5-geo-flag {
  font-size: 1.2rem; line-height: 1; width: 24px; text-align: center;
}
.v5-geo-name { flex: 1; color: var(--text-secondary); }
.v5-geo-bar {
  flex: 1; max-width: 180px; height: 6px;
  background: rgba(255,255,255,.05); border-radius: 3px; overflow: hidden;
}
.v5-geo-bar > div {
  height: 100%;
  background: var(--v5-grad-1);
  border-radius: 3px;
  transition: width .6s ease;
}
.v5-geo-val {
  width: 50px; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-primary);
  font-size: .82rem;
}

/* Mobile dashboard padding */
@media (max-width: 992px) {
  .v5-hero-stat { flex-direction: column; align-items: flex-start; }
  .v5-hero-stat .right { text-align: left; width: 100%; }
  .v5-kpi { padding: 1rem 1.1rem; }
  .v5-kpi-value { font-size: 1.55rem; }
}

/* Refined product card hover (marketplace polish) */
.sh-product-card {
  transition: transform .25s, border-color .2s, box-shadow .25s !important;
}
.sh-product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 22px 50px -16px rgba(124,58,237,.5), 0 0 0 1px rgba(124,58,237,.35) !important;
}

/* Subtle scroll-reveal helper (used by JS) */
.v5-reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s, transform .65s; }
.v5-reveal.in { opacity: 1; transform: translateY(0); }

/* Better empty state */
.v5-empty {
  padding: 2.5rem 1.5rem;
  text-align: center; color: var(--text-muted);
}
.v5-empty i { font-size: 2rem; opacity: .35; display: block; margin-bottom: .55rem; }
.v5-empty p { margin: 0; font-size: .85rem; }
