/* ========================================================
   VŨ DƯƠNG COMPUTER - HIGH TECH & MOBILE-FIRST STYLESHEET
   Cyber Dark Mode with Neon Cyan & Electric Indigo Accents
   ======================================================== */

:root {
  --season-code: "q3";
  --bg-body: #0a1226;
  --bg-card: rgba(16, 28, 56, 0.92);
  --bg-card-hover: rgba(24, 40, 78, 0.98);
  --bg-input: #0e1c3a;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-pink: #f43f5e;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-tech: 0 8px 32px 0 rgba(0, 0, 0, 0.55);
  --header-height: 70px;

  /* Default Q3 Theme: Thu Lượng Tử (Quantum Cyan & Electric Indigo) */
  --primary: #00f2fe;
  --primary-rgb: 0, 242, 254;
  --primary-hover: #38bdf8;
  --primary-dark: #0369a1;
  --secondary: #6366f1;
  --secondary-rgb: 99, 102, 241;
  --accent-rgb: 56, 189, 248;
  --border-card: rgba(99, 102, 241, 0.28);
  --border-card-hover: rgba(0, 242, 254, 0.65);
  --glow-cyan: 0 0 24px rgba(0, 242, 254, 0.45);
  --glow-indigo: 0 0 24px rgba(99, 102, 241, 0.45);
  --header-bg: rgba(10, 18, 38, 0.95);
  --header-border: rgba(0, 242, 254, 0.35);
  --brand-gradient: linear-gradient(90deg, #ffffff 0%, #00f2fe 55%, #6366f1 100%);
  --hero-glow: radial-gradient(circle, rgba(0, 242, 254, 0.28) 0%, transparent 70%);
  --season-bg: 
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.24) 0%, transparent 48%),
    radial-gradient(circle at 85% 85%, rgba(0, 242, 254, 0.20) 0%, transparent 48%),
    linear-gradient(180deg, #0d1733 0%, #070e20 100%);
  --season-bg-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%, 100% 100%;

  /* Creative Button Palette Variables (Default / Q3 Baseline) */
  --btn-primary-bg: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
  --btn-primary-color: #041525;
  --btn-primary-shadow: 0 4px 18px rgba(0, 242, 254, 0.45);
  --btn-outline-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(14, 116, 144, 0.35) 100%);
  --btn-outline-border: rgba(0, 242, 254, 0.55);
  --btn-outline-color: #38bdf8;
  --btn-outline-hover-bg: linear-gradient(135deg, rgba(0, 242, 254, 0.35) 0%, rgba(99, 102, 241, 0.35) 100%);
  --btn-view-detail-bg: linear-gradient(135deg, #162447 0%, #1f4068 100%);
  --btn-view-detail-border: rgba(0, 242, 254, 0.45);
  --btn-view-detail-color: #e0f2fe;
  --btn-view-detail-hover: linear-gradient(135deg, #1f4068 0%, #0284c7 100%);
  --btn-cart-quick-bg: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
  --btn-cart-quick-color: #051424;
  --btn-cart-quick-shadow: 0 4px 14px rgba(0, 242, 254, 0.45);
  --cat-pill-bg: linear-gradient(135deg, rgba(22, 36, 71, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
  --cat-pill-border: rgba(99, 102, 241, 0.35);
  --cat-pill-color: #cbd5e1;
  --cat-pill-active-bg: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
  --cat-pill-active-color: #041525;
  --subcat-pill-bg: linear-gradient(135deg, rgba(14, 116, 144, 0.25) 0%, rgba(99, 102, 241, 0.2) 100%);
  --subcat-pill-border: rgba(0, 242, 254, 0.35);
  --subcat-pill-color: #e0f2fe;
  --header-btn-bg: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
  --header-btn-border: rgba(0, 242, 254, 0.35);
  --season-btn-bg: linear-gradient(135deg, rgba(22, 36, 71, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  --season-btn-border: rgba(0, 242, 254, 0.45);

  /* Button Shape Morphing Variables (Default: Capsule Pill) */
  --btn-radius: 9999px;
  --btn-clip: none;
  --btn-clip-sm: none;
  --btn-transform: none;
  --btn-letter-spacing: 0.2px;
  --btn-font-family: inherit;
}

/* ========================================================
   4 SEASONS THEME IT TECH (TỰ ĐỘNG CHUYỂN THEO 4 QUÝ)
   MÀU SẮC ĐẶC TRƯNG CHUYÊN BIỆT CHO IT TECH & GAMING
   ======================================================== */

/* QUÝ 1: XUÂN CÔNG NGHỆ (CYBER MATRIX / HACKER TERMINAL GREEN) */
:root[data-season="q1"],
body[data-season="q1"] {
  --season-code: "q1";
  --primary: #00ff66;
  --primary-rgb: 0, 255, 102;
  --primary-hover: #39ff14;
  --primary-dark: #047857;
  --secondary: #00f0ff;
  --secondary-rgb: 0, 240, 255;
  --accent-rgb: 16, 185, 129;
  --bg-body: #061e16;
  --bg-card: rgba(8, 38, 28, 0.92);
  --bg-card-hover: rgba(12, 54, 40, 0.98);
  --bg-input: #08281e;
  --border-card: rgba(0, 255, 102, 0.24);
  --border-card-hover: rgba(0, 255, 102, 0.7);
  --glow-cyan: 0 0 24px rgba(0, 255, 102, 0.5);
  --glow-indigo: 0 0 24px rgba(0, 240, 255, 0.45);
  --header-bg: rgba(6, 30, 22, 0.95);
  --header-border: rgba(0, 255, 102, 0.35);
  --brand-gradient: linear-gradient(90deg, #ffffff 0%, #00ff66 60%, #00f0ff 100%);
  --hero-glow: radial-gradient(circle, rgba(0, 255, 102, 0.28) 0%, transparent 70%);
  --season-bg: 
    linear-gradient(rgba(0, 255, 102, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 10% 15%, rgba(0, 255, 102, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 90% 85%, rgba(0, 240, 255, 0.16) 0%, transparent 48%),
    linear-gradient(180deg, #07261c 0%, #041610 100%);
  --season-bg-size: 36px 36px, 36px 36px, 100% 100%, 100% 100%, 100% 100%;

  /* Q1 Button Creative Palette (Terminal Matrix Neon Mint & Emerald) */
  --btn-primary-bg: linear-gradient(135deg, #00ff66 0%, #059669 100%);
  --btn-primary-color: #032013;
  --btn-primary-shadow: 0 4px 18px rgba(0, 255, 102, 0.45);
  --btn-outline-bg: linear-gradient(135deg, rgba(0, 255, 102, 0.18) 0%, rgba(5, 150, 105, 0.32) 100%);
  --btn-outline-border: rgba(0, 255, 102, 0.55);
  --btn-outline-color: #00ff88;
  --btn-outline-hover-bg: linear-gradient(135deg, rgba(0, 255, 102, 0.32) 0%, rgba(0, 240, 255, 0.25) 100%);
  --btn-view-detail-bg: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  --btn-view-detail-border: rgba(0, 255, 102, 0.45);
  --btn-view-detail-color: #ecfdf5;
  --btn-view-detail-hover: linear-gradient(135deg, #047857 0%, #10b981 100%);
  --btn-cart-quick-bg: linear-gradient(135deg, #00ff66 0%, #00f0ff 100%);
  --btn-cart-quick-color: #032013;
  --btn-cart-quick-shadow: 0 4px 14px rgba(0, 255, 102, 0.45);
  --cat-pill-bg: linear-gradient(135deg, rgba(6, 78, 59, 0.7) 0%, rgba(4, 35, 25, 0.85) 100%);
  --cat-pill-border: rgba(0, 255, 102, 0.35);
  --cat-pill-color: #a7f3d0;
  --cat-pill-active-bg: linear-gradient(135deg, #00ff66 0%, #059669 100%);
  --cat-pill-active-color: #032013;
  --subcat-pill-bg: linear-gradient(135deg, rgba(0, 255, 102, 0.2) 0%, rgba(0, 240, 255, 0.15) 100%);
  --subcat-pill-border: rgba(0, 255, 102, 0.4);
  --subcat-pill-color: #ecfdf5;
  --header-btn-bg: linear-gradient(135deg, rgba(6, 78, 59, 0.5) 0%, rgba(6, 30, 22, 0.9) 100%);
  --header-btn-border: rgba(0, 255, 102, 0.4);
  --season-btn-bg: linear-gradient(135deg, rgba(6, 78, 59, 0.6) 0%, rgba(4, 30, 22, 0.95) 100%);
  --season-btn-border: rgba(0, 255, 102, 0.5);

  /* Q1 Button Shape: Terminal Chamfer Tech Cut */
  --btn-radius: 0px;
  --btn-clip: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --btn-clip-sm: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  --btn-transform: none;
  --btn-letter-spacing: 0.5px;
  --btn-font-family: 'Consolas', 'Courier New', monospace;
}

/* QUÝ 2: HẠ SIÊU TỐC (SOLAR PLASMA / OVERCLOCK CYBERPUNK 2077) */
:root[data-season="q2"],
body[data-season="q2"] {
  --season-code: "q2";
  --primary: #ffaa00;
  --primary-rgb: 255, 170, 0;
  --primary-hover: #ffc400;
  --primary-dark: #c2410c;
  --secondary: #ff007f;
  --secondary-rgb: 255, 0, 127;
  --accent-rgb: 249, 115, 22;
  --bg-body: #220d1c;
  --bg-card: rgba(44, 18, 36, 0.92);
  --bg-card-hover: rgba(62, 24, 50, 0.98);
  --bg-input: #2d1225;
  --border-card: rgba(255, 170, 0, 0.28);
  --border-card-hover: rgba(255, 0, 127, 0.7);
  --glow-cyan: 0 0 25px rgba(255, 170, 0, 0.5);
  --glow-indigo: 0 0 25px rgba(255, 0, 127, 0.5);
  --header-bg: rgba(34, 13, 28, 0.95);
  --header-border: rgba(255, 170, 0, 0.35);
  --brand-gradient: linear-gradient(90deg, #ffffff 0%, #ffaa00 50%, #ff007f 100%);
  --hero-glow: radial-gradient(circle, rgba(255, 170, 0, 0.28) 0%, transparent 70%);
  --season-bg: 
    radial-gradient(rgba(255, 170, 0, 0.16) 1.5px, transparent 1.5px),
    radial-gradient(circle at 85% 15%, rgba(255, 0, 127, 0.25) 0%, transparent 48%),
    radial-gradient(circle at 15% 85%, rgba(255, 170, 0, 0.22) 0%, transparent 48%),
    linear-gradient(180deg, #2b1123 0%, #170913 100%);
  --season-bg-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;

  /* Q2 Button Creative Palette (Overclock Solar Gold & Hot Cyberpunk Magenta) */
  --btn-primary-bg: linear-gradient(135deg, #ffaa00 0%, #ff007f 100%);
  --btn-primary-color: #1f0412;
  --btn-primary-shadow: 0 4px 18px rgba(255, 170, 0, 0.45);
  --btn-outline-bg: linear-gradient(135deg, rgba(255, 0, 127, 0.22) 0%, rgba(194, 65, 12, 0.35) 100%);
  --btn-outline-border: rgba(255, 170, 0, 0.55);
  --btn-outline-color: #ffc400;
  --btn-outline-hover-bg: linear-gradient(135deg, rgba(255, 170, 0, 0.32) 0%, rgba(255, 0, 127, 0.32) 100%);
  --btn-view-detail-bg: linear-gradient(135deg, #831843 0%, #9f1239 100%);
  --btn-view-detail-border: rgba(255, 0, 127, 0.45);
  --btn-view-detail-color: #fff1f2;
  --btn-view-detail-hover: linear-gradient(135deg, #9f1239 0%, #e11d48 100%);
  --btn-cart-quick-bg: linear-gradient(135deg, #ffaa00 0%, #ff5500 100%);
  --btn-cart-quick-color: #200512;
  --btn-cart-quick-shadow: 0 4px 14px rgba(255, 170, 0, 0.45);
  --cat-pill-bg: linear-gradient(135deg, rgba(131, 24, 67, 0.7) 0%, rgba(44, 18, 36, 0.85) 100%);
  --cat-pill-border: rgba(255, 170, 0, 0.35);
  --cat-pill-color: #fed7aa;
  --cat-pill-active-bg: linear-gradient(135deg, #ffaa00 0%, #ff007f 100%);
  --cat-pill-active-color: #1f0412;
  --subcat-pill-bg: linear-gradient(135deg, rgba(255, 170, 0, 0.2) 0%, rgba(255, 0, 127, 0.16) 100%);
  --subcat-pill-border: rgba(255, 170, 0, 0.4);
  --subcat-pill-color: #fff1f2;
  --header-btn-bg: linear-gradient(135deg, rgba(131, 24, 67, 0.5) 0%, rgba(34, 13, 28, 0.9) 100%);
  --header-btn-border: rgba(255, 170, 0, 0.4);
  --season-btn-bg: linear-gradient(135deg, rgba(131, 24, 67, 0.6) 0%, rgba(34, 13, 28, 0.95) 100%);
  --season-btn-border: rgba(255, 170, 0, 0.5);

  /* Q2 Button Shape: Slanted Cyberpunk Blade */
  --btn-radius: 0px;
  --btn-clip: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  --btn-clip-sm: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  --btn-transform: uppercase;
  --btn-letter-spacing: 1.2px;
  --btn-font-family: inherit;
}

/* QUÝ 3: THU LƯỢNG TỬ (QUANTUM DEEP TECH & AI INDIGO) */
:root[data-season="q3"],
body[data-season="q3"] {
  --season-code: "q3";
  --primary: #00f2fe;
  --primary-rgb: 0, 242, 254;
  --primary-hover: #38bdf8;
  --primary-dark: #0369a1;
  --secondary: #6366f1;
  --secondary-rgb: 99, 102, 241;
  --accent-rgb: 56, 189, 248;
  --bg-body: #0a1226;
  --bg-card: rgba(16, 28, 56, 0.92);
  --bg-card-hover: rgba(24, 40, 78, 0.98);
  --bg-input: #0e1c3a;
  --border-card: rgba(99, 102, 241, 0.28);
  --border-card-hover: rgba(0, 242, 254, 0.65);
  --glow-cyan: 0 0 24px rgba(0, 242, 254, 0.45);
  --glow-indigo: 0 0 24px rgba(99, 102, 241, 0.45);
  --header-bg: rgba(10, 18, 38, 0.95);
  --header-border: rgba(0, 242, 254, 0.35);
  --brand-gradient: linear-gradient(90deg, #ffffff 0%, #00f2fe 55%, #6366f1 100%);
  --hero-glow: radial-gradient(circle, rgba(0, 242, 254, 0.28) 0%, transparent 70%);
  --season-bg: 
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.24) 0%, transparent 48%),
    radial-gradient(circle at 85% 85%, rgba(0, 242, 254, 0.20) 0%, transparent 48%),
    linear-gradient(180deg, #0d1733 0%, #070e20 100%);
  --season-bg-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%, 100% 100%;

  /* Q3 Button Creative Palette (Quantum Electric Cyan & Deep Indigo) */
  --btn-primary-bg: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
  --btn-primary-color: #041525;
  --btn-primary-shadow: 0 4px 18px rgba(0, 242, 254, 0.45);
  --btn-outline-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(14, 116, 144, 0.35) 100%);
  --btn-outline-border: rgba(0, 242, 254, 0.55);
  --btn-outline-color: #38bdf8;
  --btn-outline-hover-bg: linear-gradient(135deg, rgba(0, 242, 254, 0.32) 0%, rgba(99, 102, 241, 0.32) 100%);
  --btn-view-detail-bg: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  --btn-view-detail-border: rgba(0, 242, 254, 0.45);
  --btn-view-detail-color: #e0e7ff;
  --btn-view-detail-hover: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
  --btn-cart-quick-bg: linear-gradient(135deg, #00f2fe 0%, #6366f1 100%);
  --btn-cart-quick-color: #041525;
  --btn-cart-quick-shadow: 0 4px 14px rgba(0, 242, 254, 0.45);
  --cat-pill-bg: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(16, 28, 56, 0.9) 100%);
  --cat-pill-border: rgba(99, 102, 241, 0.35);
  --cat-pill-color: #c7d2fe;
  --cat-pill-active-bg: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
  --cat-pill-active-color: #041525;
  --subcat-pill-bg: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(99, 102, 241, 0.18) 100%);
  --subcat-pill-border: rgba(0, 242, 254, 0.4);
  --subcat-pill-color: #e0e7ff;
  --header-btn-bg: linear-gradient(135deg, rgba(30, 27, 75, 0.5) 0%, rgba(10, 18, 38, 0.9) 100%);
  --header-btn-border: rgba(0, 242, 254, 0.4);
  --season-btn-bg: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(10, 18, 38, 0.95) 100%);
  --season-btn-border: rgba(0, 242, 254, 0.5);

  /* Q3 Button Shape: Smooth Aerodynamic Capsule */
  --btn-radius: 9999px;
  --btn-clip: none;
  --btn-clip-sm: none;
  --btn-transform: none;
  --btn-letter-spacing: 0.2px;
  --btn-font-family: inherit;
}

/* QUÝ 4: ĐÔNG BĂNG GIÁ SIÊU DẪN (CRYO FROST TECH / ARCTIC LIQUID NITROGEN) */
:root[data-season="q4"],
body[data-season="q4"] {
  --season-code: "q4";
  --primary: #38bdf8;
  --primary-rgb: 56, 189, 248;
  --primary-hover: #7dd3fc;
  --primary-dark: #1d4ed8;
  --secondary: #c084fc;
  --secondary-rgb: 192, 132, 252;
  --accent-rgb: 147, 197, 253;
  --bg-body: #0c2032;
  --bg-card: rgba(18, 42, 64, 0.92);
  --bg-card-hover: rgba(26, 58, 88, 0.98);
  --bg-input: #10293f;
  --border-card: rgba(56, 189, 248, 0.28);
  --border-card-hover: rgba(192, 132, 252, 0.7);
  --glow-cyan: 0 0 25px rgba(56, 189, 248, 0.5);
  --glow-indigo: 0 0 25px rgba(192, 132, 252, 0.45);
  --header-bg: rgba(12, 32, 50, 0.95);
  --header-border: rgba(56, 189, 248, 0.35);
  --brand-gradient: linear-gradient(90deg, #ffffff 0%, #38bdf8 55%, #c084fc 100%);
  --hero-glow: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
  --season-bg: 
    radial-gradient(rgba(56, 189, 248, 0.16) 1.2px, transparent 1.2px),
    radial-gradient(circle at 10% 25%, rgba(56, 189, 248, 0.24) 0%, transparent 48%),
    radial-gradient(circle at 90% 75%, rgba(192, 132, 252, 0.22) 0%, transparent 48%),
    linear-gradient(180deg, #102940 0%, #071624 100%);
  --season-bg-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;

  /* Q4 Button Creative Palette (Arctic Liquid Sky Blue & Electric Purple) */
  --btn-primary-bg: linear-gradient(135deg, #38bdf8 0%, #9333ea 100%);
  --btn-primary-color: #081525;
  --btn-primary-shadow: 0 4px 18px rgba(56, 189, 248, 0.45);
  --btn-outline-bg: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(30, 64, 175, 0.35) 100%);
  --btn-outline-border: rgba(56, 189, 248, 0.55);
  --btn-outline-color: #7dd3fc;
  --btn-outline-hover-bg: linear-gradient(135deg, rgba(56, 189, 248, 0.32) 0%, rgba(168, 85, 247, 0.32) 100%);
  --btn-view-detail-bg: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --btn-view-detail-border: rgba(56, 189, 248, 0.45);
  --btn-view-detail-color: #eff6ff;
  --btn-view-detail-hover: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --btn-cart-quick-bg: linear-gradient(135deg, #38bdf8 0%, #c084fc 100%);
  --btn-cart-quick-color: #081525;
  --btn-cart-quick-shadow: 0 4px 14px rgba(56, 189, 248, 0.45);
  --cat-pill-bg: linear-gradient(135deg, rgba(30, 58, 138, 0.7) 0%, rgba(18, 42, 64, 0.9) 100%);
  --cat-pill-border: rgba(56, 189, 248, 0.35);
  --cat-pill-color: #bae6fd;
  --cat-pill-active-bg: linear-gradient(135deg, #38bdf8 0%, #9333ea 100%);
  --cat-pill-active-color: #081525;
  --subcat-pill-bg: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(192, 132, 252, 0.18) 100%);
  --subcat-pill-border: rgba(56, 189, 248, 0.4);
  --subcat-pill-color: #eff6ff;
  --header-btn-bg: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(12, 32, 50, 0.9) 100%);
  --header-btn-border: rgba(56, 189, 248, 0.4);
  --season-btn-bg: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(12, 32, 50, 0.95) 100%);
  --season-btn-border: rgba(56, 189, 248, 0.5);

  /* Q4 Button Shape: Crystalline Facet Cut */
  --btn-radius: 0px;
  --btn-clip: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  --btn-clip-sm: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  --btn-transform: none;
  --btn-letter-spacing: 0.4px;
  --btn-font-family: inherit;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  background-image: var(--season-bg);
  background-size: var(--season-bg-size);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 70px; /* Space for mobile bottom bar */
  transition: background-color 0.4s ease, background-image 0.4s ease;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

/* ========================================================
   CONTAINER & LAYOUT
   ======================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========================================================
   HEADER & NAVBAR
   ======================================================== */
.tech-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.tech-header .container.header-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 24px);
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding-left: clamp(16px, 2.5vw, 36px);
  padding-right: clamp(16px, 2.5vw, 36px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: #080c14;
  box-shadow: var(--glow-cyan);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.45));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.1) rotate(2deg);
}

.brand-title {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  min-width: 0;
}

.brand-title .main-name {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-title .sub-name {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Search bar on desktop */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .header-search {
    display: block;
  }
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  padding: 10px 44px 10px 18px;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  background: #0f172a;
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: var(--btn-radius);
  clip-path: var(--btn-clip-sm);
  width: 32px;
  height: 32px;
  color: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s, clip-path 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--glow-cyan);
}

/* Nav links desktop */
.nav-menu-desktop {
  display: none;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
}

@media (min-width: 992px) {
  .nav-menu-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

/* CYBER DROPDOWN MENU */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-item-dropdown:hover .dropdown-menu-cyber,
.nav-item-dropdown:focus-within .dropdown-menu-cyber {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu-cyber {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 242, 254, 0.2);
  padding: 8px 0;
  margin-top: 6px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-item-cyber {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  border-left: 3px solid transparent;
}
.dropdown-item-cyber:hover {
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  border-left-color: #00f2fe;
  padding-left: 22px;
}
.dropdown-item-cyber.active {
  background: rgba(0, 242, 254, 0.18);
  color: #00f2fe;
  border-left-color: #00f2fe;
  font-weight: 700;
}

/* ========================================================
   SEASONAL THEME SWITCHER (COMPACT TRIGGER & DROPDOWN/DROPUP)
   ======================================================== */
.season-switch-box {
  position: relative;
  display: inline-flex;
}

.season-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--season-btn-bg);
  border: 1px solid var(--season-btn-border);
  padding: 6px 14px;
  border-radius: var(--btn-radius);
  clip-path: var(--btn-clip-sm);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-letter-spacing);
  font-family: var(--btn-font-family);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease, clip-path 0.3s ease;
  white-space: nowrap;
}

.season-trigger-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.55);
  color: #fff;
  transform: translateY(-1px);
}

.season-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  display: inline-block;
  flex-shrink: 0;
  animation: seasonDotPulse 2s infinite ease-in-out;
}

@keyframes seasonDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.3); opacity: 1; filter: brightness(1.25); }
}

.season-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 275px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(var(--primary-rgb), 0.2);
  padding: 10px;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dropup mode when rendered in footer */
.season-dropup {
  top: auto;
  bottom: calc(100% + 10px);
  left: 50%;
  right: auto;
  transform: translate(-50%, 8px);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(var(--primary-rgb), 0.25);
}

.season-switch-box:hover .season-dropdown,
.season-switch-box.open .season-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.season-switch-box:hover .season-dropup,
.season-switch-box.open .season-dropup {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.season-dropdown-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.season-header-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

.season-auto-tag {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.season-options-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.season-opt-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.season-opt-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(var(--primary-rgb), 0.25);
}

.season-opt-btn.active {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

.season-opt-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.season-opt-info {
  flex: 1;
  min-width: 0;
}

.season-opt-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
}

.season-opt-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.season-color-preview {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.preview-q1 { background: linear-gradient(135deg, #00ff88, #00e5ff); box-shadow: 0 0 6px rgba(0, 255, 136, 0.6); }
.preview-q2 { background: linear-gradient(135deg, #ffaa00, #ff007f); box-shadow: 0 0 6px rgba(255, 170, 0, 0.6); }
.preview-q3 { background: linear-gradient(135deg, #00f2fe, #6366f1); box-shadow: 0 0 6px rgba(0, 242, 254, 0.6); }
.preview-q4 { background: linear-gradient(135deg, #38bdf8, #a855f7); box-shadow: 0 0 6px rgba(56, 189, 248, 0.6); }

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-cart {
  position: relative;
  background: var(--header-btn-bg);
  border: 1px solid var(--header-btn-border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-header-cart:hover {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.45);
  background: var(--btn-outline-hover-bg);
  transform: translateY(-1px);
}

.cart-badge-count {
  background: linear-gradient(135deg, var(--accent-pink), #e11d48);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

.btn-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--header-btn-bg);
  border: 1px solid var(--header-btn-border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-mobile-toggle:hover {
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.45);
  color: #fff;
  transform: translateY(-1px);
}

@media (min-width: 992px) {
  .btn-mobile-toggle {
    display: none;
  }
}

/* Tối ưu hóa hiển thị Mobile cho Top Header (chống vỡ chữ và lệch layout) */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  .tech-header {
    height: 60px;
  }
  .tech-header .container.header-inner,
  .header-inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
    gap: 10px !important;
    justify-content: space-between;
  }
  .brand-logo {
    gap: 10px;
    flex-shrink: 0;
    max-width: calc(100% - 55px);
  }
  .brand-logo-img {
    width: 38px;
    height: 38px;
  }
  .brand-title {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
  }
  .brand-title .main-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }
  .brand-title .sub-name {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }
  .header-actions {
    gap: 0;
    flex-shrink: 0;
  }
  .btn-mobile-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .btn-mobile-toggle svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    gap: 8px;
  }
  .brand-logo-img {
    width: 32px;
    height: 32px;
  }
  .brand-title .main-name {
    font-size: 0.90rem;
  }
  .brand-title .sub-name {
    font-size: 0.55rem;
  }
  .btn-mobile-toggle {
    width: 36px;
    height: 36px;
  }
}

/* ========================================================
   OFF-CANVAS MOBILE DRAWER
   ======================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg-body);
  border-right: 1px solid var(--border-card);
  z-index: 210;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(320px);
}

.drawer-header {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-body {
  padding: 16px;
  flex: 1;
}

.drawer-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.drawer-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.drawer-menu-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.drawer-menu-list a:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--primary);
}

/* Nav Cart Link in Desktop Menu */
.nav-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-cart-link .cart-badge-count {
  position: static;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
}

/* Drawer Language & Cart Card */
.drawer-actions-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.drawer-lang-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-label {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.drawer-lang-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.25s ease;
  text-decoration: none;
}

.drawer-lang-btn:hover {
  background: rgba(var(--primary-rgb), 0.15);
  color: #fff;
}

.drawer-lang-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #060911;
  border-color: var(--primary);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4);
}

/* Seasonal Theme in Mobile Drawer */
.drawer-season-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-season-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.drawer-season-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-season-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.drawer-season-chip.active {
  background: rgba(var(--primary-rgb), 0.16);
  border-color: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.35);
}

.drawer-season-auto-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.5);
  border: 1px dashed rgba(var(--accent-rgb), 0.3);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

.drawer-season-auto-btn:hover,
.drawer-season-auto-btn.active {
  border-style: solid;
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  color: #fff;
}

.drawer-cart-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.drawer-cart-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.25);
}

.drawer-cart-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ========================================================
   STICKY MOBILE BOTTOM BAR (Đồng bộ tuyệt đối Icon & Chữ)
   ======================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-card);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  z-index: 900;
  padding: 0 4px calc(env(safe-area-inset-bottom, 0px));
  transition: background 0.4s ease, border-color 0.4s ease;
}

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

.bottom-bar-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 4px 1px;
  border-radius: var(--radius-sm);
  position: relative;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bottom-bar-item.active,
.bottom-bar-item:hover {
  color: var(--primary);
}

.bottom-bar-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.bottom-bar-icon-wrap svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.bottom-bar-item.active .bottom-bar-icon-wrap svg {
  stroke: var(--primary);
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.6));
}

.bottom-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: linear-gradient(135deg, var(--accent-pink), #e11d48);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
  line-height: 1;
  pointer-events: none;
}

.bottom-bar-label {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.2px;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.bottom-bar-item.active .bottom-bar-label {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 380px) {
  .bottom-bar-label {
    font-size: 0.60rem;
    letter-spacing: -0.4px;
  }
  .bottom-bar-icon-wrap {
    width: 22px;
    height: 22px;
  }
  .bottom-bar-icon-wrap svg {
    width: 18px;
    height: 18px;
  }
}

/* ========================================================
   HERO TECH BANNER
   ======================================================== */
.hero-tech {
  position: relative;
  padding: 40px 0 30px;
  overflow: hidden;
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-tech);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: var(--hero-glow);
  filter: blur(40px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-highlight {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 24px;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-cyber-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color, #080c14);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--btn-radius);
  clip-path: var(--btn-clip);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-letter-spacing);
  font-family: var(--btn-font-family);
  border: none;
  cursor: pointer;
  box-shadow: var(--btn-primary-shadow, 0 4px 15px rgba(var(--primary-rgb), 0.35));
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.3s ease;
}

.btn-cyber-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.65);
  filter: brightness(1.1);
  color: var(--btn-primary-color, #080c14);
}

.btn-cyber-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-outline-bg);
  color: var(--btn-outline-color, #fff);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--btn-radius);
  clip-path: var(--btn-clip);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-letter-spacing);
  font-family: var(--btn-font-family);
  border: 1px solid var(--btn-outline-border, var(--border-card));
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.3s ease;
}

.btn-cyber-outline:hover {
  border-color: var(--primary);
  background: var(--btn-outline-hover-bg);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.4);
}

/* Feature mini badges */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

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

.feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.feature-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: normal;
}

/* ========================================================
   CATEGORY PILLS (HORIZONTAL SCROLL ON MOBILE)
   ======================================================== */
.category-strip {
  padding: 16px 0 24px;
}

.category-scroll-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-card) transparent;
}

