/* ==========================================================================
   WAVE DIGITAL — ULTRA AESTHETIC ROUNDED SYSTEM
   LobeHub Style Icons • Generous Card Gaps • Smooth Rounded Corners
   Default: Light Mode | Toggle: Precision Obsidian Dark Mode
   Pure Aesthetics • Zero Gimmick Slogans
   ========================================================================== */

/* Web fonts preconnected & loaded in index.html for zero render blocking */

:root {
  /* LIGHT MODE (DEFAULT) */
  --bg-page: #F6F8FB;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-subtle: #F1F4F9;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(246, 248, 251, 0.92);

  --border-line: #E2E8F0;
  --border-subtle: #CBD5E1;
  --border-dark: #0F172A;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-faint: #94A3B8;
  --text-inverse: #FFFFFF;

  --accent-cyan: #0284C7;
  --accent-blue: #0066FF;
  --accent-orange: #FF4D00;
  --accent-purple: #7928CA;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --accent-pink: #EC4899;

  --success-bg: #ECFDF5;
  --success-border: #10B981;
  --success-text: #065F46;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 32px -4px rgba(15, 23, 42, 0.1), 0 8px 16px -2px rgba(15, 23, 42, 0.05);
  --shadow-dialog: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

/* PRECISION OBSIDIAN DARK MODE (#09090B) */
html[data-theme="dark"] {
  --bg-page: #09090B;
  --bg-surface: #121215;
  --bg-card: #141418;
  --bg-card-hover: #19191E;
  --bg-subtle: #18181C;
  --bg-elevated: #1C1C22;
  --bg-glass: rgba(9, 9, 11, 0.92);

  --border-line: #27272A;
  --border-subtle: #3F3F46;
  --border-dark: #F8FAFC;

  --text-primary: #F8FAFC;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --text-faint: #52525B;
  --text-inverse: #09090B;

  --accent-cyan: #38BDF8;
  --accent-blue: #3B82F6;
  --accent-orange: #FB923C;
  --accent-purple: #A78BFA;
  --accent-amber: #FBBF24;
  --accent-emerald: #34D399;
  --accent-pink: #F472B6;

  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: #10B981;
  --success-text: #34D399;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 20px 40px -4px rgba(0, 0, 0, 0.8);
  --shadow-dialog: 0 25px 60px -10px rgba(0, 0, 0, 0.9);
}


/* BASE RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
  position: relative;
}

.font-mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   AMBIENT AESTHETIC BACKGROUND
   ========================================================================== */
.ambient-bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transform: translateZ(0);
  contain: strict;
}

.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.ambient-orb-1 {
  top: -120px;
  left: 15%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.45) 0%, rgba(0, 102, 255, 0) 70%);
}

.ambient-orb-2 {
  top: 35%;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.45) 0%, rgba(167, 139, 250, 0) 70%);
  animation-delay: -8s;
  animation-duration: 26s;
}

.ambient-orb-3 {
  bottom: 5%;
  left: 5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 70%);
  animation-delay: -15s;
  animation-duration: 20s;
}

@keyframes floatOrb {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(35px, -30px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-30px, 40px, 0) scale(0.94);
  }
}

html[data-theme="dark"] .ambient-glow-orb {
  opacity: 0.16;
}

/* Mobile & Low-Power Hardware Optimization: Turn off GPU rasterization strain */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .ambient-glow-orb {
    animation: none !important;
    filter: blur(60px);
    opacity: 0.15;
    will-change: auto;
  }
}

/* CONTAINER */
.app-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* TOP NAVBAR */
.top-navbar {
  height: 68px;
  background-color: var(--bg-glass);
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* HEADER BRAND LOGO */
.header-logo-img {
  height: 38px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.brand-section:hover .header-logo-img {
  transform: scale(1.04);
}

.header-logo-img.logo-dark {
  display: none;
}

.header-logo-img.logo-emblem {
  display: none;
  height: 34px;
  width: 34px;
}

html[data-theme="dark"] .header-logo-img.logo-light {
  display: none;
}

html[data-theme="dark"] .header-logo-img.logo-dark {
  display: block;
}

/* Fallback legacy classes */
.brand-logo-mark {
  display: none;
}

.brand-title {
  display: none;
}

/* NAV LINKS — MODERN SEGMENTED CONTROL */
.nav-links-row {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-subtle);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border-line);
}

.nav-item-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 18px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.nav-item-btn:hover {
  color: var(--text-primary);
}

.nav-item-btn.active {
  color: var(--text-primary);
  background-color: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* RIGHT ACTIONS */
.nav-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LANGUAGE SWITCHER BUTTON (US / ID) */
.lang-switch-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-line);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
  user-select: none;
}

.lang-switch-btn:hover {
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.lang-flag-svg {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.lang-code-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}

.theme-switch-btn {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid var(--border-line);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-switch-btn:hover {
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.telegram-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background-color: #229ED9;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.25);
}

.telegram-pill-btn:hover {
  background-color: #1B88BD;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.35);
}

/* FILTER TABS ROW */
.filter-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 28px 4px 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

.filter-tabs-bar::-webkit-scrollbar {
  display: none;
}

.filter-tab-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 9999px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-card);
}

.filter-tab-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
  transform: translateY(-1px);
}

.filter-tab-pill.active {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  border-color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   HERO BANNER CAROUSEL (3 SLIDES SPLIT BANNER DESIGN)
   Reference: Split Dark-Light Marketplace Banner (1024x336 & 320x105)
   Aspect Ratio: 1024 / 336 (64:21) — Split 59.375% Dark / 40.625% Light
   ========================================================================== */
.hero-banner-wrapper {
  padding: 24px 28px 0 28px;
  width: 100%;
}

.hero-banner-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 336;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-line);
  background: #000000;
  container-type: inline-size;
  container-name: heroBanner;
}

html[data-theme="dark"] .hero-banner-carousel {
  border-color: #27272A;
  box-shadow: 0 4px 28px -2px rgba(0, 0, 0, 0.7);
}

