/* ==========================================================================
   TRADIMEOW - MODERN TRADING BLOG DESIGN SYSTEM
   Theme: Sleek Dark Mode / Fintech Aesthetics
   ========================================================================== */

:root {
  /* Magma Volcanic Dark Theme Palette */
  --bg-main: #07080c;
  --bg-card: #0e1017;
  --bg-card-hover: #151824;
  --bg-card-glass: rgba(14, 16, 23, 0.82);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 87, 34, 0.35);

  /* Magma Fiery Accents */
  --magma-orange: #ff5722;
  --magma-amber: #ff9800;
  --magma-crimson: #ff2e63;
  --magma-glow: rgba(255, 87, 34, 0.28);
  --magma-gradient: linear-gradient(135deg, #ff5722 0%, #ff2e63 55%, #ffa726 100%);
  --magma-fire-subtle: linear-gradient(135deg, rgba(255, 87, 34, 0.12) 0%, rgba(255, 46, 99, 0.08) 100%);

  /* Trading Signals & Chart Colors (Tony Nguyen Color-Blind Safe: Electric Blue for Long/TP) */
  --tv-green: #007FFE;
  --tv-green-glow: rgba(0, 127, 254, 0.25);
  --tv-red: #f23645;
  --tv-red-glow: rgba(242, 54, 69, 0.25);
  --tv-blue: #007FFE;
  --tv-cyan: #00bcd4;

  /* Classic Backwards-Compatible Tokens */
  --brand-green: var(--magma-orange);
  --brand-green-glow: var(--magma-glow);
  --brand-cyan: #ff9800;
  --brand-red: var(--tv-red);
  --brand-amber: var(--magma-amber);

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #07080c;

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

  /* Layout & Spacing */
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(129, 140, 248, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reading Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   MARKET TICKER BANNER (JOKE OF THE DAY & VÔ TRI TRADER QUOTES)
   ========================================================================== */
.market-ticker-wrap,
.ticker-wrap {
  display: flex;
  align-items: center;
  background: #060910;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  height: 38px;
  font-size: 13px;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.ticker-label,
.ticker-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(255, 87, 34, 0.14);
  color: #ff5722;
  font-weight: 800;
  white-space: nowrap;
  height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.6px;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #ff5722;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff5722;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-slide 180s linear infinite;
  user-select: none;
}

.ticker-track:hover {
  animation-play-state: paused;
  cursor: pointer;
}

.ticker-joke-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.joke-emoji {
  font-size: 15px;
}

.joke-text {
  color: #f1f5f9;
  font-weight: 500;
  letter-spacing: -0.1px;
}

.joke-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.joke-tag.tag-joke {
  background: rgba(255, 87, 34, 0.18);
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.45);
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.15);
}

.joke-tag.tag-advice {
  background: rgba(0, 127, 254, 0.16);
  color: #007FFE;
  border: 1px solid rgba(0, 127, 254, 0.45);
  box-shadow: 0 0 8px rgba(0, 127, 254, 0.15);
}

.joke-divider {
  color: rgba(255, 255, 255, 0.18);
  margin: 0 28px;
  font-size: 11px;
}

/* Fallback for legacy ticker item */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  background: rgba(255, 255, 255, 0.05);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-green);
  font-family: var(--font-mono);
}

/* Search Bar */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 16px;
  height: 42px;
  width: 340px;
  transition: all var(--transition-fast);
  position: relative;
}

.search-box:focus-within {
  border-color: var(--brand-green);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 16px var(--brand-green-glow);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 10px;
  flex-shrink: 0;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 14px;
  width: 100%;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  color: var(--text-muted);
  font-size: 18px;
  display: none;
  padding: 0 4px;
}

.clear-search-btn.active {
  display: block;
}

/* Nav Links - 3D Pill Card System (Rule 88 & Color-Blind Safe for Tony Nguyen) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.2) inset, 0 4px 8px rgba(0, 0, 0, 0.4);
}

.nav-pill:active {
  transform: translateY(1px);
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.08) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Active State: Electric Blue (#007FFE) - Color-Blind Safe for Tony Nguyen */
.nav-pill.active {
  color: #007FFE;
  background: rgba(0, 127, 254, 0.14);
  border-color: rgba(0, 127, 254, 0.45);
  font-weight: 700;
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.25) inset, 0 0 16px rgba(0, 127, 254, 0.28);
}

.nav-icon {
  font-size: 14px;
}

/* Telegram CTA Button - Electric Blue 3D Pill */
.btn-join-tele {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #007FFE 0%, #005ECC 100%);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.3) inset, 0 3px 10px rgba(0, 127, 254, 0.35);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-join-tele:hover {
  transform: translateY(-1px);
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.4) inset, 0 5px 16px rgba(0, 127, 254, 0.5);
  color: #fff;
}

.btn-join-tele:active {
  transform: translateY(1px);
}

/* Studio Editor Button - Magma Orange 3D Pill (Rule 88) */
.btn-nav-studio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 87, 34, 0.12);
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.45);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.15) inset, 0 2px 6px rgba(255, 87, 34, 0.25);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-nav-studio:hover {
  background: rgba(255, 87, 34, 0.25);
  border-color: #ff5722;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.3) inset, 0 4px 14px rgba(255, 87, 34, 0.45);
}

.btn-nav-studio:active {
  transform: translateY(1px);
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   HERO CINEMATIC SPOTLIGHT SLIDER (Option A - 9s Magazine Showcase)
   Rule 88 & Color-Blind Safe (Electric Blue #007FFE & Warning Red #FF3B30)
   ========================================================================== */
.hero-cinematic-section {
  padding: 28px 0 34px;
  position: relative;
}

.hero-cinematic-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dual Spotlight Grid (50:50 Song Mã on Desktop, 1 Column on Mobile) */
.dual-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .dual-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.cinematic-slider-card {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 17, 26, 0.95) 0%, rgba(9, 11, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cinematic-slider-card:hover {
  border-color: rgba(0, 127, 254, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 127, 254, 0.12);
}

/* Card Themes: Trending vs Latest */
.card-trending {
  border-color: rgba(255, 87, 34, 0.18);
}

.card-trending:hover {
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), 0 0 22px rgba(255, 87, 34, 0.14);
}

.card-trending .cinematic-ambient-glow {
  background: radial-gradient(circle, rgba(255, 87, 34, 0.15) 0%, rgba(255, 46, 99, 0.08) 50%, transparent 75%);
}

.card-trending .cinematic-progress-line {
  background: linear-gradient(90deg, #ff2e63 0%, #ff5722 100%);
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.6);
}

.card-trending .cinematic-dot-item.active {
  background: #ff5722;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.7);
}

.card-trending .cinematic-timer-label .live-dot {
  background: #ff5722;
  box-shadow: 0 0 6px #ff5722;
}

.card-latest {
  border-color: rgba(0, 127, 254, 0.18);
}

.card-latest:hover {
  border-color: rgba(0, 127, 254, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), 0 0 22px rgba(0, 127, 254, 0.14);
}

.card-latest .cinematic-ambient-glow {
  background: radial-gradient(circle, rgba(0, 127, 254, 0.15) 0%, rgba(0, 188, 212, 0.08) 50%, transparent 75%);
}

.card-latest .cinematic-progress-line {
  background: linear-gradient(90deg, #007FFE 0%, #38bdf8 100%);
  box-shadow: 0 0 8px rgba(0, 127, 254, 0.6);
}

.card-latest .cinematic-dot-item.active {
  background: #007FFE;
  box-shadow: 0 0 10px rgba(0, 127, 254, 0.7);
}

.card-latest .cinematic-timer-label .live-dot {
  background: #007FFE;
  box-shadow: 0 0 6px #007FFE;
}

.cinematic-ambient-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
}

/* Dual Spotlight Enhanced Layout (To hơn, thoáng và cinematic hơn) */
.dual-spotlight-grid .cinematic-slide-inner {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 26px 28px 20px;
  min-height: auto;
}

.dual-spotlight-grid .cinematic-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dual-spotlight-grid .cinematic-spotlight-pill,
.dual-spotlight-grid .blog-category-badge {
  padding: 4px 11px;
  font-size: 11.5px;
}

.dual-spotlight-grid .cinematic-body-split {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
  align-items: center;
}

.dual-spotlight-grid .cinematic-title {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 6px;
  font-weight: 800;
}

.dual-spotlight-grid .cinematic-excerpt {
  font-size: 13.8px;
  line-height: 1.6;
  margin-bottom: 6px;
  -webkit-line-clamp: 2;
}

.dual-spotlight-grid .cinematic-stats-row {
  font-size: 13px;
  gap: 14px;
  margin-top: 4px;
}

.dual-spotlight-grid .cinematic-cover-wrap {
  height: 165px;
  border-radius: var(--radius-md);
}

.dual-spotlight-grid .cinematic-actions-row {
  margin-top: 4px;
}

.dual-spotlight-grid .btn-cinematic-read {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
}

.dual-spotlight-grid .btn-cinematic-nav {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.dual-spotlight-grid .cinematic-counter-pill {
  font-size: 13px;
  padding: 5px 12px;
}

.dual-spotlight-grid .cinematic-footer-bar {
  padding: 10px 28px 12px;
}

.dual-spotlight-grid .cinematic-dot-item {
  width: 26px;
  height: 4.5px;
}

.dual-spotlight-grid .cinematic-dot-item.active {
  width: 48px;
}

.dual-spotlight-grid .cinematic-timer-label {
  font-size: 12px;
}

@media (max-width: 640px) {
  .dual-spotlight-grid .cinematic-body-split {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dual-spotlight-grid .cinematic-cover-wrap {
    height: 175px;
    order: -1;
  }
}

/* Slide Inner Grid (Single / Fallback) */
.cinematic-slide-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  padding: 36px 40px 32px;
  align-items: center;
  min-height: 340px;
}

/* Slide Transition Animations */
.cinematic-slide-anim {
  animation: cinematicFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cinematicFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left Content Column */
.cinematic-content-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}

/* Meta & Badges Row */
.cinematic-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cinematic-spotlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pill-spotlight-pinned {
  background: rgba(255, 87, 34, 0.18);
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.45);
}

.pill-spotlight-views {
  background: rgba(0, 127, 254, 0.16);
  color: #007FFE;
  border: 1px solid rgba(0, 127, 254, 0.45);
}

.pill-spotlight-new {
  background: rgba(255, 152, 0, 0.16);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.45);
}

.pill-spotlight-likes {
  background: rgba(255, 46, 99, 0.16);
  color: #ff2e63;
  border: 1px solid rgba(255, 46, 99, 0.45);
}

.cinematic-time-info {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Article Title */
.cinematic-title {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  cursor: pointer;
  transition: color 0.18s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cinematic-title:hover {
  color: #007FFE;
}

/* Excerpt */
.cinematic-excerpt {
  font-size: 14.5px;
  line-height: 1.65;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Realtime Stats Row */
.cinematic-stats-row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.cinematic-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cinematic-stat-item strong {
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Actions Row (Tactile 3D Buttons - Rule 88 [C11]) */
.cinematic-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-cinematic-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #007FFE 0%, #005ac6 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 127, 254, 0.7);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.35) inset, 0 4px 14px rgba(0, 127, 254, 0.4);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-cinematic-read:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.5) inset, 0 6px 18px rgba(0, 127, 254, 0.55);
  color: #ffffff;
}

.btn-cinematic-read:active {
  transform: translateY(2px);
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.15) inset, 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Slider Controls Cluster */
.cinematic-controls-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cinematic-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-cinematic-nav:hover {
  background: rgba(0, 127, 254, 0.2);
  border-color: rgba(0, 127, 254, 0.5);
  color: #007FFE;
  transform: translateY(-1px);
}

.btn-cinematic-nav:active {
  transform: translateY(1.5px);
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.3) inset;
}

.cinematic-counter-pill {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Right Media Column */
.cinematic-media-col {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.cinematic-cover-wrap {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  position: relative;
  background: #06070a;
}

.cinematic-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-slider-card:hover .cinematic-cover-img {
  transform: scale(1.035);
}

.cinematic-cover-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

/* Bottom Progress Bar & Dots Strip */
.cinematic-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 20px;
}

.cinematic-dots-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cinematic-dot-item {
  width: 24px;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.25s ease;
  cursor: pointer;
}

.cinematic-dot-item.active {
  width: 44px;
  background: #007FFE;
  box-shadow: 0 0 10px rgba(0, 127, 254, 0.6);
}

.cinematic-dot-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.4);
}

.cinematic-timer-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cinematic-timer-label .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #007FFE;
  box-shadow: 0 0 6px #007FFE;
  animation: pulseBlue 1.5s infinite;
}

@keyframes pulseBlue {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* 9-Second Progress Bar Line */
.cinematic-progress-line-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  position: absolute;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.cinematic-progress-line {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff5722 0%, #007FFE 100%);
  box-shadow: 0 0 8px rgba(0, 127, 254, 0.6);
  transition: width 0.1s linear;
}

/* Responsive Mobile (375px - 768px) */
@media (max-width: 900px) {
  .cinematic-slide-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px 20px;
  }

  .cinematic-cover-wrap {
    height: 190px;
    order: -1;
  }

  .cinematic-title {
    font-size: 20px;
  }

  .cinematic-excerpt {
    font-size: 13.5px;
    -webkit-line-clamp: 2;
  }

  .cinematic-footer-bar {
    padding: 8px 20px 12px;
  }

  .cinematic-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cinematic-controls-cluster {
    justify-content: space-between;
  }

  .btn-cinematic-read {
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================================================
   LEGACY STATS & QUOTE FOR ABOUT.HTML
   ========================================================================== */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-green);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* Quote Card */
.hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-amber);
  margin-bottom: 16px;
}