.category-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 4px;
}

.cat-pill {
  white-space: nowrap;
  background: var(--cat-pill-bg);
  border: 1px solid var(--cat-pill-border);
  padding: 8px 18px;
  border-radius: var(--btn-radius);
  clip-path: var(--btn-clip-sm);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-letter-spacing);
  font-family: var(--btn-font-family);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cat-pill-color);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease, clip-path 0.3s ease;
}

.cat-pill:hover {
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.4);
}

.cat-pill.active {
  background: var(--cat-pill-active-bg);
  border-color: var(--primary);
  color: var(--cat-pill-active-color);
  box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.55);
}

/* SUB-CATEGORY PILL STYLES */
.subcat-bar-wrap {
  animation: fadeInSubcat 0.25s ease;
}
@keyframes fadeInSubcat {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.subcat-pill {
  font-size: 0.8rem !important;
  padding: 6px 15px !important;
  border-radius: 20px !important;
  background: var(--subcat-pill-bg) !important;
  border: 1px solid var(--subcat-pill-border) !important;
  color: var(--subcat-pill-color) !important;
  clip-path: none !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
}
.subcat-pill:hover {
  background: var(--btn-outline-hover-bg) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}
.subcat-pill.active {
  background: var(--btn-primary-bg) !important;
  border-color: var(--primary) !important;
  color: var(--btn-primary-color) !important;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.55) !important;
}