.hero-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row !important; /* Always horizontal side-by-side split */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.99);
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* LEFT HALF: DARK OBSIDIAN WITH BRAND LOGO (59.375% EXACT SPLIT) */
.slide-split-dark {
  width: 59.375%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4%;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-slide[data-banner-id="banner-gemini"] .slide-split-dark {
  background: radial-gradient(circle at 48% 50%, rgba(66, 133, 244, 0.22) 0%, rgba(155, 114, 207, 0.12) 35%, rgba(234, 88, 12, 0.08) 55%, #05060A 85%);
}

.hero-slide[data-banner-id="banner-chatgpt"] .slide-split-dark {
  background: radial-gradient(circle at 48% 50%, rgba(16, 163, 127, 0.26) 0%, rgba(5, 150, 105, 0.12) 42%, #030706 85%);
}

.slide-split-dark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
  z-index: 3;
}

.slide-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.8cqw, 18px);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.hero-slide:hover .slide-brand-center {
  transform: scale(1.05);
}

.slide-gemini-sparkle {
  width: clamp(24px, 6cqw, 62px);
  height: clamp(24px, 6cqw, 62px);
  flex-shrink: 0;
  filter: drop-shadow(0 0 16px rgba(66, 133, 244, 0.65)) drop-shadow(0 0 28px rgba(155, 114, 207, 0.4));
  transition: transform 0.35s ease;
}

.slide-brand-svg-box {
  width: clamp(24px, 6cqw, 62px);
  height: clamp(24px, 6cqw, 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.slide-brand-svg-box svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px rgba(16, 163, 127, 0.65)) drop-shadow(0 0 28px rgba(5, 150, 105, 0.35));
}

.hero-slide:hover .slide-gemini-sparkle,
.hero-slide:hover .slide-brand-svg-box svg {
  transform: scale(1.08) rotate(3deg);
}

.slide-brand-text {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1cqw, 10px);
  font-family: var(--font-sans);
  font-size: clamp(14px, 4cqw, 40px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.slide-brand-text .brand-sub {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  padding: clamp(2px, 0.4cqw, 4px) clamp(6px, 1.1cqw, 12px);
  border-radius: 9999px;
  font-size: 0.58em;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.slide-brand-text .brand-sub-gemini {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.28), rgba(155, 114, 207, 0.28));
  border: 1px solid rgba(66, 133, 244, 0.45);
  color: #93C5FD;
  box-shadow: 0 0 14px rgba(66, 133, 244, 0.25);
}

.slide-brand-text .brand-sub-chatgpt {
  background: linear-gradient(135deg, rgba(16, 163, 127, 0.28), rgba(5, 150, 105, 0.28));
  border: 1px solid rgba(16, 163, 127, 0.45);
  color: #6EE7B7;
  box-shadow: 0 0 14px rgba(16, 163, 127, 0.25);
}

/* RIGHT HALF: LIGHT PROMO AREA (40.625% EXACT SPLIT) */
.slide-split-light {
  width: 40.625%;
  height: 100%;
  background: #F8F7FC;
  display: flex;
  align-items: center;
  padding-left: clamp(14px, 5.5cqw, 56px);
  padding-right: clamp(8px, 2.8cqw, 28px);
  position: relative;
  overflow: hidden;
  flex-grow: 1;
}

.hero-slide[data-banner-id="banner-gemini"] .slide-split-light {
  background: radial-gradient(ellipse at 92% 20%, rgba(234, 88, 12, 0.08) 0%, rgba(66, 133, 244, 0.05) 45%, #F8F9FD 85%);
}

html[data-theme="dark"] .hero-slide[data-banner-id="banner-gemini"] .slide-split-light {
  background: radial-gradient(ellipse at 92% 20%, rgba(234, 88, 12, 0.16) 0%, rgba(66, 133, 244, 0.1) 45%, #0B0D13 85%);
}

.hero-slide[data-banner-id="banner-chatgpt"] .slide-split-light {
  background: radial-gradient(ellipse at 92% 20%, rgba(16, 163, 127, 0.09) 0%, rgba(5, 150, 105, 0.04) 45%, #F8FBF9 85%);
}

html[data-theme="dark"] .hero-slide[data-banner-id="banner-chatgpt"] .slide-split-light {
  background: radial-gradient(ellipse at 92% 20%, rgba(16, 163, 127, 0.18) 0%, rgba(5, 150, 105, 0.08) 45%, #070B0A 85%);
}

html[data-theme="dark"] .slide-split-light {
  background: #0E0E11;
}

/* Watermark */
.slide-watermark-ribbon {
  position: absolute;
  right: -2%;
  bottom: -4%;
  width: clamp(70px, 24cqw, 230px);
  height: clamp(70px, 24cqw, 230px);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.5s ease;
}

.hero-slide:hover .slide-watermark-ribbon {
  transform: scale(1.05) rotate(-3deg);
}

.slide-content-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2px, 0.9cqw, 10px);
  width: 100%;
}

/* Store pill */
.slide-store-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: clamp(2px, 0.6cqw, 6px);
  background: #EA580C;
  color: #FFFFFF;
  padding: clamp(2px, 0.4cqw, 4px) clamp(6px, 1.2cqw, 12px);
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: clamp(8px, 1.3cqw, 13px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slide-pill-thumb {
  font-size: clamp(8px, 1.35cqw, 14px);
  line-height: 1;
}

/* Headline */
.slide-main-headline {
  display: flex;
  align-items: center;
  gap: clamp(3px, 1cqw, 10px);
  font-family: var(--font-sans);
  font-size: clamp(12px, 3.4cqw, 33px);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.15;
  white-space: nowrap;
}

html[data-theme="dark"] .slide-main-headline {
  color: #F8FAFC;
}

/* Subheadline */
.slide-subheadline {
  font-family: var(--font-sans);
  font-size: clamp(8px, 1.8cqw, 17px);
  font-weight: 600;
  color: #475569;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
}

html[data-theme="dark"] .slide-subheadline {
  color: #94A3B8;
}

/* Feature tags */
.slide-feature-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(3px, 0.8cqw, 8px);
  margin-top: clamp(2px, 0.5cqw, 6px);
  position: relative;
  z-index: 2;
}

.slide-feature-tag {
  font-family: var(--font-sans);
  font-size: clamp(6.5px, 1.1cqw, 11px);
  font-weight: 700;
  color: #334155;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: clamp(1.5px, 0.3cqw, 3px) clamp(5px, 0.9cqw, 10px);
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.25;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

html[data-theme="dark"] .slide-feature-tag {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

/* Trust row */
.slide-trust-row {
  display: none !important;
}

.slide-trust-item {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6cqw, 6px);
}

.slide-trust-icon {
  width: clamp(7.5px, 1.9cqw, 19px);
  height: clamp(7.5px, 1.9cqw, 19px);
  color: #EA580C;
  flex-shrink: 0;
}

.slide-trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-sans);
  font-size: clamp(5.5px, 1.05cqw, 11px);
  color: #475569;
  white-space: nowrap;
}

html[data-theme="dark"] .slide-trust-text {
  color: #94A3B8;
}

.slide-trust-text strong {
  color: #0F172A;
  font-weight: 800;
}

html[data-theme="dark"] .slide-trust-text strong {
  color: #F8FAFC;
}

.slide-trust-divider {
  width: 1px;
  height: clamp(8px, 2.1cqw, 21px);
  background-color: #E2E8F0;
  flex-shrink: 0;
}

html[data-theme="dark"] .slide-trust-divider {
  background-color: #27272A;
}

/* DOTS INDICATOR */
.hero-carousel-dots {
  position: absolute;
  bottom: clamp(4px, 1.2cqw, 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.6cqw, 6px);
  z-index: 10;
}

.hero-dot {
  width: clamp(4px, 0.7cqw, 7px);
  height: clamp(4px, 0.7cqw, 7px);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.hero-dot.active {
  width: clamp(12px, 2.2cqw, 22px);
  background: #EA580C;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* NAVIGATION ARROWS */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(22px, 3.6cqw, 36px);
  height: clamp(22px, 3.6cqw, 36px);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0;
  padding: 0;
}

.hero-banner-carousel:hover .hero-carousel-arrow {
  opacity: 1;
}

.hero-carousel-arrow.prev {
  left: clamp(6px, 1.4cqw, 14px);
}

.hero-carousel-arrow.next {
  right: clamp(6px, 1.4cqw, 14px);
}

.hero-carousel-arrow svg {
  width: clamp(10px, 1.8cqw, 18px);
  height: clamp(10px, 1.8cqw, 18px);
}

/* RESPONSIVE HERO BANNER */
@media (max-width: 768px) {
  .hero-banner-wrapper {
    padding: 12px 12px 0 12px;
  }
  .hero-banner-carousel {
    border-radius: 16px;
  }
  .hero-carousel-arrow {
    display: none; /* Touch swipe used on mobile */
  }
}

@media (max-width: 480px) {
  .hero-banner-wrapper {
    padding: 8px 8px 0 8px;
  }
  .hero-banner-carousel {
    border-radius: 12px;
  }
}

/* ==========================================================================
   KATEGORI PILIHAN SHOWCASE (MATCHING USER SCREENSHOT REFERENCE)
   ========================================================================== */
.category-showcase-section {
  width: 100%;
  margin: 20px 0 0 0;
  padding: 0 28px;
}

.category-showcase-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 18px;
  padding: 18px 24px 20px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.category-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-header-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.category-count-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 4px 11px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0284C7;
  background-color: rgba(14, 165, 233, 0.08);
  border: 1.5px solid #0284C7;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.12);
  transition: all 0.2s ease;
}

html[data-theme="dark"] .category-count-badge {
  color: #38BDF8;
  background-color: #061826;
  border-color: #0284C7;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

/* CATEGORY SLIDE CONTROLS (HEADER & TRACK) */
.category-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-nav-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.category-nav-arrow-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: #EA580C;
  color: #EA580C;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.15);
}

.category-nav-arrow-btn:active {
  transform: translateY(0) scale(0.94);
}

html[data-theme="dark"] .category-nav-arrow-btn {
  background-color: #141418;
  border-color: #27272A;
  color: #F8FAFC;
}

html[data-theme="dark"] .category-nav-arrow-btn:hover {
  border-color: #FB923C;
  color: #FB923C;
}

/* TRACK WRAPPER WITH FLOATING SLIDE ARROWS */
.category-track-wrapper {
  position: relative;
  width: 100%;
}

.cat-float-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  opacity: 0.92;
}

.cat-float-arrow.prev {
  left: -12px;
}

.cat-float-arrow.next {
  right: -12px;
}

.cat-float-arrow:hover {
  opacity: 1;
  background-color: #FFFFFF;
  border-color: #EA580C;
  color: #EA580C;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.22);
}

.cat-float-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

html[data-theme="dark"] .cat-float-arrow {
  background-color: #141418;
  border-color: #27272A;
  color: #F8FAFC;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .cat-float-arrow:hover {
  border-color: #FB923C;
  color: #FB923C;
  box-shadow: 0 6px 18px rgba(251, 146, 60, 0.3);
}

@media (max-width: 768px) {
  .cat-float-arrow {
    display: none; /* Touch swipe used on mobile */
  }
}

/* HORIZONTAL SCROLL TRACK */
.category-scroll-track {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 4px 2px 8px 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.category-scroll-track::-webkit-scrollbar {
  height: 4px;
}
.category-scroll-track::-webkit-scrollbar-track {
  background: transparent;
}
.category-scroll-track::-webkit-scrollbar-thumb {
  background: var(--border-line);
  border-radius: 9999px;
}

/* CATEGORY ITEM BUTTON */
.category-item-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 66px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  outline: none;
  transition: transform 0.18s ease;
  user-select: none;
}

.category-item-btn:hover {
  transform: translateY(-2px);
}

.category-item-btn:active {
  transform: translateY(0) scale(0.96);
}

/* TILE BOX */
.category-tile-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-item-btn:hover .category-tile-box {
  border-color: var(--border-subtle);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* ACTIVE STATE FOR SEMUA PRODUK (MINIMALIS NETRAL) */
.category-item-btn.is-all .category-tile-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.category-item-btn.is-all:hover .category-tile-box {
  background-color: var(--bg-subtle);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.category-item-btn.is-all.active .category-tile-box {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--text-primary), 0 4px 12px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .category-item-btn.is-all.active .category-tile-box {
  background-color: var(--bg-subtle);
  border-color: #F8FAFC;
  color: #F8FAFC;
  box-shadow: 0 0 0 1px #F8FAFC, 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* ACTIVE STATE FOR OTHER CATEGORIES */
.category-item-btn:not(.is-all).active .category-tile-box {
  border-color: #EA580C;
  box-shadow: 0 0 0 2px #EA580C, 0 4px 14px rgba(234, 88, 12, 0.2);
  background-color: rgba(234, 88, 12, 0.05);
}

/* TILE ICONS & BADGES */
.cat-tile-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
}

.cat-tile-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cat-tile-badge.hma-badge {
  background: #1E293B;
  border-radius: 11px;
  width: 36px;
  height: 36px;
}

.cat-tile-badge.viu-badge {
  background: #FACC15;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.cat-tile-badge.deepseek-badge {
  background: #EEF2FF;
  border-radius: 10px;
  width: 36px;
  height: 36px;
}

.cat-tile-badge.duolingo-badge {
  background: #F0FDF4;
  border-radius: 10px;
  width: 36px;
  height: 36px;
}

.cat-tile-badge.alight-badge {
  background: #0B132B;
  border-radius: 10px;
  width: 36px;
  height: 36px;
}

.cat-tile-badge.email-badge {
  background: #FFF7ED;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EA580C;
}

html[data-theme="dark"] .cat-tile-badge.email-badge {
  background: rgba(234, 88, 12, 0.16);
  color: #FB923C;
}

.cat-tile-badge.canva-badge {
  background: #E0F2FE;
  border-radius: 10px;
  width: 36px;
  height: 36px;
}

.cat-tile-badge.spotify-badge {
  background: #F0FDF4;
  border-radius: 50%;
  width: 34px;
  height: 34px;
}

.cat-tile-badge.netflix-badge {
  background: #111827;
  border-radius: 10px;
  width: 36px;
  height: 36px;
}

.cat-tile-badge.youtube-badge {
  background: #FEF2F2;
  border-radius: 10px;
  width: 36px;
  height: 36px;
}

.cat-tile-badge.grok-badge {
  background: #0A0A0C;
  border-radius: 10px;
  width: 36px;
  height: 36px;
}

.cat-tile-badge.roblox-badge {
  background: #000000;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  color: #FFFFFF;
}

.cat-tile-badge.meta-badge {
  background: #EFF6FF;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0467DF;
  border: 1px solid rgba(4, 103, 223, 0.18);
  box-shadow: none;
}

html[data-theme="dark"] .cat-tile-badge.meta-badge {
  background: rgba(4, 103, 223, 0.16);
  border-color: rgba(4, 103, 223, 0.32);
  color: #38BDF8;
}

.cat-tile-badge.muse-badge {
  background: transparent;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.cat-tile-badge.muse-badge img,
.product-brand-img.muse-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.cat-tile-badge.openai-badge,
.cat-tile-badge.claude-badge,
.cat-tile-badge.gemini-badge,
.cat-tile-badge.telegram-badge {
  width: 34px;
  height: 34px;
}

/* CATEGORY LABEL */
.category-item-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  line-height: 1.25;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.category-item-btn:hover .category-item-label {
  color: var(--text-primary);
}

.category-item-btn.active .category-item-label {
  color: #EA580C;
  font-weight: 700;
}

.category-item-btn.is-all.active .category-item-label {
  color: var(--text-primary);
  font-weight: 700;
}

html[data-theme="dark"] .category-item-btn.is-all.active .category-item-label {
  color: #F8FAFC;
}

html[data-theme="dark"] .category-item-btn:not(.is-all).active .category-item-label {
  color: #FB923C;
}

/* RESPONSIVE STYLES FOR CATEGORY SHOWCASE */
@media (max-width: 768px) {
  .category-showcase-section {
    padding: 0 12px;
    margin-top: 14px;
  }

  .category-showcase-card {
    padding: 14px 14px 16px 14px;
    border-radius: 16px;
    gap: 12px;
  }

  .category-header-heading {
    font-size: 1.02rem;
  }

  .category-scroll-track {
    gap: 16px;
    padding-bottom: 6px;
  }

  .category-item-btn {
    min-width: 58px;
  }

  .category-tile-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .category-item-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .category-showcase-section {
    padding: 0 8px;
    margin-top: 10px;
  }

  .category-showcase-card {
    border-radius: 12px;
    padding: 12px 10px 14px 10px;
  }
}

/* ==========================================================================
   PRODUK TERLARIS (BEST SELLERS) & STORE SECTION SYSTEM
   ========================================================================== */
.bestseller-showcase-section {
  width: 100%;
  margin: 32px 0 0 0;
  padding: 0 28px;
}

.store-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.store-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-section-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.store-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}

.store-section-badge-pill {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.store-section-badge-pill svg {
  display: none !important;
}

/* BEST SELLER: Flame Orange */
.store-section-badge-pill,
.store-section-badge-pill.pill-flame {
  color: #C2410C;
  background-color: rgba(234, 88, 12, 0.08);
  border: 1.5px solid #EA580C;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.08);
}

html[data-theme="dark"] .store-section-badge-pill,
html[data-theme="dark"] .store-section-badge-pill.pill-flame {
  color: #FFB86A;
  background-color: #1F0E08;
  border-color: #A33300;
  box-shadow: 0 0 10px rgba(163, 51, 0, 0.22);
}

/* KATALOG LENGKAP: Emerald Green */
.store-section-badge-pill.pill-all {
  color: #047857;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1.5px solid #059669;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}

html[data-theme="dark"] .store-section-badge-pill.pill-all {
  color: #34D399;
  background-color: #061A12;
  border-color: #059669;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.store-section-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.store-section-extra-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  padding: 5px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (min-width: 1100px) {
  .bestseller-products-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 18px !important;
  }
}

@media (max-width: 1099px) and (min-width: 820px) {
  .bestseller-products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 768px) {
  .bestseller-showcase-section {
    padding: 0 12px;
    margin-top: 22px;
  }

  .store-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .store-section-title {
    font-size: 1.12rem;
  }

  .store-section-subtitle {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .bestseller-showcase-section {
    padding: 0 8px;
    margin-top: 16px;
  }

  .store-section-title {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   PRODUCT CATALOG GRID & E-COMMERCE CARDS (SPACIOUS & MODERN DESIGN)
   Reference: Verified Marketplace Card Layout with Generous Sizing
   ========================================================================== */
.catalog-grid-wrapper {
  padding: 34px 28px 64px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 220px);
  scroll-margin-top: 80px;
}

.catalog-grid-wrapper.is-filtered {
  padding: 24px 28px 24px 28px;
  min-height: auto;
  flex: 0 0 auto;
}

.catalog-grid-wrapper.is-filtered + .bestseller-showcase-section {
  margin-top: 24px;
  padding-bottom: 64px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  width: 100%;
}

@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
}

@media (max-width: 1099px) and (min-width: 820px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (max-width: 819px) and (min-width: 641px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .catalog-grid-wrapper {
    padding: 12px 10px 48px 10px;
  }
  .products-grid,
  .bestseller-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   PRODUCT CARD (CLEAN, WHITE / SLATE, SUBTLE BORDER, SPACIOUS PADDING)
   ========================================================================== */
.product-card {
  background-color: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 3px 14px -1px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  padding: 15px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}

.bestseller-products-grid .product-card {
  content-visibility: visible;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.1);
  border-color: #CBD5E1;
}

html[data-theme="dark"] .product-card {
  background-color: #121215;
  border-color: #27272A;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .product-card:hover {
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.85);
  border-color: #3F3F46;
}

/* ==========================================================================
   TOP THUMBNAIL BOX (FRAME WITH LOGO, SPEED BADGE, PROCESS INFO)
   ========================================================================== */
.product-thumb-frame {
  position: relative;
  height: 205px;
  border-radius: 12px;
  border: 1.5px solid #E8EEF5;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

html[data-theme="dark"] .product-thumb-frame {
  background-color: #09090B;
  border-color: #27272A;
}

/* TOP ROW */
.thumb-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 3;
}

/* BEST SELLER: Star Medal Ribbon Badge in top-left corner */
.thumb-award-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease;
  line-height: 1;
}

.thumb-award-badge:hover {
  transform: scale(1.18) rotate(-4deg);
  filter: drop-shadow(0 4px 10px rgba(234, 88, 12, 0.45));
}

.thumb-award-badge-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(234, 88, 12, 0.3));
}

html[data-theme="dark"] .thumb-award-badge-img {
  filter: drop-shadow(0 2px 8px rgba(249, 115, 22, 0.45));
}

/* Stock Ready: Clean Text (Dark in light mode, White in dark mode) */
.thumb-stock-ready-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: #0F172A;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0;
  line-height: 1;
}

html[data-theme="dark"] .thumb-stock-ready-pill {
  background: transparent;
  border: none;
  color: #FFFFFF;
}

.thumb-stock-ready-pill .stock-pulse-dot {
  display: none !important;
}

.thumb-stock-ready-pill.is-sold-out {
  color: #EF4444 !important;
}

html[data-theme="dark"] .thumb-stock-ready-pill.is-sold-out {
  color: #F87171 !important;
}

.thumb-stock-ready-pill.is-sold-out .stock-pulse-dot {
  background-color: #EF4444 !important;
  box-shadow: 0 0 7px rgba(239, 68, 68, 0.7) !important;
  animation: none !important;
}

.stock-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 7px rgba(16, 185, 129, 0.85);
  animation: stockPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes stockPulse {
  0% { transform: scale(0.85); opacity: 0.75; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px rgba(16, 185, 129, 0.95); }
  100% { transform: scale(0.85); opacity: 0.75; }
}

/* CENTER BRAND LOGO & TITLE */
.thumb-center-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
  z-index: 2;
  padding: 8px 0;
}

