/* ==========================================================================
   JBHABIBCPS - Gaming Marketplace & Management System
   Design System: Dark Cyber Luxury & Glassmorphism
   Inspired by jbalwikobra.com
   ========================================================================== */

:root,
[data-theme="cyber-rose"],
html[data-theme="cyber-rose"] {
  --theme-name: "cyber-gaming";
  --bg-deep: #08090d;
  --bg-surface: #0e1118;
  --bg-card: rgba(16, 20, 30, 0.76);
  --bg-card-hover: rgba(24, 30, 46, 0.9);
  --bg-card-solid: #121522;
  --bg-glass-input: rgba(20, 26, 40, 0.55);

  /* Brand Glow Colors - Modern Minimalist Gaming */
  --primary: #00F2FE;
  --primary-rgb: 0, 242, 254;
  --primary-hover: #38bdf8;
  --primary-glow: rgba(0, 242, 254, 0.35);
  --secondary: #8B5CF6;
  --secondary-glow: rgba(139, 92, 246, 0.32);
  --accent-purple: #7C3AED;
  --accent-cyan: #00F2FE;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --accent-rose: #EF4444;

  /* Typography Colors */
  --text-main: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #828FA3;
  --text-dim: #4B5565;
  --text-accent: var(--primary);

  /* Border & Glass */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 242, 254, 0.45);
  --glass-blur: blur(20px);
  --glass-blur-sm: blur(12px);

  /* Geometry - Crisp Modern Gaming Radius */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-neon: 0 0 15px rgba(139, 92, 246, 0.35);
}

/* Midnight Amethyst & Royal Indigo */
[data-theme="midnight-violet"],
html[data-theme="midnight-violet"] {
  --theme-name: "midnight-violet";
  --bg-deep: #06040c;
  --bg-surface: #0c0918;
  --bg-card: rgba(24, 18, 42, 0.68);
  --bg-card-hover: rgba(36, 27, 62, 0.85);
  --bg-card-solid: #150f25;
  --bg-glass-input: rgba(42, 32, 70, 0.45);

  --primary: #A855F7;
  --primary-rgb: 168, 85, 247;
  --primary-hover: #c084fc;
  --primary-glow: rgba(168, 85, 247, 0.38);
  --secondary: #6366F1;
  --secondary-glow: rgba(99, 102, 241, 0.32);
  --accent-purple: #4338ca;

  --border-subtle: rgba(168, 85, 247, 0.12);
  --border-card: rgba(168, 85, 247, 0.18);
  --border-glow: rgba(168, 85, 247, 0.48);
  --shadow-glow: 0 0 25px rgba(168, 85, 247, 0.28);
  --shadow-neon: 0 0 15px rgba(99, 102, 241, 0.38);
}

/* Electric Cyber Cyan & Deep Ocean */
[data-theme="cyber-cyan"],
html[data-theme="cyber-cyan"] {
  --theme-name: "cyber-cyan";
  --bg-deep: #03080e;
  --bg-surface: #07121c;
  --bg-card: rgba(12, 26, 42, 0.68);
  --bg-card-hover: rgba(18, 38, 62, 0.85);
  --bg-card-solid: #0d1e30;
  --bg-glass-input: rgba(22, 48, 76, 0.45);

  --primary: #06B6D4;
  --primary-rgb: 6, 182, 212;
  --primary-hover: #22d3ee;
  --primary-glow: rgba(6, 182, 212, 0.38);
  --secondary: #3B82F6;
  --secondary-glow: rgba(59, 130, 246, 0.32);
  --accent-purple: #0284c7;

  --border-subtle: rgba(6, 182, 212, 0.12);
  --border-card: rgba(6, 182, 212, 0.18);
  --border-glow: rgba(6, 182, 212, 0.48);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.28);
  --shadow-neon: 0 0 15px rgba(59, 130, 246, 0.38);
}

/* Hyper Emerald & Matrix Mint */
[data-theme="emerald-matrix"],
html[data-theme="emerald-matrix"] {
  --theme-name: "emerald-matrix";
  --bg-deep: #030a07;
  --bg-surface: #07160f;
  --bg-card: rgba(10, 32, 20, 0.68);
  --bg-card-hover: rgba(16, 48, 30, 0.85);
  --bg-card-solid: #0c2417;
  --bg-glass-input: rgba(20, 56, 36, 0.45);

  --primary: #10B981;
  --primary-rgb: 16, 185, 129;
  --primary-hover: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.38);
  --secondary: #14B8A6;
  --secondary-glow: rgba(20, 184, 166, 0.32);
  --accent-purple: #059669;

  --border-subtle: rgba(16, 185, 129, 0.12);
  --border-card: rgba(16, 185, 129, 0.18);
  --border-glow: rgba(16, 185, 129, 0.48);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.28);
  --shadow-neon: 0 0 15px rgba(20, 184, 166, 0.38);
}

/* Crimson Fire & Magma Ember */
[data-theme="crimson-fire"],
html[data-theme="crimson-fire"] {
  --theme-name: "crimson-fire";
  --bg-deep: #0c0406;
  --bg-surface: #18080b;
  --bg-card: rgba(36, 14, 18, 0.68);
  --bg-card-hover: rgba(54, 20, 26, 0.85);
  --bg-card-solid: #260f14;
  --bg-glass-input: rgba(64, 24, 32, 0.45);

  --primary: #F43F5E;
  --primary-rgb: 244, 63, 94;
  --primary-hover: #fb7185;
  --primary-glow: rgba(244, 63, 94, 0.4);
  --secondary: #F97316;
  --secondary-glow: rgba(249, 115, 22, 0.35);
  --accent-purple: #e11d48;

  --border-subtle: rgba(244, 63, 94, 0.12);
  --border-card: rgba(244, 63, 94, 0.18);
  --border-glow: rgba(244, 63, 94, 0.5);
  --shadow-glow: 0 0 25px rgba(244, 63, 94, 0.3);
  --shadow-neon: 0 0 15px rgba(249, 115, 22, 0.4);
}

/* Sultan Imperial Gold & Warm Amber */
[data-theme="luxury-gold"],
html[data-theme="luxury-gold"] {
  --theme-name: "luxury-gold";
  --bg-deep: #090703;
  --bg-surface: #140f06;
  --bg-card: rgba(32, 24, 12, 0.68);
  --bg-card-hover: rgba(50, 38, 18, 0.85);
  --bg-card-solid: #241a0b;
  --bg-glass-input: rgba(60, 44, 20, 0.45);

  --primary: #F59E0B;
  --primary-rgb: 245, 158, 11;
  --primary-hover: #fbbf24;
  --primary-glow: rgba(245, 158, 11, 0.4);
  --secondary: #EAB308;
  --secondary-glow: rgba(234, 179, 8, 0.35);
  --accent-purple: #b45309;

  --border-subtle: rgba(245, 158, 11, 0.14);
  --border-card: rgba(245, 158, 11, 0.2);
  --border-glow: rgba(245, 158, 11, 0.52);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.3);
  --shadow-neon: 0 0 15px rgba(234, 179, 8, 0.4);
}

/* Stealth Deep Space & Platinum Silver */
[data-theme="deep-space"],
html[data-theme="deep-space"] {
  --theme-name: "deep-space";
  --bg-deep: #030304;
  --bg-surface: #0a0a0d;
  --bg-card: rgba(20, 20, 25, 0.72);
  --bg-card-hover: rgba(32, 32, 40, 0.88);
  --bg-card-solid: #141419;
  --bg-glass-input: rgba(36, 36, 46, 0.5);

  --primary: #E2E8F0;
  --primary-rgb: 226, 232, 240;
  --primary-hover: #ffffff;
  --primary-glow: rgba(226, 232, 240, 0.28);
  --secondary: #94A3B8;
  --secondary-glow: rgba(148, 163, 184, 0.22);
  --accent-purple: #475569;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(255, 255, 255, 0.38);
  --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.15);
  --shadow-neon: 0 0 15px rgba(148, 163, 184, 0.3);
}

/* Custom Wallpaper Theme */
[data-theme="custom-wallpaper"],
html[data-theme="custom-wallpaper"] {
  --theme-name: "custom-wallpaper";
  --bg-deep: #050406;
  --bg-surface: #0b090e;
  --bg-card: rgba(14, 12, 18, 0.84);
  --bg-card-hover: rgba(24, 20, 30, 0.94);
  --bg-card-solid: #131018;
  --bg-glass-input: rgba(35, 28, 44, 0.6);
  --glass-blur: blur(24px);
  --glass-blur-sm: blur(14px);
}

/* Sunset Vaporwave & Cyberpunk 2077 */
[data-theme="vaporwave-sunset"],
html[data-theme="vaporwave-sunset"] {
  --theme-name: "vaporwave-sunset";
  --bg-deep: #09040c;
  --bg-surface: #130718;
  --bg-card: rgba(35, 12, 38, 0.68);
  --bg-card-hover: rgba(52, 18, 56, 0.85);
  --bg-card-solid: #220b26;
  --bg-glass-input: rgba(60, 20, 65, 0.45);

  --primary: #FF5E7E;
  --primary-rgb: 255, 94, 126;
  --primary-hover: #ff7b96;
  --primary-glow: rgba(255, 94, 126, 0.4);
  --secondary: #FFA048;
  --secondary-glow: rgba(255, 160, 72, 0.35);
  --accent-purple: #8B5CF6;
  --accent-cyan: #38bdf8;
  --accent-amber: #FFA048;
  --accent-emerald: #10b981;
  --accent-rose: #FF5E7E;

  --border-subtle: rgba(255, 94, 126, 0.12);
  --border-card: rgba(255, 94, 126, 0.18);
  --border-glow: rgba(255, 94, 126, 0.5);
  --shadow-glow: 0 0 25px rgba(255, 94, 126, 0.3);
  --shadow-neon: 0 0 15px rgba(255, 160, 72, 0.4);
}

/* Toxic Acid & Cyber Lime */
[data-theme="toxic-lime"],
html[data-theme="toxic-lime"] {
  --theme-name: "toxic-lime";
  --bg-deep: #020803;
  --bg-surface: #051307;
  --bg-card: rgba(12, 36, 16, 0.68);
  --bg-card-hover: rgba(18, 52, 24, 0.85);
  --bg-card-solid: #0d2812;
  --bg-glass-input: rgba(22, 60, 28, 0.45);

  --primary: #10F07E;
  --primary-rgb: 16, 240, 126;
  --primary-hover: #3bf396;
  --primary-glow: rgba(16, 240, 126, 0.4);
  --secondary: #A3E635;
  --secondary-glow: rgba(163, 230, 53, 0.35);
  --accent-purple: #06D6A0;
  --accent-cyan: #06D6A0;
  --accent-amber: #eab308;
  --accent-emerald: #10F07E;
  --accent-rose: #f43f5e;

  --border-subtle: rgba(16, 240, 126, 0.12);
  --border-card: rgba(16, 240, 126, 0.18);
  --border-glow: rgba(16, 240, 126, 0.48);
  --shadow-glow: 0 0 25px rgba(16, 240, 126, 0.3);
  --shadow-neon: 0 0 15px rgba(163, 230, 53, 0.4);
}