/* ========================================================
   SECTION TITLES
   ======================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

/* ========================================================
   PRODUCT GRID & CARD
   ======================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
  width: 100%;
}

@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

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

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-cyan);
}

.card-badge-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-discount {
  background: linear-gradient(135deg, var(--accent-pink), #e11d48);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-hot {
  background: linear-gradient(135deg, var(--accent-amber), #ea580c);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.card-img-wrap {
  width: 100%;
  height: 200px;
  max-height: 220px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  padding: 10px;
  box-sizing: border-box;
}

.card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
}

.card-specs {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.3;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
  display: block;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: 4px;
  box-sizing: border-box;
}

.card-price-box {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.price-old {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
}

.btn-view-detail {
  background: var(--btn-view-detail-bg);
  border: 1px solid var(--btn-view-detail-border);
  border-radius: var(--btn-radius);
  clip-path: var(--btn-clip-sm);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-letter-spacing);
  font-family: var(--btn-font-family);
  color: var(--btn-view-detail-color, #fff);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.3s ease;
}

.btn-view-detail:hover {
  background: var(--btn-view-detail-hover);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.45);
}

.btn-add-cart-quick {
  background: var(--btn-cart-quick-bg);
  border: none;
  border-radius: var(--btn-radius);
  clip-path: var(--btn-clip-sm);
  color: var(--btn-cart-quick-color, #080c14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--btn-cart-quick-shadow, 0 4px 12px rgba(var(--primary-rgb), 0.35));
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.3s ease;
}

.btn-add-cart-quick:hover {
  transform: scale(1.1) translateY(-1px);
  filter: brightness(1.15);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.6);
}

/* ========================================================
   PRODUCT DETAIL PAGE
   ======================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 24px 0 40px;
}

@media (min-width: 860px) {
  .detail-layout {
    grid-template-columns: 1fr 1.25fr;
  }
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  max-height: 480px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.gallery-main-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumb-item {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.thumb-item.active, .thumb-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .detail-title {
    font-size: 1.85rem;
  }
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.detail-meta span strong {
  color: var(--text-main);
}

.detail-price-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.detail-price-current {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--primary);
}

.detail-price-old {
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.detail-specs-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
}

.specs-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.specs-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.qty-control-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qty-btn-group {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.btn-qty-spin {
  background: none;
  border: none;
  color: var(--text-main);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-qty-spin:hover {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary);
}

.qty-input {
  width: 50px;
  height: 38px;
  background: none;
  border: none;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.detail-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-buy-now {
  flex: 1;
  min-width: 140px;
  background: linear-gradient(135deg, #ff1744 0%, #f43f5e 50%, #e11d48 100%);
  border: 1px solid rgba(255, 23, 68, 0.6);
  border-radius: var(--btn-radius);
  clip-path: var(--btn-clip);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-letter-spacing);
  font-family: var(--btn-font-family);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(255, 23, 68, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.3s ease;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 23, 68, 0.7);
  filter: brightness(1.1);
}

.btn-add-cart-detail {
  flex: 1;
  min-width: 140px;
  background: var(--btn-primary-bg);
  border: 1px solid var(--primary);
  border-radius: var(--btn-radius);
  clip-path: var(--btn-clip);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-letter-spacing);
  font-family: var(--btn-font-family);
  color: var(--btn-primary-color);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--btn-primary-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.3s ease;
}

.btn-add-cart-detail:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.7);
}

.detail-content-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
}

.tab-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.product-description-html {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.product-description-html img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}

/* ========================================================
   SHOPPING CART & CHECKOUT
   ======================================================== */