.brand-visual-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .brand-visual-group {
  transform: scale(1.06);
}

.brand-visual-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-visual-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-visual-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-visual-title {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

html[data-theme="dark"] .brand-visual-title {
  color: #F8FAFC;
}

/* BOTTOM ROW OF THUMBNAIL */
.thumb-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 3;
}

/* Wave Digital Logo placed in bottom-left corner */
.thumb-bottom-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.card-logo-img {
  height: 20px;
  width: auto;
  max-width: 95px;
  object-fit: contain;
  display: block;
}

.card-logo-img.logo-dark {
  display: none;
}

html[data-theme="dark"] .card-logo-img.logo-light {
  display: none;
}

html[data-theme="dark"] .card-logo-img.logo-dark {
  display: block;
}

/* Delivery speed pills: ⚡ INSTAN (purple) */
.thumb-speed-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.thumb-speed-pill.pill-purple,
.thumb-speed-pill.pill-green {
  background: #FAF5FF;
  border: 1.2px solid #DDD6FE;
  color: #7C3AED;
}

html[data-theme="dark"] .thumb-speed-pill.pill-purple,
html[data-theme="dark"] .thumb-speed-pill.pill-green {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(168, 85, 247, 0.4);
  color: #C084FC;
}

.thumb-speed-pill.pill-blue {
  background: #FFFFFF;
  border: 1.5px solid #93C5FD;
  color: #2563EB;
}

