:root {
  --bg-main: #0B0F19;
  --bg-card: #111827;
  --bg-card-hover: #172236;
  --bg-input: #1E293B;
  --border-color: #1F293D;
  --border-light: #2D3B55;

  --primary: #10B981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);

  --cyan: #06B6D4;
  --amber: #F59E0B;
  --blue: #3B82F6;
  --red: #EF4444;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   MINECRAFT PIXEL FONTS & RETRO STYLES
   ========================================================================== */

@font-face {
  font-family: 'Minecraftia';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Minecraftia.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/31977/Minecraftia.woff') format('woff');
}

@font-face {
  font-family: 'MinecraftTen';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/MinecraftTen.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/36662/MinecraftTen-VGORe.woff') format('woff');
}

/* ==========================================================================
   REALISTIC 3D MOROCCAN WALL LIGHT SWITCH ("NGASA LI TANCH3LO DOW")
   ========================================================================== */

.wall-switch-unit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 5px 10px 5px 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wall-switch-unit:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .wall-switch-unit {
  background: rgba(255, 255, 255, 0.9);
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 1. Wall Plate (Plaque Murale d'Interrupteur) */
.wall-plate {
  position: relative;
  width: 36px;
  height: 54px;
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3px 2px;
}

[data-theme="light"] .wall-plate {
  background: linear-gradient(145deg, #F8FAFC 0%, #E2E8F0 100%);
  border-color: #94A3B8;
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px #FFFFFF,
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

/* Metallic screw rivets */
.wall-plate-screw {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #64748B;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8), 0 0.5px 0.5px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screw-slot {
  width: 3px;
  height: 1px;
  background: #0F172A;
  transform: rotate(40deg);
}

/* 2. Recessed Rocker Housing Chamber */
.wall-rocker-housing {
  position: relative;
  width: 26px;
  height: 38px;
  background: #070B13;
  border-radius: 4px;
  box-shadow: 
    inset 0 3px 5px rgba(0, 0, 0, 0.9),
    inset 0 -1px 1px rgba(255, 255, 255, 0.1);
  padding: 2px;
  perspective: 250px;
  overflow: hidden;
}

[data-theme="light"] .wall-rocker-housing {
  background: #CBD5E1;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* 3. The 3D Mechanical Rocker Button ("L-Ngasa" - Bascule) */
.wall-rocker-btn {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  /* Default OFF: Top sunken, bottom protruding */
  transform: rotateX(15deg);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.wall-rocker-btn:active {
  transform: scale(0.94) rotateX(0deg);
}

/* Top & Bottom Rocker Paddles */
.rocker-paddle {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  user-select: none;
  transition: all 0.2s ease;
}

.paddle-top {
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #1E293B 0%, #334155 100%);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6);
  opacity: 0.75;
}

.paddle-bottom {
  border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  opacity: 1;
  position: relative;
}

[data-theme="light"] .paddle-top {
  background: linear-gradient(180deg, #CBD5E1 0%, #E2E8F0 100%);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .paddle-bottom {
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15), inset 0 1px 1px #FFFFFF;
}

/* Pivot seam line in middle of rocker */
.rocker-pivot-seam {
  width: 100%;
  height: 1px;
  background: #0B0F19;
  box-shadow: 0 0.5px 0.5px rgba(255, 255, 255, 0.1);
}

/* Embossed Symbols on Rocker */
.rocker-symbol {
  font-size: 8px;
  font-weight: 900;
  font-family: monospace;
  color: #94A3B8;
  line-height: 1;
}

.rocker-label {
  font-size: 7px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.3px;
  line-height: 1;
}

/* Pilot Neon LED indicator on bottom paddle */
.rocker-led-indicator {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1E293B;
  border: 1px solid rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   TURN ON STATE: FLIP ROCKER ("CH3AL DOW" 💡)
   ========================================================================== */
html[data-font="minecraft"] .wall-rocker-btn,
.wall-rocker-btn.is-minecraft {
  /* Flipped ON: Top protruding, bottom sunken */
  transform: rotateX(-15deg) !important;
}

html[data-font="minecraft"] .paddle-top,
.wall-rocker-btn.is-minecraft .paddle-top {
  opacity: 1;
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

html[data-font="minecraft"] .paddle-bottom,
.wall-rocker-btn.is-minecraft .paddle-bottom {
  opacity: 0.75;
  background: linear-gradient(180deg, #1E293B 0%, #064E3B 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Glowing Neon LED when switched ON */
html[data-font="minecraft"] .rocker-led-indicator,
.wall-rocker-btn.is-minecraft .rocker-led-indicator {
  background: #10B981 !important;
  border-color: #34D399 !important;
  box-shadow: 0 0 6px #10B981, 0 0 12px rgba(16, 185, 129, 0.9) !important;
}

html[data-font="minecraft"] .paddle-bottom .rocker-symbol,
.wall-rocker-btn.is-minecraft .paddle-bottom .rocker-symbol,
html[data-font="minecraft"] .paddle-bottom .rocker-label,
.wall-rocker-btn.is-minecraft .paddle-bottom .rocker-label {
  color: #34D399;
  text-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

/* Wall Switch Side Caption */
.wall-switch-caption {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  user-select: none;
}

.caption-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.caption-state {
  font-size: 11px;
  font-weight: 900;
  color: #94A3B8;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

html[data-font="minecraft"] .caption-state {
  color: #10B981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* When Minecraft Font is Enabled */
html[data-font="minecraft"],
body[data-font="minecraft"] {
  font-family: 'Minecraftia', -apple-system, BlinkMacSystemFont, monospace !important;
}

html[data-font="minecraft"] h1,
html[data-font="minecraft"] h2,
html[data-font="minecraft"] h3,
html[data-font="minecraft"] .brand-text h2,
html[data-font="minecraft"] .section-header h2,
html[data-font="minecraft"] .seo-header h1,
html[data-font="minecraft"] .modal-header-info h2 {
  font-family: 'MinecraftTen', 'Minecraftia', monospace !important;
  letter-spacing: 0.8px;
}

html[data-font="minecraft"] .card-title,
html[data-font="minecraft"] .card-author,
html[data-font="minecraft"] .cat-tab,
html[data-font="minecraft"] .btn-install,
html[data-font="minecraft"] .btn-direct-dl,
html[data-font="minecraft"] .btn-admin-pill,
html[data-font="minecraft"] .bedrock-badge,
html[data-font="minecraft"] .font-settings-label,
html[data-font="minecraft"] .stat-box-val,
html[data-font="minecraft"] .stat-box-label {
  font-family: 'Minecraftia', monospace !important;
}

[data-theme="light"] {
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-input: #FFFFFF;
  --border-color: #E2E8F0;
  --border-light: #CBD5E1;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;

  --primary-glow: rgba(16, 185, 129, 0.15);
}

/* Light Theme Overrides for Site */
[data-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .brand-text h2 {
  color: #0F172A;
}

[data-theme="light"] .auth-modal-window,
[data-theme="light"] .profile-modal-window,
[data-theme="light"] .vip-modal-window {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .auth-modal-header,
[data-theme="light"] .profile-modal-header {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%) !important;
  border-bottom-color: #E2E8F0 !important;
}

[data-theme="light"] .auth-modal-title,
[data-theme="light"] .profile-username {
  color: #0F172A !important;
}

[data-theme="light"] .auth-modal-subtitle,
[data-theme="light"] .profile-email {
  color: #64748B !important;
}

[data-theme="light"] .auth-tabs-nav {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

[data-theme="light"] .auth-tab-btn {
  color: #64748B;
}

[data-theme="light"] .auth-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .auth-form .form-label {
  color: #334155;
}

[data-theme="light"] .auth-form .form-control {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] .profile-info-card {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .profile-info-row .info-val {
  color: #0F172A !important;
}

[data-theme="light"] .vip-modal-hero {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
}

[data-theme="light"] .vip-modal-title {
  color: #0F172A;
}

[data-theme="light"] .vip-modal-subtitle {
  color: #475569;
}

[data-theme="light"] .vip-addon-preview-strip {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .vip-addon-preview-title {
  color: #0F172A;
}

[data-theme="light"] .vip-perk-item {
  color: #334155;
}

/* Detail Modal Light Mode Overrides */
[data-theme="light"] .modal-container {
  background-color: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 25px rgba(16, 185, 129, 0.1) !important;
}

[data-theme="light"] .modal-header-info h2 {
  color: #0F172A !important;
}

[data-theme="light"] .modal-meta-row .meta-item {
  color: #475569 !important;
}

[data-theme="light"] .modal-hero-gradient {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, #FFFFFF 100%) !important;
}

[data-theme="light"] .install-action-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08)) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

[data-theme="light"] .install-filename {
  color: #0F172A !important;
}

[data-theme="light"] .install-filesize {
  color: #475569 !important;
}

[data-theme="light"] .btn-direct-download {
  background-color: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] .btn-direct-download:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background-color: #F8FAFC !important;
}

[data-theme="light"] .modal-section h3 {
  color: #0F172A !important;
  border-bottom-color: #E2E8F0 !important;
}

[data-theme="light"] .description-body {
  color: #334155 !important;
}

[data-theme="light"] .modal-close {
  background-color: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .modal-close:hover {
  background-color: #EF4444 !important;
  color: #FFFFFF !important;
}

.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-theme-toggle:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .theme-icon-sun {
  display: none !important;
}
[data-theme="light"] .theme-icon-moon {
  display: block !important;
}

:root:not([data-theme="light"]) .theme-icon-sun,
[data-theme="dark"] .theme-icon-sun {
  display: block !important;
}
:root:not([data-theme="light"]) .theme-icon-moon,
[data-theme="dark"] .theme-icon-moon {
  display: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #000;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-text h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #fff;
}

.brand-text h2 span {
  color: var(--primary);
  margin-left: 2px;
}

.bedrock-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
}

.nav-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search i {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}

.nav-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.nav-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
}

.btn-admin-pill:hover {
  background-color: var(--primary);
  color: #000;
  box-shadow: 0 4px 14px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-admin-pill i {
  width: 15px;
  height: 15px;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.announcement-pill {
  background-color: var(--primary);
  color: #000;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.announcement-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Store Layout */
.store-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  flex: 1;
}

/* Hero Carousel */
.hero-carousel-section {
  margin-bottom: 36px;
}

.carousel-wrapper {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

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

.carousel-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.1) 0%, rgba(11, 15, 25, 0.95) 90%);
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  padding: 36px 44px;
  max-width: 680px;
}

.slide-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.slide-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--primary);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
}

.slide-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  right: 28px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  width: 26px;
  background-color: var(--primary);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-arrow:hover {
  background-color: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

/* Categories Bar */
.categories-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.categories-list {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.category-pill i {
  width: 16px;
  height: 16px;
}

.category-pill:hover {
  background-color: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-light);
}

.category-pill.active {
  background-color: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.pill-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.2);
}

.category-pill.active .pill-count {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.catalog-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Addons Grid */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.addon-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.addon-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  background-color: var(--bg-input);
  overflow: hidden;
}

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

.addon-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.card-rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.card-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-input);
}

.card-author span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.card-dl-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-dl-count i {
  width: 14px;
  height: 14px;
}

/* Addon Detail Modal */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-container {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  animation: modal-scale 0.25s ease-out;
}

@keyframes modal-scale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.modal-close svg {
  pointer-events: none;
}

.modal-close:hover {
  background-color: var(--red);
  transform: scale(1.08);
}

.modal-hero {
  position: relative;
  height: 280px;
  width: 100%;
  background-color: var(--bg-input);
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-gradient {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.1) 0%, var(--bg-card) 100%);
}

.modal-hero-badge {
  position: absolute;
  bottom: 20px;
  left: 32px;
  padding: 6px 14px;
  background-color: var(--primary);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-full);
}

.modal-content {
  padding: 0 32px 32px;
}

.modal-header-info h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.meta-item i { width: 15px; height: 15px; }
.meta-item.rating { color: var(--amber); }
.meta-item.downloads { color: var(--primary); }

/* Install Action Card */
.install-action-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.install-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.install-filesize {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.install-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-install-mc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--primary);
  color: #000;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-install-mc:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-direct-download {
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-direct-download:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Modal Sections */
.modal-section {
  margin-bottom: 24px;
}

.modal-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.screenshots-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.screenshots-row img {
  height: 140px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.description-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.description-body p { margin-bottom: 10px; }
.description-body ul { padding-left: 20px; margin-bottom: 10px; }
.description-body li { margin-bottom: 4px; }

/* Maintenance Screen */
.maintenance-screen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--bg-main);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.maintenance-card {
  max-width: 480px;
  text-align: center;
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.maintenance-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.maintenance-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.maintenance-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Footer */
.footer {
  margin-top: auto;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container { flex-wrap: wrap; }
  .nav-search { order: 3; max-width: 100%; width: 100%; }
  .carousel-wrapper { height: 320px; }
  .slide-title { font-size: 22px; }
  .install-action-card { flex-direction: column; align-items: flex-start; }
  .install-card-actions { width: 100%; }
  .btn-install-mc { flex: 1; justify-content: center; }
}

/* =========================================================
   SEO Content Section (Google Rich Content & Guide)
   ========================================================= */
.seo-content-section {
  margin-top: 60px;
  margin-bottom: 40px;
}

.seo-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.seo-header {
  margin-bottom: 36px;
}

.seo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.seo-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.seo-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 900px;
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.seo-feat-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.seo-feat-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.seo-feat-item .feat-icon {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.seo-feat-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.seo-feat-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Guide Block */
.seo-guide-block {
  margin-bottom: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.seo-guide-block h2,
.seo-faq-block h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-guide-block h2 i,
.seo-faq-block h2 i {
  color: var(--cyan);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.step-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.step-num {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #000;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.step-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Block */
.seo-faq-block {
  margin-bottom: 36px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-item summary {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  outline: none;
}

.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Keywords Cloud */
.seo-keywords-block {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.seo-keywords-block h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keywords-cloud a {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.keywords-cloud a:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  transform: translateY(-2px);
}


/* ==========================================================================
   Trending Searches Bar (Quick Search) & Modern Categories
   ========================================================================== */
.trending-search-bar {
  margin-bottom: 22px;
}

.trending-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.trending-title-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.fire-pulse {
  font-size: 15px;
  animation: firePulse 1.8s ease-in-out infinite;
}

@keyframes firePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #F59E0B); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 6px #EF4444); }
}

.trending-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #F59E0B;
}

.trending-tags-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.trending-tags-track::-webkit-scrollbar {
  display: none;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.trend-emoji {
  font-size: 13px;
  line-height: 1;
}

.trend-pill:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--primary);
  transform: translateY(-1px);
}

.trend-pill.active {
  background: var(--primary);
  color: #052e16 !important;
  font-weight: 700;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
  transform: scale(1.03);
}

.trend-pill.active .trend-emoji {
  filter: saturate(1.4);
}

/* Enhanced Category Pill Styling */
.category-pill {
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cat-emoji {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.category-pill:hover .cat-emoji {
  transform: scale(1.2);
}

.category-pill.active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .trending-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
  }
  .trending-tags-track {
    width: 100%;
  }
}


/* ==========================================================================
   VIP Modal & Gold Badge Styles for Website Storefront
   ========================================================================== */
.btn-vip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  color: #F59E0B;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-vip-pill:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border-color: #F59E0B;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.badge-vip-gold {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  z-index: 2;
}

.vip-modal-window {
  max-width: 480px;
  width: 90%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.15);
}

.vip-modal-hero {
  position: relative;
  text-align: center;
  padding: 32px 20px 20px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(24, 24, 27, 0) 100%);
}

.vip-crown-glow {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border: 2px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.vip-crown-icon {
  font-size: 32px;
}

.vip-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 10px 0 6px;
}

.vip-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}

.vip-modal-body {
  padding: 0 24px 24px;
}

.vip-addon-preview-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.vip-preview-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.vip-preview-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}

.vip-perks-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-main);
  font-weight: 600;
}

.vip-perk-icon {
  font-size: 15px;
}

.vip-form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.vip-input-row {
  display: flex;
  gap: 8px;
}

.vip-code-input {
  flex: 1;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text-main);
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.vip-code-input:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.btn-vip-submit {
  padding: 0 18px;
  height: 44px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-vip-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.vip-redeem-msg {
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
}

.vip-redeem-msg.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.vip-redeem-msg.error {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.vip-help-text {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}


/* ==========================================================================
   USER AUTHENTICATION & MEMBERSHIP MODAL STYLES
   ========================================================================== */

.btn-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-auth-pill:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-auth-pill.logged-in {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10B981;
}

.btn-auth-pill.is-vip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25));
  border-color: #F59E0B;
  color: #FDE68A;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Auth Modal Window */
.auth-modal-window,
.profile-modal-window {
  width: 92%;
  max-width: 440px;
  background: #0F172A;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.15);
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-header,
.profile-modal-header {
  position: relative;
  text-align: center;
  padding: 30px 24px 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-icon-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.auth-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 4px;
}

.auth-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Tabs: Sign In / Create Account */
.auth-tabs-nav {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  padding: 6px;
  margin: 16px 24px 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  gap: 6px;
}

.auth-tab-btn {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #1E293B;
  color: #F8FAFC;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.auth-modal-body {
  padding: 24px;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-with-icon .form-control {
  padding-left: 42px;
  width: 100%;
}

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* User Profile Modal Specifics */
.profile-avatar-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.profile-username {
  font-size: 18px;
  font-weight: 800;
  color: #F8FAFC;
}

.profile-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-badge-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.profile-badge-pill.is-vip {
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.profile-info-card {
  background: #1E293B;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.info-label {
  color: var(--text-muted);
}

.info-val {
  font-weight: 700;
  color: #F8FAFC;
}

.profile-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-upgrade-banner {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000000;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-upgrade-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-logout {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}