/* Tokyo Sakura & Cyber Anime */
[data-theme="tokyo-sakura"],
html[data-theme="tokyo-sakura"] {
  --theme-name: "tokyo-sakura";
  --bg-deep: #08050e;
  --bg-surface: #100b1a;
  --bg-card: rgba(30, 20, 46, 0.68);
  --bg-card-hover: rgba(44, 30, 68, 0.85);
  --bg-card-solid: #1c132c;
  --bg-glass-input: rgba(52, 36, 80, 0.45);

  --primary: #FF7597;
  --primary-rgb: 255, 117, 151;
  --primary-hover: #ff91ad;
  --primary-glow: rgba(255, 117, 151, 0.38);
  --secondary: #7AA2F7;
  --secondary-glow: rgba(122, 162, 247, 0.32);
  --accent-purple: #BB9AF7;
  --accent-cyan: #7DCFFF;
  --accent-amber: #E0AF68;
  --accent-emerald: #9ECE6A;
  --accent-rose: #F7768E;

  --border-subtle: rgba(255, 117, 151, 0.12);
  --border-card: rgba(255, 117, 151, 0.18);
  --border-glow: rgba(255, 117, 151, 0.48);
  --shadow-glow: 0 0 25px rgba(255, 117, 151, 0.28);
  --shadow-neon: 0 0 15px rgba(122, 162, 247, 0.38);
}

/* Phantom Ruby & Dark Vampire Gothic */
[data-theme="phantom-ruby"],
html[data-theme="phantom-ruby"] {
  --theme-name: "phantom-ruby";
  --bg-deep: #090204;
  --bg-surface: #140509;
  --bg-card: rgba(34, 10, 16, 0.72);
  --bg-card-hover: rgba(50, 16, 24, 0.88);
  --bg-card-solid: #22080f;
  --bg-glass-input: rgba(58, 18, 28, 0.5);

  --primary: #E11D48;
  --primary-rgb: 225, 29, 72;
  --primary-hover: #f43f5e;
  --primary-glow: rgba(225, 29, 72, 0.42);
  --secondary: #9333EA;
  --secondary-glow: rgba(147, 51, 234, 0.36);
  --accent-purple: #7e22ce;
  --accent-cyan: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #E11D48;

  --border-subtle: rgba(225, 29, 72, 0.14);
  --border-card: rgba(225, 29, 72, 0.2);
  --border-glow: rgba(225, 29, 72, 0.52);
  --shadow-glow: 0 0 25px rgba(225, 29, 72, 0.32);
  --shadow-neon: 0 0 15px rgba(147, 51, 234, 0.4);
}

/* Nordic Aurora & Frost Astral */
[data-theme="aurora-nordic"],
html[data-theme="aurora-nordic"] {
  --theme-name: "aurora-nordic";
  --bg-deep: #030809;
  --bg-surface: #061114;
  --bg-card: rgba(10, 30, 34, 0.68);
  --bg-card-hover: rgba(16, 44, 50, 0.85);
  --bg-card-solid: #0c2328;
  --bg-glass-input: rgba(20, 52, 60, 0.45);

  --primary: #2DD4BF;
  --primary-rgb: 45, 212, 191;
  --primary-hover: #5eead4;
  --primary-glow: rgba(45, 212, 191, 0.4);
  --secondary: #6366F1;
  --secondary-glow: rgba(99, 102, 241, 0.35);
  --accent-purple: #4f46e5;
  --accent-cyan: #2DD4BF;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --border-subtle: rgba(45, 212, 191, 0.12);
  --border-card: rgba(45, 212, 191, 0.18);
  --border-glow: rgba(45, 212, 191, 0.48);
  --shadow-glow: 0 0 25px rgba(45, 212, 191, 0.3);
  --shadow-neon: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Custom Manual Color Studio */
[data-theme="custom-color"],
html[data-theme="custom-color"] {
  --theme-name: "custom-color";
  --bg-deep: #08070d;
  --bg-surface: #0e0d16;
  --bg-card: rgba(22, 20, 32, 0.72);
  --bg-card-hover: rgba(34, 30, 48, 0.88);
  --bg-card-solid: #161420;
  --bg-glass-input: rgba(40, 36, 56, 0.48);
}

/* ==========================================================================
   GLOBAL ANIMATIONS & MOTION ENGINE
   Controls: data-anim-speed, data-anim-bg, data-anim-card, data-anim-glow
   ========================================================================== */

/* 1. Global Motion Speed */
[data-anim-speed="fast"] {
  --anim-duration-base: 0.18s;
  --anim-duration-flow: 2.2s;
}

[data-anim-speed="smooth"] {
  --anim-duration-base: 0.5s;
  --anim-duration-flow: 8s;
}

[data-anim-speed="disabled"],
[data-anim-speed="disabled"] * {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

/* 2. Background Ambient Animations - 100% GPU Accelerated 60fps */
[data-anim-bg="pulse"] body::before {
  animation: ambientBgPulse 6s ease-in-out infinite alternate !important;
  will-change: transform, opacity;
}

[data-anim-bg="drift"] body::before {
  animation: ambientBgDrift 14s ease-in-out infinite alternate !important;
  will-change: transform;
}

[data-anim-bg="shimmer"] body::before {
  animation: ambientBgShimmer 4s ease-in-out infinite !important;
  will-change: opacity, transform;
}

[data-anim-bg="aurora"] body::before {
  animation: ambientBgAurora 10s ease-in-out infinite alternate !important;
  will-change: transform, opacity;
}

[data-anim-bg="static"] body::before {
  animation: none !important;
}

@keyframes ambientBgPulse {
  0% {
    opacity: 0.65;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) scale(1.06);
  }
}

@keyframes ambientBgDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  50% {
    transform: translate3d(2%, 2%, 0) scale(1.03);
  }

  100% {
    transform: translate3d(-1%, -2%, 0) scale(1);
  }
}

@keyframes ambientBgShimmer {

  0%,
  100% {
    opacity: 0.65;
    transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) scale(1.02);
  }
}

@keyframes ambientBgAurora {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1);
    opacity: 0.65;
  }

  50% {
    transform: translate3d(2%, -2%, 0) scale(1.05);
    opacity: 0.9;
  }

  100% {
    transform: translate3d(-1%, 2%, 0) scale(1);
    opacity: 0.7;
  }
}

/* 3. Card Hover Animations */
[data-anim-card="popout"] .glass-card:hover,
[data-anim-card="popout"] .product-card:hover,
[data-anim-card="popout"] .bento-action-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px var(--primary-glow);
}

[data-anim-card="scale"] .glass-card:hover,
[data-anim-card="scale"] .product-card:hover,
[data-anim-card="scale"] .bento-action-card:hover {
  transform: scale(1.03);
}

[data-anim-card="glass"] .glass-card:hover,
[data-anim-card="glass"] .product-card:hover,
[data-anim-card="glass"] .bento-action-card:hover {
  transform: translateY(-3px);
  backdrop-filter: blur(28px);
  border-color: var(--primary);
}

[data-anim-card="minimal"] .glass-card:hover,
[data-anim-card="minimal"] .product-card:hover,
[data-anim-card="minimal"] .bento-action-card:hover {
  transform: none;
  border-color: var(--primary);
}

/* 4. Glow Intensity */
[data-anim-glow="hyper"] {
  --primary-glow: rgba(var(--primary-rgb), 0.65) !important;
  --border-glow: rgba(var(--primary-rgb), 0.75) !important;
  --shadow-glow: 0 0 35px rgba(var(--primary-rgb), 0.5) !important;
}

[data-anim-glow="balanced"] {
  /* Default variables */
}

[data-anim-glow="soft"] {
  --primary-glow: rgba(var(--primary-rgb), 0.2) !important;
  --border-glow: rgba(var(--primary-rgb), 0.25) !important;
  --shadow-glow: 0 0 15px rgba(var(--primary-rgb), 0.15) !important;
}

[data-anim-glow="none"] {
  --primary-glow: transparent !important;
  --border-glow: rgba(255, 255, 255, 0.12) !important;
  --shadow-glow: none !important;
  --shadow-neon: none !important;
}

/* Base Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-deep);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-x: clip !important;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-x: clip !important;
  margin: 0 !important;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(var(--primary-rgb), 0.12) 0%, transparent 45%),
    radial-gradient(circle at 88% 25%, rgba(var(--primary-rgb), 0.09) 0%, transparent 40%),
    radial-gradient(circle at 50% 70%, rgba(var(--primary-rgb), 0.07) 0%, transparent 55%);
  background-attachment: scroll;
  padding-bottom: 90px;
  transition: background-color 0.35s ease, color 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Cyber Grid Pattern Overlay */
body[data-pattern="grid"]::before,
html[data-pattern="grid"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 40%, black 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 50%, transparent 95%);
}

/* Cyber Dots Pattern Overlay */
body[data-pattern="dots"]::before,
html[data-pattern="dots"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(var(--primary-rgb), 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 40%, black 60%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 60%, transparent 95%);
}

/* Custom Wallpaper Background Mode */
body.has-custom-wallpaper,
html.has-custom-wallpaper body {
  background-image:
    linear-gradient(rgba(6, 5, 7, 0.86), rgba(6, 5, 7, 0.94)),
    var(--custom-wallpaper-url, none) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

@media (max-width: 768px) {

  body.has-custom-wallpaper,
  html.has-custom-wallpaper body {
    /* iOS & Android Mobile Fix: fixed background causes heavy repaint lag on mobile GPUs */
    background-attachment: scroll !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #09080c;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.25);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utility Containers - Perfectly Centered on Mobile & PC */
.container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Heading Typography */
h1,
h2,
h3,
h4,
.font-heading {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* ==========================================================================
   Navigation Bar (Sticky Glass)
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 100;
  background: rgba(18, 14, 22, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--primary-glow);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary);
  border-radius: 4px;
  margin-left: 4px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.btn-icon:hover {
  color: var(--primary);
  border-color: var(--border-glow);
  background: rgba(0, 242, 254, 0.12);
  transform: translateY(-1px);
}

.btn-admin-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid var(--border-glow);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-admin-pill:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 0 20px var(--primary-glow);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section & Bento Grid
   ========================================================================== */
.main-wrapper {
  margin-top: 84px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Bento Card Base */
.glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .glass-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
  }
}

@media (hover: none) {
  .glass-card:active {
    opacity: 0.92;
  }
}

/* Main Hero Bento Banner with 3D Popout Mascot - Modern Minimalist Gaming */
.bento-hero {
  grid-column: span 2;
  min-height: 190px;
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(14, 20, 32, 0.9) 0%, rgba(8, 11, 18, 0.96) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-image 0.35s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 768px) {
  .bento-hero {
    grid-column: span 4;
    min-height: 220px;
    padding: 30px 28px;
  }
}

@media (min-width: 1024px) {
  .bento-hero {
    grid-column: span 6;
  }
}

.hero-content-col {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

/* 3D Popout Mascot / Logo Container (Nongol Lewat Frame) */
.hero-mascot-3d-wrapper {
  position: absolute;
  right: 18px;
  bottom: -25px;
  /* Base 3D popout offset */
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease, opacity 0.3s ease;
}

.hero-mascot-3d-wrapper.has-glow {
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 35px var(--primary-glow)) drop-shadow(0 0 65px rgba(168, 85, 247, 0.4));
}

.hero-mascot-3d-wrapper.floating-anim {
  animation: heroMascotFloat 4.8s ease-in-out infinite;
}

@keyframes heroMascotFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(1.2deg);
  }
}