html[data-theme="dark"] .thumb-speed-pill.pill-blue {
  background: #141418;
  border-color: #2563EB;
  color: #60A5FA;
}

.thumb-speed-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   PRODUCT BODY INFO (DETAILS, PRICE, GUARANTEE, RATINGS, ACTION BUTTON)
   ========================================================================== */
.product-body-info {
  display: flex;
  flex-direction: column;
  padding-top: 14px;
  flex: 1;
}

/* Brand / Category line with mini icon */
.product-brand-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.brand-mini-icon-box {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mini-icon-box svg {
  width: 100%;
  height: 100%;
}

.brand-mini-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-category-name {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.06em;
}

/* Product title */
.product-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 10px;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-theme="dark"] .product-card-title {
  color: #F8FAFC;
}

/* PINNED PRODUCT FOOTER (HARGA, GARANSI, METRIK & TOMBOL ORDER SEJAJAR) */
.product-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Price */
.product-price-row {
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
}

.product-price-val {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  color: #EA580C;
  letter-spacing: -0.01em;
  display: inline-block;
  white-space: nowrap;
}

html[data-theme="dark"] .product-price-val {
  color: #F97316;
}

/* Row Garansi & Metrik Penjualan (Sejajar horizontal tepat di atas tombol order now) */
.product-card-meta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 20px;
}

/* Guarantee Line (Green shield + Garansi Penuh) */
.product-guarantee-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 0;
}

html[data-theme="dark"] .product-guarantee-line {
  color: #10B981;
}

.guarantee-shield-icon {
  width: 14px;
  height: 14px;
  stroke: #059669;
  flex-shrink: 0;
}

html[data-theme="dark"] .guarantee-shield-icon {
  stroke: #10B981;
}

/* Rating & Metrics line */
.product-metrics-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #64748B;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 0;
  line-height: 1;
}

.metric-star {
  color: #F59E0B;
  font-size: 0.92rem;
}

.metric-score {
  font-weight: 800;
  color: #0F172A;
}

html[data-theme="dark"] .metric-score {
  color: #F8FAFC;
}

.metric-dot {
  color: #CBD5E1;
}

.metric-views {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.metric-eye-icon {
  width: 12px;
  height: 12px;
  stroke: #94A3B8;
  flex-shrink: 0;
}

/* PRODUCT CARD DESKRIPSI & SPECS LIST */
.product-card-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.product-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
}

.spec-bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #64748B;
  flex-shrink: 0;
  display: inline-block;
}

html[data-theme="dark"] .product-card-specs {
  background-color: rgba(24, 24, 28, 0.7);
  border-color: #27272A;
}

html[data-theme="dark"] .product-spec-item {
  color: #A1A1AA;
}

html[data-theme="dark"] .spec-bullet-dot {
  background-color: #A1A1AA;
}

/* Variant Switcher for Telegram or Multi-option items */
.card-variant-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--border-line);
}

.variant-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.variant-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .variant-btn.active {
  background: #27272A;
  color: #F8FAFC;
}

/* Order Now Action Button: Dark in Light Mode, White in Dark Mode */
.btn-buy-now {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0F172A; /* Dark in Light Mode */
  color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  margin-top: 0;
}

.btn-buy-now:hover {
  background: #000000;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.26);
}

.btn-buy-now:active {
  transform: translateY(0);
}

.btn-cart-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

/* Dark Mode: Tombol Putih dengan Teks Gelap */
html[data-theme="dark"] .btn-buy-now {
  background: #FFFFFF; /* Putih in Dark Mode */
  color: #09090B;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .btn-buy-now:hover {
  background: #E2E8F0;
  color: #000000;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.24);
}

html[data-theme="dark"] .btn-buy-now .btn-cart-icon {
  stroke: currentColor;
}

.btn-buy-now.btn-sold-out {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background: var(--bg-subtle) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-line) !important;
  box-shadow: none !important;
  pointer-events: none;
}