.cart-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: 24px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cart-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 14px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid var(--border-card);
}

.cart-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.cart-item-row {
  transition: background 0.2s;
}

.cart-item-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  flex-shrink: 0;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.cart-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.summary-row.total {
  border-bottom: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  padding-top: 14px;
}

.summary-row.total span:last-child {
  color: var(--primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-label .req {
  color: var(--accent-pink);
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: #fff;
  font-size: 0.92rem;
  transition: all 0.25s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* ========================================================
   TOAST NOTIFICATION
   ======================================================== */
.tech-toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--glow-cyan);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================================
   FOOTER
   ======================================================== */
.tech-footer {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-card);
  padding: 40px 0 24px;
  margin-top: 60px;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* ========================================================
   FOOTER BOTTOM & COMPACT THEME SELECTOR
   ======================================================== */
.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-theme-switcher {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-season-trigger {
  padding: 7px 18px;
  font-size: 0.82rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.footer-season-trigger:hover {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.45);
}

.footer-copy-text {
  line-height: 1.6;
  max-width: 900px;
}

@media (max-width: 991px) {
  body {
    padding-bottom: 75px !important;
  }
  .tech-footer {
    padding-top: 32px;
    padding-bottom: 95px !important; /* Khoảng cách đệm thoáng tuyệt đối phía trên mobile-bottom-bar */
    margin-top: 40px;
  }
  .footer-bottom {
    padding-top: 16px;
    padding-bottom: 25px;
    padding-left: 12px;
    padding-right: 12px;
    line-height: 1.6;
    font-size: 0.76rem;
  }
}

/* ========================================================
   TECH ANIMATED CAROUSEL BANNER
   ======================================================== */
.tech-slider-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(24, 34, 53, 0.92) 100%);
  box-shadow: var(--shadow-tech);
  margin-bottom: 24px;
}

.tech-slider-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.tech-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 28px 20px 48px;
  gap: 20px;
  align-items: center;
  box-sizing: border-box;
}