.quote-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 24px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border-subtle);
}

.author-name {
  font-size: 14px;
  font-weight: 700;
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   MAIN CONTENT & FILTER BAR
   ========================================================================== */
.main-layout {
  padding: 30px 24px 80px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.pill.active {
  background: var(--brand-green);
  color: var(--text-inverse);
  font-weight: 700;
  border-color: var(--brand-green);
  box-shadow: 0 4px 16px var(--brand-green-glow);
}

.filter-status {
  font-size: 13px;
  color: var(--text-muted);
}

/* Section Heading */
.section-heading {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURED SPOTLIGHT HERO
   ========================================================================== */
.spotlight-wrap {
  margin-bottom: 48px;
}

.spotlight-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(20, 31, 56, 0.85));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(16, 185, 129, 0.15);
  border-color: var(--brand-green);
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.spotlight-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
  transition: color var(--transition-fast);
}

.spotlight-card:hover .spotlight-title {
  color: var(--brand-green);
}

.spotlight-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.spotlight-preview-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-tag {
  color: var(--brand-green);
  font-weight: 600;
}

.preview-rule {
  color: var(--text-secondary);
  border-left: 2px solid var(--brand-green);
  padding-left: 10px;
}

/* ==========================================================================
   TRADINGVIEW IDEAS & MAGMA OBSIDIAN CARDS
   ========================================================================== */

/* Direction Filter Row */
.direction-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.tv-filter-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.direction-pill {
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.direction-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.direction-pill.active {
  background: var(--magma-orange);
  color: #fff;
  border-color: var(--magma-orange);
  box-shadow: 0 0 14px var(--magma-glow);
}

.direction-pill.dir-long.active {
  background: var(--tv-green);
  border-color: var(--tv-green);
  box-shadow: 0 0 14px var(--tv-green-glow);
}

.direction-pill.dir-short.active {
  background: var(--tv-red);
  border-color: var(--tv-red);
  box-shadow: 0 0 14px var(--tv-red-glow);
}

.tv-live-indicator {
  font-size: 11px;
  font-weight: 800;
  color: var(--magma-orange);
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

/* TradingView Idea Card */
.tv-idea-card {
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.tv-idea-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-fast);
  z-index: 2;
}

.tv-idea-card:hover {
  transform: translateY(-5px);
  background: #131520;
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 87, 34, 0.15);
}

.tv-idea-card:hover::before {
  background: var(--magma-gradient);
}

/* Card Header */
.tv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
}

.tv-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tv-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.tv-author-text {
  display: flex;
  flex-direction: column;
}

.tv-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.tv-time {
  font-size: 11px;
  color: var(--text-muted);
}

.tv-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-symbol-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.tv-timeframe-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.tv-dir-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tv-badge-long {
  background: rgba(0, 127, 254, 0.16);
  color: #007FFE;
  border: 1px solid rgba(0, 127, 254, 0.45);
}

.tv-badge-short {
  background: rgba(242, 54, 69, 0.16);
  color: #f23645;
  border: 1px solid rgba(242, 54, 69, 0.35);
}

.tv-badge-setup {
  background: rgba(255, 87, 34, 0.16);
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.35);
}

/* Card Chart Area */
.tv-card-chart-area {
  height: 155px;
  background: #08090d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-mini-chart {
  width: 100%;
  height: 100%;
  position: relative;
}

.chart-watermark {
  position: absolute;
  bottom: 8px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: -1px;
  pointer-events: none;
  user-select: none;
}

/* Card Body */
.tv-card-body {
  padding: 18px 20px 14px;
}

.tv-card-body .article-title {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #fff;
  transition: color var(--transition-fast);
}

.tv-idea-card:hover .article-title {
  color: var(--magma-orange);
}

.tv-card-body .article-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.tv-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  font-size: 12.5px;
  background: rgba(0, 0, 0, 0.15);
}

.tv-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tv-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  user-select: none;
}

.tv-stat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

.tv-stat-pill.stat-views:hover {
  border-color: rgba(0, 127, 254, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(0, 127, 254, 0.2);
}

.tv-stat-pill.stat-likes:hover {
  border-color: rgba(255, 46, 99, 0.4);
  color: #ff5722;
  box-shadow: 0 0 8px rgba(255, 46, 99, 0.2);
}

.tv-stat-pill.stat-shares:hover {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.tv-stat-pill .stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
}

.spotlight-live-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-family: var(--font-mono);
}

.spotlight-live-stat span {
  font-weight: 700;
  color: var(--text-main);
}

.tv-rr-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffa726;
  background: rgba(255, 167, 38, 0.12);
  border: 1px solid rgba(255, 167, 38, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
}

.flame-icon {
  font-size: 12px;
}