html[data-theme="dark"] .btn-buy-now.btn-sold-out {
  background: #18181C !important;
  color: #71717A !important;
  border-color: #27272A !important;
  box-shadow: none !important;
}

/* MINIMAL CLEAN FOOTER */
.minimal-footer {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--border-line);
  background-color: var(--bg-surface);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-left-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link-tg {
  color: #229ED9;
  text-decoration: none;
  font-weight: 800;
}

.footer-link-tg:hover {
  text-decoration: underline;
}

.footer-right-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-divider-dot {
  color: var(--text-faint);
  margin: 0 2px;
}

.footer-link-admin {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-link-admin:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .minimal-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-right-info,
  .footer-left-info {
    justify-content: center;
  }
}

/* ==========================================================================
   ROUNDED CHECKOUT MODAL SYSTEM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px; /* BUAT ROUNDED */
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-dialog);
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.dialog-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dialog-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px; /* ROUNDED ICON BOX */
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-line);
  overflow: hidden; /* Prevent large logos from overflowing into dialog */
  flex-shrink: 0;
  position: relative;
}

.dialog-icon-box svg {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
  display: block;
}

.dialog-icon-box img,
.dialog-icon-box .kiro-img-icon,
.dialog-icon-box .product-brand-img {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.kiro-img-icon {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.dialog-title-text {
  font-size: 1.15rem;
  font-weight: 800;
}

.dialog-price-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.btn-dialog-close {
  width: 36px;
  height: 36px;
  border-radius: 9999px; /* ROUNDED CLOSE */
  border: 1px solid var(--border-line);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-dialog-close:hover {
  background-color: var(--border-line);
  color: var(--text-primary);
}

/* STEP TRACKER BAR */
.dialog-steps-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-line);
  background-color: var(--bg-subtle);
}

.dialog-step-tab {
  padding: 10px 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-right: 1px solid var(--border-line);
}

.dialog-step-tab:last-child {
  border-right: none;
}

.dialog-step-tab.active {
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--accent-cyan);
}

.dialog-step-tab.completed {
  color: var(--accent-emerald);
}

/* DIALOG BODY */
.dialog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-content {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.step-content.active {
  display: flex;
}

/* FORM FIELDS */
.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-lbl-req {
  color: #EF4444;
}

.input-lbl-opt {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
}

.styled-input {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px; /* ROUNDED INPUT */
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.styled-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.input-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* MODAL VARIANT SELECTOR */
.modal-duration-selector {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.modal-variant-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.modal-variant-btn.active {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

/* ORDER OVERVIEW BOX */
.order-overview-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 14px; /* ROUNDED OVERVIEW */
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}

.overview-row {
  display: flex;
  justify-content: space-between;
}

.overview-lbl {
  color: var(--text-muted);
}

.overview-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.overview-divider {
  height: 1px;
  background-color: var(--border-line);
  margin: 4px 0;
}

.overview-total {
  font-size: 0.95rem;
  font-weight: 800;
}

.overview-total .overview-val {
  color: var(--accent-cyan);
  font-size: 1.15rem;
}

/* STEP 1: PAYMENT METHOD SELECTOR */
.step1-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-method-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.pay-method-choice:focus,
.pay-method-choice:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.pay-method-choice:hover {
  border-color: var(--border-subtle);
  background: var(--bg-subtle);
}

.pay-method-choice.active {
  border-color: var(--border-line);
  background: var(--bg-subtle);
  box-shadow: none;
}

.pay-method-choice.active#payChoiceQris {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.04);
  box-shadow: none;
}

.pay-method-choice.active#payChoiceUsdt {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: none;
}

.choice-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.choice-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.choice-icon.qris-icon {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.choice-icon.usdt-icon {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.choice-icon img {
  display: block;
  object-fit: contain;
}

.choice-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.choice-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.choice-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.choice-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.12);
  color: #F97316;
  border: 1px solid rgba(249, 115, 22, 0.35);
  flex-shrink: 0;
}

.choice-badge.idr {
  background: rgba(249, 115, 22, 0.12);
  color: #F97316;
  border-color: rgba(249, 115, 22, 0.35);
}

.choice-badge.crypto {
  background: rgba(38, 161, 123, 0.15);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.4);
}

/* STEP 2: METHOD TABS (SWITCHER) */
.step2-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 2px;
}

.step2-method-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.step2-method-tab:focus,
.step2-method-tab:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.step2-method-tab img {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.step2-method-tab:hover {
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.step2-method-tab.active {
  border-color: var(--border-line);
  background: var(--bg-subtle);
  color: var(--text-primary);
  box-shadow: none;
}

.step2-method-tab.active#tabPayQris {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.04);
  color: #EA580C;
  box-shadow: none;
}

.step2-method-tab.active#tabPayUsdt {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.04);
  color: #059669;
  box-shadow: none;
}

.crypto-live-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: #10B981;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   STEP 2: PAYMENT SECTION GAPS & MODULAR CARDS
   ========================================================================== */
#qrisPaymentSection,
#usdtPaymentSection {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.payment-hint-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  padding: 2px 8px;
  line-height: 1.6;
}

.box-sublbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.box-nominal-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  letter-spacing: 0.4px;
}

/* STEP 2: QRIS DISPLAY */
.qris-box-card {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  border-radius: 18px; /* ROUNDED QRIS */
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #0F172A;
  box-shadow: var(--shadow-card);
}

.qris-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px dashed #CBD5E1;
  padding-bottom: 12px;
}

.qris-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.12rem;
  color: #0F172A;
}

.qris-gpn-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #DC2626;
  border: 1px solid #DC2626;
  padding: 2px 8px;
  border-radius: 9999px;
}

.qris-qr-wrapper {
  width: 250px;
  height: 250px;
  padding: 8px;
  background: #FFFFFF;
  border: 2px solid #0F172A;
  border-radius: 14px; /* ROUNDED QR */
  display: flex;
  align-items: center;
  justify-content: center;
}

.qris-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.qris-merchant-info {
  text-align: center;
  width: 100%;
  border-top: 1px dashed #CBD5E1;
  padding-top: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* TIMER & AMOUNT BOX */
.qris-time-remaining {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 600;
}

.time-counter-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #EF4444;
}

.qris-nominal-box {
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nominal-val-text {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.btn-copy-nominal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-nominal:hover {
  background-color: var(--text-primary);
  color: var(--bg-surface);
}

/* STEP 2: USDT (BEP20) DISPLAY */
.usdt-box-card {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #0F172A;
  box-shadow: var(--shadow-card);
}

.usdt-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px dashed #CBD5E1;
  padding-bottom: 12px;
}

.usdt-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.08rem;
  color: #0F172A;
}

.usdt-network-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
}