@media (min-width: 860px) {
  .tech-slide {
    grid-template-columns: 1.25fr 1fr;
    padding: 44px 44px 44px;
    min-height: 380px;
  }
}

.slide-content {
  position: relative;
  z-index: 2;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.slide-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .slide-title {
    font-size: 2.25rem;
  }
}

.slide-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 520px;
}

.slide-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  height: 220px;
}

@media (min-width: 860px) {
  .slide-img-wrap {
    height: 320px;
  }
}

.slide-img-wrap::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.28) 0%, transparent 70%);
  filter: blur(35px);
  z-index: 1;
}

.slide-img-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
  animation: floatTech 4s ease-in-out infinite;
}

@keyframes floatTech {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-card);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
}

.slider-arrow:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--glow-cyan);
}

.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot.active {
  width: 28px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

/* Language Switcher */
.lang-switch-box {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  gap: 3px;
  margin-left: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all 0.25s ease;
  text-decoration: none;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #050811;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.lang-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* ========================================================
   ABOUT & CONTACT PAGES STYLES
   ======================================================== */
.page-intro-banner {
  padding: 48px 0 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-intro-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-desc {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Contact Branches Grid */
.branch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

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

.branch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.branch-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-tech), var(--glow-cyan);
  transform: translateY(-4px);
}

.branch-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.branch-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.branch-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.branch-tag.main {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 242, 254, 0.4);
}

.branch-tag.branch {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.branch-info-list {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.branch-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.branch-info-item .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-top: 2px;
}

.map-wrapper {
  margin-top: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: #000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
}

/* Contact Form Section */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-tech);
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 40px;
  }
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-full {
    grid-column: span 2;
  }
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-label span.req {
  color: var(--accent-pink);
}