/* Spotlight Hero with Chart */
.tv-spotlight {
  background: linear-gradient(135deg, #0e1017 0%, #151824 100%);
  border: 1px solid rgba(255, 87, 34, 0.35);
}

.spotlight-chart-wrap {
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  height: 200px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.tv-idea-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tv-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--magma-orange);
  background: rgba(255, 87, 34, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.rr-metric {
  color: #ffa726;
  font-weight: 700;
  font-family: var(--font-mono);
}

.modal-chart-hero {
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  height: 200px;
  margin-bottom: 24px;
  overflow: hidden;
}

/* Empty Search State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-state.hidden {
  display: none;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-reset-search {
  background: var(--brand-green);
  color: var(--text-inverse);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
}



/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #060910;
  padding: 50px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-bio {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
  max-width: 380px;
}

.footer-domain {
  font-size: 13.5px;
  color: var(--text-muted);
}

.highlight-domain {
  color: var(--brand-green);
  font-family: var(--font-mono);
  font-weight: 600;
}

.footer-disclaimer h4 {
  font-size: 14px;
  color: var(--brand-amber);
  margin-bottom: 8px;
}

.footer-disclaimer p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   ARTICLE READER MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 40px 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  padding: 44px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.modal-category {
  color: #007FFE;
  font-weight: 700;
  background: rgba(0, 127, 254, 0.12);
  border: 1px solid rgba(0, 127, 254, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.modal-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

/* Article Prose Typography (Reader Mode) */
.article-prose {
  font-size: 16.5px;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-prose h2 {
  font-size: 22px;
  color: #fff;
  margin: 32px 0 14px;
}

.article-prose h3 {
  font-size: 18px;
  color: var(--brand-green);
  margin: 24px 0 10px;
}

.article-prose p {
  margin-bottom: 18px;
}

.article-prose ul, .article-prose ol {
  margin: 16px 0 20px 24px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose strong {
  color: #fff;
}

.callout-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--brand-green);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 15px;
}

.callout-box.warning {
  background: rgba(244, 63, 94, 0.08);
  border-left-color: var(--brand-red);
}

.callout-box.quote {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--brand-amber);
  font-style: italic;
}

/* Rule #7: Article Illustration Diagram Containers */
.article-diagram-box {
  margin: 24px 0;
  padding: 18px 20px;
  background: rgba(14, 17, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.article-diagram-box svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.article-diagram-caption {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 12px;
  display: block;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Verification Badges (Tradimeow Verify vs AI Collect) */
.blog-verify-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.blog-verify-badge.verify-tradimeow {
  background: rgba(0, 127, 254, 0.15);
  border: 1px solid #007FFE;
  color: #007FFE;
  box-shadow: 0 0 10px rgba(0, 127, 254, 0.25);
}

.blog-verify-badge.verify-ai {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.modal-verify-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.modal-verify-badge.verify-tradimeow {
  background: rgba(0, 127, 254, 0.18);
  border: 1px solid #007FFE;
  color: #007FFE;
  box-shadow: 0 0 12px rgba(0, 127, 254, 0.3);
}

.modal-verify-badge.verify-ai {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
}



.modal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-views-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(0, 127, 254, 0.12);
  border: 1px solid rgba(0, 127, 254, 0.28);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.btn-like-post, .btn-share-post {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #181c28 0%, #10131d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-like-post:hover {
  background: linear-gradient(180deg, #261922 0%, #1a1218 100%);
  border-color: rgba(255, 46, 99, 0.5);
  color: #ff5722;
  box-shadow: 0 4px 12px rgba(255, 46, 99, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-like-post:active {
  transform: translateY(1.5px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-like-post.liked {
  background: linear-gradient(180deg, rgba(255, 46, 99, 0.25) 0%, rgba(255, 46, 99, 0.12) 100%);
  border-color: #ff2e63;
  color: #ff5722;
  box-shadow: 0 0 12px rgba(255, 46, 99, 0.35);
}

.btn-share-post:hover {
  background: linear-gradient(180deg, #132233 0%, #0d1724 100%);
  border-color: rgba(0, 127, 254, 0.5);
  color: #38bdf8;
  box-shadow: 0 4px 12px rgba(0, 127, 254, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-share-post:active {
  transform: translateY(1.5px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.share-count {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.85;
}

.btn-close-modal-bottom {
  background: linear-gradient(180deg, #1f2330 0%, #161822 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-close-modal-bottom:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

.btn-close-modal-bottom:active {
  transform: translateY(1.5px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .spotlight-card {
    grid-template-columns: 1fr;
  }
  .spotlight-preview-box {
    display: none;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .search-box {
    display: none; /* Hide top search box on tablet, or can be adapted */
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .modal-container {
    padding: 24px 18px;
  }
  .modal-title {
    font-size: 24px;
  }
  .nav-links {
    display: none; /* Can add mobile drawer if needed */
  }
}

/* ==========================================================================
   ECONOMIC CALENDAR & PROMO BANNER STYLES
   ========================================================================== */

/* Header Nav Highlight for Calendar */
.highlight-nav-btn {
  background: rgba(16, 185, 129, 0.12) !important;
  color: var(--brand-green) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.hot-badge {
  font-size: 9px;
  font-weight: 800;
  background: var(--brand-red);
  color: #fff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  animation: pulse-dot 1.5s infinite;
}

/* Homepage Promo Banner (Dark Magma & Warning Red #FF3B30 Color-Blind Safe) */
.calendar-promo-banner {
  background: linear-gradient(135deg, rgba(22, 14, 20, 0.95) 0%, rgba(12, 15, 24, 0.98) 100%);
  border: 1px solid rgba(255, 59, 48, 0.28);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 26px;
  margin-bottom: 36px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 59, 48, 0.08);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.calendar-promo-banner:hover {
  border-color: rgba(255, 59, 48, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 59, 48, 0.12);
}

.calendar-promo-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.promo-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #FF3B30;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #FF3B30;
  border-radius: 50%;
  box-shadow: 0 0 8px #FF3B30;
  animation: pulse-red 1.2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.promo-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.promo-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 6px;
}

.promo-cta-row {
  margin-top: 4px;
}

.btn-open-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff5722 0%, #FF3B30 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 59, 48, 0.6);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  white-space: nowrap;
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.3) inset, 0 4px 14px rgba(255, 59, 48, 0.35);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.btn-open-calendar:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.45) inset, 0 6px 18px rgba(255, 59, 48, 0.5);
  color: #ffffff;
}

.btn-open-calendar:active {
  transform: translateY(2px);
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.4) inset;
}

/* ==========================================================================
   USD RED NEWS LIVE SLIDER WINDOW (5 Upcoming High Impact USD News Events)
   ========================================================================== */
.cal-ticker-window {
  position: relative;
  background: linear-gradient(135deg, #0e111a 0%, #080a10 100%);
  border: 1px solid rgba(255, 59, 48, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 20px 14px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 59, 48, 0.1);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cal-ticker-window:hover {
  border-color: #FF3B30;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 59, 48, 0.22);
  transform: translateY(-2px);
}

.cal-ticker-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.cal-ticker-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cal-impact-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-impact-tag .currency-code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11.5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
}

.cal-impact-tag .impact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #FF3B30;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cal-event-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #cbd5e1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cal-countdown-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #ff9800;
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.35);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.2px;
}

.cal-ticker-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.cal-ticker-window:hover .cal-ticker-title {
  color: #ff5722;
}

.cal-ticker-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cal-chip {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.chip-forecast {
  background: rgba(0, 127, 254, 0.14);
  border: 1px solid rgba(0, 127, 254, 0.35);
  color: #38bdf8;
}

.chip-previous {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.chip-note {
  color: #ffa726;
  background: rgba(255, 167, 38, 0.1);
  border: 1px solid rgba(255, 167, 38, 0.25);
  font-size: 11px;
}

.cal-ticker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  margin-top: 4px;
}

.cal-dots-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-dot-item {
  width: 16px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cal-dot-item.active {
  width: 32px;
  background: #FF3B30;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.7);
}

.cal-dot-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.4);
}

.cal-nav-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.1) inset;
}

.cal-nav-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: #FF3B30;
  color: #FF3B30;
  transform: translateY(-1px);
}

.cal-nav-btn:active {
  transform: translateY(1px);
}

.cal-counter-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.cal-progress-line-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cal-progress-line {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff5722 0%, #FF3B30 100%);
  box-shadow: 0 0 6px #FF3B30;
  transition: width 0.05s linear;
}

@media (max-width: 992px) {
  .calendar-promo-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 20px;
  }
}

/* Calendar Page Hero */
.calendar-hero {
  padding: 50px 0 20px;
  text-align: center;
}

.calendar-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.calendar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.calendar-page-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.calendar-page-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* News Legend Bar */
.news-legend-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.red-dot { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.orange-dot { background: #f97316; box-shadow: 0 0 6px #f97316; }
.yellow-dot { background: #eab308; }

/* Calendar Card Wrap */
.calendar-card-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 40px;
  overflow: hidden;
}

.calendar-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

.strip-title {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-mono);
}

.strip-tip {
  color: var(--brand-green);
  font-size: 12px;
}

/* News Survival Rules Grid */
.news-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.rule-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-fast);
}

.rule-box:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
}

.rule-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.rule-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.rule-box p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .calendar-promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .calendar-page-title {
    font-size: 28px;
  }
}

/* ==========================================================================
   PIXEL-PERFECT FOREX FACTORY CLONE DESIGN SYSTEM
   ========================================================================== */
.ff-calendar-app {
  min-height: 80vh;
  padding-bottom: 60px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ff-hero-section {
  padding: 40px 0 20px;
}

.ff-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ff-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.status-badge-live {
  color: #ef4444;
  font-weight: 800;
  animation: pulse-dot 1.2s infinite;
}

.status-badge-cached {
  color: var(--brand-green);
  font-weight: 800;
}

.ff-main-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.ff-accent-text {
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
}

.ff-sub-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

.ff-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cal-refresh {
  background: rgba(0, 127, 254, 0.15);
  border: 1px solid rgba(0, 127, 254, 0.4);
  color: #38bdf8;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-cal-refresh:hover {
  background: #007FFE;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 127, 254, 0.35);
}

.btn-cal-refresh:active {
  transform: translateY(0);
}

.refresh-icon.spinning {
  display: inline-block;
  animation: calSpin 0.8s linear infinite;
}

@keyframes calSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-cal-theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-cal-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Next High Impact Banner */
.next-high-impact-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.next-event-tag {
  font-size: 11px;
  font-weight: 800;
  color: #f87171;
  letter-spacing: 1px;
}

.next-event-title {
  font-size: 15px;
  color: #fff;
}

.next-event-time {
  font-size: 13.5px;
  color: #fbbf24;
  margin-left: 10px;
}

/* Filter Panel */
.ff-filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ff-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ff-presets-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.ff-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.ff-preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ff-preset-btn.active {
  background: var(--brand-green);
  color: #090d16;
  border-color: var(--brand-green);
  font-weight: 700;
  box-shadow: 0 2px 10px var(--brand-green-glow);
}

.ff-preset-btn.reset {
  color: var(--text-muted);
}

.ff-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 14px;
  height: 38px;
  width: 260px;
}

.ff-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.ff-filter-middle, .ff-filter-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 130px;
}

.ff-impact-checkboxes {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.impact-chk-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.impact-chk-label input {
  cursor: pointer;
  accent-color: var(--brand-green);
}

.ff-currency-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cur-filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.cur-filter-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cur-filter-chip.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* TABLE STYLING - FOREX FACTORY LAYOUT */
.ff-table-card {
  background: #0d1322;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}

.ff-table-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
}

.ff-table-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.event-count-badge {
  font-size: 12px;
  color: var(--brand-green);
  font-family: var(--font-mono);
}

.ff-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.ff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.ff-table th {
  background: #090e1a;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.col-date { width: 110px; }
.col-time { width: 95px; }
.col-cur { width: 75px; }
.col-impact { width: 65px; text-align: center; }
.col-forecast { width: 95px; }
.col-previous { width: 95px; }

.ff-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

/* Day Groupings */
.day-group-main {
  background: rgba(15, 23, 42, 0.6);
}

.day-group-alt {
  background: rgba(10, 16, 30, 0.7);
}

.ff-row-high-impact {
  background: rgba(239, 68, 68, 0.04) !important;
}

.ff-data-row:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Date cell grouped with thick right border */
.ff-date-cell {
  background: #0a0f1d !important;
  border-right: 2px solid rgba(255, 255, 255, 0.08) !important;
  vertical-align: top !important;
  padding: 14px 12px !important;
}

.date-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.date-sub {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}

.ff-time-cell {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.time-high {
  color: #fb7185;
  font-weight: 700;
}

.currency-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.cur-usd { color: #34d399; background: rgba(52, 211, 153, 0.1); }
.cur-jpy { color: #f472b6; background: rgba(244, 114, 182, 0.1); }
.cur-gbp { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.cur-eur { color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
.cur-aud { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.cur-cad { color: #f87171; background: rgba(248, 113, 113, 0.1); }

.ff-impact-cell {
  text-align: center;
}

.ff-folder {
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease;
  cursor: pointer;
}

.ff-folder:hover {
  transform: scale(1.18);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.chk-folder {
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
  transition: transform 0.15s ease;
}

.impact-chk-label:hover .chk-folder {
  transform: scale(1.1);
}

.event-title-text {
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
}

.title-high {
  color: #fff;
  font-weight: 700;
}

.val-forecast {
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.val-previous {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.val-empty {
  color: rgba(255, 255, 255, 0.15);
}

.ff-empty-cell {
  text-align: center;
  padding: 60px 20px;
}

.btn-reset-filters {
  background: var(--brand-green);
  color: #090d16;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  margin-top: 12px;
}

/* Week Navigation Footer Bar (Rule 88 & Color-Blind Safe) */
.ff-table-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
}

.ff-week-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue, #007FFE);
  box-shadow: 0 0 8px rgba(0, 127, 254, 0.6);
  display: inline-block;
}

.ff-week-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-week-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-week-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-week-nav.active {
  background: var(--brand-blue, #007FFE) !important;
  color: #ffffff !important;
  border-color: #007FFE !important;
  box-shadow: 0 2px 10px rgba(0, 127, 254, 0.4);
}

/* Secondary TradingView Accordion */
.tv-widget-accordion {
  margin-top: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tv-accordion-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.tv-accordion-header:hover {
  color: #fff;
}

.tv-embed-wrap {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background: #131722;
}

.tv-embed-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #007FFE;
  background: rgba(0, 127, 254, 0.12);
  border: 1px solid rgba(0, 127, 254, 0.3);
  margin-bottom: 14px;
}

/* ==========================================================================
   CLASSIC FOREX FACTORY LIGHT MODE (CHUẨN 100% NHƯ ẢNH GỐC)
   ========================================================================== */
.theme-ff-light {
  background-color: #f1f4f7 !important;
  color: #1a2533 !important;
}

.theme-ff-light .ff-hero-section {
  color: #1a2533;
}

.theme-ff-light .ff-main-title {
  color: #0f1c2e;
}

.theme-ff-light .ff-filter-panel {
  background: #ffffff;
  border-color: #d1d9e2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.theme-ff-light .filter-label-tag,
.theme-ff-light .filter-section-title {
  color: #64748b;
}

.theme-ff-light .ff-preset-btn {
  background: #eef2f6;
  border-color: #cbd5e1;
  color: #334155;
}

.theme-ff-light .ff-search-wrap {
  background: #ffffff;
  border-color: #cbd5e1;
}

.theme-ff-light .ff-search-wrap input {
  color: #1a2533;
}

.theme-ff-light .impact-chk-label {
  color: #334155;
}

.theme-ff-light .cur-filter-chip {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.theme-ff-light .cur-filter-chip.active {
  background: #0284c7;
  color: #ffffff;
}

.theme-ff-light .ff-table-card {
  background: #ffffff;
  border: 1px solid #d0d7e2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.theme-ff-light .ff-table-meta-bar {
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}

.theme-ff-light .ff-table-title {
  color: #0f172a;
}

.theme-ff-light .ff-table th {
  background: #203348; /* Classic Navy Header */
  color: #ffffff;
  border-bottom: 1px solid #0f172a;
}

.theme-ff-light .ff-table td {
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.theme-ff-light .day-group-main {
  background: #ffffff;
}

.theme-ff-light .day-group-alt {
  background: #f8fafc;
}

.theme-ff-light .ff-row-high-impact {
  background: #fff1f2 !important;
}

.theme-ff-light .ff-date-cell {
  background: #edf2f7 !important;
  border-right: 2px solid #cbd5e1 !important;
}

.theme-ff-light .date-badge {
  color: #0f172a;
}

.theme-ff-light .event-title-text {
  color: #1e293b;
}

.theme-ff-light .title-high {
  color: #b91c1c;
}

.theme-ff-light .currency-badge {
  background: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   ACADEMY & TEAM TRADIMEOW PAGES (DARK MAGMA & 3D PILL SYSTEM)
   ========================================================================== */

/* Academy Page Styles */
.academy-hero {
  padding: 40px 0 20px;
}

.academy-hero-card {
  background: linear-gradient(135deg, rgba(14, 17, 26, 0.95), rgba(22, 27, 38, 0.85));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.academy-hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.academy-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 16px 0 12px;
  line-height: 1.3;
}

.academy-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.academy-filter-bar {
  margin-top: 10px;
}

/* Team Tradimeow Page Styles */
.team-main-container {
  padding: 40px 24px 80px;
}

.team-hero-card {
  background: linear-gradient(135deg, #0e111a 0%, #161b26 100%);
  border: 1px solid rgba(255, 87, 34, 0.35);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  margin-bottom: 40px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.team-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--magma-orange);
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.team-hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.team-hero-tagline {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.team-credo-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid #007FFE;
  border-radius: var(--radius-md);
  padding: 14px 22px;
  font-size: 14px;
  color: #e2e8f0;
  font-style: italic;
  max-width: 780px;
  text-align: left;
}

.credo-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* Realtime Community Stats Strip (Tactile 3D Mechanics & Dark Magma) */
.team-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.team-stat-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, #121520 0%, #0a0c13 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.team-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 127, 254, 0.35);
  box-shadow: 0 8px 24px rgba(0, 127, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.team-stat-box.highlight-rr {
  border-color: rgba(255, 87, 34, 0.3);
}

.team-stat-box.highlight-rr:hover {
  border-color: rgba(255, 87, 34, 0.6);
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.2);
}

.stat-box-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.stat-box-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 3px;
}

#teamTotalViews {
  color: #38bdf8;
}

#teamTotalLikes {
  color: #ff5722;
}

#teamTotalShares {
  color: #fbbf24;
}

.highlight-rr .stat-box-value {
  color: #ffa726;
}

.stat-box-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .team-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .team-stats-strip {
    grid-template-columns: 1fr;
  }
}

/* Three Pillars Grid */
.team-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 87, 34, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.pillar-card.highlight-card {
  border-color: rgba(0, 127, 254, 0.35);
  background: linear-gradient(145deg, #0e111a 0%, #131a29 100%);
}

.pillar-card.highlight-card:hover {
  border-color: rgba(0, 127, 254, 0.6);
  box-shadow: 0 12px 28px rgba(0, 127, 254, 0.2);
}

.pillar-icon-wrap {
  font-size: 36px;
  margin-bottom: 18px;
}

.pillar-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.pillar-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Team Divisions Section */
.team-divisions-section {
  margin-bottom: 60px;
}

.division-heading {
  text-align: center;
  margin-bottom: 32px;
}

.division-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: #007FFE;
  font-weight: 700;
}

.division-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 6px;
}

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

.division-card {
  background: rgba(14, 17, 26, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-fast);
}

.division-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(22, 27, 38, 0.9);
}

.division-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.div-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.div-status.live {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #007FFE;
  background: rgba(0, 127, 254, 0.12);
  border: 1px solid rgba(0, 127, 254, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.div-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.div-info {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact & Connect Box at bottom */
.team-contact-section {
  padding-top: 10px;
}

.contact-box {
  background: linear-gradient(135deg, rgba(14, 17, 26, 0.95), rgba(20, 26, 38, 0.95));
  border: 1px solid rgba(0, 127, 254, 0.35);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.contact-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #007FFE;
  background: rgba(0, 127, 254, 0.14);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.contact-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.contact-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 28px;
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: left;
  transition: all var(--transition-fast);
  color: inherit;
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.08) inset;
}

.contact-channel-card:not(.no-click):hover {
  background: rgba(0, 127, 254, 0.08);
  border-color: rgba(0, 127, 254, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 127, 254, 0.2);
}

.contact-channel-card.no-click {
  cursor: default;
}

.channel-icon-tele, .channel-icon-cal, .channel-icon-mail {
  font-size: 24px;
  flex-shrink: 0;
}

.channel-icon-fb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 127, 254, 0.12);
  border: 1px solid rgba(0, 127, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.08) inset;
}

.channel-icon-fb svg {
  width: 20px;
  height: 20px;
}

.channel-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.channel-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.channel-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.channel-arrow {
  color: #007FFE;
  font-size: 18px;
  transition: transform var(--transition-fast);
}

.contact-channel-card:hover .channel-arrow {
  transform: translateX(4px);
}

.contact-disclaimer {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .team-pillars-grid, .divisions-grid, .contact-cards-grid {
    grid-template-columns: 1fr;
  }
  .team-hero-title {
    font-size: 32px;
  }
}

/* Academy Promo Card on Home Page */
.academy-promo-card {
  margin: 40px 0 30px;
  background: linear-gradient(135deg, rgba(14, 17, 26, 0.95), rgba(20, 26, 38, 0.95));
  border: 1px solid rgba(0, 127, 254, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.promo-mini-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #007FFE;
  background: rgba(0, 127, 254, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 8px;
}

.promo-text-wrap h3 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.promo-text-wrap p {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.6;
}

/* ==========================================================================
   MEDIA & FORMATTING: RESPONSIVE YOUTUBE & IMAGES
   ========================================================================== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-post-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.blog-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 24px 0;
}

/* ==========================================================================
   EDITORIAL BLOG CARD ARCHITECTURE (Pure Blog / Zero Recap)
   ========================================================================== */
.blog-card {
  background: linear-gradient(180deg, #0e111a 0%, #080a10 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-fast);
  z-index: 2;
}

.blog-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(180deg, #131724 0%, #0a0d15 100%);
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 87, 34, 0.12);
}

.blog-card:hover::before {
  background: var(--magma-gradient);
}

.blog-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-category-badge {
  font-family: var(--font-heading), var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.badge-level-1 {
  background: rgba(2, 132, 199, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.35);
}

.badge-level-2 {
  background: rgba(217, 119, 6, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.badge-level-3 {
  background: rgba(139, 92, 246, 0.14);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.badge-level-4,
.badge-smc {
  background: rgba(0, 127, 254, 0.14);
  color: #007FFE;
  border: 1px solid rgba(0, 127, 254, 0.35);
}

.badge-level-5 {
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.badge-risk {
  background: rgba(255, 152, 0, 0.14);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.35);
}

.badge-psychology {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-diary {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-recap {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.badge-plan {
  background: rgba(14, 165, 233, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.blog-read-time {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card-cover {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #06080e;
  position: relative;
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-cover img {
  transform: scale(1.04);
}

.blog-card-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-title {
  color: #ff5722;
}

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

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.blog-author-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-author-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.blog-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-stat-item {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.blog-read-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #007FFE;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.blog-card:hover .blog-read-link {
  color: #ff5722;
  transform: translateX(3px);
}

/* ==========================================================================
   SKOOL-STYLE RICH BLOG EDITOR (Zero-Code Pro Studio)
   ========================================================================== */
.skool-editor-container {
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.skool-editor-container:focus-within {
  border-color: rgba(0, 127, 254, 0.5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 127, 254, 0.15);
}

.skool-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  background: #121622;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.skool-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  transition: all 0.15s ease;
}

.skool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.skool-btn:active {
  background: rgba(0, 127, 254, 0.2);
  color: #007FFE;
  transform: scale(0.95);
}

.skool-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 6px;
}

.skool-title-wrap {
  padding: 20px 24px 8px;
}

.skool-title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: inherit;
  line-height: 1.3;
}

.skool-title-input::placeholder {
  color: #475569;
  font-weight: 700;
}

.skool-excerpt-wrap {
  padding: 0 24px 12px;
}

.skool-excerpt-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #cbd5e1;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: none;
}

.skool-excerpt-input::placeholder {
  color: #475569;
}

.skool-content-wrap {
  padding: 0 24px 24px;
}

.skool-textarea {
  width: 100%;
  min-height: 280px;
  background: transparent;
  border: none;
  outline: none;
  color: #f1f5f9;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.7;
  resize: vertical;
}

.skool-textarea::placeholder {
  color: #475569;
}

/* ==========================================================================
   VISUAL WYSIWYG CANVAS & DIAGRAM BLOCK PROTECTOR (Task #69)
   ========================================================================== */
.editor-mode-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.btn-mode-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-mode-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-mode-tab.active {
  background: #007FFE;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 127, 254, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skool-visual-canvas {
  width: 100%;
  min-height: 380px;
  max-height: 800px;
  overflow-y: auto;
  background: transparent;
  border: none;
  outline: none;
  color: #f1f5f9;
  font-size: 15.5px;
  font-family: inherit;
  line-height: 1.8;
  padding: 4px 0 24px;
}

.skool-visual-canvas:empty:before {
  content: attr(data-placeholder);
  color: #475569;
  pointer-events: none;
  display: block;
}

.skool-visual-canvas h1,
.skool-visual-canvas h2,
.skool-visual-canvas h3,
.skool-visual-canvas h4 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.skool-visual-canvas h1 {
  font-size: 24px;
  margin: 28px 0 14px;
}

.skool-visual-canvas h2 {
  font-size: 20px;
  margin: 24px 0 12px;
  border-left: 3px solid #007FFE;
  padding-left: 12px;
}

.skool-visual-canvas h3 {
  font-size: 17px;
  margin: 20px 0 10px;
}

.skool-visual-canvas h4 {
  font-size: 15px;
  margin: 16px 0 8px;
  color: #cbd5e1;
}

.skool-visual-canvas p {
  margin: 0 0 16px;
  color: #cbd5e1;
}

.skool-visual-canvas strong {
  color: #fff;
  font-weight: 700;
}

.skool-visual-canvas em {
  font-style: italic;
  color: #e2e8f0;
}

.skool-visual-canvas ul,
.skool-visual-canvas ol {
  padding-left: 26px;
  margin: 0 0 16px;
  color: #cbd5e1;
}

.skool-visual-canvas li {
  margin-bottom: 6px;
}

.skool-visual-canvas .callout-box.quote {
  background: rgba(0, 127, 254, 0.07);
  border-left: 3px solid #007FFE;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 18px 0;
  font-style: italic;
  color: #e2e8f0;
}

.skool-visual-canvas pre {
  background: #090b12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  margin: 18px 0;
  overflow-x: auto;
}

.skool-visual-canvas code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #38bdf8;
}

.skool-visual-canvas hr.blog-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}

/* Studio Diagram Card Protector */
.studio-diagram-card {
  margin: 24px 0;
  background: #0b0e17;
  border: 1px solid rgba(0, 127, 254, 0.35);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  user-select: text;
  transition: all 0.2s ease;
}

.studio-diagram-card:hover {
  border-color: #007FFE;
  box-shadow: 0 8px 24px rgba(0, 127, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.diagram-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(90deg, #131724 0%, #0d101a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.diagram-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.diagram-badge-icon {
  font-size: 16px;
}

.diagram-badge-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #007FFE;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.btn-diag-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 6px;
  font-size: 11.5px;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  font-weight: 600;
}

.btn-diag-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.btn-diag-action:active {
  transform: translateY(1px);
}

.btn-diag-preview:hover {
  border-color: #007FFE;
  color: #007FFE;
}

.btn-diag-code:hover {
  border-color: #ff5722;
  color: #ff5722;
}

.btn-diag-del:hover {
  border-color: #FF3B30;
  color: #FF3B30;
  background: rgba(255, 59, 48, 0.12);
}

.diagram-card-render {
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #07080c;
  overflow-x: auto;
}

.diagram-card-render svg {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.diagram-card-source-drawer {
  padding: 14px 16px;
  background: #090b12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.diagram-source-header {
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.diagram-source-textarea {
  width: 100%;
  min-height: 120px;
  background: #05060a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 10px;
  resize: vertical;
  outline: none;
  line-height: 1.5;
}

.diagram-source-textarea:focus {
  border-color: #007FFE;
  color: #fff;
}

/* Modal Zoom Sơ Đồ */
.diagram-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.diagram-zoom-dialog {
  background: #0d101a;
  border: 1px solid rgba(0, 127, 254, 0.4);
  border-radius: 12px;
  max-width: 95vw;
  max-height: 90vh;
  width: 900px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.diagram-zoom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #121522;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diagram-zoom-body {
  padding: 24px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #07080c;
}

.diagram-zoom-body svg {
  max-width: 100%;
  height: auto;
}

.skool-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0b0e14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 16px;
}

.skool-bottom-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.skool-dropdown-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.skool-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.skool-meta-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.skool-select, .skool-input-meta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.skool-select:focus, .skool-input-meta:focus {
  border-color: #007FFE;
}

.skool-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skool-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  cursor: pointer;
}

.skool-toggle-label {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.skool-toggle-label.active {
  color: #007FFE;
}

.skool-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.skool-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.skool-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.skool-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.skool-switch input:checked + .skool-slider {
  background-color: #007FFE;
  box-shadow: 0 0 12px rgba(0, 127, 254, 0.4);
}

.skool-switch input:checked + .skool-slider:before {
  transform: translateX(20px);
}

.skool-btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.skool-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.skool-btn-save {
  background: linear-gradient(135deg, #007FFE 0%, #0056b3 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 24px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 127, 254, 0.35);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.skool-btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 127, 254, 0.5);
}

.skool-btn-save:active {
  transform: translateY(1px);
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR (Multi-page notification strip)
   ========================================================================== */
#topAnnouncementContainer {
  width: 100%;
}

.top-announcement-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  animation: slideDownAnn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownAnn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.top-announcement-bar.ann-magma {
  background: linear-gradient(90deg, #b82800 0%, #ff5722 50%, #e64a19 100%);
  box-shadow: 0 2px 14px rgba(255, 87, 34, 0.35);
}

.top-announcement-bar.ann-warning {
  background: linear-gradient(90deg, #991b1b 0%, #FF3B30 50%, #b91c1c 100%);
  box-shadow: 0 2px 14px rgba(255, 59, 48, 0.35);
}

.top-announcement-bar.ann-electric {
  background: linear-gradient(90deg, #004b99 0%, #007FFE 50%, #0284c7 100%);
  box-shadow: 0 2px 14px rgba(0, 127, 254, 0.35);
}

.ann-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.ann-icon {
  font-size: 16px;
  line-height: 1;
}

.ann-text {
  letter-spacing: 0.2px;
}

.ann-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.15s ease;
}

.ann-link:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
  border-color: #fff;
}

.ann-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.15s ease;
}

.ann-close-btn:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   ADMIN STUDIO TABS & DASHBOARD STYLES (Rule 88 Tactile 3D)
   ========================================================================== */
.admin-tabs-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1.2px 3px rgba(0,0,0,0.3);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, #007FFE 0%, #0056b3 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(0, 127, 254, 0.45);
}

.tab-badge {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.tab-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}

.tab-status-dot.active {
  background: #007FFE;
  box-shadow: 0 0 8px #007FFE;
}

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeInPane 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reorder & Action Controls in Table */
.order-btn-group {
  display: inline-flex;
  gap: 4px;
}

.btn-order {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-order:hover:not(:disabled) {
  background: #007FFE;
  border-color: #007FFE;
}

.btn-order:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-action-pin {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.15s ease;
}

.btn-action-pin:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-action-pin.is-pinned {
  background: rgba(0, 127, 254, 0.2);
  border-color: #007FFE;
  color: #38bdf8;
  font-weight: 700;
}

.pin-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #007FFE;
  background: rgba(0, 127, 254, 0.15);
  border: 1px solid rgba(0, 127, 254, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 6px;
}

.pinned-slider {
  background-color: #334155;
}

.skool-switch input:checked + .slider-pinned {
  background-color: #ff5722;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.4);
}

/* Announcement Manager Panel in Tab 3 */
.ann-admin-card {
  background: linear-gradient(180deg, #121520 0%, #0a0c13 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 900px;
}

.ann-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.ann-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ann-type-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ann-type-btn.active.type-magma {
  background: rgba(255, 87, 34, 0.2);
  border-color: #ff5722;
  color: #ff784e;
}

.ann-type-btn.active.type-warning {
  background: rgba(255, 59, 48, 0.2);
  border-color: #FF3B30;
  color: #fb7185;
}

.ann-type-btn.active.type-electric {
  background: rgba(0, 127, 254, 0.2);
  border-color: #007FFE;
  color: #38bdf8;
}

.ann-preview-box {
  margin-top: 24px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   SIDE WING SKYSCRAPER BANNERS (Affiliate Partners & Shopee Gear)
   Designed for High-Resolution Screens (>= 1520px)
   ========================================================================== */

.side-wing-banner {
  position: fixed;
  top: 165px;
  width: 270px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 85;
  background: rgba(14, 16, 23, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: top 0.2s ease, left 0.3s cubic-bezier(0.16, 1, 0.3, 1), right 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, width 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.side-wing-banner::-webkit-scrollbar {
  width: 3px;
}
.side-wing-banner::-webkit-scrollbar-track {
  background: transparent;
}
.side-wing-banner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Left Wing Placement */
.side-wing-left {
  left: max(16px, calc(50% - 620px - 20px - 270px));
  right: auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 87, 34, 0.14);
  border-left: 3px solid rgba(255, 87, 34, 0.75);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Right Wing Placement */
.side-wing-right {
  right: max(16px, calc(50% - 620px - 20px - 270px));
  left: auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 127, 254, 0.14);
  border-right: 3px solid rgba(0, 127, 254, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Wing Header */
.wing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.wing-header-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wing-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wing-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  border-radius: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.wing-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.wing-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.wing-badge.badge-electric {
  background: rgba(0, 127, 254, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(0, 127, 254, 0.35);
}

.wing-badge.badge-shopee,
.wing-badge.badge-magma {
  background: rgba(255, 87, 34, 0.18);
  color: #ff784e;
  border: 1px solid rgba(255, 87, 34, 0.35);
}

.wing-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  margin-top: 2px;
}

.wing-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.35;
}


/* Wing Items List (2 Cards) */
.wing-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wing-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 262px;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.wing-card-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.wing-card-item.item-shopee:hover,
.side-wing-right .wing-card-item:hover {
  border-color: rgba(255, 87, 34, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 87, 34, 0.18);
}

.wing-card-item.item-affiliate:hover,
.side-wing-left .wing-card-item:hover {
  border-color: rgba(0, 127, 254, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 127, 254, 0.18);
}

/* Product Image Preview */
.wing-card-img-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  background: #111420;
  flex-shrink: 0;
}

.wing-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.wing-card-item:hover .wing-card-img {
  transform: scale(1.06);
}

.wing-img-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.wing-img-badge.badge-electric {
  background: rgba(0, 127, 254, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.wing-img-badge.badge-magma {
  background: rgba(255, 87, 34, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.wing-img-badge.badge-cyan {
  background: rgba(0, 188, 212, 0.85);
  color: #07080c;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.wing-img-badge.badge-amber {
  background: rgba(255, 152, 0, 0.88);
  color: #07080c;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Card Body */
.wing-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.wing-item-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wing-item-highlight {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
}

.wing-card-item.item-shopee .wing-item-highlight,
.side-wing-right .wing-item-highlight {
  color: #ff9800;
}

.wing-card-item.item-affiliate .wing-item-highlight,
.side-wing-left .wing-item-highlight {
  color: #38bdf8;
}

.wing-item-desc {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Wing CTA Button (Rule 88 Haptic 3D) */
.wing-btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 2px;
}

.btn-wing-electric {
  background: linear-gradient(135deg, #007FFE 0%, #0056b3 100%);
  color: #fff;
  box-shadow: 0 3px 0 #003d80, 0 4px 12px rgba(0, 127, 254, 0.35);
}

.btn-wing-electric:hover {
  filter: brightness(1.1);
}

.btn-wing-electric:active {
  transform: translateY(2px);
  box-shadow: 0 0.8px 0 #003d80;
}

.btn-wing-magma {
  background: linear-gradient(135deg, #ff5722 0%, #d84315 100%);
  color: #fff;
  box-shadow: 0 3px 0 #bf360c, 0 4px 12px rgba(255, 87, 34, 0.35);
}

.btn-wing-magma:hover {
  filter: brightness(1.1);
}

.btn-wing-magma:active {
  transform: translateY(2px);
  box-shadow: 0 0.8px 0 #bf360c;
}

.btn-wing-cyan {
  background: linear-gradient(135deg, #00bcd4 0%, #00838f 100%);
  color: #07080c;
  box-shadow: 0 3px 0 #006064, 0 4px 12px rgba(0, 188, 212, 0.35);
}

.btn-wing-cyan:hover {
  filter: brightness(1.1);
}

.btn-wing-cyan:active {
  transform: translateY(2px);
  box-shadow: 0 0.8px 0 #006064;
}

.btn-wing-amber {
  background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
  color: #07080c;
  box-shadow: 0 3px 0 #bf360c, 0 4px 12px rgba(255, 152, 0, 0.35);
}

.btn-wing-amber:hover {
  filter: brightness(1.1);
}

.btn-wing-amber:active {
  transform: translateY(2px);
  box-shadow: 0 0.8px 0 #bf360c;
}

.btn-wing-shopee {
  background: linear-gradient(135deg, #ff5722 0%, #ee4d2d 100%);
  color: #fff;
  box-shadow: 0 3px 0 #c2371d, 0 4px 12px rgba(238, 77, 45, 0.4);
}

.btn-wing-shopee:hover {
  filter: brightness(1.1);
}

.btn-wing-shopee:active {
  transform: translateY(2px);
  box-shadow: 0 0.8px 0 #c2371d;
}

/* Smooth Auto-Slider Controls & Animations */
.wing-card-item.slide-fade {
  animation: wingCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wingCardFadeIn {
  0% {
    opacity: 0.2;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.wing-slider-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 2px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-top: 2px;
}

.wing-slider-counter {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.wing-slider-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wing-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wing-slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.wing-slider-dot.active {
  width: 16px;
  background: linear-gradient(90deg, #ff5722 0%, #007FFE 100%);
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.4);
}

.wing-slider-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wing-arrow-btn {
  width: 19px;
  height: 19px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.wing-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.wing-footer-note {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  opacity: 0.8;
}



/* Responsive Rules */
@media (max-width: 1820px) {
  .side-wing-banner {
    width: 225px;
  }
  .side-wing-left {
    left: calc(50% - 620px - 14px - 225px);
  }
  .side-wing-right {
    right: calc(50% - 620px - 14px - 225px);
  }
  .wing-card-img-wrap {
    height: 95px;
  }
}

@media (max-width: 1540px) {
  .side-wing-banner {
    display: none !important;
  }
}

/* ==========================================================================
   🛒 TRADIMEOW - TẠP HÓA MEOW MEOW (SHOP / AFFILIATE STORE)
   ========================================================================== */

.shop-page-body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
}

.shop-main-container {
  padding-top: 40px;
  padding-bottom: 80px;
}

/* 1. Shop Hero Section */
.shop-hero-card {
  background: radial-gradient(circle at 80% 20%, rgba(255, 87, 34, 0.12) 0%, rgba(14, 16, 23, 0.95) 70%);
  border: 1px solid rgba(255, 87, 34, 0.25);
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.shop-hero-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.35);
  color: #ff9800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.shop-hero-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
}

.shop-hero-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 26px;
}

.shop-highlights-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  width: fit-content;
}

.shop-hl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.shop-hl-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   2. E-COMMERCE SHOP 2-COLUMN LAYOUT & SIDEBAR STYLES (Shopee Style)
   ========================================================================== */

/* Lock wing banner to right on shop page */
body.shop-page-body .side-wing-banner,
body.shop-page-body #sideWingUnified {
  left: auto !important;
  right: max(16px, calc(50% - 620px - 20px - 270px)) !important;
  border-right: 3px solid rgba(0, 127, 254, 0.75) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 127, 254, 0.14) !important;
}

body.shop-page-body .wing-switch-side-btn {
  display: none !important;
}

.shop-main-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* Mobile Quick Filter Bar (Hidden on desktop) */
.shop-mobile-filter-bar {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-shop-mobile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--magma-orange);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.25);
  transition: all var(--transition-fast);
}

.btn-shop-mobile-toggle:hover {
  background: rgba(255, 87, 34, 0.15);
}

.btn-shop-mobile-toggle svg {
  color: var(--magma-orange);
}

.shop-mobile-quick-search {
  flex: 1;
}

.shop-mobile-quick-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.shop-mobile-quick-search input:focus {
  border-color: var(--magma-orange);
}

/* 2-Column E-Commerce Wrapper */
.shop-ecommerce-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 48px;
}

/* Left Sidebar (Standard / Medium Desktop) */
.shop-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

/* Wide Screen Desktop Docking (>= 1540px) - Left Wing Skyscraper */
@media (min-width: 1540px) {
  body.shop-page-body .shop-ecommerce-layout {
    display: block;
  }

  body.shop-page-body .shop-main-content {
    width: 100%;
  }

  body.shop-page-body .shop-products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
  }
}

/* For screens between 1540px and 1799px: scale container to fit both outer wings */
@media (min-width: 1540px) and (max-width: 1799px) {
  body.shop-page-body .shop-main-container {
    max-width: calc(100vw - 580px) !important;
    margin: 0 auto !important;
  }

  body.shop-page-body .shop-sidebar {
    position: fixed !important;
    top: 165px;
    left: 20px !important;
    right: auto !important;
    width: 250px !important;
    z-index: 85;
    background: rgba(14, 16, 23, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(255, 87, 34, 0.75);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 87, 34, 0.14);
    padding: 16px 14px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: top 0.2s ease;
  }

  body.shop-page-body .side-wing-banner,
  body.shop-page-body #sideWingUnified {
    display: flex !important;
    width: 250px !important;
    right: 20px !important;
    left: auto !important;
  }
}

/* For screens >= 1800px (e.g. 1920x945): Symmetrical 260px wings anchored relative to centered 1240px container */
@media (min-width: 1800px) {
  body.shop-page-body .shop-main-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
  }

  body.shop-page-body .shop-sidebar {
    position: fixed !important;
    top: 165px;
    left: calc(50% - 620px - 20px - 260px) !important;
    right: auto !important;
    width: 260px !important;
    z-index: 85;
    background: rgba(14, 16, 23, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(255, 87, 34, 0.75);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 87, 34, 0.14);
    padding: 18px 14px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: top 0.2s ease;
  }

  body.shop-page-body .side-wing-banner,
  body.shop-page-body #sideWingUnified {
    display: flex !important;
    width: 260px !important;
    right: calc(50% - 620px - 20px - 260px) !important;
    left: auto !important;
  }
}

.shop-sidebar::-webkit-scrollbar {
  width: 4px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.shop-sidebar-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}

.btn-close-sidebar {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.btn-close-sidebar:hover {
  color: #fff;
}

/* Filter Box */
.shop-filter-box {
  display: flex;
  flex-direction: column;
}

.shop-filter-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.shop-filter-heading .heading-icon {
  color: var(--magma-orange);
}

.shop-filter-heading h3 {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #f1f5f9;
}

/* Category Menu */
.shop-cat-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-cat-btn .cat-bullet {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.shop-cat-btn .cat-label {
  flex: 1;
}

.shop-cat-btn .cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.shop-cat-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.shop-cat-btn:hover .cat-bullet {
  color: var(--magma-orange);
  transform: translateX(2px);
}

.shop-cat-btn.active {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15) 0%, rgba(255, 46, 99, 0.1) 100%);
  color: #fff;
  border-left: 3px solid var(--magma-orange);
  font-weight: 700;
}

.shop-cat-btn.active .cat-bullet {
  color: var(--magma-orange);
  transform: translateX(2px);
}

.shop-cat-btn.active .cat-count {
  background: rgba(255, 87, 34, 0.25);
  color: #ff9800;
  font-weight: 700;
}

/* Dividers */
.shop-sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

.shop-sidebar-divider.subtle {
  background: rgba(255, 255, 255, 0.05);
  margin: 16px 0;
}

.shop-filter-subgroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subgroup-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Brand Filter */
.shop-brand-search-wrap {
  margin-bottom: 6px;
}

.shop-brand-search-wrap input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #fff;
  outline: none;
}

.shop-brand-search-wrap input:focus {
  border-color: var(--magma-orange);
}

.shop-brand-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.shop-brand-list::-webkit-scrollbar {
  width: 3px;
}

.shop-brand-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.shop-brand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
  user-select: none;
}

.shop-brand-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.shop-brand-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.shop-brand-checkbox:checked {
  background: var(--magma-orange);
  border-color: var(--magma-orange);
}

.shop-brand-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.brand-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Price Presets & Inputs */
.shop-price-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.price-preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.price-preset-chip:hover {
  border-color: rgba(255, 87, 34, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.price-preset-chip.active {
  background: rgba(255, 87, 34, 0.15);
  border-color: var(--magma-orange);
  color: #ff9800;
  font-weight: 700;
  box-shadow: 0 0 10px var(--magma-glow);
}

.shop-price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.price-input-field {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 8px;
  transition: border-color 0.2s ease;
}

.price-input-field:focus-within {
  border-color: var(--magma-orange);
}

.currency-symbol {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

.price-input-field input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
}

.price-range-dash {
  color: var(--text-muted);
  font-size: 12px;
}

.btn-apply-price {
  width: 100%;
  background: linear-gradient(135deg, #ff5722 0%, #ee4d2d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(238, 77, 45, 0.35);
  transition: all 0.15s ease;
}

.btn-apply-price:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.5);
}

.btn-apply-price:active {
  transform: translateY(1px); /* Rule 88 mechanical depress */
}

/* Clear All Button */
.btn-shop-clear-all {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-shop-clear-all:hover {
  background: rgba(255, 59, 48, 0.15);
  border-color: #ff3b30;
  color: #ff3b30;
}

/* Right Main Content */
.shop-main-content {
  flex: 1;
  min-width: 0;
}

/* Top Sort Bar (Shopee Style) */
.shop-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 20px;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
}

.shop-sort-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.shop-sort-label {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.shop-sort-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-sort-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-sort-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 87, 34, 0.4);
}

.shop-sort-btn.active {
  background: linear-gradient(135deg, #ff5722 0%, #ee4d2d 100%);
  color: #fff;
  border-color: var(--magma-orange);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.35);
}

.shop-sort-btn:active {
  transform: translateY(1.2px); /* Rule 88 tactile */
}

.shop-sort-select-wrap {
  position: relative;
}

.shop-sort-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.shop-sort-select:focus,
.shop-sort-select.active {
  border-color: var(--magma-orange);
  color: #ff9800;
}

.shop-sort-select option {
  background: #0e1017;
  color: #fff;
}

.shop-sort-count-badge {
  font-size: 13px;
  color: var(--text-muted);
}

.shop-sort-count-badge span {
  color: #ff9800;
  font-weight: 700;
}

/* Active Chips Bar */
.shop-active-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.active-filter-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.active-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.35);
  color: #ff9800;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.btn-remove-chip {
  background: transparent;
  border: none;
  color: #ff9800;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  line-height: 1;
}

.btn-remove-chip:hover {
  color: #ff3b30;
}

/* 3. Products Grid Layout */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

/* 4. Product Card Component */
.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  position: relative;
}

.shop-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 87, 34, 0.2);
}

.shop-card-thumb-wrap {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.shop-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shop-card:hover .shop-card-thumb {
  transform: scale(1.05);
}

.shop-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.shop-card-badge.badge-orange {
  background: linear-gradient(135deg, #ff5722 0%, #ee4d2d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-card-badge.badge-blue {
  background: linear-gradient(135deg, #007FFE 0%, #0056b3 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-card-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(14, 16, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.shop-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
}

.shop-card-review {
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid #ff5722;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.5;
  display: flex;
  gap: 6px;
}

.shop-card-review .quote-icon {
  font-size: 16px;
  color: #ff784e;
  line-height: 1;
  font-style: normal;
  font-family: Georgia, serif;
}

.shop-card-meta-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-price-box {
  display: flex;
  flex-direction: column;
}

.shop-price-current {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: #ff784e;
}

.shop-price-old {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #64748b;
  text-decoration: line-through;
}

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

/* 3D Shopee Buy Button (Rule 88) */
.btn-shop-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff5722 0%, #ee4d2d 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 10px rgba(238, 77, 45, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-shop-buy:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 5px 14px rgba(238, 77, 45, 0.5);
  background: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
}

.btn-shop-buy:active {
  transform: translateY(1.2px); /* Rule 88 mechanical depress */
  box-shadow: 0 1px 4px rgba(238, 77, 45, 0.3);
}

.btn-shop-share {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-shop-share:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-shop-share:active {
  transform: translateY(1px);
}

/* 5. Empty State & Loading */
.shop-loading-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.shop-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 87, 34, 0.2);
  border-top-color: var(--magma-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.shop-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 40px;
}

.shop-empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.shop-empty-state h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.shop-empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto 20px;
}

.btn-shop-reset {
  background: linear-gradient(135deg, #007FFE 0%, #0056b3 100%);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 127, 254, 0.35);
  transition: all var(--transition-fast);
}

.btn-shop-reset:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(0, 127, 254, 0.45);
}

/* 5.1 Pagination & Load More Controls */
.shop-pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 36px 0 54px;
  padding: 24px;
  background: rgba(14, 17, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  text-align: center;
}

.btn-shop-load-more {
  background: linear-gradient(135deg, #ff5722 0%, #ee4d2d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.4), 0 1.2px 0 rgba(255, 255, 255, 0.3) inset;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-shop-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(255, 87, 34, 0.55), 0 0 16px rgba(255, 87, 34, 0.35);
  border-color: #fff;
}

.btn-shop-load-more:active {
  transform: translateY(1.2px);
  box-shadow: 0 2px 6px rgba(255, 87, 34, 0.4);
}

.btn-shop-load-all {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-shop-load-all:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1.5px);
}

.btn-shop-load-all:active {
  transform: translateY(1px);
}

.shop-page-progress {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* 6. Affiliate Notice Card */
.shop-affiliate-notice {
  background: rgba(255, 87, 34, 0.04);
  border: 1px solid rgba(255, 87, 34, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 20px;
}

.shop-affiliate-notice .notice-icon {
  font-size: 26px;
  line-height: 1;
}

.shop-affiliate-notice .notice-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ff9800;
  margin-bottom: 8px;
}

.shop-affiliate-notice .notice-content p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 7. Shop Toast Notification */
.shop-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(14, 16, 23, 0.95);
  color: #fff;
  border: 1px solid var(--magma-orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 87, 34, 0.3);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Rules for Shop */
@media (max-width: 991px) {
  .shop-mobile-filter-bar {
    display: flex;
  }
  .shop-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1998;
  }
  .shop-sidebar-backdrop.active {
    display: block;
  }
  .shop-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 290px;
    z-index: 1999;
    max-height: 100vh;
    border-radius: 0;
    border-right: 1px solid rgba(255, 87, 34, 0.35);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .shop-sidebar.active {
    transform: translateX(0);
  }
  .shop-sidebar-mobile-header {
    display: flex;
  }
  .shop-hero-card {
    padding: 30px 24px;
  }
  .shop-hero-title {
    font-size: 30px;
  }
  .shop-sort-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .shop-sort-left {
    width: 100%;
    justify-content: space-between;
  }
  .shop-sort-right {
    width: 100%;
    text-align: right;
  }
  .shop-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .shop-hero-card {
    padding: 24px 18px;
  }
  .shop-hero-title {
    font-size: 26px;
  }
  .shop-highlights-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }
  .shop-hl-divider {
    display: none;
  }
  .shop-sort-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .shop-sort-options {
    width: 100%;
  }
  .shop-sort-btn {
    flex: 1;
    text-align: center;
    padding: 7px 8px;
    font-size: 12px;
  }
  .shop-sort-select-wrap {
    width: 100%;
  }
  .shop-sort-select {
    width: 100%;
  }
  .shop-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION SYSTEM (APP BOTTOM BAR & SLIDE-IN DRAWER)
   Rule 88 Tactile 3D & Color-Blind Safe (Electric Blue #007FFE / Magma #ff5722)
   ========================================================================== */

/* 1. Desktop Defaults (Hidden on > 900px) */
.mobile-bottom-nav,
.mobile-header-actions,
.mobile-drawer,
.mobile-drawer-backdrop {
  display: none;
}

/* 2. Mobile Responsive Rules (<= 900px) */
@media (max-width: 900px) {
  /* Body Padding to prevent content from being covered by bottom bar */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Hide Desktop Nav Links on Tablet & Mobile */
  .nav-links {
    display: none !important;
  }

  /* Show Mobile Header Actions (Search & Hamburger) */
  .mobile-header-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .btn-mobile-search,
  .btn-mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary, #e2e8f0);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.1) inset, 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .btn-mobile-search:hover,
  .btn-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 87, 34, 0.4);
    transform: translateY(-1px);
  }

  .btn-mobile-search:active,
  .btn-mobile-menu:active {
    transform: translateY(1px);
    box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.05) inset;
  }

  .btn-mobile-menu svg {
    stroke: #fff;
  }

  /* ==========================================================================
     MOBILE BOTTOM NAVIGATION BAR (Sticky at Bottom)
     ========================================================================== */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 13, 20, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 87, 34, 0.28);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.75), 0 -1px 0 rgba(255, 255, 255, 0.06) inset;
    z-index: 9999;
    align-items: stretch;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-icon {
    font-size: 19px;
    line-height: 1;
    transition: transform 0.15s ease;
  }

  .mobile-nav-text {
    font-size: 10.5px;
    letter-spacing: -0.2px;
    white-space: nowrap;
  }

  .mobile-nav-item:active {
    transform: scale(0.92);
  }

  /* Active Tab: Electric Blue #007FFE (Rule #4 Color-Blind Safe) with Magma Indicator */
  .mobile-nav-item.active {
    color: #007FFE;
    font-weight: 700;
  }

  .mobile-nav-item.active .mobile-nav-icon {
    transform: translateY(-2px);
  }

  .mobile-nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #ff5722, #007FFE);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 10px rgba(0, 127, 254, 0.7);
  }

  /* Pulsing Dot for Live Calendar */
  .mobile-nav-dot {
    position: absolute;
    top: 7px;
    right: calc(50% - 16px);
    width: 6px;
    height: 6px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff3b30;
    animation: pulse-dot 1.5s infinite;
  }

  /* ==========================================================================
     MOBILE DRAWER MENU (Slide-in from Right)
     ========================================================================== */
  .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

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

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    background: #0e111a;
    border-left: 1px solid rgba(255, 87, 34, 0.35);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }

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

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

  .drawer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }

  .drawer-brand .logo-icon {
    font-size: 20px;
  }

  .drawer-brand .logo-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
  }

  .drawer-brand .logo-badge {
    font-size: 9px;
    padding: 2px 5px;
    background: rgba(255, 87, 34, 0.15);
    color: #ff5722;
    border-radius: 4px;
    font-weight: 700;
  }

  .btn-drawer-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s ease;
  }

  .btn-drawer-close:hover {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    border-color: rgba(255, 59, 48, 0.3);
  }

  .drawer-search-wrap {
    margin-bottom: 18px;
  }

  .drawer-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 12px;
    height: 40px;
    gap: 8px;
    transition: border-color 0.2s;
  }

  .drawer-search-form:focus-within {
    border-color: #ff5722;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.25);
  }

  .drawer-search-form .search-icon {
    color: #64748b;
    flex-shrink: 0;
  }

  .drawer-search-form input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 100%;
    font-family: inherit;
  }

  .drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .drawer-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 14px;
    gap: 12px;
    transition: all 0.15s ease;
    box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.06) inset;
  }

  .drawer-nav-icon {
    font-size: 18px;
    flex-shrink: 0;
  }

  .drawer-nav-label {
    flex: 1;
  }

  .drawer-nav-arrow {
    color: #64748b;
    font-size: 16px;
    font-weight: 700;
  }

  .drawer-nav-item:hover,
  .drawer-nav-item.active {
    background: rgba(0, 127, 254, 0.12);
    border-color: rgba(0, 127, 254, 0.4);
    color: #fff;
    transform: translateX(3px);
  }

  .drawer-nav-item.active {
    color: #007FFE;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(0, 127, 254, 0.25);
  }

  .drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0 20px;
  }

  .drawer-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
  }

  .btn-drawer-studio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(255, 87, 34, 0.05));
    border: 1px solid rgba(255, 87, 34, 0.5);
    border-radius: 10px;
    color: #ff5722;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.12) inset;
    transition: all 0.15s ease;
  }

  .btn-drawer-studio:hover {
    background: #ff5722;
    color: #fff;
  }

  .btn-drawer-tele {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #007FFE, #005ecc);
    border: none;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 1.2px 0 rgba(255, 255, 255, 0.25) inset, 0 4px 12px rgba(0, 127, 254, 0.35);
    transition: all 0.15s ease;
  }

  .drawer-footer {
    padding-top: 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 20px;
  }

  .drawer-domain {
    font-size: 12px;
    color: #ff5722;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .drawer-copyright {
    font-size: 11px;
    color: #64748b;
  }
}

/* 3. Mobile Fine-Tuning (<= 640px) */
@media (max-width: 640px) {
  /* Ticker Banner Fix */
  .market-ticker-wrap {
    height: 32px;
    font-size: 11.5px;
  }
  .ticker-label {
    padding: 0 10px;
    font-size: 10px;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    background: #090d16;
  }
  .ticker-track {
    gap: 20px;
    padding-left: 10px;
  }

  /* Header Padding */
  .site-header {
    padding: 10px 0;
  }
  .header-container {
    padding: 0 14px;
  }
  .brand-logo .logo-icon {
    font-size: 20px;
  }
  .brand-logo .logo-title {
    font-size: 18px;
  }

  /* Hero & Headings responsive clamp */
  .hero-title,
  .shop-hero-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.4px;
  }
  .hero-tagline,
  .shop-hero-tagline,
  .hero-subtitle {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }

  /* Hero stats on index.html */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .stat-card {
    padding: 10px 6px !important;
    text-align: center;
  }
  .stat-num {
    font-size: 17px !important;
  }
  .stat-label {
    font-size: 10.5px !important;
  }
}

/* ==========================================================================
   ACADEMY SYMMETRICAL DUAL-WING ARCHITECTURE & LEFT SIDEBAR (v2.4.0)
   ========================================================================== */

/* Academy Layout Wrapper */
.academy-layout-wrap {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  display: flex;
  gap: 24px;
  padding-top: 18px;
}

.academy-main-container {
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Standard / Medium Desktop Left Sidebar */
.academy-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
}

.academy-sidebar::-webkit-scrollbar {
  width: 4px;
}
.academy-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Wide Screen Desktop Docking (>= 1540px and < 1800px) */
@media (min-width: 1540px) and (max-width: 1799px) {
  body.academy-page-body .academy-layout-wrap {
    display: block;
    padding-top: 18px;
  }

  body.academy-page-body .academy-main-container {
    max-width: calc(100vw - 580px) !important;
    margin: 0 auto !important;
  }

  body.academy-page-body .academy-sidebar {
    position: fixed !important;
    top: 165px;
    left: 20px !important;
    right: auto !important;
    width: 250px !important;
    z-index: 85;
    background: rgba(14, 16, 23, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #007FFE;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 127, 254, 0.16);
    padding: 16px 14px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: top 0.2s ease;
  }

  body.academy-page-body .side-wing-banner,
  body.academy-page-body #sideWingUnified {
    display: flex !important;
    width: 250px !important;
    right: 20px !important;
    left: auto !important;
  }
}

/* Wide Screen Desktop Symmetrical Docking (>= 1800px e.g. 1920x945) */
@media (min-width: 1800px) {
  body.academy-page-body .academy-layout-wrap {
    display: block;
    padding-top: 18px;
  }

  body.academy-page-body .academy-main-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
  }

  body.academy-page-body .academy-sidebar {
    position: fixed !important;
    top: 165px;
    left: calc(50% - 620px - 20px - 260px) !important;
    right: auto !important;
    width: 260px !important;
    z-index: 85;
    background: rgba(14, 16, 23, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #007FFE;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 127, 254, 0.16);
    padding: 18px 16px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: top 0.2s ease;
  }

  body.academy-page-body .side-wing-banner,
  body.academy-page-body #sideWingUnified {
    display: flex !important;
    width: 260px !important;
    right: calc(50% - 620px - 20px - 260px) !important;
    left: auto !important;
  }
}

/* Academy Sidebar Components */
.academy-sidebar-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.academy-sidebar-mobile-header .mobile-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.5px;
}

.academy-filter-box {
  display: flex;
  flex-direction: column;
}

.academy-filter-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.academy-filter-heading .heading-icon {
  color: #007FFE;
}

.academy-filter-heading h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #f1f5f9;
  margin: 0;
}

.academy-sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  margin: 14px 0;
}

/* Category & School Menu */
.academy-cat-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.academy-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.academy-cat-btn .cat-bullet {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.academy-cat-btn .cat-label {
  flex: 1;
}

.academy-cat-btn .cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.academy-cat-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.academy-cat-btn:hover .cat-bullet {
  color: #007FFE;
  transform: translateX(2px);
}

.academy-cat-btn.active {
  background: linear-gradient(135deg, rgba(0, 127, 254, 0.18) 0%, rgba(0, 86, 179, 0.1) 100%);
  color: #fff;
  border-left: 3px solid #007FFE;
  font-weight: 700;
}

.academy-cat-btn.active .cat-bullet {
  color: #007FFE;
  transform: translateX(2px);
}

.academy-cat-btn.active .cat-count {
  background: rgba(0, 127, 254, 0.3);
  color: #38bdf8;
  font-weight: 700;
}

/* Level Chips */
.academy-level-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btn-level-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-level-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateY(-1px);
}

.btn-level-chip:active {
  transform: translateY(1px); /* Rule 88 mechanical depress */
}

.btn-level-chip.active {
  background: rgba(0, 127, 254, 0.18);
  border-color: #007FFE;
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 127, 254, 0.25);
}

/* Sidebar Search Input */
.academy-sidebar-search-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 8px;
  transition: border-color 0.2s;
}