.usdt-rate-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.rate-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.usdt-nominal-box {
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.usdt-address-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.address-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.network-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #D97706;
  background: rgba(245, 158, 11, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.address-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 12px;
}

.address-code {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.35;
}

.btn-copy-address {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-copy-address:hover {
  background: #059669;
}

.usdt-warning-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.usdt-warning-box strong {
  color: #D97706;
}

html[data-theme="dark"] .usdt-warning-box strong {
  color: #FBBF24;
}

.step2-bottom-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

/* ==========================================================================
   STEP 3: MINIMALIST PAYMENT RECEIVED CARD
   ========================================================================== */
.process-banner-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 18px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .process-banner-box {
  background-color: #121215;
  border-color: #27272A;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Header Centered & Minimal */
.minimal-success-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.minimal-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  animation: checkmark-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkmark-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

html[data-theme="dark"] .minimal-success-icon {
  background-color: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34D399;
}

.minimal-success-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.minimal-success-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Minimalist Live Status Bar */
.minimal-process-status {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html[data-theme="dark"] .minimal-process-status {
  background-color: #141418;
  border-color: #27272A;
}

.minimal-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.minimal-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #F59E0B;
}

.minimal-timer-digits {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.minimal-progress-bar {
  width: 100%;
  height: 5px;
  background-color: var(--border-line);
  border-radius: 9999px;
  overflow: hidden;
}

html[data-theme="dark"] .minimal-progress-bar {
  background-color: #27272A;
}

.minimal-progress-fill {
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 9999px;
  transition: width 1s linear;
}

/* Minimalist Order Receipt Table */
.minimal-receipt-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

html[data-theme="dark"] .minimal-receipt-card {
  background-color: #141418;
  border-color: #27272A;
}

.minimal-receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  padding: 1px 0;
}

.minimal-receipt-row.total-row {
  border-top: 1px solid var(--border-line);
  padding-top: 12px;
  margin-top: 4px;
  gap: 14px;
}

html[data-theme="dark"] .minimal-receipt-row.total-row {
  border-color: #27272A;
}

.m-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.m-value {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
  font-size: 0.84rem;
  word-break: break-word;
}

.m-total {
  color: #EA580C;
  font-size: 1rem;
  font-weight: 800;
}

html[data-theme="dark"] .m-total {
  color: #FB923C;
}

.m-order-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.m-order-id-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Minimalist Actions */
.minimal-actions-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.btn-telegram-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #229ED9;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 3px 10px rgba(34, 158, 217, 0.25);
}

.btn-telegram-minimal:hover {
  background-color: #1B87BC;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(34, 158, 217, 0.35);
}

.btn-dismiss-minimal {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-dismiss-minimal:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}
  box-shadow: 0 3px 10px rgba(34, 158, 217, 0.25);
}

.btn-telegram-minimal:hover {
  background-color: #1B87BC;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(34, 158, 217, 0.35);
}

.btn-dismiss-minimal {
  background: transparent;
  border: 1px solid var(--border-line);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-dismiss-minimal:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

/* ACTIONS */
.btn-submit-action {
  width: 100%;
  padding: 13px 20px;
  background-color: var(--text-primary);
  color: var(--bg-surface);
  border: none;
  border-radius: 12px; /* ROUNDED ACTION */
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-submit-action:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-outline-action {
  width: 100%;
  padding: 12px 18px;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-line);
  border-radius: 12px; /* ROUNDED */
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-outline-action:hover {
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  border-color: var(--border-subtle);
}

/* TOAST POPUP */
.toast-alert {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  padding: 12px 20px;
  background-color: var(--text-primary);
  color: var(--bg-surface);
  border-radius: 9999px; /* ROUNDED TOAST */
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: var(--shadow-dialog);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
}

.toast-alert.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   VIEW SWITCHING ANIMATION
   ========================================================================== */
@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeInSection 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

#storeView {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   TESTIMONI SECTION & METRICS
   ========================================================================== */
#testimoniView {
  padding: 24px 28px 60px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 220px);
}

/* ==========================================================================
   TESTIMONI TRUST METRICS BAR (CLEAN, MINIMALIST & AESTHETIC)
   ========================================================================== */
.testimoni-metrics-bar,
.testimoni-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02), 0 6px 20px -4px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .testimoni-metrics-bar,
html[data-theme="dark"] .testimoni-metrics-row {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  border-color: #27272A;
}

.testimoni-metric-item,
.testimoni-metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: background-color 0.2s ease;
  position: relative;
}

.testimoni-metric-item:not(:last-child),
.testimoni-metric-card:not(:last-child) {
  border-right: 1px solid var(--border-line);
}

html[data-theme="dark"] .testimoni-metric-item:not(:last-child),
html[data-theme="dark"] .testimoni-metric-card:not(:last-child) {
  border-right-color: #27272A;
}

.testimoni-metric-item:hover,
.testimoni-metric-card:hover {
  background-color: var(--bg-subtle);
  transform: none;
}

.testimoni-metric-item:hover .testimoni-metric-icon {
  transform: scale(1.08);
}

/* MICRO ICON BADGE */
.testimoni-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.testimoni-metric-icon svg {
  display: block;
}

/* Icon Variations: Light Theme */
.icon-rating {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.icon-real {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.icon-speed {
  background: rgba(2, 132, 199, 0.1);
  color: #0284C7;
  border: 1px solid rgba(2, 132, 199, 0.22);
}

.icon-support {
  background: rgba(121, 40, 202, 0.1);
  color: #7928CA;
  border: 1px solid rgba(121, 40, 202, 0.22);
}

/* Icon Variations: Dark Theme */
html[data-theme="dark"] .icon-rating {
  background: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.25);
}

html[data-theme="dark"] .icon-real {
  background: rgba(52, 211, 153, 0.12);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.25);
}

html[data-theme="dark"] .icon-speed {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.25);
}

html[data-theme="dark"] .icon-support {
  background: rgba(167, 139, 250, 0.12);
  color: #A78BFA;
  border-color: rgba(167, 139, 250, 0.25);
}

/* METRIC TEXT GROUP */
.testimoni-metric-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.testimoni-metric-val,
.metric-value {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.testimoni-metric-val .val-sub {
  font-size: 0.82em;
  font-weight: 500;
  color: var(--text-muted);
}

.testimoni-metric-lbl,
.metric-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tablet Layout (<= 960px) */
@media (max-width: 960px) {
  .testimoni-metrics-bar,
  .testimoni-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimoni-metric-item:not(:last-child),
  .testimoni-metric-card:not(:last-child) {
    border-right: none;
  }

  .testimoni-metric-item:nth-child(1),
  .testimoni-metric-item:nth-child(3),
  .testimoni-metric-card:nth-child(1),
  .testimoni-metric-card:nth-child(3) {
    border-right: 1px solid var(--border-line);
  }

  .testimoni-metric-item:nth-child(1),
  .testimoni-metric-item:nth-child(2),
  .testimoni-metric-card:nth-child(1),
  .testimoni-metric-card:nth-child(2) {
    border-bottom: 1px solid var(--border-line);
  }

  html[data-theme="dark"] .testimoni-metric-item:nth-child(1),
  html[data-theme="dark"] .testimoni-metric-item:nth-child(3),
  html[data-theme="dark"] .testimoni-metric-card:nth-child(1),
  html[data-theme="dark"] .testimoni-metric-card:nth-child(3) {
    border-right-color: #27272A;
  }

  html[data-theme="dark"] .testimoni-metric-item:nth-child(1),
  html[data-theme="dark"] .testimoni-metric-item:nth-child(2),
  html[data-theme="dark"] .testimoni-metric-card:nth-child(1),
  html[data-theme="dark"] .testimoni-metric-card:nth-child(2) {
    border-bottom-color: #27272A;
  }

  .testimoni-metric-item,
  .testimoni-metric-card {
    padding: 13px 16px;
    gap: 12px;
  }

  .testimoni-metric-icon {
    width: 34px;
    height: 34px;
  }

  .testimoni-metric-val,
  .metric-value {
    font-size: 0.9rem;
  }

  .testimoni-metric-lbl,
  .metric-label {
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   TESTIMONI GRID & CARDS
   ========================================================================== */
.testimoni-grid-wrapper {
  margin-bottom: 50px;
}

.testimoni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1280px) {
  .testimoni-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .testimoni-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 680px) {
  .testimoni-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* User Agent Mobile Device override: 1 card 1 baris */
body.is-mobile-device .testimoni-grid {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.testimoni-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}

.testimoni-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: var(--border-subtle);
}

html[data-theme="dark"] .testimoni-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border-color: #27272A;
}

html[data-theme="dark"] .testimoni-card:hover {
  border-color: #3F3F46;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

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

.testimoni-buyer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimoni-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}

.testimoni-buyer-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.testimoni-buyer-method {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.testimoni-header-stars {
  display: none !important;
}

/* Image Frame */
.testimoni-img-frame {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-line);
  cursor: pointer;
}

.testimoni-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s ease;
}

.testimoni-card:hover .testimoni-img-thumb {
  transform: scale(1.03);
}

.testimoni-hover-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.testimoni-zoom-pill {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.testimoni-card:hover .testimoni-zoom-pill {
  background: #0066FF;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Card Details */
.testimoni-card-details {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.testimoni-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.testimoni-product-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimoni-nominal-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #EA580C;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

html[data-theme="dark"] .testimoni-nominal-tag {
  color: #FB923C;
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.25);
}

.testimoni-note-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  font-style: italic;
  margin-top: 2px;
}

.btn-testimoni-view {
  width: 100%;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-testimoni-view:hover {
  background-color: var(--text-primary);
  color: var(--bg-page);
  border-color: var(--text-primary);
}

/* ==========================================================================
   LIGHTBOX MODAL SYSTEM
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.open {
  display: flex;
  opacity: 1;
}

.lightbox-dialog {
  max-width: 580px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dialog);
  border: 1px solid var(--border-subtle);
  border-radius: 24px; /* AESTHETIC ROUNDED */
  box-shadow: var(--shadow-dialog);
  overflow: hidden;
  position: relative;
  animation: dialogPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-toolbar {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-glass);
}

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-counter {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: var(--bg-subtle);
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid var(--border-line);
}

.lightbox-title-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-tool-btn,
.lightbox-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lightbox-tool-btn:hover,
.lightbox-close-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-page);
  border-color: var(--text-primary);
}