.hero-mascot-3d-img {
  max-height: 290px;
  width: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: contrast(1.05) brightness(1.04);
}

@media (min-width: 768px) {
  .hero-mascot-3d-wrapper {
    right: 28px;
  }

  .hero-mascot-3d-img {
    max-height: 310px;
  }
}

@media (min-width: 1024px) {
  .hero-mascot-3d-wrapper {
    right: 36px;
  }

  .hero-mascot-3d-img {
    max-height: 335px;
  }
}

@media (max-width: 767px) {
  .bento-hero {
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .bento-hero::before {
    display: none !important;
  }

  .hero-content-col {
    max-width: 60% !important;
    width: 60% !important;
  }

  .hero-mascot-3d-wrapper {
    right: 0 !important;
    bottom: 0 !important;
    max-width: 40% !important;
    max-height: 100% !important;
    opacity: 1 !important;
    z-index: 2 !important;
    overflow: hidden !important;
  }

  .hero-mascot-3d-img {
    max-height: 185px !important;
    max-width: 100% !important;
    width: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 480px) {
  .hero-content-col {
    max-width: 60% !important;
  }

  .hero-mascot-3d-wrapper {
    right: 0 !important;
    bottom: 0 !important;
    max-width: 40% !important;
  }

  .hero-mascot-3d-img {
    max-height: 165px !important;
  }
}

.bento-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -30px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Floating (Melayang Naik-Turun Halus) */
.hero-tag.anim-floating {
  animation: heroTagFloat 3.2s ease-in-out infinite;
}

@keyframes heroTagFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* 2. Pulse Glow (Denyut Neon Menyala) */
.hero-tag.anim-pulse-glow {
  animation: heroTagPulse 2.2s ease-in-out infinite;
}

@keyframes heroTagPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.3), inset 0 0 8px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.4);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 16px 3px rgba(var(--primary-rgb), 0.55), inset 0 0 14px rgba(var(--primary-rgb), 0.35);
    border-color: rgba(var(--primary-rgb), 0.85);
  }
}

/* 3. Shimmer (Kilauan Cahaya Bergerak) */
.hero-tag.anim-shimmer {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.1) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(0, 242, 254, 0.1) 100%);
  background-size: 200% 100%;
  animation: heroTagShimmer 2.8s linear infinite;
}

@keyframes heroTagShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* 4. Bounce (Membal Lembut) */
.hero-tag.anim-bounce {
  animation: heroTagBounce 2.5s ease infinite;
}

@keyframes heroTagBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
  }

  60% {
    transform: translateY(-3px);
  }
}

/* 5. None (Diam / Statis) */
.hero-tag.anim-none {
  animation: none !important;
  transform: none !important;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main, #fff);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
}

.hero-title span:first-child {
  color: var(--text-main, #ffffff);
  -webkit-text-fill-color: var(--text-main, #ffffff);
  background: none;
}

.hero-title span.hero-gradient-text,
.hero-title span:last-child {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Animated Search Bar
   ========================================================================== */
.bento-search-container {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .bento-search-container {
    grid-column: span 4;
  }
}

@media (min-width: 1024px) {
  .bento-search-container {
    grid-column: span 6;
  }
}

.search-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(90deg, #00F2FE 0%, #38BDF8 30%, #8B5CF6 60%, #00F2FE 100%);
  background-size: 200% 100%;
  animation: border-shimmer 4s linear infinite;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.18);
}

@keyframes border-shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.search-box {
  background: rgba(12, 16, 26, 0.92);
  backdrop-filter: var(--glass-blur);
  border-radius: calc(var(--radius-lg) - 1.5px);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.search-icon {
  color: var(--primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
}

.search-input::placeholder {
  color: rgba(148, 163, 184, 0.75);
  transition: opacity 0.2s ease, color 0.2s ease;
  font-weight: 400;
}

.search-input:focus::placeholder {
  color: rgba(148, 163, 184, 0.35);
}

.search-shortcut {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Quick Filter Pills Under Search */
.quick-tags-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}

.quick-tags-scroller::-webkit-scrollbar {
  display: none;
}

.tag-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.tag-btn:hover,
.tag-btn.active {
  background: rgba(0, 242, 254, 0.14);
  border-color: #00F2FE;
  color: #00F2FE;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
/* ==========================================================================
   Quick Action Cards (Bento Feature Cards - Cyber Luxury Redesign)
   ========================================================================== */
.action-cards-section .bento-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Base Bento Action Card */
.bento-action-card {
  --card-rgb: 16, 185, 129;
  --card-color: #34d399;
  --card-glow: rgba(16, 185, 129, 0.4);

  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 122px !important;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(12, 28, 22, 0.88) 0%, rgba(6, 18, 14, 0.96) 100%) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--card-rgb), 0.28) !important;
  border-top: 1px solid rgba(var(--card-rgb), 0.58) !important;
  box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
  z-index: 1;
}

/* Ambient Radial Glow in Top Corner */
.bento-action-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: -1;
}

/* Subtle Shimmer Sweep on Hover */
.bento-action-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.75s ease;
  z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
  .bento-action-card:hover {
    transform: translateY(-6px) scale(1.012) !important;
    border-color: rgba(var(--card-rgb), 0.65) !important;
    box-shadow: 0 20px 42px -10px rgba(0, 0, 0, 0.7), 0 0 28px rgba(var(--card-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  }

  .bento-action-card:hover::before {
    opacity: 0.9;
    transform: scale(1.35);
  }

  .bento-action-card:hover::after {
    left: 140%;
  }
}

@media (hover: none) {
  .bento-action-card:active {
    opacity: 0.92;
    transform: scale(0.985);
  }
}

/* Specific Card Themes */
.bento-action-card.card-theme-amber {
  --card-rgb: 245, 158, 11;
  --card-color: #fbbf24;
  --card-glow: rgba(245, 158, 11, 0.45);
}

.bento-action-card.card-theme-emerald {
  --card-rgb: 16, 185, 129;
  --card-color: #34d399;
  --card-glow: rgba(16, 185, 129, 0.45);
}

.bento-action-card.card-theme-cyan {
  --card-rgb: 6, 182, 212;
  --card-color: #38bdf8;
  --card-glow: rgba(6, 182, 212, 0.45);
}

.bento-action-card.card-theme-pink,
.bento-action-card.card-theme-rose {
  --card-rgb: 0, 242, 254;
  --card-color: #00F2FE;
  --card-glow: rgba(0, 242, 254, 0.45);
}

.bento-action-card.card-theme-purple,
.bento-action-card.card-theme-violet {
  --card-rgb: 139, 92, 246;
  --card-color: #a78bfa;
  --card-glow: rgba(139, 92, 246, 0.45);
}

/* Top Bar: Icon Box & Badge */
.card-action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.action-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(var(--card-rgb), 0.24) 0%, rgba(var(--card-rgb), 0.08) 100%);
  border: 1px solid rgba(var(--card-rgb), 0.45);
  box-shadow: 0 4px 14px rgba(var(--card-rgb), 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  color: var(--card-color);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-icon-box svg {
  width: 20px;
  height: 20px;
}

.bento-action-card:hover .action-icon-box {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 6px 20px rgba(var(--card-rgb), 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  border-color: rgba(var(--card-rgb), 0.8);
}

/* Legacy color mappings for standalone icon boxes */
.icon-rose {
  background: rgba(239, 68, 68, 0.18);
  color: var(--accent-rose);
  border-color: rgba(239, 68, 68, 0.4);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.icon-pink {
  background: rgba(0, 242, 254, 0.18);
  color: #00F2FE;
  border-color: rgba(0, 242, 254, 0.4);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.icon-purple {
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.4);
}

.icon-cyan {
  background: rgba(0, 242, 254, 0.18);
  color: #00F2FE;
  border-color: rgba(0, 242, 254, 0.4);
}

/* Badge Pill with Live Radar Pulse Dot */
.action-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(var(--card-rgb), 0.15);
  border: 1px solid rgba(var(--card-rgb), 0.38);
  color: var(--card-color);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.action-badge-pill.badge-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-weight: 700;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--card-color);
  box-shadow: 0 0 10px var(--card-color);
  animation: liveBadgePulse 1.8s infinite;
  display: inline-block;
}

@keyframes liveBadgePulse {

  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.95;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.45;
  }
}

/* Card Body: Title & Subtitle */
.card-action-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.card-action-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main, #ffffff);
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin: 0;
  transition: color 0.2s ease;
}

.bento-action-card:hover .card-action-title {
  color: var(--text-main, #ffffff);
  text-shadow: 0 0 16px rgba(var(--card-rgb), 0.55);
}

.card-action-sub {
  font-size: 0.74rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.35;
  font-weight: 500;
  margin: 0;
}

/* Card Footer: Action Link & Glowing Arrow */
.card-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.card-action-cta {
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--card-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: letter-spacing 0.25s ease;
}

.bento-action-card:hover .card-action-cta {
  letter-spacing: 0.7px;
}

.card-action-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-color);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-action-arrow svg {
  width: 12px;
  height: 12px;
}

.bento-action-card:hover .card-action-arrow {
  transform: translateX(3px);
  background: rgba(var(--card-rgb), 0.3);
  border-color: rgba(var(--card-rgb), 0.7);
  box-shadow: 0 0 12px rgba(var(--card-rgb), 0.5);
  color: #ffffff;
}

/* Legacy Support */
.card-action-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.action-badge-verified {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

/* ==========================================================================
   Section Headers (Glass strip)
   ========================================================================== */
.section-strip-header {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-strip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main, #fff);
}

.section-strip-link {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.section-strip-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Info Terbaru / Story Cards Reel
   ========================================================================== */
.story-reel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  margin-bottom: 24px;
}

.story-card {
  flex: 0 0 160px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

@media (min-width: 768px) {
  .story-card {
    flex: 0 0 190px;
  }
}

.story-card:hover {
  transform: scale(1.03);
  border-color: var(--border-glow);
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.story-card:hover img {
  transform: scale(1.08);
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}

.story-tag {
  font-size: 9px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.story-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main, #fff);
  line-height: 1.25;
}

/* ==========================================================================
   Flash Sale Banner with Live Timer
   ========================================================================== */
.flash-sale-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(214, 95, 243, 0.12) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.flash-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flash-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-rose);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.45);
}

.flash-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-slot {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  min-width: 40px;
}

.timer-separator {
  font-weight: 800;
  color: var(--accent-rose);
}

/* ==========================================================================
   Flash Sale Products Grid & Glowing Cards
   ========================================================================== */
.flash-sale-section {
  margin-bottom: 30px;
}

.flash-sale-section .flash-sale-box {
  margin-bottom: 14px;
}

.flash-products-wrapper {
  margin-bottom: 10px;
}

.flash-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .flash-products-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    gap: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 68, 68, 0.4) transparent;
  }

  .flash-products-grid::-webkit-scrollbar {
    height: 6px;
  }

  .flash-products-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 999px;
  }

  .flash-products-grid::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.5);
    border-radius: 999px;
  }

  .flash-products-grid>.product-card {
    min-width: 260px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

.product-card.flash-card-glow {
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.16), inset 0 0 15px rgba(239, 68, 68, 0.04) !important;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.product-card.flash-card-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #ef4444);
  z-index: 2;
}