.academy-sidebar-search-box:focus-within {
  border-color: #007FFE;
}

.academy-sidebar-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.academy-sidebar-search-box input::placeholder {
  color: #64748b;
  font-size: 11.5px;
}

.btn-clear-academy-search {
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  display: none;
  line-height: 1;
}

.btn-clear-academy-search.show {
  display: block;
}

.btn-clear-academy-search:hover {
  color: #fff;
}

/* Reset All Filters Button */
.btn-reset-academy-filters {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 46, 99, 0.08);
  border: 1px solid rgba(255, 46, 99, 0.25);
  color: #fb7185;
  padding: 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-reset-academy-filters:hover {
  background: rgba(255, 46, 99, 0.18);
  border-color: #ff2e63;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 46, 99, 0.3);
}

.btn-reset-academy-filters:active {
  transform: translateY(1.2px); /* Rule 88 mechanical depress */
}

/* Top Sort Bar & All-in-One Compact Bar (Phương Án B) */
.academy-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 17, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.academy-all-in-one-bar {
  background: linear-gradient(135deg, rgba(14, 17, 26, 0.95), rgba(22, 27, 38, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #007FFE;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  margin-bottom: 14px;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.academy-bar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.academy-bar-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 127, 254, 0.12);
  border: 1px solid rgba(0, 127, 254, 0.35);
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 127, 254, 0.2);
}

.academy-bar-icon {
  font-size: 15px;
  line-height: 1;
}

.academy-bar-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.academy-bar-tagline {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 12px;
  display: inline-block;
  white-space: nowrap;
}

.academy-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.academy-compact-heading {
  margin: 4px 0 14px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.academy-compact-heading .section-title {
  font-size: 16.5px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #cbd5e1;
}

.academy-compact-heading .section-subtitle {
  display: none !important;
}

.academy-sort-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.academy-sort-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #94a3b8;
  text-transform: uppercase;
}

.academy-sort-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-sort-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sort-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.btn-sort-item:active {
  transform: translateY(1px);
}

.btn-sort-item.active {
  background: rgba(0, 127, 254, 0.18);
  border-color: #007FFE;
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 127, 254, 0.25);
}