.lightbox-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #09090B;
  padding: 12px;
  max-height: calc(94vh - 124px);
  overflow: hidden;
}

.lightbox-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(94vh - 150px);
  max-width: 100%;
}

.lightbox-img {
  max-height: calc(94vh - 150px);
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  z-index: 10;
}

.lightbox-nav-btn.prev {
  left: 14px;
}

.lightbox-nav-btn.next {
  right: 14px;
}

.lightbox-nav-btn:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-caption {
  padding: 12px 18px;
  border-top: 1px solid var(--border-line);
  background-color: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .lightbox-dialog {
    max-height: 98vh;
    border-radius: 16px;
  }
  .lightbox-nav-btn {
    width: 36px;
    height: 36px;
  }
  .lightbox-nav-btn.prev {
    left: 8px;
  }
  .lightbox-nav-btn.next {
    right: 8px;
  }
}


/* ==========================================================================
   MOBILE RESPONSIVE SYSTEM (2-COLUMN CARDS FIT TO SCREEN)
   ========================================================================== */
@media (max-width: 768px), (pointer: coarse) and (max-width: 900px) {
  /* TOP NAVBAR ON MOBILE */
  .top-navbar {
    height: 58px;
    padding: 0 12px;
  }

  .brand-section {
    gap: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  /* Tampilan Mobile: Sembunyikan logo teks full dan cukup pakai icon emblem logo saja */
  .header-logo-img.logo-full {
    display: none !important;
  }

  .header-logo-img.logo-emblem {
    display: block !important;
    height: 32px;
    width: 32px;
    max-width: 32px;
    object-fit: contain;
  }

  .nav-links-row {
    gap: 2px;
    padding: 3px;
  }

  .nav-item-btn {
    padding: 5px 8px;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }

  .nav-actions-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .telegram-pill-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Sembunyikan tulisan TELEGRAM pada mobile, cukup icon pesawat saja */
  .telegram-pill-btn span {
    display: none !important;
  }

  .telegram-pill-btn svg {
    width: 15px;
    height: 15px;
    margin: 0;
    flex-shrink: 0;
  }

  .lang-switch-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    gap: 0;
    border-radius: 9999px;
    flex-shrink: 0;
  }

  .lang-switch-btn .lang-code-text {
    display: none;
  }

  .theme-switch-btn {
    width: 32px;
    height: 32px;
  }

  .theme-switch-btn svg {
    width: 14px;
    height: 14px;
  }

  /* FILTER TABS ON MOBILE */
  .filter-tabs-bar {
    padding: 12px 10px 2px 10px;
    gap: 6px;
  }

  .filter-tab-pill {
    padding: 6px 12px;
    font-size: 0.64rem;
  }

  /* MAIN CATALOG & BESTSELLER WRAPPER: 2 CARDS 1 ROW ON MOBILE */
  .catalog-grid-wrapper {
    padding: 10px 10px 48px 10px;
    min-height: calc(100vh - 180px);
  }

  .catalog-grid-wrapper.is-filtered {
    padding: 10px 10px 16px 10px;
    min-height: auto;
  }

  .bestseller-showcase-section {
    padding: 0 10px;
    margin-top: 16px;
  }

  .products-grid,
  .bestseller-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* MOBILE PRODUCT CARD OPTIMIZATION (2 CARDS PER ROW) */
  .product-card {
    padding: 10px 8px;
    border-radius: 14px;
  }

  .product-thumb-frame {
    height: 128px;
    padding: 8px 8px;
    border-radius: 10px;
  }

  .thumb-award-badge-img {
    width: 20px;
    height: 20px;
  }

  .thumb-stock-ready-pill {
    font-size: 0.58rem;
    padding: 0;
    gap: 4px;
    background: transparent !important;
    border: none !important;
  }

  .stock-pulse-dot {
    width: 5px;
    height: 5px;
  }

  .brand-visual-group {
    gap: 6px !important;
  }

  .brand-visual-group > div {
    gap: 6px !important;
  }

  .brand-visual-icon {
    width: 30px !important;
    height: 30px !important;
  }

  .brand-visual-group svg,
  .brand-visual-group img {
    max-width: 30px !important;
    max-height: 30px !important;
  }

  .brand-visual-group > div > div {
    width: 30px !important;
    height: 30px !important;
  }

  .brand-visual-title {
    font-size: 0.95rem !important;
    letter-spacing: -0.01em;
  }

  .university-emblem-visual svg {
    width: 52px !important;
    height: 52px !important;
  }

  .card-logo-img {
    height: 12px;
    max-width: 56px;
  }

  .thumb-speed-pill {
    font-size: 0.52rem;
    padding: 2px 5px;
    border-radius: 4px;
    gap: 3px;
  }

  .thumb-speed-pill svg {
    width: 8px;
    height: 8px;
  }

  .product-body-info {
    padding-top: 8px;
  }

  .product-brand-line {
    gap: 5px;
    margin-bottom: 4px;
  }

  .brand-mini-icon-box {
    width: 13px;
    height: 13px;
  }

  .brand-category-name {
    font-size: 0.62rem;
  }

  .product-card-title {
    font-size: 0.82rem;
    min-height: 34px;
    line-height: 1.25;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-specs {
    padding: 5px 6px;
    margin-bottom: 6px;
    gap: 3px;
    border-radius: 7px;
  }

  .product-spec-item {
    font-size: 0.60rem;
    gap: 5px;
    line-height: 1.25;
  }

  .spec-bullet-dot {
    width: 3.5px;
    height: 3.5px;
  }

  .card-variant-selector {
    gap: 3px;
    padding: 2px;
    margin-bottom: 6px;
  }

  .variant-btn {
    font-size: 0.58rem;
    padding: 3px 2px;
  }

  .product-price-row {
    margin-bottom: 4px;
  }

  .product-price-val {
    font-size: 1.05rem;
    font-weight: 800;
  }

  .product-card-meta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    margin-bottom: 8px;
    min-height: 18px;
  }

  .product-guarantee-line {
    font-size: 0.60rem;
    gap: 3px;
    margin-bottom: 0;
  }

  .guarantee-shield-icon {
    width: 11px;
    height: 11px;
  }

  .product-metrics-line {
    font-size: 0.58rem;
    gap: 3px;
    margin-bottom: 0;
  }

  .metric-eye-icon {
    width: 10px;
    height: 10px;
  }

  .btn-buy-now {
    height: 35px;
    font-size: 0.78rem;
    padding: 6px 8px;
    border-radius: 8px;
    gap: 5px;
    margin-top: 0;
  }

  .btn-cart-icon {
    width: 13px;
    height: 13px;
  }

  /* TESTIMONI VIEW ON MOBILE: 1 CARD 1 BARIS COMPACT & BERSIH */
  #testimoniView {
    padding: 12px 12px 48px 12px;
  }

  .testimoni-metrics-bar,
  .testimoni-metrics-row {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .testimoni-metric-item,
  .testimoni-metric-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .testimoni-metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .testimoni-metric-icon svg {
    width: 14px;
    height: 14px;
  }

  .testimoni-metric-val,
  .metric-value {
    font-size: 0.84rem;
  }

  .testimoni-metric-lbl,
  .metric-label {
    font-size: 0.62rem;
  }

  .testimoni-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .testimoni-card {
    padding: 12px;
    border-radius: 14px;
  }

  .testimoni-card-header {
    margin-bottom: 8px;
  }

  .testimoni-avatar-circle {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  .testimoni-buyer-name {
    font-size: 0.82rem;
  }

  .testimoni-buyer-method {
    font-size: 0.62rem;
  }

  .testimoni-header-stars {
    font-size: 0.75rem;
  }

  .testimoni-img-frame {
    height: 240px;
    border-radius: 10px;
  }

  .testimoni-zoom-pill {
    font-size: 0.62rem;
    padding: 5px 8px;
  }

  .testimoni-card-details {
    padding-top: 8px;
  }

  .testimoni-meta-row {
    margin-bottom: 6px;
    gap: 6px;
  }

  .testimoni-product-tag {
    font-size: 0.64rem;
    padding: 3px 7px;
  }

  .testimoni-nominal-tag {
    font-size: 0.68rem;
    padding: 3px 7px;
  }

  .testimoni-note-text {
    font-size: 0.7rem;
    min-height: auto;
    margin-bottom: 8px;
  }

  .btn-testimoni-view {
    padding: 8px 10px;
    font-size: 0.68rem;
    border-radius: 8px;
  }
}

/* User Agent Mobile Device override */
body.is-mobile-device .brand-section {
  gap: 0;
  display: flex;
  align-items: center;
}

body.is-mobile-device .header-logo-img.logo-full {
  display: none !important;
}

body.is-mobile-device .header-logo-img.logo-emblem {
  display: block !important;
  height: 32px;
  width: 32px;
  max-width: 32px;
  object-fit: contain;
}

body.is-mobile-device .lang-switch-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  gap: 0;
  border-radius: 9999px;
  flex-shrink: 0;
}