.product-card.flash-card-glow:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.8) !important;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.32), inset 0 0 20px rgba(239, 68, 68, 0.08) !important;
}

.badge-pill.badge-flash-hot {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
  font-weight: 800;
}

.flash-urgency-box {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--radius-sm);
}

.flash-urgency-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 5px;
}

.flash-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.flash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.btn-flash-buy {
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
}

.btn-flash-buy:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.65);
}

/* ==========================================================================
   Product Catalog Grid
   ========================================================================== */
.catalog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.catalog-sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

/* Grid of Accounts */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

/* Product Card - Minimalist Gaming Obsidian Card */
.product-card {
  background: linear-gradient(180deg, rgba(16, 20, 32, 0.88) 0%, rgba(10, 13, 20, 0.96) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  touch-action: manipulation;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 22px rgba(0, 242, 254, 0.22);
  }

  .product-card:hover .product-img {
    transform: scale(1.05);
  }
}

@media (hover: none) {
  .product-card:active {
    opacity: 0.92;
  }
}

/* 4:5 Aspect Ratio Image container */
.product-img-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: #090c12;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Badges on image */
.badge-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge-pill {
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.badge-hot {
  background: #EF4444;
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.badge-rental {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.badge-sultan {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.badge-recom {
  background: linear-gradient(135deg, #00F2FE 0%, #0284C7 100%);
  color: #04121a;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.game-tag-badge {
  background: rgba(8, 11, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}

.btn-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(8, 11, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wishlist:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #03141a;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
  transform: scale(1.1);
}

.btn-card-share {
  position: absolute;
  top: 10px;
  right: 48px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(8, 11, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-share:hover {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #03141a;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
  transform: scale(1.1);
}

.btn-icon-share {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-share:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: scale(1.08);
}

/* Share Modal Layering */
#shareModal {
  z-index: 2500 !important;
}

#shareModal.open {
  z-index: 2500 !important;
}

#shareModal .modal-content {
  z-index: 2501 !important;
}

/* Admin User Management Modal Layering */
#adminUserModal,
#vaultModal,
#financialReportModal {
  z-index: 3000 !important;
}

#adminUserModal.open,
#vaultModal.open,
#financialReportModal.open {
  z-index: 3000 !important;
}

#adminUserModal .modal-content,
#vaultModal .modal-content,
#financialReportModal .modal-content {
  z-index: 3001 !important;
}

/* Deep Link Product Target Highlight */
.product-card-highlight {
  outline: 3px solid #38bdf8 !important;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.85), 0 0 60px rgba(56, 189, 248, 0.45) !important;
  transform: scale(1.03) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10 !important;
  animation: targetCardPulse 1s ease-in-out infinite alternate !important;
}

@keyframes targetCardPulse {
  0% {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  }

  100% {
    box-shadow: 0 0 40px rgba(56, 189, 248, 1), 0 0 20px rgba(255, 255, 255, 0.85);
  }
}

/* Sold Out Overlay */
.sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 12, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  z-index: 3;
}

.sold-stamp {
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 4px 14px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.5);
}

.sold-buyer-info {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sold-buyer-info span {
  color: var(--primary);
  font-weight: 700;
}

/* Product Details Body */
.product-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.tier-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
}

.tier-pelajar {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.tier-reguler {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.tier-premium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.product-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main, #fff);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-specs-snippet {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.product-price-box {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-strike {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.price-save {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

/* ==========================================================================
   Rekber Fee Calculator & Guarantees
   ========================================================================== */
.rekber-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(26, 22, 30, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .rekber-banner {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.rekber-calc-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px;
}

.calc-input-group {
  margin-bottom: 12px;
}

.calc-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.calc-input {
  width: 100%;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.calc-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.calc-result-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calc-fee-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

/* ==========================================================================
   Modals (Glassmorphism Popups)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 8, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(14, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main, #fff);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-body {
  padding: 24px;
}

/* Detail Modal 1:1 Image Slider & Carousel */
.modal-gallery-slider-wrap {
  width: 100%;
  margin-bottom: 18px;
}

.modal-gallery-main {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  /* 1:1 Ratio exactly as requested by user */
  margin: 0 auto 12px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #08060b;
  position: relative;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(var(--primary-rgb), 0.15);
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.modal-gallery-main.is-dragging {
  cursor: grabbing;
}

.modal-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.modal-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07050a;
  overflow: hidden;
}

.modal-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Full complete view of account screenshots without awkward cropping */
  display: block;
  pointer-events: none;
  transition: transform 0.25s ease;
}

/* Slider Nav Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18, 14, 24, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 18px var(--primary-glow);
}

.slider-arrow-prev {
  left: 12px;
}

.slider-arrow-next {
  right: 12px;
}

/* Slide Counter Badge (Top Right) */
.slider-counter-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 10;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Dots Indicators (Bottom Center) */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 10;
  pointer-events: auto;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Filmstrip Thumbnails for Multi-Image Accounts */
.modal-gallery-filmstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 8px 2px;
  max-width: 520px;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.05);
}

.modal-gallery-filmstrip::-webkit-scrollbar {
  height: 5px;
}

.modal-gallery-filmstrip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.modal-gallery-filmstrip::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.filmstrip-thumb {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  background: #0f0c14;
  transition: all 0.2s ease;
  position: relative;
}

.filmstrip-thumb:hover {
  border-color: rgba(var(--primary-rgb), 0.65);
  transform: translateY(-2px);
}

.filmstrip-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.06);
}

.filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
  font-weight: 700;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-price-current {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.detail-price-strike {
  font-size: 0.9rem;
}

.detail-section-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.detail-notes-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 20px;
}

.detail-notes-label {
  font-size: 0.78rem;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.detail-notes-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.detail-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
}

.spec-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-table td {
  padding: 10px 8px;
}

.spec-table td:first-child {
  color: var(--text-muted);
  width: 35%;
  font-weight: 500;
}

.spec-table td:last-child {
  color: var(--text-main, #fff);
  font-weight: 600;
}

/* ==========================================================================
   Rental Duration Packages & Queue Box (Matching User Screenshot)
   ========================================================================== */
.rental-duration-card {
  background: rgba(22, 17, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}

.rental-duration-header {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main, #fff);
  margin-bottom: 14px;
}

.rental-packages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rental-package-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.rental-package-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.rental-package-item.selected {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
}

.rental-pkg-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rental-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.rental-package-item.selected .rental-radio-indicator {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.rental-radio-indicator svg {
  display: none;
  width: 12px;
  height: 12px;
  stroke: #fff;
  stroke-width: 3.5;
}

.rental-package-item.selected .rental-radio-indicator svg {
  display: block;
}

.rental-pkg-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
}

.rental-package-item.selected .rental-pkg-name {
  color: #fff;
}

.rental-pkg-subtext {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: normal;
  display: block;
  margin-top: 2px;
}

.rental-pkg-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e879f9;
  letter-spacing: 0.3px;
}

.rental-package-item.selected .rental-pkg-price {
  color: #f472b6;
  font-weight: 800;
}

.rental-queue-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: #f59e0b;
}

.rental-queue-footer svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.btn-wa-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-wa-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   Admin Management Views & Form
   ========================================================================== */
.admin-badge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Admin Global Stats & Metric Cards (Desktop & Mobile Optimized)
   ========================================================================== */
.admin-global-stats,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {

  .admin-global-stats,
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
  }
}