.academy-results-count {
  font-size: 12px;
  color: var(--text-muted);
}

.academy-results-count strong {
  color: #007FFE;
  font-family: var(--font-mono);
}

/* Active Chips Bar */
.academy-active-chips-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.active-chips-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.active-chips-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.academy-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 127, 254, 0.15);
  border: 1px solid rgba(0, 127, 254, 0.35);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
}

.academy-active-chip .btn-chip-remove {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.academy-active-chip .btn-chip-remove:hover {
  color: #fff;
}

.btn-clear-all-chips {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 4px;
}

.btn-clear-all-chips:hover {
  color: #fff;
}

/* Mobile Filter Bar & Drawer Responsive (< 992px) */
.academy-mobile-filter-bar {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-academy-mobile-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 127, 254, 0.18) 0%, rgba(255, 87, 34, 0.12) 100%);
  border: 1px solid #007FFE;
  color: #38bdf8;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0, 127, 254, 0.25);
  transition: all 0.15s ease;
}

.btn-academy-mobile-toggle:hover {
  background: rgba(0, 127, 254, 0.25);
}

.academy-mobile-quick-search {
  flex: 1;
  max-width: 200px;
}

.academy-mobile-quick-search input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
}

.academy-mobile-quick-search input:focus {
  border-color: #007FFE;
}