.form-control-tech {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: #fff;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-control-tech:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
  background: rgba(15, 23, 42, 0.95);
}

/* Stats Counter Grid */
.stat-counter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 36px 0;
}

@media (min-width: 992px) {
  .stat-counter-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-tech), var(--glow-cyan);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Services Grid */
.service-pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 36px 0;
}

@media (min-width: 768px) {
  .service-pillar-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-pillar-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-tech), var(--glow-cyan);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}

.service-pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.service-pillar-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Commitments Box */
.commit-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.85));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--shadow-tech), var(--glow-indigo);
}

.commit-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.commit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

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

.commit-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.commit-item h5 {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.commit-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ========================================================
   LEFT FLANK: QUICK CATEGORY DOCK & TOP FLASH DEALS
   ======================================================== */
.tech-flank-left {
  position: fixed;
  left: max(10px, calc(50% - 620px - 208px));
  top: 92px;
  bottom: 16px;
  z-index: 92;
  width: 200px;
  display: flex;
  flex-direction: column;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.flank-left-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.45) transparent;
}

/* Custom Cyber Scrollbar for Left Flank */
.flank-left-inner::-webkit-scrollbar {
  width: 4px;
}
.flank-left-inner::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}
.flank-left-inner::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb), 0.45);
  border-radius: 4px;
}
.flank-left-inner::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.flank-toggle-btn {
  position: absolute;
  top: -10px;
  right: -6px;
  z-index: 5;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--header-btn-bg);
  border: 1px solid var(--border-card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.flank-toggle-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
  transform: scale(1.1);
}