@media (min-width: 1200px) {

  .admin-global-stats,
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1440px) {

  .admin-global-stats,
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stat-metric-card {
  background: linear-gradient(145deg, rgba(16, 20, 32, 0.85) 0%, rgba(9, 12, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 74px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 242, 254, 0.2);
}

.stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-label {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-sub {
  font-size: 0.66rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4-Column KPI Grid for Inner Tabs (Rental Income & Account Sales) */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }
}

@media (min-width: 1024px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }
}

.kpi-card {
  background: linear-gradient(135deg, rgba(16, 20, 32, 0.85) 0%, rgba(9, 12, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-height: 84px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 242, 254, 0.15);
}

.kpi-card.emerald {
  border-left: 3px solid #10b981;
}

.kpi-card.cyan {
  border-left: 3px solid #00F2FE;
}

.kpi-card.amber {
  border-left: 3px solid #f59e0b;
}

.kpi-card.purple {
  border-left: 3px solid #8B5CF6;
}

.kpi-card.rose {
  border-left: 3px solid #f43f5e;
}

.kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-sub {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Filter & Search Toolbar - Minimalist Gaming Deck */
.admin-filter-bar {
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.filter-search-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 260px;
  align-items: center;
}

.filter-search-input {
  flex: 1;
  min-width: 180px;
}

.filter-select-item {
  width: 160px;
}

.filter-meta-count {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-radius: var(--radius-full);
}

@media (max-width: 640px) {
  .admin-filter-bar {
    padding: 10px;
    gap: 8px;
  }

  .filter-search-group {
    width: 100%;
    min-width: 100%;
    gap: 6px;
  }

  .filter-search-input {
    width: 100%;
    min-width: 100%;
    flex: 1 1 100%;
  }

  .filter-select-item {
    flex: 1 1 calc(50% - 3px);
    width: calc(50% - 3px);
    min-width: 120px;
  }

  .filter-meta-count {
    width: 100%;
    text-align: center;
    font-size: 0.74rem;
  }
}

/* Clean Responsive Table Shell */
.admin-table-shell {
  background: rgba(14, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.admin-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.admin-table-mobile-tip {
  display: none;
  font-size: 0.7rem;
  color: #00F2FE;
  background: rgba(0, 242, 254, 0.08);
  border-bottom: 1px solid rgba(0, 242, 254, 0.18);
  padding: 6px 10px;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .admin-table-mobile-tip {
    display: flex;
  }
}

/* Form Styles - Minimalist Gaming Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  background: rgba(12, 16, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(16, 22, 36, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.18), 0 0 16px rgba(0, 242, 254, 0.22);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* File Upload Zone - Minimalist Gaming Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(0, 242, 254, 0.28);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: rgba(0, 242, 254, 0.025);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.15);
  transform: translateY(-1px);
}

.preview-thumb-box {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.thumb-preview {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-card);
  position: relative;
}

.thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Table management - Minimalist Gaming SaaS Style */
.admin-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: rgba(14, 18, 28, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.admin-table th {
  background: rgba(22, 28, 44, 0.7);
  padding: 13px 16px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: #f1f5f9;
}

.admin-table tbody tr {
  transition: background 0.15s ease, transform 0.15s ease;
}

.admin-table tbody tr:hover {
  background: rgba(0, 242, 254, 0.035);
}

/* Minimalist Gaming Action Buttons */
.btn-action-sm {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: inherit;
}

.btn-action-sm:active {
  transform: scale(0.96);
}

.btn-action-sm.active {
  background: var(--primary) !important;
  color: #04121a !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 14px var(--primary-glow);
}

.btn-edit {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.btn-edit:hover {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-del {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-del:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-toggle-sold {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.btn-toggle-sold:hover {
  background: #f59e0b;
  color: #170d01;
  border-color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Visibility Web Toggle Pill */
.btn-toggle-vis {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-toggle-vis.vis-on {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.btn-toggle-vis.vis-on:hover {
  background: #10b981;
  color: #062817;
}

.btn-toggle-vis.vis-off {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-toggle-vis.vis-off:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Minimalist Gaming Primary & Outline Buttons */
.btn-primary {
  background: linear-gradient(135deg, #00F2FE 0%, #7C3AED 100%);
  color: #050a14;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 242, 254, 0.5);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   Mobile Bottom Navigation & Floating WA Button
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  height: 62px;
  background: rgba(30, 24, 34, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glow);
  border-radius: 35px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  padding: 6px;
  transition: all 0.2s;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   LIVE RECENT SALES & RENTAL TRANSACTION TICKER (SOCIAL PROOF)
   ========================================================================== */
.recent-sales-ticker-bar {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  background: var(--ticker-bg, linear-gradient(90deg, #FF0000 0%, #F00000 100%));
  border-bottom: 1px solid var(--ticker-border, rgba(168, 85, 247, 0.35));
  box-shadow: 0 4px 15px var(--ticker-shadow, rgba(107, 33, 168, 0.25));
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ticker-text, #fff);
  z-index: 99;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.recent-sales-ticker-bar:hover {
  filter: brightness(1.06);
}

.ticker-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.ticker-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.8rem;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
}

.ticker-content.slide-anim {
  animation: tickerItemSwap 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tickerItemSwap {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ticker-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-buyer {
  font-weight: 800;
  color: var(--ticker-text, #ffffff);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ticker-dot {
  color: var(--ticker-subtext, rgba(255, 255, 255, 0.6));
  font-weight: bold;
  flex-shrink: 0;
}

.ticker-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  line-height: 1.4;
  flex-shrink: 0;
}

.ticker-badge-buy {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ticker-badge-rent {
  background: rgba(245, 158, 11, 0.32);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.55);
}

.ticker-title {
  font-weight: 700;
  color: var(--ticker-text, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-price {
  font-weight: 800;
  color: var(--ticker-highlight, #fef08a);
  flex-shrink: 0;
}

.ticker-tier {
  color: var(--ticker-subtext, rgba(255, 255, 255, 0.85));
  font-size: 0.76rem;
  flex-shrink: 0;
}

.ticker-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  flex-shrink: 0;
}

.ticker-time {
  font-size: 0.74rem;
  color: var(--ticker-subtext, rgba(255, 255, 255, 0.85));
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Spacer for main-wrapper when live ticker is active */
html.ticker-bar-active .main-wrapper,
body.ticker-bar-active .main-wrapper {
  margin-top: 118px !important;
}

@media (max-width: 768px) {
  .recent-sales-ticker-bar {
    top: 58px;
    height: 32px;
  }

  html.ticker-bar-active .main-wrapper,
  body.ticker-bar-active .main-wrapper {
    margin-top: 102px !important;
  }

  .ticker-content {
    font-size: 0.74rem;
  }

  .ticker-left {
    gap: 4px;
  }

  .ticker-tier,
  #tickerTierDot {
    display: none !important;
  }

  .ticker-time {
    font-size: 0.68rem;
    margin-left: 6px;
  }
}

@media (max-width: 360px) {

  html.ticker-bar-active .main-wrapper,
  body.ticker-bar-active .main-wrapper {
    margin-top: 98px !important;
  }
}

/* ==========================================================================
   FLOATING MULTI-CS WHATSAPP WIDGET
   ========================================================================== */
.floating-wa-container {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 1050;
}

.floating-wa-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55), 0 0 18px rgba(37, 211, 102, 0.35);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  outline: none;
  z-index: 1052;
}

.floating-wa-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 34px rgba(37, 211, 102, 0.75), 0 0 26px rgba(37, 211, 102, 0.45);
}

.floating-wa-btn.open {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  transform: rotate(90deg);
}

.floating-wa-btn.open .wa-icon-chat {
  display: none !important;
}

.floating-wa-btn.open .wa-icon-close {
  display: block !important;
  transform: rotate(-90deg);
}

.floating-wa-badge-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff0055;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  border: 2px solid #0d111c;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.7);
  animation: waPulseGlow 2s infinite;
  white-space: nowrap;
}

@keyframes waPulseGlow {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.6);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(255, 0, 85, 0.95);
  }
}

.wa-multi-cs-popup {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 350px;
  max-width: calc(100vw - 28px);
  max-height: calc(85vh - 90px);
  display: flex;
  flex-direction: column;
  background: rgba(13, 17, 28, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 255, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.92);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  overflow: hidden;
  z-index: 1051;
}

.wa-multi-cs-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-cs-popup-header {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.22) 0%, rgba(18, 140, 126, 0.15) 100%);
  border-bottom: 1px solid rgba(37, 211, 102, 0.25);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-cs-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-cs-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.5);
  flex-shrink: 0;
}

.wa-cs-header-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.wa-cs-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #34d399;
  margin-top: 3px;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.wa-cs-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wa-cs-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: rotate(90deg);
}

.wa-cs-popup-body {
  padding: 14px 14px;
  overflow-y: auto;
  max-height: 360px;
  scrollbar-width: thin;
}

.wa-cs-greeting {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 12px;
  line-height: 1.45;
}

.wa-cs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-cs-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
  cursor: pointer;
}

.wa-cs-card:hover {
  background: rgba(37, 211, 102, 0.09);
  border-color: rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.wa-cs-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wa-cs-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.wa-cs-card-details {
  min-width: 0;
}

.wa-cs-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-cs-card-role {
  font-size: 0.7rem;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.wa-cs-card-hours {
  font-size: 0.65rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.wa-cs-card-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
}

.wa-cs-card:hover .wa-cs-card-btn {
  background: #1eb855;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.6);
  transform: translateX(2px);
}

.wa-cs-popup-footer {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-cs-guarantee-badge {
  font-size: 0.7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 11, 18, 0.6);
  backdrop-filter: var(--glass-blur);
  padding: 40px 0 20px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main, #fff);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Payment Badges Grid */
.payment-logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}

.pay-badge {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 5px;
  padding: 3px 6px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  user-select: none;
}

.pay-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.45);
  background: #ffffff;
}

.pay-badge svg,
.pay-badge img {
  height: 16px;
  max-height: 18px;
  max-width: 85px;
  width: auto;
  object-fit: contain;
  display: block;
}

.pay-badge.has-custom-logo {
  padding: 2px 7px;
  background: #ffffff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glow);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
}

/* ==========================================================================
   THEME CUSTOMIZER & BACKGROUND SWITCHER STYLES
   ========================================================================== */
.theme-customizer-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.theme-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 20px;
}

.theme-card-option {
  position: relative;
  cursor: pointer;
  background: rgba(18, 14, 22, 0.6);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.theme-card-option:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  background: rgba(28, 22, 36, 0.75);
}

.theme-card-option.active,
.theme-card-option:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--primary-glow);
  background: rgba(32, 24, 40, 0.9);
}

.theme-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-swatch-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.theme-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.theme-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.theme-check-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-card-option.active .theme-check-badge,
.theme-card-option:has(input:checked) .theme-check-badge {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Quick Theme Toggle Button (Header or Floating) */
.quick-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(26, 22, 30, 0.65);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur-sm);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.quick-theme-pill:hover {
  background: rgba(36, 30, 42, 0.85);
  border-color: var(--border-glow);
  box-shadow: 0 0 14px var(--primary-glow);
  transform: translateY(-1px);
}

/* Theme Selector Modal/Dropdown */
.theme-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.theme-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.theme-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--primary-glow);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-modal-backdrop.open .theme-modal-dialog {
  transform: scale(1);
}

.wallpaper-preview-thumb {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-glow);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hero Banner Preset Swatches */
.btn-hero-preset-swatch {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-hero-preset-swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  filter: brightness(1.15);
}

.btn-hero-preset-swatch.active {
  box-shadow: 0 0 14px var(--primary-glow);
  transform: translateY(-1px);
}

/* ==========================================================================
   Admin Dashboard Layout & Vertical Left Sidebar System (Panjang ke Bawah Sebelah Kiri)
   ========================================================================== */
.admin-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 16px;
}

.admin-dashboard-layout {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 18px;
  position: relative;
}

/* Left Sidebar Column: Minimalist Esports Gaming Dock */
.admin-sidebar {
  width: 275px;
  flex-shrink: 0;
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
  background: rgba(12, 16, 26, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.2);
  border-radius: 4px;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.sidebar-brand-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
}

.sidebar-live-pill {
  font-size: 0.65rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}

.sidebar-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.8s infinite;
}

.sidebar-nav-group-label {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.08em;
  padding: 8px 10px 3px 10px;
}

.admin-tab-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.admin-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(0, 242, 254, 0.4);
  transform: translateX(3px);
}

.admin-tab-btn.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.14) 0%, rgba(0, 242, 254, 0.02) 100%);
  border-color: rgba(0, 242, 254, 0.25);
  border-left: 3px solid #00F2FE;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.15);
  font-weight: 700;
}

.admin-tab-btn .tab-icon {
  font-size: 1.05rem;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-tab-btn .tab-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tab-btn .tab-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  font-weight: 700;
  margin-left: auto;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.admin-tab-btn.active .tab-badge {
  background: var(--primary);
  color: #04121a;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 4px;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-store-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sidebar-store-link:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

/* Right Content Area */
.admin-main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
  animation: adminTabFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes adminTabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Simplified Admin UI Components */
.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Quick Action Hub - Modern Minimalist Gaming Command Deck */
.admin-quick-hub {
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 24px rgba(0, 0, 0, 0.4);
}

.quick-hub-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-hub-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quick-hub-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.quick-hub-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 6px;
}

.quick-hub-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  user-select: none;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.quick-hub-btn .qh-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.quick-hub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-qh-upload {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.btn-qh-upload:hover {
  background: #10b981;
  color: #041a0f;
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

.btn-qh-sale {
  background: rgba(0, 242, 254, 0.12);
  color: #00F2FE;
  border-color: rgba(0, 242, 254, 0.35);
}

.btn-qh-sale:hover {
  background: #00F2FE;
  color: #03141a;
  border-color: #00F2FE;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.45);
}

.btn-qh-rental {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.btn-qh-rental:hover {
  background: #f59e0b;
  color: #1f1202;
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.btn-qh-backup {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.35);
}

.btn-qh-backup:hover {
  background: #8B5CF6;
  color: #110524;
  border-color: #8B5CF6;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
}

/* Quick Accordion for Collapsing Busy Settings in Catalog */
.admin-quick-accordion {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all 0.25s ease;
}

.admin-quick-accordion[open] {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border-glow);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.admin-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-family: inherit;
}

.admin-accordion-summary::-webkit-details-marker {
  display: none;
}

.admin-accordion-summary .accordion-arrow {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.admin-quick-accordion[open] .admin-accordion-summary .accordion-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Upload Steps Visual Hierarchy */
.upload-step-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 18px;
  margin-bottom: 12px;
}

.upload-step-badge .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #060507;
  font-weight: 900;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-step-badge strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.upload-step-badge .step-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Responsive adjustments for Tablets & Mobile */
@media (max-width: 992px) {
  .admin-container {
    padding: 0 10px;
  }

  .admin-dashboard-layout {
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
  }

  .admin-sidebar {
    width: 100%;
    position: sticky;
    top: 60px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    background: rgba(14, 11, 20, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    z-index: 95;
    -webkit-overflow-scrolling: touch;
  }

  .admin-sidebar-brand,
  .sidebar-nav-group-label,
  .sidebar-divider,
  .admin-sidebar-footer {
    display: none;
  }

  .sidebar-nav-group {
    display: flex;
    flex-direction: row;
    gap: 6px;
  }

  .admin-tab-bar {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 6px;
    padding: 2px 0;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tab-bar::-webkit-scrollbar {
    display: none;
  }

  .admin-tab-btn {
    width: auto;
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 0.76rem;
    white-space: nowrap;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .admin-tab-btn.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.28), rgba(var(--primary-rgb), 0.12));
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
  }

  .admin-tab-btn .tab-badge {
    margin-left: 6px;
    font-size: 0.68rem;
    padding: 2px 6px;
  }
}

/* ==========================================================================
   Multi-Image Gallery System (Max 10 Images)
   ========================================================================== */
.admin-gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery-thumb-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: rgba(0, 0, 0, 0.45);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
}

.gallery-thumb-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 14px var(--primary-glow);
}

.gallery-thumb-item.is-primary {
  border: 2px solid var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-badge-primary {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--primary);
  color: #060507;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.gallery-thumb-index {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

.gallery-thumb-del-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 3;
}

.gallery-thumb-del-btn:hover {
  transform: scale(1.15);
  background: #dc2626;
}

.gallery-thumb-set-primary {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(18, 14, 22, 0.88);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 2;
  transition: all 0.15s ease;
}

.gallery-thumb-set-primary:hover {
  background: var(--primary);
  color: #060507;
  border-color: var(--primary);
}

/* Modal Gallery Filmstrip (Storefront Detail Modal) */
.modal-gallery-filmstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  margin-bottom: 16px;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.modal-gallery-filmstrip::-webkit-scrollbar {
  height: 4px;
}

.modal-gallery-filmstrip::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 4px;
}

.filmstrip-thumb {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.4);
}