body.is-mobile-device .lang-switch-btn .lang-code-text {
  display: none;
}

body.is-mobile-device .telegram-pill-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.is-mobile-device .telegram-pill-btn span {
  display: none !important;
}

body.is-mobile-device .telegram-pill-btn svg {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
}

body.is-mobile-device .products-grid,
body.is-mobile-device .bestseller-products-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.is-mobile-device .testimoni-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

body.is-mobile-device .testimoni-card {
  padding: 12px;
}

body.is-mobile-device .testimoni-img-frame {
  height: 240px;
}

@media (max-width: 380px) {
  .top-navbar {
    padding: 0 8px;
  }
  .header-logo-img.logo-emblem {
    height: 28px !important;
    width: 28px !important;
    max-width: 28px !important;
  }
  .nav-item-btn {
    padding: 5px 6px;
    font-size: 0.58rem;
  }
  .catalog-grid-wrapper {
    padding: 10px 6px 40px 6px;
  }
  .bestseller-showcase-section {
    padding: 0 6px;
  }
  .products-grid,
  .bestseller-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  .product-card {
    padding: 8px 6px;
    border-radius: 12px;
  }
  .product-thumb-frame {
    height: 120px;
    padding: 6px;
    border-radius: 8px;
  }
  .brand-visual-title {
    font-size: 0.88rem !important;
  }
  .product-card-title {
    font-size: 0.76rem;
    min-height: 30px;
  }
  .product-price-val {
    font-size: 0.98rem;
  }
  .product-card-meta-row {
    gap: 2px;
    margin-bottom: 6px;
    min-height: 16px;
  }
  .product-guarantee-line {
    font-size: 0.54rem;
    gap: 2px;
  }
  .guarantee-shield-icon {
    width: 9px;
    height: 9px;
  }
  .product-metrics-line {
    font-size: 0.54rem;
    gap: 2px;
  }
  .metric-eye-icon {
    width: 9px;
    height: 9px;
  }
  .btn-buy-now {
    height: 32px;
    font-size: 0.74rem;
    padding: 4px 6px;
  }
}

/* ==========================================================================
   BLOG PAGE & SEO ARTICLE ARCHITECTURE
   ========================================================================== */
#blogView {
  padding: 24px 28px 60px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 220px);
}

.blog-hero-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 28px auto;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.25);
  color: var(--accent-blue);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.blog-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

.blog-hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.blog-hero-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 660px;
  margin: 0 auto;
}

.blog-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.blog-grid-wrapper {
  width: 100%;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  position: relative;
  text-decoration: none;
  outline: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}

.blog-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card:focus-visible {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.25);
}

.blog-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 195px;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.blog-card:hover .blog-card-thumb {
  transform: scale(1.06);
}

.blog-card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.8);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-card-readtime-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.blog-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-meta-dot {
  opacity: 0.5;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.18s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--accent-blue);
}

.blog-card-excerpt {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-line);
  gap: 10px;
}

.blog-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.blog-tag-chip {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border-line);
}

.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.blog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border-line);
  border-radius: 18px;
}

.blog-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.blog-empty-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BLOG ARTICLE READER MODAL
   ========================================================================== */
.blog-reader-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 36px 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.blog-reader-overlay.open {
  display: flex;
  opacity: 1;
}

.blog-reader-dialog {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  margin: auto;
  animation: blogReaderPop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes blogReaderPop {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(15px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.blog-reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-line);
  background-color: var(--bg-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.blog-crumb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: color 0.18s ease;
}

.blog-crumb-back-btn:hover {
  color: var(--accent-blue);
}

.blog-crumb-sep {
  margin: 0 8px;
  color: var(--text-faint);
}

.blog-crumb-category {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-reader-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-line);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.blog-reader-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
  background: var(--bg-surface);
}

.blog-reader-content {
  padding: 32px 36px 48px 36px;
  color: var(--text-primary);
}

.blog-reader-hero {
  margin-bottom: 28px;
}

.blog-reader-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.blog-reader-badge {
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.25);
  color: var(--accent-blue);
  font-weight: 800;
  font-size: 0.68rem;
}

.blog-reader-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.blog-reader-hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border-line);
  display: block;
}

.blog-reader-body-copy {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-reader-body-copy .blog-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 24px;
}

.blog-reader-body-copy h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 34px 0 14px 0;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 8px;
  line-height: 1.35;
}

.blog-reader-body-copy h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 24px 0 10px 0;
}

.blog-reader-body-copy p {
  margin-bottom: 16px;
}

.blog-reader-body-copy ul,
.blog-reader-body-copy ol {
  margin: 12px 0 20px 22px;
}

.blog-reader-body-copy li {
  margin-bottom: 8px;
}

.blog-reader-body-copy strong {
  color: var(--text-primary);
}

.blog-callout-box {
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent-blue);
  padding: 16px 20px;
  border-radius: 0 14px 14px 0;
  margin: 24px 0;
  color: var(--text-primary);
  font-size: 0.96rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-line);
  border-right: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}

.blog-inline-img-box {
  margin: 28px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-line);
  background: var(--bg-subtle);
}

.blog-inline-img-box img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 380px;
  object-fit: cover;
}

.blog-inline-img-caption {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  background: var(--bg-subtle);
}

.blog-cta-box {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(121, 40, 202, 0.08) 100%);
  border: 1.5px solid rgba(0, 102, 255, 0.35);
  border-radius: 20px;
  padding: 28px 24px;
  margin: 40px 0 20px 0;
  text-align: center;
  box-shadow: 0 12px 30px -4px rgba(0, 102, 255, 0.1);
}

.blog-cta-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.blog-cta-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.55;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-cta-primary-btn {
  padding: 12px 24px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--accent-blue);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.blog-cta-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.45);
}

.blog-cta-secondary-btn {
  padding: 11px 22px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  border-radius: 9999px;
  border: 1px solid var(--border-line);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.blog-cta-secondary-btn:hover {
  border-color: var(--border-subtle);
  color: var(--accent-blue);
}

.blog-reader-footer-nav {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-line);
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   BLOG RESPONSIVE RULES (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-width: 900px) {
  #blogView {
    padding: 10px 10px 48px 10px;
  }

  .blog-hero-header {
    margin-bottom: 18px;
  }

  .blog-hero-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
  }

  .blog-hero-title {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }

  .blog-hero-subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .blog-filter-tabs {
    gap: 5px;
    margin-bottom: 18px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-card {
    border-radius: 16px;
  }

  .blog-card-thumb-wrap {
    height: 175px;
  }

  .blog-card-content {
    padding: 16px;
  }

  .blog-card-title {
    font-size: 1.05rem;
  }

  .blog-card-excerpt {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }

  .blog-reader-overlay {
    padding: 12px 8px;
  }

  .blog-reader-dialog {
    border-radius: 18px;
  }

  .blog-reader-topbar {
    padding: 12px 16px;
  }

  .blog-reader-content {
    padding: 18px 16px 36px 16px;
  }

  .blog-reader-title {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }

  .blog-reader-body-copy {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .blog-reader-body-copy h2 {
    font-size: 1.15rem;
    margin: 26px 0 10px 0;
  }

  .blog-cta-box {
    padding: 20px 16px;
    margin: 28px 0 16px 0;
  }

  .blog-cta-title {
    font-size: 1.15rem;
  }

  .blog-cta-desc {
    font-size: 0.84rem;
  }

  .blog-cta-primary-btn,
  .blog-cta-secondary-btn {
    width: 100%;
    text-align: center;
  }
}