@media (max-width: 991px) {
  .academy-mobile-filter-bar {
    display: flex;
  }

  .academy-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1998;
  }

  .academy-sidebar-backdrop.active {
    display: block;
  }

  .academy-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 290px;
    z-index: 1999;
    max-height: 100vh;
    border-radius: 0;
    border-right: 2px solid #007FFE;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .academy-sidebar.active {
    transform: translateX(0);
  }

  .academy-sidebar-mobile-header {
    display: flex;
  }

  .academy-sort-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .academy-all-in-one-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 10px 12px;
  }

  .academy-bar-brand {
    justify-content: space-between;
    width: 100%;
  }

  .academy-bar-tagline {
    display: none;
  }

  .academy-bar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .academy-sort-left {
    width: 100%;
    justify-content: space-between;
  }

  .academy-results-count {
    width: 100%;
    text-align: right;
  }
}

/* ==========================================================================
   THUMBNAIL MANAGER COMPONENT (Tradimeow Studio Dark Magma Architecture)
   ========================================================================== */
.skool-thumbnail-manager-card {
  background: #0b0e17;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg, 12px);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease;
}

.skool-thumbnail-manager-card:hover {
  border-color: rgba(255, 87, 34, 0.3);
}

.thumb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.thumb-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thumb-label-icon {
  font-size: 22px;
  line-height: 1;
}