.filmstrip-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.filmstrip-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Rental Duration Options & Queue Notification (Matching Screenshot)
   ========================================================================== */
.rental-duration-card {
  background: #181519;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.rental-duration-header {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 16px 0;
  letter-spacing: -0.2px;
}

.rental-packages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rental-package-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rental-package-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(2px);
}

.rental-package-item.selected {
  border-color: #d946ef;
  background: rgba(217, 70, 239, 0.09);
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.16);
}

.rental-pkg-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rental-radio-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: transparent;
}

.rental-radio-indicator svg {
  width: 13px;
  height: 13px;
  stroke: #ffffff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

.rental-package-item.selected .rental-radio-indicator {
  background: #ec4899;
  border-color: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
}

.rental-package-item.selected .rental-radio-indicator svg {
  display: block;
}

.rental-pkg-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.3px;
  display: block;
}

.rental-pkg-subtext {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
  font-weight: 500;
}

.rental-pkg-price {
  font-size: 0.98rem;
  font-weight: 800;
  color: #e879f9;
  letter-spacing: 0.2px;
}

.rental-queue-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 700;
}

.rental-queue-footer svg {
  flex-shrink: 0;
  color: #f59e0b;
}

/* ==========================================================================
   Bento Cards Drag & Drop Position Reordering
   ========================================================================== */
.card-drag-handle {
  cursor: grab;
  cursor: -webkit-grab;
  color: var(--text-dim);
  font-size: 1.15rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  user-select: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-drag-handle:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.15);
  transform: scale(1.18);
}