.tech-flank-left.collapsed {
  width: 44px;
}

.tech-flank-left.collapsed .flank-toggle-btn {
  transform: rotate(180deg);
  right: -6px;
}

.tech-flank-left.collapsed .flank-box-header,
.tech-flank-left.collapsed .nav-item-text,
.tech-flank-left.collapsed .nav-item-arrow,
.tech-flank-left.collapsed .nav-item-hot,
.tech-flank-left.collapsed .flank-subcat-tree,
.tech-flank-left.collapsed .flank-deal-box,
.tech-flank-left.collapsed .flank-commit-box {
  display: none !important;
}

.tech-flank-left.collapsed .flank-nav-item {
  justify-content: center;
  padding: 8px 4px;
}

.flank-box {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  padding: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.flank-box:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(var(--primary-rgb), 0.18);
}

.flank-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flank-header-left-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flank-header-icon {
  font-size: 0.9rem;
}

.flank-header-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.flank-box-count {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.18);
  color: var(--primary);
  font-weight: 800;
}

.flank-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flank-nav-item-wrap {
  position: relative;
  width: 100%;
}

.flank-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.flank-nav-item:hover,
.flank-nav-item-wrap.open > .flank-nav-item {
  background: rgba(var(--primary-rgb), 0.14);
  color: #fff;
  border-color: rgba(var(--primary-rgb), 0.35);
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.nav-item-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item-arrow {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.flank-nav-item-wrap.open .nav-item-arrow {
  transform: rotate(90deg);
  color: var(--primary);
}

/* Subcategory Inline Collapsible Tree */
.flank-subcat-tree {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 3px 0 3px 8px;
  margin: 2px 0 4px 6px;
  border-left: 2px solid rgba(var(--primary-rgb), 0.35);
}

.flank-nav-item-wrap.open .flank-subcat-tree {
  display: flex;
}

.flank-subcat-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.flank-subcat-link:hover {
  background: rgba(var(--primary-rgb), 0.16);
  color: #fff;
  transform: translateX(2px);
}

.flank-subcat-link.flank-subcat-all {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px dashed rgba(var(--primary-rgb), 0.25);
  margin-bottom: 2px;
  padding-bottom: 4px;
}

.subcat-link-icon {
  font-size: 0.78rem;
  flex-shrink: 0;
}

.subcat-link-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item-hot {
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff1744, #f43f5e);
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.1;
  box-shadow: 0 0 6px rgba(255, 23, 68, 0.6);
}

/* Flash Deal Mini Card */
.deal-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.deal-pulsing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff1744;
  box-shadow: 0 0 8px #ff1744;
  animation: seasonDotPulse 1.8s infinite ease-in-out;
}

.deal-tag-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffaa00;
  letter-spacing: 0.5px;
}

.deal-card-link {
  display: block;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 6px;
  transition: all 0.25s ease;
}

.deal-card-link:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.deal-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 6px;
}

.deal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.deal-card-link:hover .deal-img-wrap img {
  transform: scale(1.06);
}

.deal-disc-pill {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, #ff1744, #e11d48);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.6);
}

.deal-product-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-price-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 6px;
}

.deal-price-now {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
}

.deal-price-was {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.deal-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--btn-outline-hover-bg);
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 4px 6px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.deal-cta-btn:hover {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
}

.flank-commit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 6px;
}

.commit-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.flank-hotline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 6px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.flank-hotline-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.6);
  color: #fff;
}

@media (max-width: 1399px) {
  .tech-flank-left {
    display: none;
  }
}

/* ========================================================
   RIGHT FLANK: QUICK UTILITY DOCK & FLOATING ACTION BUTTONS
   ======================================================== */
.tech-flank-right {
  position: fixed;
  right: 18px;
  bottom: 28px;
  z-index: 996;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  background: rgba(10, 16, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  border-radius: 32px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(var(--primary-rgb), 0.16);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--header-btn-bg);
  border: 1px solid var(--border-card);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.dock-btn:hover {
  transform: scale(1.1) translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(var(--primary-rgb), 0.5);
  color: #fff;
}

.dock-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tooltip bên trái của Dock */
.dock-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: rgba(10, 16, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--primary);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.dock-btn:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Nút Trợ Lý AI Gemini Đặc Biệt */
.dock-btn-ai {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 50%, #0369a1 100%);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.5), 0 0 15px rgba(168, 85, 247, 0.4);
}

.dock-btn-ai:hover {
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.75), 0 0 25px rgba(168, 85, 247, 0.6);
}