.thumb-label-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.thumb-label-sub {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

.thumb-actions-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-thumb-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1.2px 2px rgba(0, 0, 0, 0.3);
}

.btn-thumb-tool:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-thumb-tool:active {
  transform: translateY(1px);
}

.btn-thumb-preset {
  background: rgba(255, 87, 34, 0.1);
  border-color: rgba(255, 87, 34, 0.35);
  color: #ff7043;
}

.btn-thumb-preset:hover {
  background: rgba(255, 87, 34, 0.2);
  border-color: #ff5722;
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.25);
}

.btn-thumb-upload {
  background: rgba(0, 127, 254, 0.1);
  border-color: rgba(0, 127, 254, 0.35);
  color: #60a5fa;
}

.btn-thumb-upload:hover {
  background: rgba(0, 127, 254, 0.2);
  border-color: #007FFE;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 127, 254, 0.25);
}

.btn-thumb-clear {
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.3);
  color: #ff6b6b;
}

.btn-thumb-clear:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: #FF3B30;
  color: #fff;
}

/* Preview Box */
.thumb-preview-box {
  width: 100%;
  height: 200px;
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #06080e;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.thumb-empty-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #64748b;
}

.thumb-empty-placeholder .empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.thumb-empty-placeholder .empty-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
}

.thumb-empty-placeholder .empty-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
}

.thumb-active-display {
  width: 100%;
  height: 100%;
  position: relative;
}

.thumb-active-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-overlay-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(4px);
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.5px;
}

/* Direct URL row */
.thumb-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

.thumb-url-icon {
  font-size: 14px;
  opacity: 0.7;
}

.thumb-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-size: 12.5px;
  font-family: inherit;
}

.thumb-url-input::placeholder {
  color: #64748b;
}

/* Preset Modal */
.preset-thumb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preset-thumb-modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  background: #0d111a;
  border: 1px solid rgba(255, 87, 34, 0.28);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 87, 34, 0.08);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-icon {
  font-size: 26px;
}

.modal-title-text {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.modal-title-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.btn-close-thumb-modal {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-close-thumb-modal:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.preset-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.preset-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.preset-thumb-card {
  background: #121622;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.preset-thumb-card:hover {
  transform: translateY(-3px);
  border-color: #007FFE;
  box-shadow: 0 8px 22px rgba(0, 127, 254, 0.35);
}

.preset-thumb-img-wrap {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
  background: #06080e;
}

.preset-thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.preset-thumb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(4px);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preset-thumb-title {
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