.card-drag-handle:active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.action-card-row {
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.action-card-row.is-dragging {
  opacity: 0.35;
  background: rgba(var(--primary-rgb), 0.1) !important;
}

.action-card-row.drag-over-top {
  border-top: 2px solid var(--primary) !important;
  box-shadow: 0 -4px 10px rgba(var(--primary-rgb), 0.3);
}

.action-card-row.drag-over-bottom {
  border-bottom: 2px solid var(--primary) !important;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.btn-pos-arrow {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 1;
  width: 19px;
  height: 14px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-pos-arrow:hover:not(:disabled) {
  background: var(--primary);
  color: #060507;
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.btn-pos-arrow:disabled {
  opacity: 0.18;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   SUPER MOBILE COMPATIBILITY & ULTRA-RESPONSIVE ENGINE (All Devices)
   Tested across iPhone, Samsung Galaxy, Xiaomi/Redmi, Vivo, Oppo, Tablets
   ========================================================================== */

/* Universal Mobile Base & Safe Area Insets */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(max(14px, env(safe-area-inset-bottom)) + 74px);
}

/* Touch Input Zoom Prevention on iOS Safari & Chrome Mobile */
@media (max-width: 768px) {

  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
    /* Prevents auto-zoom in iOS Safari */
  }
}

/* Responsive Container & Spacing */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .main-wrapper {
    margin-top: 72px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .main-wrapper {
    margin-top: 68px;
  }
}

/* Header Navigation on Mobile */
@media (max-width: 768px) {
  .header-nav {
    height: 58px;
  }

  .header-container {
    gap: 8px;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .brand-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 520px) {
  .brand-badge {
    display: none;
    /* Hide subtitle badge on compact phones to make room */
  }

  .quick-theme-pill span:not(:first-child) {
    display: none;
    /* Show only palette icon on compact screens */
  }

  .quick-theme-pill {
    padding: 6px 10px;
  }

  .btn-admin-pill span {
    display: none;
    /* Show only lock icon on small mobile */
  }

  .btn-admin-pill {
    padding: 7px 10px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }

  .btn-icon {
    width: 34px;
    height: 34px;
  }
}

/* Bento Hero Banner on Mobile - Locked with Zero Horizontal Overflow */
@media (max-width: 640px) {
  .bento-hero {
    min-height: auto;
    padding: 16px 14px !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    /* STRICTLY CLIPPED to prevent mascot overflow */
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .bento-hero::before {
    display: none !important;
    /* Remove unconstrained 250px glowing circle that pushed viewport right */
  }

  .hero-tag {
    font-size: 0.68rem;
    padding: 3px 8px;
    margin-bottom: 6px;
  }

  .hero-title {
    font-size: clamp(1.15rem, 5vw, 1.45rem);
    line-height: 1.22;
    margin-bottom: 5px;
  }

  .hero-desc {
    font-size: 0.74rem;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-meta-badges {
    gap: 4px;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .meta-pill {
    font-size: 0.65rem;
    padding: 2.5px 6px;
    gap: 3px;
    white-space: nowrap;
  }

  .hero-content-col {
    max-width: 62% !important;
    width: 62% !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .hero-mascot-3d-wrapper {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    max-width: 38% !important;
    max-height: 100% !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
    transform: none !important;
  }

  .hero-mascot-3d-img {
    max-height: 165px !important;
    max-width: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    transform: none !important;
  }
}

/* Bento Feature / Action Cards on Mobile (HP) - Perfectly Centered 2 Columns, Zero Overflow */
@media (max-width: 767px) {
  .action-cards-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .action-cards-section .bento-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .action-cards-section .bento-grid .bento-action-card,
  .bento-action-card {
    grid-column: span 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 10px 9px !important;
    min-height: 98px !important;
    border-radius: var(--radius-md) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .card-action-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .bento-action-card .action-icon-box {
    width: 26px !important;
    height: 26px !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
  }

  .bento-action-card .action-icon-box svg {
    width: 13px !important;
    height: 13px !important;
  }

  .bento-action-card .action-badge-pill {
    font-size: 0.52rem !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    border-radius: 999px !important;
    letter-spacing: 0.1px !important;
    gap: 3px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    max-width: 80px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .bento-action-card .badge-dot {
    width: 4.5px !important;
    height: 4.5px !important;
    flex-shrink: 0 !important;
  }

  .bento-action-card .card-action-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5px !important;
    margin-top: 1px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .bento-action-card .card-action-title {
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.2px !important;
    color: #fff !important;
  }

  .bento-action-card .card-action-sub {
    font-size: 0.58rem !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: 2.5em !important;
    color: #94a3b8 !important;
  }

  .bento-action-card .card-action-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 4px !important;
    padding-top: 4px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .bento-action-card .card-action-cta {
    font-size: 0.54rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
  }

  .bento-action-card .card-action-arrow {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
  }

  .bento-action-card .card-action-arrow svg {
    width: 7.5px !important;
    height: 7.5px !important;
  }
}

@media (max-width: 320px) {
  .action-cards-section .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
}

/* Search Bar on Mobile - Bounded & Centered */
@media (max-width: 640px) {
  .bento-search-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .search-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .search-box {
    height: 46px;
    padding: 0 12px;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .search-input {
    font-size: 0.85rem !important;
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
  }

  .search-shortcut {
    display: none !important;
    /* Hide '/' shortcut badge on touch screens */
  }

  .quick-tags-scroller {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .tag-btn {
    padding: 5px 11px;
    font-size: 0.74rem;
    flex-shrink: 0;
  }
}

/* Flash Sale on Mobile */
@media (max-width: 640px) {
  .flash-sale-box {
    padding: 14px 12px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .flash-info {
    gap: 10px;
    width: 100%;
  }

  .flash-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .flash-countdown {
    width: 100%;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px;
    border-radius: 8px;
  }

  .timer-slot {
    font-size: 0.95rem;
    padding: 4px 8px;
    min-width: 34px;
  }
}

/* Product Catalog Grid on Mobile */
@media (max-width: 640px) {
  .catalog-filter-bar {
    gap: 8px;
    margin-bottom: 14px;
  }

  .filter-pills-row {
    width: 100%;
    padding-bottom: 4px;
  }

  .filter-pill {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .catalog-sort-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 30px;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .product-content {
    padding: 8px 10px 10px 10px;
  }

  .product-title {
    font-size: 0.82rem;
    line-height: 1.25;
    min-height: 2.5em;
  }

  .product-specs-snippet {
    font-size: 0.65rem;
    gap: 4px;
  }

  .price-current {
    font-size: 0.92rem;
  }

  .price-strike {
    font-size: 0.65rem;
  }

  .tier-label {
    font-size: 0.62rem;
    padding: 2px 5px;
  }

  .badge-top-left {
    top: 6px;
    left: 6px;
    gap: 4px;
  }

  .game-tag-badge,
  .badge-pill {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .btn-wishlist {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 6px;
  }

  .btn-wishlist svg {
    width: 13px;
    height: 13px;
  }

  .btn-card-share {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 38px;
  }

  .btn-card-share svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 340px) {
  .products-grid {
    grid-template-columns: 1fr;
    /* Single column on extreme tiny screens */
  }
}

/* Modals on Mobile Devices (Bottom-Sheet Optimized - Compact, Ergonomic & High-Density) */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
    /* Slides up smoothly from bottom */
  }

  .modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    transform: translateY(30px);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .modal-overlay.open .modal-content {
    transform: translateY(0);
  }

  .modal-header {
    padding: 10px 14px;
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .modal-title {
    font-size: 0.98rem;
  }

  .modal-close-btn {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 10px 12px 18px 12px;
  }

  /* Compact 1:1 Gallery on Mobile: Prevents image from pushing all content off-screen */
  .modal-gallery-slider-wrap {
    margin-bottom: 8px;
  }

  .modal-gallery-main {
    max-width: 100%;
    max-height: 220px;
    /* Compact height for instant visibility of details */
    aspect-ratio: 16 / 10;
    margin: 0 auto 6px auto;
    border-radius: 10px;
    background: #060508;
  }

  .modal-gallery-slide img {
    object-fit: contain;
    /* Full poster visible without cropping */
    background: #060508;
    max-height: 220px;
  }

  .gallery-zoom-trigger-btn {
    padding: 3px 8px;
    font-size: 0.68rem;
    gap: 4px;
    top: 6px;
    left: 6px;
    border-radius: 6px;
  }

  .gallery-zoom-trigger-btn svg {
    width: 11px;
    height: 11px;
  }

  .slider-arrow {
    width: 28px;
    height: 28px;
  }

  .slider-counter-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    bottom: 6px;
    right: 6px;
  }

  .slider-dots {
    bottom: 6px;
    gap: 4px;
  }

  .slider-dot {
    width: 5px;
    height: 5px;
  }

  .filmstrip-thumb {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 6px;
  }

  .modal-gallery-filmstrip {
    gap: 6px;
    margin-top: 4px;
    padding-bottom: 4px;
  }

  /* Compact Title & Price on Mobile */
  .detail-title {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
    font-weight: 700 !important;
    color: #fff !important;
  }

  .detail-price-row {
    margin-bottom: 8px !important;
    gap: 6px !important;
    display: flex !important;
    align-items: baseline !important;
  }

  .detail-price-current {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
  }

  .detail-price-strike {
    font-size: 0.78rem !important;
  }

  /* Section Title */
  .detail-section-title {
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
    margin: 6px 0 4px 0 !important;
    font-weight: 700 !important;
  }

  /* High-Density Specifications Table on Mobile */
  .spec-table {
    width: 100% !important;
    margin: 4px 0 10px 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
  }

  .spec-table tr {
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 6px !important;
  }

  .spec-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04) !important;
  }

  .spec-table td {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
    border: none !important;
  }

  .spec-table td:first-child {
    width: 40% !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    font-size: 0.72rem !important;
  }

  .spec-table td:last-child {
    color: var(--text-main, #fff) !important;
    font-weight: 600 !important;
    text-align: right !important;
    font-size: 0.75rem !important;
  }

  /* Compact Rental Duration Card & 2-Column Package Grid on Mobile */
  .rental-duration-card {
    padding: 10px !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
  }

  .rental-duration-header {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }

  .rental-packages-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .rental-package-item {
    padding: 7px 9px !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;
    min-height: 48px !important;
    border-width: 1px !important;
  }

  .rental-package-item .rental-pkg-left {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
  }

  .rental-radio-indicator {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }

  .rental-radio-indicator svg {
    width: 8px !important;
    height: 8px !important;
  }

  .rental-pkg-name {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .rental-pkg-subtext {
    font-size: 0.62rem !important;
    color: var(--text-muted) !important;
    line-height: 1.15 !important;
  }

  .rental-pkg-price {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #f472b6 !important;
    margin-top: 1px !important;
    padding-left: 18px !important;
  }

  .rental-queue-footer {
    padding: 6px 8px !important;
    margin-top: 8px !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
  }

  .rental-live-status-card {
    padding: 8px 10px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
  }

  .rental-live-status-card .live-rent-countdown {
    font-size: 0.95rem !important;
  }

  /* Compact Seller Notes & Actions */
  .detail-notes-card {
    padding: 7px 10px !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
  }

  .detail-notes-label {
    font-size: 0.72rem !important;
    margin-bottom: 2px !important;
  }

  .detail-notes-text {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
  }

  .detail-actions-wrap {
    gap: 6px !important;
    margin-top: 4px !important;
  }

  .btn-wa-order {
    padding: 10px 14px !important;
    font-size: 0.86rem !important;
    border-radius: 10px !important;
    gap: 8px !important;
  }

  .btn-wa-order svg {
    width: 18px !important;
    height: 18px !important;
  }

  #detailCopyBtn {
    padding: 7px 12px !important;
    font-size: 0.74rem !important;
    border-radius: 8px !important;
  }
}

/* Mobile Bottom Navigation & Safe Area Adjustment - Centered 100% */
@media (max-width: 991px) {
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 24px) !important;
    max-width: 480px !important;
    height: 58px !important;
    border-radius: 28px !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    z-index: 999 !important;
  }

  .bottom-nav-item {
    font-size: 8.5px;
    padding: 4px;
    gap: 2px;
  }

  .bottom-nav-item svg {
    width: 18px;
    height: 18px;
  }

  .floating-wa-container {
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 68px);
    right: 14px;
  }

  .floating-wa-btn {
    width: 48px;
    height: 48px;
  }

  .floating-wa-btn svg {
    width: 24px;
    height: 24px;
  }

  .wa-multi-cs-popup {
    bottom: 58px;
    right: 0;
    width: calc(100vw - 28px);
  }
}

/* Footer on Mobile */
@media (max-width: 768px) {
  .site-footer {
    padding: 30px 0 16px 0;
    margin-top: 40px;
  }

  .footer-grid {
    gap: 20px;
  }

  .payment-logos-grid {
    justify-content: flex-start;
  }

  .footer-bottom {
    text-align: center;
    gap: 6px;
  }
}

/* Admin Dashboard Specific Mobile Optimization */
@media (max-width: 991px) {
  .admin-container {
    padding: 0 12px;
  }

  .admin-dashboard-layout {
    gap: 14px;
  }

  .admin-sidebar {
    top: 60px;
    padding: 6px;
    border-radius: 12px;
  }

  .admin-tab-bar {
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tab-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .admin-global-stats,
  .stats-grid,
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .stat-metric-card,
  .kpi-card {
    padding: 9px 11px !important;
    min-height: 68px !important;
  }

  .stat-val,
  .kpi-val {
    font-size: 1.25rem !important;
  }

  .stat-label,
  .kpi-label {
    font-size: 0.65rem !important;
  }

  .stat-sub,
  .kpi-sub {
    font-size: 0.62rem !important;
  }

  .admin-table-container {
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .admin-gallery-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
  }

  .form-row.two-col,
  .form-row.three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-container .btn-outline span {
    display: none;
    /* In admin header: show only icon for "Lihat Website" */
  }

  .header-container .btn-outline {
    padding: 7px 10px;
  }

  .header-container .brand-badge {
    display: none;
  }
}

/* ============================================================================
   JBHABIBCPS FORTRESS ANTI-THEFT & ASSET COPY PROTECTION
   ============================================================================ */
img,
.product-card,
.story-card,
.hero-visual,
.brand-logo,
.brand-icon,
.brand-badge,
.bento-action-card,
.stat-pill {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* Allow text selection inside form inputs & code snippets */
input,
textarea,
select,
code,
pre,
.allow-select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* ==========================================================================
   MOBILE TURBO PERFORMANCE ENGINE (Ultra-Fast 60FPS Mobile Experience)
   ========================================================================== */

/* 1. Instant Touch Response & Smooth Momentum Scrolling */
* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  -webkit-overflow-scrolling: touch;
}

button,
a,
.product-card,
.bento-action-card,
.filter-pill,
.rental-package-item {
  touch-action: manipulation;
}

/* 2. Global Anti-Flicker Hardware Layer Engine */
.glass-card,
.product-card,
.bento-hero,
.bento-action-card,
.header-nav,
.modal,
.spec-table {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  transform: translate3d(0, 0, 0);
}

/* 3. Mobile GPU Load Reduction (< 768px) */
@media (max-width: 768px) {
  body {
    background-attachment: scroll !important;
  }

  /* Replace expensive Gaussian blurs with deep, lightweight solid dark colors */
  .glass-card,
  .product-card,
  .bento-action-card,
  .spec-table,
  .filter-pill,
  .rental-duration-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(18, 14, 22, 0.94) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  }

  /* Keep light backdrop filter ONLY on sticky header */
  .header-nav {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background: rgba(6, 5, 7, 0.88) !important;
  }

  /* Stabilize 3D Mascot & Search Bar on Mobile */
  .hero-mascot-3d-wrapper {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .hero-mascot-3d-wrapper.has-glow {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.75)) !important;
  }

  .hero-mascot-3d-wrapper.floating-anim {
    animation: none !important;
  }

  .search-wrapper {
    animation: none !important;
    background: linear-gradient(90deg, #00F2FE 0%, #38BDF8 50%, #8B5CF6 100%) !important;
  }

  /* Lightweight shadows */
  .bento-hero {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  }
}

/* ============================================================================
   FULL-SCREEN IMAGE LIGHTBOX & ZOOM VIEWER (PC & MOBILE COMPATIBLE)
   ============================================================================ */
.image-zoom-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999999 !important;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 8, 14, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.image-zoom-modal.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.zoom-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

/* Floating Top Bar */
.zoom-top-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  pointer-events: auto;
}

.zoom-counter-pill {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.zoom-title-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.zoom-btn-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zoom-btn-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: scale(1.08);
}

/* Viewport & Image Canvas */
.zoom-viewport {
  position: relative;
  z-index: 5;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.zoom-image-wrapper {
  display: inline-block;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  cursor: zoom-in;
  will-change: transform;
}

.zoom-image-wrapper.is-zoomed {
  cursor: grab;
}

.zoom-image-wrapper.is-dragging {
  cursor: grabbing;
  transition: none !important;
}

.zoom-modal-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(var(--primary-rgb), 0.2);
  pointer-events: none;
}

/* Navigation Arrow Buttons */
.zoom-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 22, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.zoom-nav-prev {
  left: 20px;
}

.zoom-nav-next {
  right: 20px;
}

.zoom-nav-btn:hover {
  background: rgba(var(--primary-rgb), 0.35);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Floating Bottom Toolbar */
.zoom-bottom-toolbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(18, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
  pointer-events: auto;
}

.zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: rgba(var(--primary-rgb), 0.25);
  border-color: var(--primary);
  color: #ffffff;
}

.zoom-level-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 46px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Hint Pill */
.zoom-hint-pill {
  position: relative;
  z-index: 10;
  font-size: 0.72rem;
  color: #94a3b8;
  padding: 4px 14px;
  margin-bottom: 12px;
  text-align: center;
}

.zoom-hint-pill .mobile-hint {
  display: none;
}

.zoom-hint-pill .desktop-hint {
  display: inline;
}

@media (max-width: 768px) {
  .zoom-hint-pill .mobile-hint {
    display: inline;
  }

  .zoom-hint-pill .desktop-hint {
    display: none;
  }

  .zoom-nav-btn {
    width: 38px;
    height: 38px;
  }

  .zoom-nav-prev {
    left: 8px;
  }

  .zoom-nav-next {
    right: 8px;
  }

  .zoom-bottom-toolbar {
    gap: 6px;
    padding: 6px 12px;
  }

  .zoom-btn span {
    display: none;
  }

  /* Show only icons on mobile buttons */
  .zoom-btn {
    padding: 8px 10px;
  }
}

/* Trigger button on detail modal main image */
.gallery-zoom-trigger-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 99 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(10, 14, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer !important;
  pointer-events: auto !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.22s ease;
  user-select: none;
}

.gallery-zoom-trigger-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 18px var(--primary-glow);
}

.modal-gallery-slide {
  cursor: zoom-in !important;
}

.modal-gallery-slide img {
  cursor: zoom-in !important;
  pointer-events: auto !important;
}

/* ==========================================================================
   GLOBAL CUSTOM TEXT COLOR ENGINE
   Applies instantly across all pages when custom text colors are active
   ========================================================================== */
[data-custom-text="true"],
[data-custom-text="true"] body {
  color: var(--text-main) !important;
}

[data-custom-text="true"] h1,
[data-custom-text="true"] h2,
[data-custom-text="true"] h3,
[data-custom-text="true"] h4,
[data-custom-text="true"] h5,
[data-custom-text="true"] h6,
[data-custom-text="true"] .hero-title,
[data-custom-text="true"] .hero-title span:first-child,
[data-custom-text="true"] .card-action-title,
[data-custom-text="true"] .section-strip-title,
[data-custom-text="true"] .story-title,
[data-custom-text="true"] .product-title,
[data-custom-text="true"] .modal-title,
[data-custom-text="true"] .stat-val,
[data-custom-text="true"] .footer-col-title,
[data-custom-text="true"] .rental-duration-header,
[data-custom-text="true"] .brand-title,
[data-custom-text="true"] .brand-logo-text,
[data-custom-text="true"] .catalog-card-title,
[data-custom-text="true"] .detail-title,
[data-custom-text="true"] .bento-title,
[data-custom-text="true"] .spec-table td:last-child {
  color: var(--text-main) !important;
}

[data-custom-text="true"] .hero-desc,
[data-custom-text="true"] .card-action-sub,
[data-custom-text="true"] .meta-pill,
[data-custom-text="true"] .section-strip-subtitle,
[data-custom-text="true"] .section-subtitle,
[data-custom-text="true"] .story-sub,
[data-custom-text="true"] .footer-desc,
[data-custom-text="true"] .footer-link,
[data-custom-text="true"] .rental-pkg-sub,
[data-custom-text="true"] .spec-table td:first-child,
[data-custom-text="true"] .text-secondary {
  color: var(--text-secondary) !important;
}

[data-custom-text="true"] .product-specs-snippet,
[data-custom-text="true"] .price-strike,
[data-custom-text="true"] .text-muted,
[data-custom-text="true"] .footer-copyright,
[data-custom-text="true"] .badge-meta,
[data-custom-text="true"] .stat-label {
  color: var(--text-muted) !important;
}

[data-custom-text="true"] .text-accent,
[data-custom-text="true"] a.highlight-link {
  color: var(--text-accent, var(--primary)) !important;
}

/* ==========================================================================
   LIVE RENTAL STATUS & TIME ENGINE
   ========================================================================== */
@keyframes pulseGlow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.92);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.9);
  }
}

.live-rent-countdown {
  font-family: 'Outfit', 'Inter', monospace, sans-serif;
  letter-spacing: 0.3px;
  font-weight: 800;
  color: #fbbf24;
}

.rental-live-status-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.rental-live-status-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%);
  border-radius: 4px 0 0 4px;
}

.rental-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.3;
}