.gemini-star-icon {
  width: 26px;
  height: 26px;
  color: #38bdf8;
  filter: drop-shadow(0 0 6px #38bdf8);
  animation: geminiStarRotate 12s linear infinite;
}

@keyframes geminiStarRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ai-sparkle-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(192, 132, 252, 0.5), rgba(0, 242, 254, 0.5));
  z-index: -1;
  filter: blur(4px);
  animation: aiSparklePulse 2.5s infinite ease-in-out;
}

@keyframes aiSparklePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.ai-badge-label {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: linear-gradient(135deg, #38bdf8, #9333ea);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Zalo Button */
.dock-btn-zalo {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
}

/* Phone Button */
.dock-btn-phone {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
}

/* Back to Top Button */
.dock-btn-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.dock-btn-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .tech-flank-right {
    right: 12px;
    bottom: 80px; /* Nằm ngay trên mobile-bottom-bar không che mất menu */
    gap: 8px;
    padding: 6px 4px;
    border-radius: 26px;
  }
  .dock-btn {
    width: 44px;
    height: 44px;
  }
  .dock-btn-ai {
    width: 48px;
    height: 48px;
  }
  .gemini-star-icon {
    width: 22px;
    height: 22px;
  }
  .dock-tooltip {
    display: none !important;
  }
  .gemini-chat-window {
    right: 10px !important;
    bottom: 76px !important;
    width: calc(100vw - 20px) !important;
    max-width: 100vw !important;
    height: calc(100vh - 96px) !important;
  }
}

/* ========================================================
   GEMINI AI CHAT WINDOW
   ======================================================== */
.gemini-chat-window {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 999;
  width: 385px;
  max-width: calc(100vw - 30px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(var(--primary-rgb), 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1399px) {
  .gemini-chat-window {
    right: 14px;
    bottom: 84px;
  }
}

.gemini-chat-window.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.gemini-chat-window.minimized {
  height: 60px !important;
  overflow: hidden;
}

.gemini-chat-window.minimized .gemini-quick-chips,
.gemini-chat-window.minimized .gemini-messages-body,
.gemini-chat-window.minimized .gemini-input-form {
  display: none !important;
}

/* Chat Header */
.gemini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(14, 24, 48, 0.98), rgba(22, 36, 70, 0.9));
  border-bottom: 1px solid var(--border-card);
}

.gemini-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gemini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  flex-shrink: 0;
}

.gemini-avatar .gemini-star-icon {
  width: 18px;
  height: 18px;
  color: #fff;
  filter: none;
}

.gemini-title-box {
  display: flex;
  flex-direction: column;
}

.gemini-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.gemini-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: var(--primary);
  font-weight: 600;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 6px #00ff66;
  animation: seasonDotPulse 1.8s infinite ease-in-out;
}

.gemini-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gemini-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gemini-btn-icon:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary);
  color: #fff;
}

.gemini-btn-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
}

/* Prompt Chips */
.gemini-quick-chips {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: rgba(10, 16, 32, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: none;
}

.gemini-quick-chips::-webkit-scrollbar {
  display: none;
}

.prompt-chip {
  white-space: nowrap;
  background: var(--btn-outline-bg);
  border: 1px solid var(--btn-outline-border);
  color: var(--btn-outline-color);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.prompt-chip:hover {
  background: var(--btn-outline-hover-bg);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Messages Body */
.gemini-messages-body {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-card) transparent;
}

.gemini-messages-body::-webkit-scrollbar {
  width: 4px;
}

.gemini-messages-body::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 4px;
}

.chat-msg {
  display: flex;
  gap: 8px;
  max-width: 88%;
}

.chat-msg-bot {
  align-self: flex-start;
}

.chat-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar-bot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-avatar-bot .gemini-star-icon {
  width: 15px;
  height: 15px;
  color: #fff;
  filter: none;
  animation: none;
}

.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-msg-user .msg-bubble-wrap {
  align-items: flex-end;
}

.msg-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg-bot .msg-bubble {
  background: rgba(22, 34, 62, 0.95);
  border: 1px solid var(--border-card);
  color: #e2e8f0;
  border-top-left-radius: 3px;
}

.chat-msg-user .msg-bubble {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  font-weight: 600;
  border-top-right-radius: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-dim);
  padding: 0 4px;
}

/* Typing Bubble */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Chat Input Bar */
.gemini-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(10, 16, 32, 0.92);
  border-top: 1px solid var(--border-card);
}

.gemini-input-field {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.gemini-input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.35);
}

.gemini-send-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--btn-primary-bg);
  border: none;
  color: var(--btn-primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--btn-primary-shadow);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.gemini-send-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* Gemini API Key Modal */
.gemini-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gemini-modal-content {
  width: 440px;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 24px rgba(var(--primary-rgb), 0.3);
  overflow: hidden;
}

.gemini-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-card);
}

.gemini-modal-header h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.gemini-modal-body {
  padding: 18px;
}

/* ========================================================
   CAMERA OPTIONS & ADD-ONS PANEL STYLING
   ======================================================== */
.camera-options-panel {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: var(--radius-lg, 12px);
  padding: 16px 18px;
  margin: 18px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.camera-opt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}

.camera-opt-header-icon {
  font-size: 1.6rem;
}

.camera-opt-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #00f2fe;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.camera-opt-header-sub {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

.camera-opt-group {
  margin-bottom: 14px;
}

.camera-opt-group:last-of-type {
  margin-bottom: 12px;
}

.camera-opt-group-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.camera-opt-grid {
  display: grid;
  gap: 10px;
}

.camera-opt-grid-2 {
  grid-template-columns: 1fr 1.35fr;
}

.camera-opt-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 640px) {
  .camera-opt-grid-2,
  .camera-opt-grid-3 {
    grid-template-columns: 1fr;
  }
}

.camera-opt-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.camera-opt-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.camera-opt-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(0, 242, 254, 0.4);
}

.camera-opt-pill.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: #00f2fe;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.22);
}

.camera-opt-pill.active::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #00f2fe;
}

.camera-opt-pill .pill-tag {
  position: absolute;
  top: -8px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.camera-opt-pill .pill-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 3px;
}

.camera-opt-pill.active .pill-title {
  color: #00f2fe;
}

.camera-opt-pill .pill-desc {
  font-size: 0.73rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-bottom: 6px;
}

.camera-opt-pill .pill-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  text-align: right;
  margin-top: auto;
}

.camera-opt-pill.active .pill-price {
  color: #fbbf24;
}

.camera-opt-summary {
  background: rgba(10, 15, 28, 0.7);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 6px;
  border-left: 3px solid #00f2fe;
}

.opt-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.opt-summary-label {
  color: #94a3b8;
  font-weight: 600;
}

.opt-summary-items {
  color: #38bdf8;
  font-weight: 700;
}