.rental-status-badge.rented {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.rental-status-badge.ready {
  color: #10b981;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
}

/* ==========================================================================
   Ultra-High Performance & 60FPS Hardware Acceleration Engine (PC & HP)
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GPU Hardware Layer Promotion for zero-lag smooth scrolling */
.product-card,
.stat-metric-card,
.kpi-card,
.bento-card,
.action-card-item {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Off-screen DOM rendering optimization: Drastically reduces RAM & CPU usage on phones */
.product-card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 320px;
}

/* Smooth Touch Momentum Scrolling */
.table-responsive,
.admin-table-scroll,
.admin-tab-bar,
.story-scroll-container,
.action-cards-grid {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Mobile Performance Tuning: Reduce heavy blur computations on entry-level phones */
@media (max-width: 640px) {

  :root,
  [data-theme] {
    --glass-blur: blur(10px);
    --glass-blur-sm: blur(6px);
  }

  .product-card {
    contain-intrinsic-size: 1px 260px;
  }
}

/* Custom Admin Switch Toggle (ON / OFF) */
.admin-switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
  cursor: pointer;
}

.admin-switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-switch-slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.admin-switch-toggle input:checked+.admin-switch-slider {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.admin-switch-toggle input:checked+.admin-switch-slider:before {
  transform: translateX(21px);
}

/* Visibility Action Button in Table */
.btn-toggle-vis {
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-toggle-vis.vis-on {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-toggle-vis.vis-on:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.btn-toggle-vis.vis-off {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-toggle-vis.vis-off:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

/* ==========================================================================
   FITUR ADMIN BARU: MANAJEMEN STOK, FILTER CANGGIH & NOTIFIKASI
   ========================================================================== */

/* 1. NOTIFIKASI BELL & POPOVER DROPDOWN */
.admin-notif-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-notif-bell {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 8px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.admin-notif-bell:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
  border: 2px solid #0b0f19;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  animation: pulseNotif 2s infinite;
}

@keyframes pulseNotif {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.admin-notif-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: auto;
  width: 380px;
  max-width: min(380px, calc(100vw - 32px));
  background: #0b101b !important;
  border: 1px solid rgba(0, 242, 254, 0.4) !important;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 242, 254, 0.2) !important;
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInDown 0.2s ease forwards;
}

@media (max-width: 768px) {
  .admin-notif-dropdown {
    left: -10px;
    width: calc(100vw - 40px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e1626 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-list-container {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b101b;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.notif-item:hover {
  background: #131c2e !important;
}

.notif-item.unread {
  background: rgba(0, 242, 254, 0.06);
}

.notif-item-icon {
  font-size: 1.15rem;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.notif-item-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 4px;
}

.notif-item-time {
  font-size: 0.68rem;
  color: #64748b;
}

.notif-empty-state {
  padding: 30px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.notif-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #080d17 !important;
  text-align: center;
}

/* 2. PILL FILTER STOK & KONTROL CEPAT */
.admin-stock-filter-bar {
  transition: all 0.2s ease;
}

.stock-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.stock-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.stock-pill.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.stock-pill.ready.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.stock-pill.low.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.stock-pill.out.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.stock-pill-count {
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

/* 3. STEPPER & BADGE STOK DI TABEL */
.stock-badge-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stock-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  white-space: nowrap;
}

.stock-status-pill.safe {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.stock-status-pill.low {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.stock-status-pill.out {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.stock-quick-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 3px;
  width: fit-content;
}

.stock-quick-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  width: 24px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stock-quick-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  color: var(--primary);
}

.stock-quick-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stock-quick-val {
  padding: 0 6px;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  min-width: 22px;
  text-align: center;
}

/* 4. BILAH AKSI MASSAL (BULK ACTION TOOLBAR) */
.admin-bulk-toolbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  animation: slideUpBulk 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpBulk {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.bulk-toolbar-content {
  background: rgba(13, 19, 29, 0.95);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--primary-glow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.bulk-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.bulk-badge {
  background: var(--primary);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-bulk {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-bulk:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-bulk.btn-bulk-ready:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
}

.btn-bulk.btn-bulk-sold:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #f87171;
}

.btn-bulk.btn-bulk-vis:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-bulk.btn-bulk-delete {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-bulk.btn-bulk-delete:hover {
  background: #ef4444;
  color: #fff;
}

.btn-bulk-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-bulk-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* 5. LOG AKTIVITAS ROW */
.activity-log-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s ease;
}

.activity-log-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.activity-log-desc {
  font-size: 0.8rem;
  color: #e2e8f0;
}

.activity-log-time {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* ==========================================================================
   Admin Catalog Command Deck & Modern Filter Toolbar
   ========================================================================== */
.admin-catalog-command-deck {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-catalog-command-deck:hover {
  border-color: rgba(0, 242, 254, 0.25);
}

@media (max-width: 991px) {
  .admin-catalog-command-deck>div:last-child {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 540px) {
  .admin-catalog-command-deck>div:last-child {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   ADMIN CATALOG: 1-KOLOM PANJANG (FULL-WIDTH HORIZONTAL PRODUCT CARDS)
   Format baris tunggal lebar untuk kemudahan edit stok, status, dan harga.
   ========================================================================== */
.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(22, 28, 44, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-product-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.admin-product-row-card {
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  box-sizing: border-box;
}

.admin-product-row-card:hover {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(17, 25, 40, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 242, 254, 0.12);
  transform: translateY(-1px);
}

.admin-product-row-card.row-selected {
  border-color: var(--primary) !important;
  background: rgba(0, 242, 254, 0.05) !important;
  box-shadow: 0 0 0 1px var(--primary), 0 8px 25px rgba(0, 0, 0, 0.45);
}

/* Card Top Bar */
.prod-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prod-card-topbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.prod-card-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prod-code-pill {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.08);
  border: 1px dashed rgba(0, 242, 254, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prod-code-pill:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--primary);
}

.prod-game-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

.prod-type-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.prod-type-tag.rental {
  background: rgba(214, 95, 243, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(214, 95, 243, 0.35);
}

.prod-type-tag.flash {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.prod-type-tag.sale {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.prod-tier-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.prod-badge-tag {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
}

.prod-date-added {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Card Main Area */
.prod-card-main {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
}

@media (max-width: 1100px) {
  .prod-card-main {
    grid-template-columns: 74px 1fr;
  }

  .prod-card-metrics {
    grid-column: span 2;
    margin-top: 6px;
  }
}

@media (max-width: 600px) {
  .prod-card-main {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .prod-card-metrics {
    grid-column: span 1;
  }
}

.prod-card-media {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090d16;
  flex-shrink: 0;
  cursor: pointer;
}

.prod-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.prod-card-media:hover img {
  transform: scale(1.08);
}

.prod-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.prod-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin: 0;
  cursor: pointer;
  transition: color 0.15s ease;
  word-break: break-word;
}

.prod-card-title:hover {
  color: var(--primary);
}

/* Metrics Row / Cluster inside Card */
.prod-card-metrics {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 16px;
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 80px;
}

.metric-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.metric-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Card Bottom Actions */
.prod-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-wide {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-action-sold {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-action-sold:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.btn-action-ready {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.btn-action-ready:hover {
  background: #10b981;
  color: #0b101b;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.btn-action-edit {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-action-edit:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-action-link {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.btn-action-link:hover {
  background: #38bdf8;
  color: #04101e;
}

.btn-action-wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25d366;
}

.btn-action-wa:hover {
  background: #25d366;
  color: #04101e;
}

.btn-action-delete {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.btn-action-delete:hover {
  background: #ef4444;
  color: #fff;
}

.btn-action-rent {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.btn-action-rent:hover {
  background: #f59e0b;
  color: #04101e;
}

.btn-action-finish {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.btn-action-finish:hover {
  background: #10b981;
  color: #0b101b;
}

.btn-action-vault {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.btn-action-vault:hover {
  background: #a855f7;
  color: #fff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.vault-copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px;
  gap: 10px;
}

.vault-val-text {
  font-family: monospace;
  font-size: 0.86rem;
  color: #fff;
  word-break: break-all;
}