/* =====================================================
   TokenLordsRPG — Global CSS Baseline
   Applied to every page via main.tsx import.
   Standard breakpoints (aligned with Chrome DevTools):
     mobile  : <= 768px   (320, 375, 425, 768)
     tablet  : 769–1024px (1024)
     desktop : 1025–1440px (1440)
     wide    : > 1440px  (2560)
   ===================================================== */

/* --- Universal box-sizing ------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --- Root reset ---------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%; /* prevent iOS font zoom on orientation change */
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  /* Prevent horizontal overflow / scrollbar at any viewport width */
  overflow-x: hidden;
  /* Never collapse narrower than the smallest supported device (iPhone SE) */
  min-width: 320px;
}

body {
  height: 100%;
}

/* --- Media elements stay within their container -------------------------- */
img,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

/* --- Bronze coin icon (replaces 🪙 emoji) --------------------------------- */
.brz-coin {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  vertical-align: -0.08em;
  border-radius: 50%;
  margin-right: 0.05em;
  image-rendering: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.brz-coin--sm { width: 0.6em; height: 0.6em; vertical-align: -0.06em; }
.brz-coin--lg { width: 1em; height: 1em; vertical-align: -0.1em; }
.brz-coin--xl { width: 1.4em; height: 1.4em; vertical-align: -0.12em; }

/* --- Form elements inherit font from parent (browser default overrides) -- */
input,
button,
textarea,
select {
  font: inherit;
}

/* --- Remove default tap highlight on mobile ------------------------------ */
* {
  -webkit-tap-highlight-color: transparent;
}

/* --- Page Transition Animations ------------------------------------------ */
.th-content {
  animation: page-enter 0.2s ease-out;
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .th-content { animation: none; }
}

/* --- Electron update notification pulse ---------------------------------- */
@keyframes pulse-update {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 160, 15, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(247, 160, 15, 0); }
}
/* ============================================
   TokenLordsRPG Community Forum — Complete UI
   Premium Reddit-style forum with dark crypto aesthetic
   ============================================ */

/* --- Reset & Page Shell --- */
.fm-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #08090b 0%, #0d0e12 40%, #0a0b0e 100%);
  color: #c8ccd4;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4rem;
  flex: 1;
  min-width: 0;
}

/* --- Top Navigation Bar --- */
.fm-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 17, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
}

.fm-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  height: 54px;
}

.fm-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.fm-topbar-brand .fm-brand-icon {
  font-size: 1.15rem;
}

.fm-topbar-brand .fm-brand-accent {
  color: #F7A00F;
}

.fm-topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1.5rem;
}

.fm-topbar-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: #8b8fa3;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fm-topbar-nav a:hover,
.fm-topbar-nav a.active {
  color: #F7A00F;
  background: rgba(247, 160, 15, 0.08);
}

.fm-topbar-search {
  flex: 1;
  max-width: 340px;
  position: relative;
  margin-left: auto;
}

.fm-topbar-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.5rem 0.75rem 0.5rem 2.2rem;
  color: #c8ccd4;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.fm-topbar-search input::placeholder {
  color: #555;
}

.fm-topbar-search input:focus {
  border-color: rgba(247, 160, 15, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(247, 160, 15, 0.06);
}

.fm-topbar-search .fm-search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 0.85rem;
  pointer-events: none;
}

/* Standalone search bar (above categories for auth users) */
.fm-search-standalone {
  max-width: 100% !important;
  margin-left: 0 !important;
}

.fm-search-standalone input {
  padding-left: 3rem !important;
}

@media (max-width: 1024px) {
  .fm-search-standalone input {
    padding-left: 3.8rem !important;
  }
}

.fm-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* --- Layout Container --- */
.fm-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fm-layout-full {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

.fm-main {
  min-width: 0;
}

/* --- Sidebar --- */
.fm-sidebar {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247,160,15,0.2) transparent;
}

.fm-sidebar-card {
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
}

.fm-sidebar-card-header {
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F7A00F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(247, 160, 15, 0.03);
}

.fm-sidebar-card-body {
  padding: 0.75rem 1rem;
}

/* --- Profile Card --- */
.fm-profile-card {
  border: 1px solid rgba(247, 160, 15, 0.15);
  position: relative;
}
.fm-profile-banner {
  height: 48px;
  background: linear-gradient(135deg, rgba(247,160,15,0.25) 0%, rgba(139,92,246,0.2) 50%, rgba(59,130,246,0.15) 100%);
  position: relative;
}
.fm-profile-body {
  padding: 0 0.9rem 0.9rem;
  margin-top: -24px;
  position: relative;
}
.fm-profile-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 0.5rem;
}
.fm-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(247, 160, 15, 0.5);
  background: #1a1c22;
}
.fm-profile-level-badge {
  display: none;
}
.fm-profile-info {
  margin-bottom: 0.6rem;
}
.fm-profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.fm-profile-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #e5e5e5;
}
.fm-profile-admin {
  font-size: 0.85rem;
}
.fm-profile-lv {
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
}
.fm-profile-inline-vip {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}
.fm-profile-inline-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.fm-profile-badges {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}
.fm-profile-vip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(247, 160, 15, 0.12);
  color: #F7A00F;
  border: 1px solid rgba(247, 160, 15, 0.2);
}
.fm-profile-vip-img {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}
.fm-profile-class {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.18);
  text-transform: capitalize;
}
.fm-profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.55rem;
}
.fm-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}
.fm-profile-stat-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e5e5e5;
  font-variant-numeric: tabular-nums;
}
.fm-profile-stat-lbl {
  font-size: 0.62rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fm-profile-token-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-bottom: -2px;
}

/* --- Login card --- */
.fm-login-card .fm-login-card-body {
  padding: 1.2rem 1rem;
  text-align: center;
}
.fm-login-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.4rem;
}
.fm-login-card-body p {
  color: #777;
  font-size: 0.78rem;
  margin: 0 0 0.7rem;
  line-height: 1.5;
}

/* --- Leaderboard Card (Game-themed competitive upgrade) --- */
.fm-lb-card {
  position: relative;
  border: 1px solid rgba(247, 160, 15, 0.22) !important;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(247, 160, 15, 0.10), transparent 55%),
    radial-gradient(120% 70% at 100% 100%, rgba(247, 160, 15, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(20, 14, 8, 0.92) 0%, rgba(10, 8, 6, 0.96) 100%) !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(247, 160, 15, 0.18),
    inset 0 0 60px rgba(247, 160, 15, 0.025);
  display: flex;
  flex-direction: column;
}
.fm-lb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 122, 0.85), transparent);
  pointer-events: none;
  z-index: 2;
}
.fm-lb-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(247, 160, 15, 0.022) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(247, 160, 15, 0.018) 31px 32px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 60%);
  z-index: 0;
}
.fm-lb-card > * { position: relative; z-index: 1; }

.fm-lb-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  font-family: 'Orbitron', sans-serif !important;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background:
    linear-gradient(90deg, rgba(247, 160, 15, 0.14), rgba(247, 160, 15, 0.04) 60%, transparent) !important;
  border-bottom: 1px solid rgba(247, 160, 15, 0.22);
  color: transparent;
  position: relative;
}
.fm-lb-header > span:not(.fm-lb-header-icon):not(.fm-lb-see-all) {
  background: linear-gradient(135deg, #ffe28a 0%, #ffb347 50%, #f7a00f 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(247, 160, 15, 0.25);
}
.fm-lb-header-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px rgba(247, 160, 15, 0.6));
  animation: fmLbTrophyPulse 3s ease-in-out infinite;
}
@keyframes fmLbTrophyPulse {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 8px rgba(247, 160, 15, 0.6)); }
  50%      { transform: scale(1.08) rotate(-3deg); filter: drop-shadow(0 0 14px rgba(255, 215, 122, 0.9)); }
}
.fm-lb-see-all {
  margin-left: auto;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(247, 200, 120, 0.55);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(247, 160, 15, 0.18);
  border-radius: 12px;
  background: rgba(28, 20, 10, 0.6);
  transition: all 0.18s ease;
}
.fm-lb-see-all:hover {
  color: #ffd87a;
  border-color: rgba(255, 215, 122, 0.55);
  background: rgba(247, 160, 15, 0.15);
  box-shadow: 0 0 10px rgba(247, 160, 15, 0.3);
}

/* Smooth panel transition */
.fm-lb-panel-wrap {
  position: relative;
  overflow: hidden;
}
.fm-lb-fade-in {
  animation: fmLbFadeIn 0.45s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.fm-lb-fade-out {
  animation: fmLbFadeOut 0.35s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
@keyframes fmLbFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fmLbFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

/* Tabs — coin-style category pills */
.fm-lb-tabs-scroll {
  border-bottom: 1px solid rgba(247, 160, 15, 0.14);
  background: linear-gradient(180deg, rgba(247, 160, 15, 0.04), transparent);
}
.fm-lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem;
}
.fm-lb-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(247, 160, 15, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(40, 28, 14, 0.55), rgba(14, 10, 6, 0.7));
  color: rgba(247, 200, 120, 0.55);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
}
.fm-lb-tab-icon {
  font-size: 0.85rem;
  filter: drop-shadow(0 0 4px currentColor);
}
.fm-lb-tab-label {
  font-size: 0.64rem;
}
.fm-lb-tab:hover {
  color: #ffd87a;
  background: linear-gradient(180deg, rgba(60, 40, 18, 0.7), rgba(28, 20, 10, 0.85));
  border-color: rgba(247, 160, 15, 0.4);
  box-shadow: 0 0 10px rgba(247, 160, 15, 0.18);
  transform: translateY(-1px);
}
.fm-lb-tab.active {
  color: #fff5d6;
  background: linear-gradient(180deg, rgba(247, 160, 15, 0.32), rgba(176, 110, 18, 0.28));
  border-color: rgba(255, 215, 122, 0.65);
  text-shadow: 0 0 8px rgba(247, 160, 15, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 215, 122, 0.4),
    0 0 14px rgba(247, 160, 15, 0.32);
}
.fm-lb-tab.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 230, 160, 0.18) 50%, transparent 65%);
  animation: fmLbTabSheen 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fmLbTabSheen {
  0%   { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}

/* List */
.fm-lb-list {
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247,160,15,0.3) transparent;
  padding: 0.4rem 0;
}
.fm-lb-list::-webkit-scrollbar { width: 6px; }
.fm-lb-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(247,160,15,0.5), rgba(247,160,15,0.2));
  border-radius: 3px;
}

/* Rows */
.fm-lb-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  margin: 0 0.4rem 0.25rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(28, 20, 10, 0.45), rgba(14, 10, 6, 0.55));
  border: 1px solid rgba(247, 160, 15, 0.08);
  border-left: 3px solid rgba(247, 160, 15, 0.18);
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.fm-lb-row:hover {
  background: linear-gradient(180deg, rgba(40, 28, 14, 0.75), rgba(20, 14, 8, 0.85));
  border-color: rgba(247, 160, 15, 0.25);
  border-left-color: rgba(255, 215, 122, 0.7);
  transform: translateX(2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(247, 160, 15, 0.15);
}

/* Top 3 — podium glow */
.fm-lb-top-1 {
  background:
    linear-gradient(90deg, rgba(255, 215, 0, 0.22) 0%, rgba(255, 180, 60, 0.08) 35%, rgba(28, 20, 10, 0.6) 100%) !important;
  border: 1px solid rgba(255, 215, 0, 0.5) !important;
  border-left: 4px solid #ffd700 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 150, 0.35),
    0 0 22px rgba(255, 215, 0, 0.25),
    0 4px 14px rgba(0, 0, 0, 0.5);
}
.fm-lb-top-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 180, 0.16) 50%, transparent 65%);
  animation: fmLbPodiumSheen 3.5s ease-in-out infinite;
  pointer-events: none;
}
.fm-lb-top-2 {
  background:
    linear-gradient(90deg, rgba(220, 220, 230, 0.18) 0%, rgba(180, 180, 200, 0.06) 35%, rgba(20, 18, 22, 0.6) 100%) !important;
  border: 1px solid rgba(210, 215, 230, 0.4) !important;
  border-left: 4px solid #d8dde8 !important;
  box-shadow:
    inset 0 1px 0 rgba(240, 245, 255, 0.3),
    0 0 18px rgba(200, 210, 230, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.5);
}
.fm-lb-top-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(230, 235, 250, 0.12) 50%, transparent 65%);
  animation: fmLbPodiumSheen 4s ease-in-out infinite 0.5s;
  pointer-events: none;
}
.fm-lb-top-3 {
  background:
    linear-gradient(90deg, rgba(205, 127, 50, 0.18) 0%, rgba(180, 100, 40, 0.06) 35%, rgba(28, 16, 8, 0.6) 100%) !important;
  border: 1px solid rgba(205, 127, 50, 0.42) !important;
  border-left: 4px solid #cd7f32 !important;
  box-shadow:
    inset 0 1px 0 rgba(240, 180, 120, 0.3),
    0 0 18px rgba(205, 127, 50, 0.2),
    0 4px 14px rgba(0, 0, 0, 0.5);
}
.fm-lb-top-3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(250, 200, 150, 0.12) 50%, transparent 65%);
  animation: fmLbPodiumSheen 4.5s ease-in-out infinite 1s;
  pointer-events: none;
}
@keyframes fmLbPodiumSheen {
  0%, 100% { transform: translateX(-65%); opacity: 0.6; }
  50%      { transform: translateX(65%); opacity: 1; }
}
.fm-lb-row > * { position: relative; z-index: 1; }

/* Rank — chiseled coin */
.fm-lb-rank {
  min-width: 36px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(247, 200, 120, 0.6);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(28, 20, 10, 0.7), rgba(10, 8, 6, 0.8));
  border: 1px solid rgba(247, 160, 15, 0.18);
  border-radius: 8px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.fm-lb-rank-1, .fm-lb-rank-2, .fm-lb-rank-3 {
  font-size: 1.2rem !important;
  background: transparent !important;
  border: none !important;
  filter: drop-shadow(0 0 6px currentColor);
  animation: fmLbMedalBob 2.5s ease-in-out infinite;
}
.fm-lb-rank-1 { color: #ffd700; animation-delay: 0s; }
.fm-lb-rank-2 { color: #d8dde8; animation-delay: 0.2s; }
.fm-lb-rank-3 { color: #cd7f32; animation-delay: 0.4s; }
@keyframes fmLbMedalBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-2px) rotate(3deg); }
}

/* Avatar — gold portrait frame */
.fm-lb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(247, 160, 15, 0.35);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255, 215, 122, 0.15);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.fm-lb-row:hover .fm-lb-avatar {
  transform: scale(1.06);
  border-color: rgba(255, 215, 122, 0.7);
  box-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 0 12px rgba(247, 160, 15, 0.4);
}
.fm-lb-top-1 .fm-lb-avatar { border-color: #ffd700; box-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 0 14px rgba(255, 215, 0, 0.5); }
.fm-lb-top-2 .fm-lb-avatar { border-color: #d8dde8; box-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 0 12px rgba(216, 221, 232, 0.4); }
.fm-lb-top-3 .fm-lb-avatar { border-color: #cd7f32; box-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 0 12px rgba(205, 127, 50, 0.45); }

.fm-lb-info {
  flex: 1;
  min-width: 0;
}
.fm-lb-name-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.fm-lb-name {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.fm-lb-top-1 .fm-lb-name { text-shadow: 0 0 10px rgba(255, 215, 0, 0.4), 0 1px 2px rgba(0,0,0,0.7); }
.fm-lb-vip-img {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px currentColor);
}
.fm-lb-legacy-img {
  width: 15px;
  height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
}
.fm-lb-badge-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(247, 160, 15, 0.4);
}
.fm-lb-lv {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
  color: rgba(247, 200, 120, 0.65);
  letter-spacing: 0.04em;
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
  background: rgba(28, 20, 10, 0.65);
  border: 1px solid rgba(247, 160, 15, 0.15);
}

/* Value chip — gold engraved */
.fm-lb-value {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Orbitron', 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(60, 40, 18, 0.55), rgba(20, 14, 8, 0.75));
  border: 1px solid rgba(247, 160, 15, 0.28);
  color: transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 215, 122, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.4);
  position: relative;
}
/* Direct text children (the formatted number) get gold tint via text color + shadow */
.fm-lb-value {
  color: #ffd87a;
  text-shadow: 0 0 8px rgba(247, 160, 15, 0.45), 0 1px 1px rgba(0,0,0,0.7);
}
.fm-lb-top-1 .fm-lb-value {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 150, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35),
    0 2px 10px rgba(0,0,0,0.4),
    0 0 14px rgba(255, 215, 0, 0.3);
}
.fm-lb-token-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(247, 160, 15, 0.6));
  animation: fmLbCoinSpin 8s linear infinite;
}
@keyframes fmLbCoinSpin {
  0%, 92% { transform: rotateY(0deg); }
  100%    { transform: rotateY(360deg); }
}
.fm-lb-unit {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(247, 200, 120, 0.55) !important;
  -webkit-text-fill-color: rgba(247, 200, 120, 0.55) !important;
  background: none !important;
  margin-left: 0.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fm-lb-loading {
  display: flex;
  justify-content: center;
  padding: 0.8rem;
}
.fm-spinner-sm {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(247,160,15,0.2);
  border-top-color: #F7A00F;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  filter: drop-shadow(0 0 6px rgba(247, 160, 15, 0.4));
}
.fm-lb-empty {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: rgba(247, 200, 120, 0.45);
  font-size: 0.78rem;
  font-style: italic;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.08em;
}
.fm-lb-end {
  text-align: center;
  padding: 0.65rem;
  color: rgba(247, 200, 120, 0.5);
  font-size: 0.65rem;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  border-top: 1px solid rgba(247, 160, 15, 0.1);
  margin-top: 0.4rem;
}

/* --- Buttons --- */
.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1.3;
}

.fm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fm-btn-primary {
  background: linear-gradient(135deg, #F7A00F 0%, #e0900a 100%);
  color: #000;
  font-weight: 700;
}

.fm-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbb030 0%, #F7A00F 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(247, 160, 15, 0.25);
}

.fm-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #c8ccd4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fm-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.fm-btn-ghost {
  background: transparent;
  color: #8b8fa3;
  padding: 0.4rem 0.65rem;
}

.fm-btn-ghost:hover:not(:disabled) {
  color: #F7A00F;
  background: rgba(247, 160, 15, 0.06);
}

.fm-btn-danger {
  color: #ef4444 !important;
}

.fm-btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.08) !important;
}

.fm-btn-sm {
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 7px;
}

.fm-btn-lg {
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  border-radius: 12px;
}

.fm-btn-icon {
  padding: 0.4rem;
  border-radius: 8px;
  background: transparent;
  color: #666;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.fm-btn-icon:hover {
  color: #F7A00F;
  background: rgba(247, 160, 15, 0.06);
}

/* --- Breadcrumb --- */
.fm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.fm-breadcrumb a {
  color: #777;
  text-decoration: none;
  transition: color 0.15s ease;
}

.fm-breadcrumb a:hover {
  color: #F7A00F;
}

.fm-breadcrumb-sep {
  color: #333;
  user-select: none;
}

.fm-breadcrumb-current {
  color: #999;
}

/* --- Category Cards (Home Page) --- */
.fm-categories-section {
  margin-bottom: 1.5rem;
}

.fm-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
}

.fm-cat-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.fm-cat-row:last-child {
  border-bottom: none;
}

.fm-cat-row:hover {
  background: rgba(247, 160, 15, 0.03);
}

.fm-cat-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.fm-cat-info {
  min-width: 0;
}

.fm-cat-name {
  font-weight: 600;
  color: #e5e5e5;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.fm-cat-desc {
  color: #666;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-cat-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.75rem;
  color: #555;
  flex-shrink: 0;
}

.fm-cat-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 3rem;
}

.fm-cat-meta-value {
  font-weight: 700;
  color: #999;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.fm-cat-meta-label {
  font-size: 0.68rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fm-cat-external-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

/* --- Section Headers --- */
.fm-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0 0.15rem;
}

.fm-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
}

/* --- Feed / Post List --- */
.fm-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
}

.fm-feed-empty {
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 3rem;
  text-align: center;
}

.fm-feed-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
  display: block;
}

.fm-feed-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: #999;
  margin-bottom: 0.35rem;
}

.fm-feed-empty p {
  color: #555;
  font-size: 0.85rem;
  margin: 0;
}

/* --- Post Card (Feed Item) --- */
.fm-post-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.fm-post-row:last-child {
  border-bottom: none;
}

.fm-post-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fm-post-row.pinned {
  background: rgba(247, 160, 15, 0.02);
  border-left: 3px solid rgba(247, 160, 15, 0.3);
}

/* Vote Column */
.fm-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding-top: 0.15rem;
}

.fm-vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #444;
  font-size: 0.75rem;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  transition: all 0.12s ease;
  line-height: 1;
}

.fm-vote-btn:hover:not(:disabled) {
  color: #F7A00F;
  background: rgba(247, 160, 15, 0.08);
}

.fm-vote-btn.active.up {
  color: #F7A00F;
}

.fm-vote-btn.active.down {
  color: #6366f1;
}

.fm-vote-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.fm-vote-score {
  font-size: 0.78rem;
  font-weight: 700;
  color: #666;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding: 0.1rem 0;
}

.fm-vote-score.positive {
  color: #F7A00F;
}

.fm-vote-score.negative {
  color: #6366f1;
}

/* Post Content */
.fm-post-content {
  min-width: 0;
}

.fm-post-title-line {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.fm-post-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.35;
  word-break: break-word;
}

.fm-post-row:hover .fm-post-title {
  color: #F7A00F;
}

.fm-post-flair {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.5rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  flex-shrink: 0;
  border: 1px solid;
}

.fm-post-flair.pinned {
  color: #F7A00F;
  background: rgba(247, 160, 15, 0.08);
  border-color: rgba(247, 160, 15, 0.2);
}

.fm-post-flair.locked {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

/* Post status ribbons — match ticket system style */
.flair-status-solved {
  background: #22c55e22;
  color: #22c55e;
  border-color: #22c55e44;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.flair-status-in_progress {
  background: #f59e0b22;
  color: #f59e0b;
  border-color: #f59e0b44;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.flair-status-closed {
  background: #6b728022;
  color: #9ca3af;
  border-color: #6b728044;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.flair-status-wont_fix {
  background: #f9731622;
  color: #f97316;
  border-color: #f9731644;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.fm-post-preview {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.45;
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-post-meta-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #555;
  flex-wrap: wrap;
}

.fm-post-meta-line a {
  color: #666;
  text-decoration: none;
}

.fm-post-meta-line a:hover {
  color: #F7A00F;
}

.fm-meta-sep {
  color: #333;
  user-select: none;
}

.fm-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid;
}

.fm-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #555;
}

.fm-post-stat-icon {
  font-size: 0.8rem;
}

/* --- Sort / Filter Bar --- */
.fm-sort-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 1rem;
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin-bottom: 0.75rem;
}

.fm-sort-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #777;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.fm-sort-btn:hover {
  color: #bbb;
  background: rgba(255, 255, 255, 0.04);
}

.fm-sort-btn.active {
  color: #F7A00F;
  background: rgba(247, 160, 15, 0.08);
  font-weight: 600;
}

/* --- Category Page Header --- */
.fm-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin-bottom: 1rem;
}

.fm-cat-header-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.fm-cat-header-info {
  min-width: 0;
  flex: 1;
}

.fm-cat-header-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.01em;
}

.fm-cat-header-desc {
  color: #777;
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.fm-cat-header-stat {
  color: #555;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}

/* --- Post Detail Page --- */
.fm-detail-card {
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
}

.fm-detail-top {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 0;
}

.fm-detail-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding-top: 0.25rem;
}

.fm-detail-votes .fm-vote-btn {
  font-size: 1rem;
  padding: 0.25rem 0.4rem;
}

.fm-detail-votes .fm-vote-score {
  font-size: 1rem;
}

.fm-detail-header {
  min-width: 0;
}

.fm-detail-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  word-break: break-word;
  font-family: 'Orbitron', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.fm-detail-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.fm-detail-author-name {
  color: #F7A00F;
  font-weight: 600;
}

.fm-detail-author-class {
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: #888;
}

.fm-detail-edited {
  font-size: 0.72rem;
  color: #555;
  font-style: italic;
}

/* Markdown Content Body */
.fm-body {
  padding: 1.1rem 1.25rem;
  padding-left: calc(52px + 0.85rem + 1.25rem);
}

.fm-markdown {
  color: #c8ccd4;
  font-size: 0.9rem;
  line-height: 1.75;
  word-break: break-word;
  overflow-wrap: break-word;
}

.fm-markdown h1 {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fm-markdown h2 {
  font-size: 1.15rem;
  color: #eee;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}

.fm-markdown h3 {
  font-size: 1rem;
  color: #ddd;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.fm-markdown p {
  margin: 0 0 0.8rem;
}

.fm-markdown p:last-child {
  margin-bottom: 0;
}

.fm-markdown a {
  color: #F7A00F;
  text-decoration: none;
}

.fm-markdown a:hover {
  text-decoration: underline;
}

.fm-markdown strong {
  color: #e5e5e5;
  font-weight: 600;
}

.fm-markdown em {
  font-style: italic;
}

.fm-markdown code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.82em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #e06c75;
}

.fm-markdown pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.75rem 0;
  overflow-x: auto;
}

.fm-markdown pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: #c8ccd4;
  font-size: 0.82rem;
}

.fm-markdown blockquote {
  border-left: 3px solid #F7A00F;
  padding: 0.5rem 1rem;
  margin: 0.75rem 0;
  background: rgba(247, 160, 15, 0.03);
  border-radius: 0 8px 8px 0;
  color: #999;
}

.fm-markdown blockquote p:last-child {
  margin: 0;
}

.fm-markdown ul,
.fm-markdown ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.fm-markdown li {
  margin: 0.25rem 0;
}

.fm-markdown img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0.75rem 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fm-markdown img:hover {
  transform: scale(1.02);
}

@media (max-width: 600px) {
  .fm-markdown img {
    max-width: 100%;
  }
}

.fm-markdown table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.fm-markdown th,
.fm-markdown td {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.fm-markdown th {
  background: rgba(255, 255, 255, 0.04);
  color: #e5e5e5;
  font-weight: 600;
}

.fm-markdown hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 1.5rem 0;
}

/* Post Actions Bar */
.fm-detail-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 1.25rem 0.85rem;
  padding-left: calc(52px + 0.85rem + 1.25rem);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  flex-wrap: wrap;
}

.fm-detail-actions .fm-btn-ghost,
.fm-detail-actions .fm-action-btn {
  font-size: 0.78rem;
  color: #666;
}

.fm-detail-actions .fm-btn-ghost:hover {
  color: #F7A00F;
}

/* --- Replies Section --- */
.fm-replies {
  margin-top: 1rem;
}

.fm-replies-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.15rem;
  margin-bottom: 0.6rem;
}

.fm-replies-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fm-replies-count {
  color: #F7A00F;
}

/* Single Reply */
.fm-reply {
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.fm-reply.depth-1 {
  margin-left: 1.5rem;
  border-left: 2px solid rgba(247, 160, 15, 0.15);
}

.fm-reply.depth-2 {
  margin-left: 3rem;
  border-left: 2px solid rgba(99, 102, 241, 0.15);
}

.fm-reply.depth-3 {
  margin-left: 4rem;
  border-left: 2px solid rgba(34, 197, 94, 0.15);
}

.fm-reply-inner {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
}

/* ===== Redesigned Reply Card Layout ===== */
.fm-reply-card {
  display: flex;
  gap: 0;
  padding: 0;
}

/* Avatar column - left side */
.fm-reply-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.6rem 0.85rem 0.85rem;
  flex-shrink: 0;
  position: relative;
}

.fm-reply-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(247, 160, 15, 0.25);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Level badge moved to header row */
.fm-reply-level-badge-img {
  display: none;
}
.fm-reply-inline-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fm-reply-inline-vip {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}

.fm-reply-vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 0.35rem;
}

.fm-reply-vote-col .fm-vote-btn {
  font-size: 0.65rem;
  padding: 0.1rem 0.2rem;
}

.fm-reply-vote-col .fm-vote-score {
  font-size: 0.7rem;
}

/* Main reply content - right side */
.fm-reply-main {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem 0.65rem 0.5rem;
  border-left: 2px solid rgba(247, 160, 15, 0.08);
}

/* Reply Header Bar */
.fm-reply-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}

.fm-reply-author-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #e1e3ea;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.2px;
}

.fm-reply-lv {
  font-size: 0.62rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  color: #888;
}

.fm-reply-class-tag {
  font-size: 0.6rem;
  color: #6b7280;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.fm-reply-header-spacer {
  flex: 1;
}

.fm-reply-time-tag {
  font-size: 0.65rem;
  color: #555;
}

.fm-reply-edited-tag {
  font-size: 0.6rem;
  color: #555;
  font-style: italic;
}

/* Stats row */
.fm-reply-stats-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.fm-reply-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  color: #6b7280;
  font-weight: 600;
}

.fm-reply-token-img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  vertical-align: middle;
}

/* Reply body */
.fm-reply-body .fm-markdown {
  font-size: 0.85rem;
  line-height: 1.65;
}

/* ===== Action Toolbar (polished buttons) ===== */
.fm-reply-toolbar,
.fm-detail-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.fm-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fm-action-btn:hover {
  color: #c8ccd4;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.fm-action-btn svg {
  opacity: 0.6;
  transition: opacity 0.15s;
}

.fm-action-btn:hover svg {
  opacity: 1;
}

.fm-action-btn-danger {
  color: #6b4040;
}

.fm-action-btn-danger:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.15);
}

.fm-action-btn-danger:hover svg {
  stroke: #ef4444;
}

.fm-action-btn-active {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
}

.fm-action-btn-active:hover {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.fm-action-btn-active svg {
  stroke: #f59e0b;
  opacity: 1;
}

.fm-reply-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 0.15rem;
}

.fm-reply-votes .fm-vote-btn {
  font-size: 0.7rem;
  padding: 0.1rem 0.25rem;
}

.fm-reply-votes .fm-vote-score {
  font-size: 0.72rem;
}

.fm-reply-content {
  min-width: 0;
}

.fm-reply-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.35rem;
}

.fm-reply-actions .fm-btn-ghost {
  font-size: 0.72rem;
  padding: 0.25rem 0.4rem;
}

.fm-reply-children {
  padding: 0;
}

/* --- Reply / Post Editor --- */
/* Markdown formatting toolbar */
.fm-md-toolbar {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.2rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}
.fm-md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #888;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.12s ease;
}
.fm-md-btn:hover {
  background: rgba(247, 160, 15, 0.1);
  color: #F7A00F;
}
.fm-md-btn-sm {
  width: 26px;
  height: 24px;
  font-size: 0.75rem;
}
.fm-md-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 0.15rem;
  flex-shrink: 0;
}

.fm-editor {
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 0.75rem;
}

.fm-editor-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 0.5rem;
}

.fm-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  color: #c8ccd4;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.fm-textarea:focus {
  border-color: rgba(247, 160, 15, 0.4);
  box-shadow: 0 0 0 3px rgba(247, 160, 15, 0.06);
}

.fm-textarea::placeholder {
  color: #444;
}

.fm-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.fm-editor-footer-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.fm-editor-footer-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- New Post Form --- */
.fm-create-form {
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.fm-create-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fm-create-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

.fm-create-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.fm-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fm-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fm-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  color: #e5e5e5;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.fm-input:focus {
  border-color: rgba(247, 160, 15, 0.4);
  box-shadow: 0 0 0 3px rgba(247, 160, 15, 0.06);
}

.fm-input::placeholder {
  color: #444;
}

.fm-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  color: #e5e5e5;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 0.8rem) center;
  padding-right: 2rem;
}

.fm-select:focus {
  border-color: rgba(247, 160, 15, 0.4);
  box-shadow: 0 0 0 3px rgba(247, 160, 15, 0.06);
}

.fm-select option {
  background: #111;
  color: #e5e5e5;
}

.fm-char-count {
  font-size: 0.72rem;
  color: #444;
  text-align: right;
}

.fm-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.fm-toolbar-btns {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.fm-preview-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem;
  min-height: 200px;
}

.fm-md-help {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.fm-md-help summary {
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  color: #777;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
}

.fm-md-help summary:hover {
  color: #F7A00F;
}

.fm-md-help-grid {
  padding: 0.75rem 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
  font-size: 0.78rem;
  color: #888;
}

.fm-md-help-grid code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #e06c75;
}

.fm-create-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  justify-content: flex-end;
}

/* --- Error / Alert --- */
.fm-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 500;
}

/* --- Mod Toolbar --- */
/* ── Moderator Panel (redesigned) ─────────────────── */
.fm-mod-panel {
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: rgba(99, 102, 241, 0.04);
}

.fm-mod-panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(99, 102, 241, 0.12);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.fm-mod-panel-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  text-transform: uppercase;
}

.fm-mod-panel-body {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0.85rem 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fm-mod-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fm-mod-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  padding-left: 0.1rem;
}

.fm-mod-group-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fm-mod-group-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(99, 102, 241, 0.18);
  margin: 0 0.25rem;
}

/* Individual mod action button */
.fm-mod-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 80px;
  color: #9ca3af;
}

.fm-mod-action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.fm-mod-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fmab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.fmab-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: inherit;
}

.fmab-desc {
  font-size: 0.6rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.2;
  max-width: 90px;
}

/* Active states */
.fm-mod-action-btn.fmab-active-blue {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
.fm-mod-action-btn.fmab-active-yellow {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #fbbf24;
}
.fm-mod-action-btn.fmab-active-green {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.fm-mod-action-btn.fmab-active-orange {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fb923c;
}
.fm-mod-action-btn.fmab-active-red {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Keep legacy classes in case used elsewhere */
.fm-mod-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.fm-mod-label { font-size: 0.75rem; font-weight: 700; color: #818cf8; margin-right: 0.5rem; }
.fm-mod-btn-active { background: rgba(34, 197, 94, 0.12) !important; color: #22c55e !important; border-color: rgba(34, 197, 94, 0.3) !important; }
.fm-mod-btn-warn { background: rgba(249, 115, 22, 0.12) !important; color: #fb923c !important; border-color: rgba(249, 115, 22, 0.3) !important; }

/* --- Report Modal --- */
/* --- Create Ticket Modal (wider) --- */
.fm-create-ticket-modal {
  max-width: 600px !important;
}

.fm-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.fm-modal-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fm-modal-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fm-modal-row .fm-modal-field {
  flex: 1;
  min-width: 120px;
}

/* --- Report Modal --- */
.fm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.fm-modal {
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
}

.fm-modal h3 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.fm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

/* --- Pagination --- */
.fm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 0 0;
}

.fm-page-info {
  font-size: 0.78rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

/* --- Login CTA --- */
.fm-cta {
  background: linear-gradient(135deg, rgba(247, 160, 15, 0.06) 0%, rgba(247, 160, 15, 0.02) 100%);
  border: 1px solid rgba(247, 160, 15, 0.15);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.25rem;
}

.fm-cta p {
  color: #999;
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}

/* --- Loading --- */
.fm-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  gap: 1rem;
}

.fm-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-top-color: #F7A00F;
  border-radius: 50%;
  animation: fm-spin 0.7s linear infinite;
}

@keyframes fm-spin {
  to { transform: rotate(360deg); }
}

.fm-loading p {
  color: #555;
  font-size: 0.82rem;
}

/* --- Welcome Hero (Home only) --- */
.fm-hero {
  background: linear-gradient(135deg, rgba(247, 160, 15, 0.05) 0%, rgba(247, 160, 15, 0.01) 100%);
  border: 1px solid rgba(247, 160, 15, 0.1);
  border-radius: 14px;
  padding: 1.5rem 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.fm-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(247, 160, 15, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.fm-hero h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  position: relative;
}

.fm-hero p {
  margin: 0;
  color: #888;
  font-size: 0.85rem;
  position: relative;
}

.fm-hero .fm-accent {
  color: #F7A00F;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .fm-topbar-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .fm-topbar-inner {
    padding: 0 0.75rem;
    gap: 0.6rem;
  }

  .fm-topbar-search {
    max-width: none !important;
    margin-left: 0 !important;
  }

  .fm-topbar-brand span {
    display: none;
  }

  .fm-hero h2 { font-size: 1rem; }
  .fm-hero p { font-size: 0.78rem; }

  .fm-layout,
  .fm-layout-full {
    padding: 0.75rem;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .fm-lb-tabs {
    gap: 0.25rem;
    padding: 0.4rem;
  }
  .fm-lb-tab-label {
    display: none;
  }
  .fm-lb-tab {
    padding: 0.3rem 0.5rem;
  }

  .fm-profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
  }

  .fm-cat-row {
    grid-template-columns: 2rem 1fr;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
  }

  .fm-cat-meta {
    display: none;
  }

  .fm-cat-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }

  .fm-post-row {
    grid-template-columns: 34px 1fr;
    padding: 0.6rem 0.75rem;
  }

  .fm-detail-top {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .fm-detail-votes {
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .fm-body {
    padding: 0.85rem 1rem;
  }

  .fm-detail-actions {
    padding: 0.5rem 1rem;
  }

  .fm-reply.depth-1 { margin-left: 0.75rem; }
  .fm-reply.depth-2 { margin-left: 1.25rem; }
  .fm-reply.depth-3 { margin-left: 1.75rem; }

  .fm-reply-inner {
    grid-template-columns: 28px 1fr;
    gap: 0.4rem;
    padding: 0.6rem 0.65rem;
  }

  .fm-reply-avatar-col {
    padding: 0.6rem 0.4rem 0.6rem 0.6rem;
  }

  .fm-reply-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .fm-reply-level-badge-img {
    width: 18px;
    height: 18px;
    top: 48px;
  }

  .fm-reply-main {
    padding: 0.5rem 0.6rem 0.5rem 0.4rem;
  }

  .fm-reply-header {
    gap: 0.3rem;
  }

  .fm-reply-author-name {
    font-size: 0.74rem;
  }

  .fm-reply-stats-row {
    gap: 0.4rem;
  }

  .fm-action-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
  }

  .fm-cat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1rem;
  }

  .fm-hero {
    padding: 1.15rem;
  }

  .fm-hero h2 {
    font-size: 1rem;
  }

  .fm-md-help-grid {
    grid-template-columns: 1fr;
  }

  .fm-create-body {
    padding: 1rem;
  }
}

/* ===== Author Card (Redesigned) ===== */

.fm-author-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26, 28, 42, 0.9), rgba(22, 24, 36, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0.5rem 0 0.5rem;
  position: relative;
  overflow: hidden;
}

.fm-author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #F7A00F, rgba(139, 92, 246, 0.5), transparent);
}

.fm-author-card-compact {
  padding: 0.55rem 0.7rem;
  gap: 0.6rem;
  margin: 0.25rem 0 0.35rem;
}

.fm-author-card-compact::before {
  display: none;
}

.fm-author-avatar {
  position: relative;
  flex-shrink: 0;
}

.fm-author-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(247, 160, 15, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fm-author-card-compact .fm-author-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.fm-author-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1b23, #2a2b3a);
  border: 2px solid rgba(247, 160, 15, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #F7A00F;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

.fm-author-card-compact .fm-author-avatar-placeholder {
  width: 42px;
  height: 42px;
  font-size: 0.72rem;
  border-radius: 10px;
}

/* Level badge + VIP inline in name row (not on avatar) */
.fm-author-level-img {
  display: none;
}
.fm-author-inline-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fm-author-inline-vip {
  width: 17px;
  height: 17px;
  border-radius: 3px;
  flex-shrink: 0;
}

.fm-author-card-compact .fm-author-inline-badge {
  width: 17px;
  height: 17px;
}
.fm-author-card-compact .fm-author-inline-vip {
  width: 15px;
  height: 15px;
}

/* Legacy level badge (text) hidden now */
.fm-author-level-badge {
  display: none;
}

.fm-author-info {
  flex: 1;
  min-width: 0;
}

.fm-author-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.fm-author-name {
  font-weight: 700;
  color: #e5e5e5;
  font-size: 0.9rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-author-card-compact .fm-author-name {
  font-size: 0.8rem;
}

.fm-author-lv {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  opacity: 0.9;
}

.fm-author-class-tag {
  font-size: 0.62rem;
  font-weight: 600;
  color: #8b8fa3;
  background: rgba(139, 143, 163, 0.08);
  border: 1px solid rgba(139, 143, 163, 0.1);
  padding: 1px 7px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.fm-author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

/* Badges */
.fm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  line-height: 1.6;
}

.fm-badge-admin {
  color: #F7A00F;
  background: rgba(247, 160, 15, 0.12);
  border: 1px solid rgba(247, 160, 15, 0.25);
}

/* VIP badge with real image */
.fm-badge-vip-img {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(247, 160, 15, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(247, 160, 15, 0.2);
  color: #F7A00F;
}

.fm-badge-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.fm-badge-vip {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fm-badge-medal {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fm-badge-class {
  color: #8b8fa3;
  background: rgba(139, 143, 163, 0.08);
  border: 1px solid rgba(139, 143, 163, 0.1);
}

/* Author Stats Row */
.fm-author-stats {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fm-author-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  color: #8b8fa3;
  font-weight: 600;
}

.fm-author-stat-icon {
  font-size: 0.72rem;
}

.fm-author-stat-token-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
}

.fm-author-card-compact .fm-author-stats {
  gap: 0.5rem;
}

.fm-author-card-compact .fm-author-stat {
  font-size: 0.62rem;
}

.fm-author-card-compact .fm-badge {
  font-size: 0.56rem;
  padding: 0 5px;
}

.fm-author-card-compact .fm-badge-vip-img {
  font-size: 0.55rem;
  padding: 1px 5px;
}

.fm-author-card-compact .fm-badge-icon-img {
  width: 13px;
  height: 13px;
}

.fm-author-card-compact .fm-author-stat-token-img {
  width: 12px;
  height: 12px;
}

/* ===== Combined Post Info Sidebar Card ===== */
.fm-postinfo-card {
  padding: 0;
}
.fm-postinfo-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.fm-postinfo-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(247, 160, 15, 0.3);
  flex-shrink: 0;
}
.fm-postinfo-author-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fm-postinfo-author-name {
  font-weight: 700;
  font-size: 0.88rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-postinfo-author-sub {
  font-size: 0.7rem;
  color: #8b8fa3;
  font-weight: 500;
}
.fm-postinfo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.fm-postinfo-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem 0;
}
.fm-postinfo-stat-icon {
  font-size: 0.75rem;
  opacity: 0.7;
}
.fm-postinfo-stat-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ddd;
}
.fm-postinfo-stat-lbl {
  font-size: 0.58rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.fm-postinfo-category {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ccc;
  text-decoration: none;
  transition: all 0.15s ease;
}
.fm-postinfo-category:hover {
  background: rgba(247, 160, 15, 0.04);
  color: #F7A00F;
}
.fm-postinfo-cat-arrow {
  margin-left: auto;
  color: #555;
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}
.fm-postinfo-category:hover .fm-postinfo-cat-arrow {
  color: #F7A00F;
  transform: translateX(2px);
}

/* Detail meta row below author card */
.fm-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 0.4rem;
}

.fm-detail-edited {
  color: #8b8fa3;
  font-style: italic;
}

.fm-meta-sep {
  color: #3a3d4a;
}

/* Reply time row */
.fm-reply-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: #6b7280;
  margin: 0.2rem 0 0.3rem;
}

/* Sidebar Author */
.fm-sidebar-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fm-sidebar-author-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(247, 160, 15, 0.3);
}

/* Mod bar */
.fm-mod-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.fm-mod-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA */
.fm-cta {
  text-align: center;
  padding: 1.5rem;
  background: rgba(247, 160, 15, 0.04);
  border: 1px solid rgba(247, 160, 15, 0.12);
  border-radius: 10px;
  margin-top: 1rem;
}

.fm-cta p {
  color: #8b8fa3;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* Modal */
.fm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-modal {
  background: #16171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  width: 90%;
  max-width: 480px;
}

.fm-modal h3 {
  margin: 0 0 1rem;
  color: #e5e5e5;
  font-size: 1rem;
}

.fm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Mobile responsiveness for author card */
@media (max-width: 600px) {
  .fm-author-card {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  .fm-author-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .fm-author-avatar-placeholder {
    width: 40px;
    height: 40px;
    font-size: 0.72rem;
    border-radius: 10px;
  }
  .fm-author-name {
    font-size: 0.78rem;
  }
  .fm-author-stats {
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  .fm-author-stat {
    font-size: 0.6rem;
  }
  .fm-badge {
    font-size: 0.54rem;
    padding: 0 4px;
  }
  .fm-author-level-img {
    width: 20px;
    height: 20px;
  }
}

/* =====================================================
   GUILD FORUM SECTIONS
   ===================================================== */

.fm-guild-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  background: linear-gradient(135deg, rgba(247,160,15,0.12), rgba(247,160,15,0.06));
  color: #F7A00F;
  border: 1px solid rgba(247,160,15,0.2);
  border-radius: 12px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.5rem;
  font-weight: 600;
  vertical-align: middle;
}

/* Guild Mod Toolbar */
.fm-guild-mod-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(247,160,15,0.08), rgba(247,160,15,0.03));
  border: 1px solid rgba(247,160,15,0.15);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
}

.fm-guild-mod-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #F7A00F;
  margin-right: auto;
}

/* Guild Sections Area */
.fm-guild-sections {
  margin-bottom: 1.25rem;
}

.fm-section-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.fm-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e1e3ea;
}

.fm-section-count {
  font-size: 0.7rem;
  background: rgba(139,143,163,0.15);
  color: #8b8fa3;
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  font-weight: 600;
}

.fm-guild-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.6rem;
}

.fm-guild-section-card {
  background: #1a1d2e;
  border: 1px solid #2a2d3e;
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.fm-guild-section-card:hover {
  border-color: #3a3d4e;
  background: #1e2133;
}

.fm-guild-section-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
}

.fm-guild-section-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,143,163,0.08);
  border-radius: 8px;
}

.fm-guild-section-info {
  flex: 1;
  min-width: 0;
}

.fm-guild-section-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e1e3ea;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-guild-section-desc {
  font-size: 0.74rem;
  color: #8b8fa3;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.fm-guild-section-stats {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: #666;
}

.fm-guild-section-actions {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  justify-content: flex-end;
}

/* Extra small button */
.fm-btn-xs {
  font-size: 0.7rem !important;
  padding: 0.2rem 0.4rem !important;
  min-height: unset !important;
}

.fm-btn-danger {
  color: #ff4d4d !important;
}

.fm-btn-danger:hover {
  background: rgba(255,77,77,0.1) !important;
}

/* Permissions Grid */
.fm-perms-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.fm-perm-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: #c8cad2;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  transition: background 0.15s;
}

.fm-perm-toggle:hover {
  background: rgba(255,255,255,0.04);
}

.fm-perm-toggle input[type="checkbox"] {
  accent-color: #F7A00F;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Modal */
.fm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fm-modal {
  background: #1a1d2e;
  border: 1px solid #2a2d3e;
  border-radius: 14px;
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}

.fm-modal h3 {
  font-size: 1.05rem;
  color: #e1e3ea;
  margin: 0 0 0.5rem;
}

.fm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.fm-field .fm-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b8fa3;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fm-field .fm-input,
.fm-field .fm-textarea {
  width: 100%;
  background: #14162a;
  border: 1px solid #2a2d3e;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  color: #e1e3ea;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}

.fm-field .fm-input:focus,
.fm-field .fm-textarea:focus {
  border-color: #F7A00F;
}

.fm-field .fm-textarea {
  resize: vertical;
  min-height: 50px;
}

/* Large button variant */
.fm-btn-lg {
  font-size: 0.88rem !important;
  padding: 0.7rem 1.5rem !important;
}

/* ========== Full Leaderboard Page ========== */
.fmlb-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.fmlb-page-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.fmlb-page-hero h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #F7A00F;
  margin: 0 0 0.4rem;
}
.fmlb-page-hero p {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
}
.fmlb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
@media (max-width: 900px) {
  .fmlb-grid { grid-template-columns: 1fr; }
}
.fmlb-table {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fmlb-table-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: rgba(247, 160, 15, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.fmlb-table-icon {
  font-size: 1.1rem;
}
.fmlb-table-title-area {
  flex: 1;
  min-width: 0;
}
.fmlb-table-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #F7A00F;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fmlb-table-desc {
  display: block;
  font-size: 0.65rem;
  color: #666;
  margin-top: 0.1rem;
}
.fmlb-table-count {
  font-size: 0.68rem;
  color: #555;
  font-weight: 600;
  flex-shrink: 0;
}
.fmlb-table-list {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247,160,15,0.15) transparent;
  padding: 0.3rem 0;
}

/* Mobile adjustments for guild sections */
@media (max-width: 768px) {
  .fm-guild-sections-grid {
    grid-template-columns: 1fr;
  }
  .fm-guild-mod-bar {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .fm-guild-mod-label {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

/* ========== Leaderboard Selection Cards ========== */
.fmlb-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .fmlb-select-grid { grid-template-columns: 1fr; }
}
.fmlb-select-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.4rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  color: #ccc;
}
.fmlb-select-card:hover {
  background: rgba(247, 160, 15, 0.06);
  border-color: rgba(247, 160, 15, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.fmlb-select-weekly:hover {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}
.fmlb-select-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}
.fmlb-select-info {
  flex: 1;
  min-width: 0;
}
.fmlb-select-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #F7A00F;
  margin: 0 0 0.3rem;
}
.fmlb-select-weekly .fmlb-select-info h3 {
  color: #22C55E;
}
.fmlb-select-info p {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
  line-height: 1.4;
}
.fmlb-select-arrow {
  font-size: 1.4rem;
  color: #555;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.fmlb-select-card:hover .fmlb-select-arrow {
  color: #F7A00F;
  transform: translateX(3px);
}

/* ========== Weekly Leaderboard ========== */
.fmlb-weekly {
  max-width: 900px;
  margin: 0 auto;
}
.fmlb-auth-required {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}
.fmlb-auth-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.8rem;
}
.fmlb-error {
  text-align: center;
  padding: 2rem;
  color: #ff6b6b;
  font-size: 0.85rem;
}

/* Pool Card */
.fmlb-pool-card {
  position: relative;
  background: linear-gradient(135deg, rgba(247, 160, 15, 0.08) 0%, rgba(34, 197, 94, 0.06) 100%);
  border: 1px solid rgba(247, 160, 15, 0.2);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.fmlb-pool-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 160, 15, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.fmlb-pool-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.fmlb-pool-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.fmlb-pool-token {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fmlb-pool-label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.fmlb-pool-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: #F7A00F;
}
.fmlb-pool-amount span {
  font-size: 0.85rem;
  font-weight: 600;
}
.fmlb-pool-eur {
  font-size: 0.75rem;
  color: #22C55E;
  font-weight: 600;
}
.fmlb-pool-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.fmlb-pool-timer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #aaa;
}
.fmlb-timer-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: fmlbPulse 1.5s ease-in-out infinite;
}
@keyframes fmlbPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.fmlb-rewards-btn {
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(247, 160, 15, 0.2);
  background: rgba(247, 160, 15, 0.06);
  color: #F7A00F;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fmlb-rewards-btn:hover {
  background: rgba(247, 160, 15, 0.12);
  border-color: rgba(247, 160, 15, 0.35);
}

/* My Stats */
.fmlb-my-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.8rem;
}
.fmlb-my-stats-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.fmlb-my-rank-label {
  font-size: 0.6rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fmlb-my-rank-value {
  font-size: 1.3rem;
  font-weight: 800;
}
.fmlb-my-stats-grid {
  display: flex;
  gap: 1rem;
  flex: 1;
}
.fmlb-my-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ddd;
}
.fmlb-my-stat-icon {
  font-size: 0.9rem;
}
.fmlb-my-stat-lbl {
  font-size: 0.58rem;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
}
.fmlb-my-stat-pts {
  color: #F7A00F;
}

/* Points Info */
.fmlb-points-info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}
.fmlb-points-info-title {
  font-size: 0.72rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.4rem;
}
.fmlb-points-grid {
  display: flex;
  gap: 1.5rem;
}
.fmlb-point-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #aaa;
}
.fmlb-point-val {
  color: #F7A00F;
  font-weight: 700;
}

/* Rewards Popup */
.fmlb-rewards-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.fmlb-rewards-popup {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.fmlb-rewards-popup h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F7A00F;
  margin: 0 0 0.3rem;
}
.fmlb-rewards-sub {
  font-size: 0.78rem;
  color: #888;
  margin: 0 0 1rem;
}
.fmlb-rewards-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: #888;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}
.fmlb-rewards-close:hover {
  color: #fff;
}
.fmlb-rewards-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.fmlb-reward-tier {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}
.fmlb-reward-tier-header {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.fmlb-reward-tier-ranks {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.6;
  margin-left: 0.3rem;
}
.fmlb-reward-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #aaa;
  padding: 0.15rem 0;
}

/* Weekly Table */
.fmlb-weekly-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}
.fmlb-weekly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.fmlb-weekly-table thead {
  background: rgba(255, 255, 255, 0.03);
}
.fmlb-weekly-table th {
  padding: 0.6rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #888;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fmlb-weekly-table th.fmlb-col-player {
  text-align: left;
}
.fmlb-weekly-table td {
  padding: 0.5rem 0.5rem;
  text-align: center;
  color: #aaa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.fmlb-weekly-table td.fmlb-col-player {
  text-align: left;
}
.fmlb-col-rank {
  width: 50px;
}
.fmlb-col-stat {
  width: 55px;
}
.fmlb-col-pts {
  width: 75px;
  font-weight: 700 !important;
  color: #F7A00F !important;
}
.fmlb-col-prize {
  width: 90px;
}
.fmlb-rank-num {
  font-size: 0.82rem;
  font-weight: 800;
}
.fmlb-player-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.fmlb-player-badges {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.fmlb-player-name-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.fmlb-player-name {
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fmlb-you-badge {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.55rem;
  font-weight: 800;
  background: rgba(247, 160, 15, 0.2);
  color: #F7A00F;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fmlb-player-lv {
  font-size: 0.62rem;
  color: #666;
  font-weight: 600;
}
.fmlb-prize-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fmlb-prize-tlrpg {
  font-size: 0.78rem;
  font-weight: 700;
  color: #F7A00F;
}
.fmlb-prize-eur {
  font-size: 0.6rem;
  color: #22C55E;
}

/* Tier dividers */
.fmlb-tier-divider td {
  padding: 0 !important;
  border-bottom: none !important;
}
.fmlb-tier-divider-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-left: 3px solid;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.72rem;
  font-weight: 700;
}
.fmlb-tier-ranks {
  font-size: 0.6rem;
  color: #666;
  margin-left: auto;
}

/* Current player highlight */
.fmlb-current-player {
  background: rgba(247, 160, 15, 0.06) !important;
}
.fmlb-current-player td {
  border-bottom-color: rgba(247, 160, 15, 0.15) !important;
}
.fmlb-top-1 { background: rgba(255, 215, 0, 0.04); }
.fmlb-top-2 { background: rgba(192, 192, 192, 0.03); }
.fmlb-top-3 { background: rgba(205, 127, 50, 0.03); }

.fmlb-empty-weekly {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}
.fmlb-empty-weekly span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.fmlb-empty-weekly h3 {
  color: #ddd;
  margin: 0 0 0.3rem;
}
.fmlb-empty-weekly p {
  font-size: 0.82rem;
  margin: 0;
}

/* Mobile weekly table */
@media (max-width: 640px) {
  .fmlb-pool-content { flex-direction: column; align-items: flex-start; }
  .fmlb-pool-right { align-items: flex-start; }
  .fmlb-my-stats { flex-direction: column; align-items: stretch; }
  .fmlb-my-stats-rank { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0 0 0.5rem; }
  .fmlb-my-stats-grid { justify-content: space-around; }
  .fmlb-points-grid { flex-direction: column; gap: 0.5rem; }
  .fmlb-weekly-table { font-size: 0.7rem; }
  .fmlb-col-stat { width: 40px; }
  .fmlb-col-pts { width: 60px; }
  .fmlb-col-prize { width: 70px; }
  .fmlb-player-name { max-width: 80px; }
}

/* ===== Login Banner (non-authenticated) ===== */
.fm-login-banner {
  background: linear-gradient(90deg, #b91c1c, #991b1b);
  color: #fef2f2;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.fm-login-banner a {
  color: #fbbf24;
  text-decoration: underline;
  font-weight: 700;
}
.fm-login-banner a:hover {
  color: #fde68a;
}

/* ===== Clean topbar for logged-in users ===== */
.fm-topbar-clean {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.fm-topbar-clean .fm-topbar-inner {
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== VIP Newbie Promo Banner — Diamond Offer (modernized) ===== */
.fm-promo-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(96,165,250,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 50%, rgba(185,242,255,0.10) 0%, transparent 55%),
    linear-gradient(135deg, rgba(8,18,44,0.92) 0%, rgba(4,10,28,0.94) 100%);
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow:
    0 8px 28px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.fm-promo-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(185,242,255,0.55) 50%, transparent 100%) top/100% 1px no-repeat;
  pointer-events: none;
}
.fm-promo-banner-glow {
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg,
    rgba(96,165,250,0) 0deg,
    rgba(96,165,250,0.18) 90deg,
    rgba(185,242,255,0.22) 180deg,
    rgba(96,165,250,0.18) 270deg,
    rgba(96,165,250,0) 360deg
  );
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  animation: fm-promo-rotate 14s linear infinite;
  z-index: 0;
}
@keyframes fm-promo-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.fm-promo-banner > *:not(.fm-promo-banner-glow) { position: relative; z-index: 1; }

.fm-promo-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  order: 0;
}
.fm-promo-banner-img-wrap {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(185,242,255,0.35) 0%, transparent 65%),
    linear-gradient(180deg, rgba(96,165,250,0.18), rgba(8,18,44,0.6));
  box-shadow:
    0 0 22px rgba(185,242,255,0.45),
    inset 0 0 0 1px rgba(185,242,255,0.4),
    inset 0 0 14px rgba(96,165,250,0.35);
  flex-shrink: 0;
  animation: fm-promo-img-pulse 2.6s ease-in-out infinite;
}
@keyframes fm-promo-img-pulse {
  0%,100% { box-shadow: 0 0 18px rgba(185,242,255,0.35), inset 0 0 0 1px rgba(185,242,255,0.4), inset 0 0 14px rgba(96,165,250,0.35); }
  50%     { box-shadow: 0 0 30px rgba(185,242,255,0.7),  inset 0 0 0 1px rgba(185,242,255,0.55), inset 0 0 18px rgba(96,165,250,0.5); }
}
.fm-promo-banner-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.fm-promo-banner-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.fm-promo-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #cfe9ff;
  padding: 2px 8px;
  border: 1px solid rgba(185,242,255,0.45);
  background: linear-gradient(180deg, rgba(96,165,250,0.22), rgba(8,18,44,0.5));
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(96,165,250,0.35);
}
.fm-promo-banner-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: #D0D3D9;
}
.fm-promo-banner-title strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #b9f2ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(185,242,255,0.35);
}
.fm-promo-banner-price {
  font-family: 'Orbitron', sans-serif;
  color: #4ade80;
  font-weight: 800;
  font-size: 1rem;
  text-shadow: 0 0 14px rgba(74,222,128,0.55);
}
.fm-promo-banner-period {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.fm-promo-banner-old {
  color: rgba(248,113,113,0.85);
  font-size: 0.7rem;
  text-decoration-thickness: 1.5px;
}
.fm-promo-banner-savepct {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a0e00;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffe066 0%, #f7a00f 100%);
  box-shadow: 0 2px 8px rgba(247,160,15,0.5);
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
.fm-promo-banner-auto {
  font-size: 0.62rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.fm-promo-banner-legacy {
  font-size: 0.62rem;
  color: #fbbf24;
  font-weight: 600;
}
.fm-promo-banner-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  flex-basis: 100%;
  min-width: 0;
  align-content: center;
  order: 2;
}
.fm-promo-banner-perks span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
  color: #d0d8e6;
  white-space: normal;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(96,165,250,0.12) 0%, rgba(8,18,44,0.45) 100%);
  padding: 0.32rem 0.55rem;
  border-radius: 7px;
  border: 1px solid rgba(96,165,250,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.fm-promo-banner-perks span:hover {
  border-color: rgba(185,242,255,0.55);
  background: linear-gradient(180deg, rgba(96,165,250,0.22) 0%, rgba(8,18,44,0.55) 100%);
  transform: translateY(-1px);
}
.fm-promo-banner-perks span b {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  color: #b9f2ff;
  text-shadow: 0 0 8px rgba(185,242,255,0.45);
}
.fm-promo-banner-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  flex-shrink: 0;
  min-width: 168px;
  margin-left: auto;
  order: 1;
}
.fm-promo-banner-err {
  font-size: 0.65rem;
  color: #ef4444;
  text-align: center;
}
.fm-promo-banner-btn {
  position: relative;
  overflow: hidden;
  padding: 0.65rem 1.2rem;
  background: linear-gradient(180deg, #f7a00f 0%, #c97a14 100%);
  border: 1px solid rgba(255,224,102,0.5);
  border-radius: 9px;
  color: #1a0e00;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  box-shadow:
    0 6px 16px rgba(247,160,15,0.4),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 5px rgba(0,0,0,0.2);
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.fm-promo-banner-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.fm-promo-banner-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 10px 24px rgba(247,160,15,0.55),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 5px rgba(0,0,0,0.2),
    0 0 24px rgba(255,224,102,0.4);
}
.fm-promo-banner-btn:hover:not(:disabled)::before { transform: translateX(100%); }
.fm-promo-banner-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.fm-promo-banner-spin {
  width: 12px; height: 12px;
  border: 2px solid rgba(26,14,0,0.25);
  border-top-color: #1a0e00;
  border-radius: 50%;
  animation: fm-promo-spin 0.7s linear infinite;
}
@keyframes fm-promo-spin { to { transform: rotate(360deg); } }
.fm-promo-banner-trust {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .fm-promo-banner { flex-wrap: wrap; }
  .fm-promo-banner-perks { flex-basis: 100%; order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-promo-banner-cta { width: 100%; flex-direction: row; align-items: center; min-width: 0; margin-left: 0; }
  .fm-promo-banner-btn { flex: 1; }
}
@media (max-width: 768px) {
  .fm-promo-banner-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fm-promo-banner { padding: 0.6rem 0.75rem; gap: 0.65rem; }
  .fm-promo-banner-img-wrap { width: 44px; height: 44px; }
  .fm-promo-banner-img { width: 32px; height: 32px; }
  .fm-promo-banner-title { font-size: 0.74rem; }
  .fm-promo-banner-title strong { font-size: 0.85rem; }
  .fm-promo-banner-price { font-size: 0.9rem; }
  .fm-promo-banner-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem; }
  .fm-promo-banner-perks span { font-size: 0.6rem; padding: 0.28rem 0.4rem; }
}

/* ===== Promo Cards + Quick Navigation ===== */
.fm-quick-section {
  margin-bottom: 1.25rem;
}
.fm-promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.fm-promo-card {
  background: linear-gradient(145deg, rgba(30, 32, 38, 0.95) 0%, rgba(18, 20, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fm-promo-card:hover {
  border-color: rgba(247, 160, 15, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.fm-promo-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fm-promo-card-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}
.fm-promo-card-header h4 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #D0D3D9;
}
.fm-promo-card-tag {
  font-size: 0.68rem;
  color: #F7A00F;
  font-weight: 600;
}
.fm-promo-card p {
  margin: 0;
  font-size: 0.78rem;
  color: #838791;
  line-height: 1.4;
  flex: 1;
}
.fm-promo-card-btn {
  width: 100%;
  padding: 0.55rem;
  background: linear-gradient(135deg, #F7A00F 0%, #ea580c 100%);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.fm-promo-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(247, 160, 15, 0.35);
}

/* Quick Nav Header */
.fm-quick-nav-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.fm-quick-nav-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #838791;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.fm-quick-nav-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

/* Quick Nav Carousel — 5-card grid with 3D spin */
.fm-quick-nav-carousel {
  position: relative;
  display: flex;
  align-items: center;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  user-select: none;
  padding: 0 24px;
  perspective: 800px;
}
.fm-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 20, 26, 0.9);
  color: #aaa;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.fm-nav-arrow:hover {
  background: rgba(247, 160, 15, 0.18);
  border-color: rgba(247, 160, 15, 0.5);
  color: #F7A00F;
}
.fm-nav-arrow:active {
  transform: translateY(-50%) scale(0.88);
  transition: transform 0.1s ease;
}
.fm-nav-arrow--left { left: 0; }
.fm-nav-arrow--right { right: 0; }

/* 5-card grid */
.fm-nav-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
  padding: 14px 0 18px;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

/* Base card */
.fm-quick-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  background: rgba(26, 28, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.fm-quick-nav-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.fm-quick-nav-card:hover {
  transform: scale(1.02);
  border-color: var(--qn-accent, rgba(255, 255, 255, 0.18));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px color-mix(in srgb, var(--qn-accent, #F7A00F) 12%, transparent);
  background: rgba(30, 32, 38, 0.95);
}
.fm-quick-nav-card:active {
  transform: scale(0.96);
}

/* Photo area */
.fm-qn-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, rgba(40, 42, 50, 0.9), rgba(24, 26, 32, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fm-qn-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text below photo */
.fm-qn-label {
  font-weight: 700;
  font-size: 0.78rem;
  color: #D0D3D9;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 0.4rem;
}
.fm-qn-desc {
  font-size: 0.55rem;
  color: #5a5e69;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 0.4rem 0.5rem;
}

/* ── Position styles ── */
.fm-nav-pos-0 {
  transform: scale(1.05);
  opacity: 1;
  z-index: 3;
  border-color: color-mix(in srgb, var(--qn-accent, #F7A00F) 25%, transparent);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35),
              0 0 18px color-mix(in srgb, var(--qn-accent, #F7A00F) 14%, transparent),
              0 0 6px color-mix(in srgb, var(--qn-accent, #F7A00F) 8%, transparent);
}
.fm-nav-pos--1,
.fm-nav-pos-1 {
  transform: scale(1);
  opacity: 0.82;
  z-index: 2;
}
.fm-nav-pos--2 {
  transform: scale(1);
  opacity: 0.4;
  z-index: 1;
  clip-path: inset(0 0 0 50%);
}
.fm-nav-pos-2 {
  transform: scale(1);
  opacity: 0.4;
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

/* ── Squeeze-bounce animation ── */
.fm-quick-nav-card.fm-bounce {
  animation: cardBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.fm-nav-pos-0.fm-bounce {
  animation: cardBounceCenter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.fm-nav-pos--1.fm-bounce,
.fm-nav-pos-1.fm-bounce {
  animation: cardBounceSide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.fm-nav-pos--2.fm-bounce,
.fm-nav-pos-2.fm-bounce {
  animation: cardBounceEdge 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
/* Center card: opacity 1 → 0.55 → back */
@keyframes cardBounceCenter {
  0%   { transform: scale(1.05); opacity: 1; }
  35%  { transform: scale(0.97);  opacity: 0.7; }
  70%  { transform: scale(1.07); opacity: 0.95; }
  100% { transform: scale(1.05); opacity: 1; }
}
/* Default / fallback */
@keyframes cardBounce {
  0%   { transform: scale(1); opacity: 0.82; }
  35%  { transform: scale(0.93); opacity: 0.55; }
  70%  { transform: scale(1.02); opacity: 0.78; }
  100% { transform: scale(1); opacity: 0.82; }
}
/* Side cards (-1, +1): opacity 0.82 → 0.4 → back */
@keyframes cardBounceSide {
  0%   { transform: scale(1); opacity: 0.82; }
  35%  { transform: scale(0.93); opacity: 0.55; }
  70%  { transform: scale(1.02); opacity: 0.78; }
  100% { transform: scale(1); opacity: 0.82; }
}
/* Edge cards (-2, +2): opacity 0.4 → 0.2 → back */
@keyframes cardBounceEdge {
  0%   { transform: scale(1); opacity: 0.4; }
  35%  { transform: scale(0.93); opacity: 0.2; }
  70%  { transform: scale(1.02); opacity: 0.36; }
  100% { transform: scale(1); opacity: 0.4; }
}

@media (max-width: 768px) {
  .fm-nav-arrow { width: 28px; height: 28px; font-size: 1rem; }
  .fm-qn-label { font-size: 0.7rem; }
  .fm-nav-track { gap: 12px; }
  .fm-quick-nav-carousel { padding: 0 18px; }
}
@media (max-width: 500px) {
  .fm-qn-desc { display: none; }
  .fm-qn-label { font-size: 0.62rem; }
  .fm-nav-arrow { width: 24px; height: 24px; font-size: 0.85rem; }
  .fm-quick-nav-carousel { padding: 0 14px; }
  .fm-nav-track { gap: 10px; }
}

/* ===== Featured Cards Grid (Dashboard-matching) ===== */
.fm-featured-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.fm-featured-card {
  background: linear-gradient(145deg, rgba(30, 32, 38, 0.95) 0%, rgba(18, 20, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.fm-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}
.fm-featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent, rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.fm-featured-card:hover {
  border-color: rgba(247, 160, 15, 0.4);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 30px rgba(247, 160, 15, 0.08);
}
.fm-card-rewards:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 30px rgba(247, 160, 15, 0.12);
}
.fm-card-eur:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 30px rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
}
.fm-card-leaderboard:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 30px rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
}

/* Card Header */
.fm-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.fm-card-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}
.fm-card-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}
.fm-card-title-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.fm-card-title-section h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0;
  color: #D0D3D9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-card-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #22c55e;
}

/* Live Badge */
.fm-live-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #22c55e;
  text-transform: uppercase;
}
.fm-live-badge-eur { color: #22c55e; }
.fm-live-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: fm-pulse-live 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes fm-pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Main Stat */
.fm-card-main-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(247, 160, 15, 0.12) 0%, rgba(234, 88, 12, 0.06) 100%);
  border: 1px solid rgba(247, 160, 15, 0.2);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  position: relative;
  overflow: hidden;
}
.fm-card-main-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: fm-shimmer 3s infinite;
}
@keyframes fm-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}
.fm-card-main-stat-eur {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(22, 163, 74, 0.06) 100%);
  border-color: rgba(34, 197, 94, 0.25);
  flex-direction: row;
  gap: 0.15rem;
}
.fm-card-main-stat-gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
  border-color: rgba(251, 191, 36, 0.25);
}
.fm-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.fm-stat-token-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(247, 160, 15, 0.4);
}
.fm-stat-symbol {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #22c55e;
}
.fm-stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}
.fm-stat-unit {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fbbf24;
  align-self: flex-end;
  margin-bottom: 0.15rem;
}
.fm-stat-eur {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #22c55e;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}
.fm-card-substat {
  text-align: center;
  font-size: 0.73rem;
  color: #86efac;
  margin-bottom: 0.4rem;
}
.fm-card-formula {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  color: #22c55e;
  text-align: center;
}

/* Timer */
.fm-card-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.3rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

/* Mini Chart Container */
.fm-card-chart-mini {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 0.4rem;
  max-height: 110px;
  overflow: hidden;
}
/* Hide the full chart header/info/ranges inside mini card — show only canvas */
.fm-card-chart-mini .price-chart-wrapper {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.fm-card-chart-mini .price-chart-header {
  display: none !important;
}
.fm-card-chart-mini .price-chart-canvas {
  margin: 0 !important;
  padding: 0 !important;
  max-height: 100px;
}
.fm-card-chart-mini .price-chart-canvas svg {
  width: 100%;
  height: auto;
  max-height: 100px;
  display: block;
}
.fm-card-chart-mini .price-chart-tooltip {
  display: none !important;
}
.fm-timer-icon { font-size: 0.8rem; }
.fm-timer-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #F7A00F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-card-description {
  flex: 1;
  font-size: 0.75rem;
  color: #838791;
  line-height: 1.4;
  margin: 0 0 0.4rem;
  text-align: center;
}

/* Card Actions */
.fm-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
}
.fm-card-btn {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border: none;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.fm-card-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D0D3D9;
}
.fm-card-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.fm-card-btn-primary {
  background: linear-gradient(135deg, #F7A00F 0%, #ea580c 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(247, 160, 15, 0.2);
}
.fm-card-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(247, 160, 15, 0.35);
}
.fm-card-btn-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}
.fm-card-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
}

/* Giveaway Card */
.fm-card-giveaway:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 30px rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
}
.fm-live-badge-giveaway {
  color: #a855f7;
}
.fm-live-badge-giveaway .fm-live-dot {
  background: #a855f7;
}
.fm-giveaway-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(168, 85, 247, 0.15);
}
.fm-giveaway-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 110px;
}
.fm-giveaway-rules {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}
.fm-giveaway-rule {
  font-size: 0.72rem;
  color: #d1d5db;
  padding: 0.25rem 0.5rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 6px;
  line-height: 1.3;
}
.fm-giveaway-prizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-bottom: 0.4rem;
  padding: 0.35rem 0.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 8px;
}
.fm-giveaway-prize-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #c084fc;
  width: 100%;
  margin-bottom: 0.1rem;
}
.fm-giveaway-prize {
  font-size: 0.7rem;
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}
.fm-giveaway-tickets {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  position: relative;
  overflow: hidden;
}
.fm-giveaway-tickets::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.06), transparent);
  animation: fm-shimmer 3s infinite;
}
.fm-giveaway-tickets-label {
  font-size: 0.68rem;
  color: #c084fc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fm-giveaway-tickets-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}
.fm-giveaway-tickets-breakdown {
  display: flex;
  gap: 0.5rem;
  font-size: 0.62rem;
  color: #a78bfa;
  margin-top: 0.15rem;
}

/* Giveaway button */
.fm-card-btn-giveaway {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
}
.fm-card-btn-giveaway:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

/* Giveaway Popup */
.fm-giveaway-popup-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.fm-giveaway-popup-img {
  width: 100%;
  height: auto;
  display: block;
}
.fm-giveaway-popup-prizes {
  margin-bottom: 1rem;
}
.fm-giveaway-popup-prize-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 0.6rem;
}
.fm-giveaway-popup-prize-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fm-giveaway-popup-prize-item {
  font-size: 0.95rem;
  color: #e9d5ff;
  padding: 0.5rem 0.75rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 8px;
}
.fm-giveaway-popup-prize-item strong {
  color: #fff;
}
.fm-giveaway-popup-info {
  padding: 0.6rem 0.75rem;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #a78bfa;
  line-height: 1.5;
}
.fm-giveaway-popup-info p {
  margin: 0.2rem 0;
}
.fm-giveaway-popup-info strong {
  color: #c084fc;
}

/* ===== Kingdom Tower Wide Card (span 2 cols) ===== */
.fm-card-rewards-wide {
  grid-column: span 2;
}

/* ===== 3D Tower Hero Card ===== */
.fm-tower-card {
  grid-column: 1 / -1 !important;
  overflow: visible !important;
  background: linear-gradient(135deg, #111215 0%, #18191e 40%, #111215 100%) !important;
  border: 1px solid rgba(247, 160, 15, 0.12) !important;
  min-height: 220px;
  z-index: 3;
  padding: 1.2rem 1.5rem !important;
}
.fm-tower-card::before {
  background: linear-gradient(90deg, transparent, rgba(247, 160, 15, 0.2), rgba(247, 160, 15, 0.06), transparent) !important;
}
.fm-tower-card:hover {
  border-color: rgba(247, 160, 15, 0.3) !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(247, 160, 15, 0.1),
    inset 0 0 60px rgba(247, 160, 15, 0.02) !important;
}
.fm-tower-bg-glow {
  position: absolute;
  top: -20%;
  right: 5%;
  width: 45%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(247, 160, 15, 0.06) 0%, rgba(247, 160, 15, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.fm-tower-3d-img {
  position: absolute;
  right: 20px;
  bottom: -35px;
  width: 240px;
  height: auto;
  z-index: 4;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
  transform: rotate(-3deg) translateZ(0);
  transition: transform 0.4s ease, filter 0.4s ease;
  animation: fm-tower-float 5s ease-in-out infinite;
}
.fm-tower-card:hover .fm-tower-3d-img {
  transform: rotate(-1deg) translateY(-6px) scale(1.03) translateZ(0);
  filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.8));
}
@keyframes fm-tower-float {
  0%, 100% { transform: rotate(-3deg) translateY(0) translateZ(0); }
  50% { transform: rotate(-3deg) translateY(-5px) translateZ(0); }
}
.fm-tower-card .fm-card-rewards-inner {
  position: relative;
  z-index: 3;
}
.fm-tower-card .fm-card-rewards-right {
  margin-right: 200px;
}

/* ===== End 3D Tower Hero Card ===== */



/* ===== New Distribution Section Redesign ===== */

/* -- Keyframes -- */
@keyframes dist-shimmer {
  0% { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(220%) skewX(-15deg); }
}
@keyframes dist-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247,160,15,0), 0 4px 16px rgba(0,0,0,0.6); }
  50% { box-shadow: 0 0 0 3px rgba(247,160,15,0.18), 0 8px 24px rgba(247,160,15,0.15); }
}
@keyframes dist-box-in {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dist-aurora {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes dist-scan {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}
@keyframes dist-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes dist-value-pop {
  0%   { transform: scale(0.9); opacity: 0; }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}

/* -- Wrapper: creates space for boxes to peek above card -- */
.dist-section-wrapper {
  grid-column: 1 / -1;
  padding-top: 160px; /* space for taller boost tabs protruding above card */
}

/* -- Boost boxes: absolute tab-row above card top edge -- */
.dist-boost-row {
  position: absolute;
  top: -160px;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.dist-boost-box {
  flex: 1;
  height: 160px;
  border-radius: 0.7rem 0.7rem 0 0;
  padding: 0.6rem 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.55rem;
  gap: 0.14rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: dist-box-in 0.45s ease both;
  text-align: center;
  font-family: inherit;
}
/* staggered entry */
.dist-boost-box:nth-child(1) { animation-delay: 0.05s; }
.dist-boost-box:nth-child(2) { animation-delay: 0.12s; }
.dist-boost-box:nth-child(3) { animation-delay: 0.19s; }
.dist-boost-box:nth-child(4) { animation-delay: 0.26s; }
.dist-boost-box:nth-child(5) { animation-delay: 0.33s; }

/* Active box — tab growing from card top */
.dist-boost-box--active {
  background: linear-gradient(175deg, #171208 0%, #100e05 50%, #0d0c10 100%);
  border: 1px solid rgba(247,160,15,0.22);
  border-bottom: none; /* merges seamlessly with card top border */
  box-shadow:
    0 -6px 22px rgba(0,0,0,0.6),
    0 -1px 8px rgba(247,160,15,0.12),
    inset 0 1px 0 rgba(247,160,15,0.15);
  cursor: pointer;
  animation: dist-box-in 0.45s ease both, dist-glow-pulse 3.5s ease-in-out infinite;
}
.dist-boost-box--active:hover {
  transform: translateY(-3px);
  box-shadow:
    0 -12px 32px rgba(0,0,0,0.6),
    0 -2px 14px rgba(247,160,15,0.18),
    inset 0 1px 0 rgba(247,160,15,0.18);
}
/* shimmer sweep on active box */
.dist-boost-box--active::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(247,160,15,0.12) 40%, rgba(255,255,255,0.15) 50%, rgba(247,160,15,0.12) 60%, transparent 100%);
  transform: translateX(-120%) skewX(-15deg);
  animation: dist-shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}
.dist-boost-box--active:nth-child(2)::before {
  animation-delay: 0.8s;
}

/* Empty/coming soon box */
.dist-boost-box--empty {
  background: linear-gradient(175deg, #0d0d0f 0%, #0a0a0c 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-bottom: none; /* merges with card */
  box-shadow: 0 -3px 12px rgba(0,0,0,0.4);
  opacity: 0.55;
  cursor: not-allowed;
}

/* Corner accent on active boxes */
.dist-boost-box--active::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 28px; height: 28px;
  background: linear-gradient(225deg, rgba(247,160,15,0.25) 0%, transparent 60%);
  border-radius: 0 0.85rem 0 0;
  pointer-events: none;
}

.dist-boost-icon {
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(247,160,15,0.4));
}
.dist-boost-box--empty .dist-boost-icon {
  filter: none;
  opacity: 0.35;
}
.dist-boost-title {
  font-size: 0.64rem;
  font-weight: 700;
  color: #e2c97e;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(247,160,15,0.3);
}
.dist-boost-box--empty .dist-boost-title {
  color: #444;
  text-shadow: none;
}
.dist-boost-desc {
  font-size: 0.57rem;
  color: rgba(247,160,15,0.5);
  text-align: center;
  line-height: 1.3;
}
.dist-boost-cta {
  font-size: 0.55rem;
  color: rgba(247,160,15,0.35);
  margin-top: 0.1rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.dist-boost-box--active:hover .dist-boost-cta {
  color: rgba(247,160,15,0.75);
}

/* -- Main card: position:relative so absolute boost-row anchors to it -- */
.dist-main-card {
  position: relative !important;
  z-index: 2 !important;
  background: linear-gradient(135deg, #0d0d10 0%, #0a0a0c 50%, #0d0d10 100%) !important;
  border: 1px solid rgba(247,160,15,0.16) !important;
  overflow: visible !important;
  min-height: 320px;
}
/* Aurora sweep on card background */
.dist-main-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(247,160,15,0.025) 30%,
    rgba(247,160,15,0.04) 50%,
    rgba(247,160,15,0.025) 70%,
    transparent 100%);
  background-size: 200% 200%;
  animation: dist-aurora 8s ease infinite;
  pointer-events: none;
  z-index: 0;
}

/* -- Pool header -- */
.dist-pool-header {
  position: relative;
  z-index: 3;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1rem;
  overflow: hidden;
}
/* scan line */
.dist-pool-header::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(247,160,15,0.06), transparent);
  animation: dist-scan 5s ease-in-out infinite;
  pointer-events: none;
}
.dist-pool-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.dist-pool-stat-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.dist-pool-token-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(247,160,15,0.5));
  animation: dist-spin-slow 20s linear infinite;
}
.dist-pool-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: #F7A00F;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(247,160,15,0.4), 0 2px 8px rgba(0,0,0,0.5);
  animation: dist-value-pop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.2s;
}
.dist-pool-unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(247,160,15,0.65);
  margin-top: 0.25rem;
  align-self: flex-end;
  padding-bottom: 0.15rem;
}
.dist-pool-eur {
  font-size: 1.05rem;
  font-weight: 600;
  color: #22c55e;
  margin-left: 0.3rem;
  align-self: flex-end;
  padding-bottom: 0.15rem;
  text-shadow: 0 0 12px rgba(34,197,94,0.25);
}
.dist-pool-breakdown-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  font-size: 0.6rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  margin-left: 0.3rem;
  align-self: flex-end;
  margin-bottom: 0.2rem;
  transition: all 0.15s ease;
}
.dist-pool-breakdown-btn:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.09);
  border-color: rgba(247,160,15,0.3);
}
.dist-pool-breakdown {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: rgba(0,0,0,0.3);
  border-radius: 0.45rem;
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.71rem;
  animation: dist-value-pop 0.25s ease both;
}
.dist-pool-breakdown-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
}
.dist-pb-val {
  font-weight: 700;
  color: #F7A00F;
  white-space: nowrap;
}
.dist-pb-val--locked { color: #cbd5e1; }

/* -- Loading skeleton for pool -- */
.dist-pool-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dist-pool-skel {
  height: 2.4rem;
  width: 200px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: dist-shimmer 1.5s ease-in-out infinite;
  border-radius: 0.4rem;
}
.dist-pool-skel-sm {
  height: 1rem;
  width: 100px;
  margin-top: 0.35rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: dist-shimmer 1.5s ease-in-out infinite;
  border-radius: 0.3rem;
}

/* -- Body split -- */
.dist-body-split {
  display: flex;
  gap: 1.5rem;
  position: relative;
  z-index: 3;
  margin-bottom: 1rem;
}
.dist-body-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.dist-body-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255,255,255,0.06);
  min-width: 0;
}
/* WEB3 Launch countdown — dashboard right panel */
.dash-phase-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.28rem 0.5rem;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.dash-phase-timer:hover {
  background: rgba(239,68,68,0.13);
  border-color: rgba(239,68,68,0.55);
}
.dash-phase-timer__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: dash-phase-pulse 1.4s ease-in-out infinite;
}
.dash-phase-timer__label {
  font-size: 0.46rem;
  font-weight: 700;
  color: rgba(239,68,68,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.dash-phase-timer__val {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@keyframes dash-phase-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  50% { opacity: 0.4; box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}


/* Your Estimated Rewards */
.dist-your-rewards-title {
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dist-your-rewards-title::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, #F7A00F, transparent);
  border-radius: 1px;
}
.dist-your-estimate-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dist-your-est-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(247,160,15,0.4));
}
.dist-your-est-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #F7A00F;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(247,160,15,0.35);
}
.dist-your-est-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(247,160,15,0.55);
  align-self: flex-end;
  padding-bottom: 0.15rem;
}
.dist-your-eur {
  font-size: 0.82rem;
  font-weight: 600;
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34,197,94,0.2);
  align-self: flex-end;
  padding-bottom: 0.18rem;
  white-space: nowrap;
}
.dist-your-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font-size: 0.7rem;
  color: #777;
  padding: 0.4rem 0.55rem;
  background: rgba(0,0,0,0.25);
  border-radius: 0.45rem;
  border: 1px solid rgba(255,255,255,0.04);
}
.dist-your-brow {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dist-your-brow span:last-child {
  font-weight: 600;
  color: #F7A00F;
}
.dist-your-brow--weight span:last-child { color: #aaa; }
.dist-your-warning {
  font-size: 0.69rem;
  color: #f59e0b;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 0.35rem;
  padding: 0.25rem 0.5rem;
}
.dist-your-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem;
  color: #444;
  text-align: center;
}
.dist-your-locked-icon { font-size: 1.4rem; opacity: 0.5; }
.dist-your-locked-msg { font-size: 0.72rem; }
.dist-your-loading { font-size: 0.75rem; color: #444; }

/* Pool stats column */
.dist-pool-stats {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.72rem;
}
.dist-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dist-stat-val {
  font-weight: 700;
  color: #F7A00F;
  white-space: nowrap;
}
.dist-stat-val--eur { color: #22c55e; }

/* Weekly requirements */
.dist-weekly-req {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.85rem;
}
.dist-weekly-req-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.dist-weekly-req-title {
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.4s ease;
}
.dist-weekly-req-title--unmet {
  color: #ef4444;
  text-shadow: 0 0 12px rgba(239,68,68,0.3);
}
.dist-weekly-req-title--met {
  color: rgba(255,255,255,0.25);
  text-shadow: none;
}
.dist-weekly-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.dist-weekly-body .fm-req-row { flex: 0 0 auto; }
.dist-weekly-body .fm-req-energy { flex: 1; min-width: 200px; }

/* ============================================================================
   SCHEDULE MINI BOXES
   ============================================================================ */
.dist-schedule-row {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.dist-schedule-row::-webkit-scrollbar { display: none; }
.dist-sched-box {
  flex: 1;
  min-width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.4rem 0.3rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  cursor: default;
}
.dist-sched-day {
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.dist-sched-amt {
  font-weight: 800;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
}
.dist-sched-unit {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.3);
}
.dist-sched-box--today {
  border-color: rgba(247,160,15,0.6);
  border-width: 1.5px;
}
.dist-sched-box--today .dist-sched-day { color: rgba(255,255,255,0.5); }
.dist-sched-box--today .dist-sched-amt { color: rgba(255,255,255,0.85); }
.dist-sched-box--weekly {
  flex: 1.4;
  background: rgba(247,160,15,0.07);
  border-color: rgba(247,160,15,0.25);
}
.dist-sched-box--weekly .dist-sched-day { color: #fbbf24; }
.dist-sched-box--weekly .dist-sched-amt { font-size: 0.62rem; color: rgba(251,191,36,0.85); }
.dist-sched-box--refill {
  flex: 1.2;
  background: rgba(34,197,94,0.06);
  border-color: rgba(34,197,94,0.2);
}
.dist-sched-box--refill .dist-sched-day { color: #86efac; }
.dist-sched-box--refill .dist-sched-amt { font-size: 0.62rem; color: rgba(134,239,172,0.85); }

/* ============================================================================
   PIE CHART
   ============================================================================ */
.dist-pie-chart {
  margin-left: 0.5rem;
  flex-shrink: 0;
  opacity: 0.9;
}

/* ============================================================================
   DRIP CLAIM BOOST BOX
   ============================================================================ */
.dist-drip-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 0.6rem 0.5rem;
  border-radius: 0.7rem 0.7rem 0 0;
  cursor: default;
  overflow: hidden;
  border-bottom: none;
}
.dist-drip-box--active {
  background: linear-gradient(160deg, rgba(34,197,94,0.12), rgba(21,128,61,0.07));
  border: 1px solid rgba(34,197,94,0.35);
  border-bottom: none;
}
.dist-drip-box--expired {
  background: linear-gradient(160deg, rgba(239,68,68,0.09), rgba(127,29,29,0.06));
  border: 1px solid rgba(239,68,68,0.3);
  border-bottom: none;
}
.dist-drip-header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.45);
}
.dist-drip-icon { font-size: 0.9rem; }
.dist-drip-label { flex: 1; }
.dist-drip-locked-bal {
  font-size: 0.58rem;
  color: rgba(148,163,184,0.7);
  font-weight: 600;
}
.dist-drip-amount {
  font-size: 1.05rem;
  font-weight: 900;
  color: #34d399;
  letter-spacing: -0.02em;
  line-height: 1;
}
.dist-drip-unit {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(52,211,153,0.6);
}
/* Bar wrapper */
.dist-drip-bar-wrap {
  position: relative;
  height: 7px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.dist-drip-bar-label {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.42rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
/* Generation bar: animated heartbeat that pulses 0 → 100% */
.dist-drip-bar--gen {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, #34d399, #6ee7b7, #34d399);
  border-radius: 4px;
  animation: drip-gen-pulse 2.2s ease-in-out infinite;
}
@keyframes drip-gen-pulse {
  0%   { width: 0%; opacity: 0.9; }
  60%  { width: 100%; opacity: 1; }
  85%  { width: 100%; opacity: 0.4; }
  100% { width: 0%; opacity: 0; }
}
/* 24h window bar */
.dist-drip-bar--window {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
  border-radius: 4px;
  transition: width 1s linear;
}
.dist-drip-bar--window.dist-drip-bar--expired {
  background: linear-gradient(90deg, #ef4444, #fca5a5);
}
/* 7-day period bar */
.dist-drip-bar--period {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
  border-radius: 4px;
  transition: width 30s linear;
}
/* Claim message */
.dist-drip-msg {
  font-size: 0.6rem;
  font-weight: 700;
  color: #34d399;
  text-align: center;
  padding: 0.15rem 0;
}
/* Claim buttons */
.dist-drip-btn {
  display: block;
  width: 100%;
  padding: 0.3rem 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.dist-drip-btn--claim {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  animation: drip-claim-pulse 2.5s ease-in-out infinite;
}
@keyframes drip-claim-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 8px 3px rgba(34,197,94,0.25); }
}
.dist-drip-btn--claim:hover:not(:disabled) {
  opacity: 0.9; transform: scale(1.02);
}
.dist-drip-btn--claim:disabled { opacity: 0.5; cursor: not-allowed; animation: none; }
.dist-drip-btn--cooldown {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
}
.dist-drip-btn--expired {
  background: rgba(239,68,68,0.12);
  color: rgba(239,68,68,0.7);
  cursor: not-allowed;
}

/* ── Tall boost boxes (Kingdom Level Up & Attach Lands) ── */
.dist-boost-box--tall {
  height: 160px !important;
}
.dist-boost-stat-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  width: 100%;
  justify-content: center;
}
.dist-boost-stat-label {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.dist-boost-stat-val {
  font-size: 0.82rem;
  font-weight: 900;
  color: #F7A00F;
}
.dist-boost-progress-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.2rem;
}
.dist-boost-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F7A00F, #fcd34d);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.dist-boost-progress-fill--met {
  background: linear-gradient(90deg, #22c55e, #86efac);
}
.dist-boost-progress-fill--land {
  background: linear-gradient(90deg, #818cf8, #c4b5fd);
}

/* ── Schedule box EUR sub-label ── */
.dist-sched-eur {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  margin-top: 0.05rem;
}
/* New prominent EUR in schedule — shown above TLRPG */
.dist-sched-eur-big {
  font-size: 0.72rem;
  color: #f59e0b;
  font-weight: 700;
  font-family: monospace;
  margin-top: 0.1rem;
  order: 3;
}

/* ─────────────────────────────────────────────────────────────────
   DRIP CLAIM FULL SECTION (below weekly payout requirements)
   ───────────────────────────────────────────────────────────────── */
.dist-drip-section {
  margin: 0.75rem 0 0;
  border-radius: 0.7rem;
  padding: 1rem 1.1rem 1rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}
.dist-drip-section--active {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(21,128,61,0.04));
  border-color: rgba(34,197,94,0.28);
}
.dist-drip-section--expired {
  background: linear-gradient(135deg, rgba(239,68,68,0.07), rgba(127,29,29,0.04));
  border-color: rgba(239,68,68,0.25);
}
.dist-drip-section--inactive {
  opacity: 0.6;
}
.dist-drip-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.dist-drip-section-icon { font-size: 1.1rem; }
.dist-drip-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.8);
}
.dist-drip-section-bal {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(148,163,184,0.85);
}
.dist-drip-section-bal-eur {
  color: rgba(248,213,101,0.7);
  font-size: 0.62rem;
  margin-left: 0.25rem;
}
.dist-drip-section-empty {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 0.5rem 0;
}
/* Two-column body */
.dist-drip-section-body {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.dist-drip-section-left {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dist-drip-section-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dist-drip-section-claimable-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.35);
}
.dist-drip-section-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: #34d399;
  letter-spacing: -0.03em;
  line-height: 1;
}
.dist-drip-section-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(52,211,153,0.6);
}
.dist-drip-section-eur {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(248,213,101,0.7);
  margin-top: -0.2rem;
}
/* Bar group */
.dist-drip-section-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.dist-drip-section-bar-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dist-drip-bar-track {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
/* Right panel stats */
.dist-drip-section-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.5rem;
}
.dist-drip-section-stat-label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
}
.dist-drip-section-stat-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
}
.dist-drip-section-stat-eur {
  font-size: 0.65rem;
  color: rgba(248,213,101,0.65);
}
.dist-drip-section-msg {
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  text-align: center;
  padding: 0.2rem 0;
}
/* Claim buttons */
.dist-drip-section-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  margin-top: 0.25rem;
}
.dist-drip-section-btn--claim {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  animation: drip-claim-pulse 2.5s ease-in-out infinite;
}
.dist-drip-section-btn--claim:hover:not(:disabled) { opacity: 0.9; transform: scale(1.02); }
.dist-drip-section-btn--claim:disabled { opacity: 0.5; cursor: not-allowed; animation: none; }
.dist-drip-section-btn--cooldown {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
}
.dist-drip-section-btn--expired {
  background: rgba(239,68,68,0.12);
  color: rgba(239,68,68,0.7);
  cursor: not-allowed;
}

/* ─── Drip boost box internals ─── */
.dist-boost-box--drip {
  justify-content: flex-start;
  padding: 0.45rem 0.5rem 0.4rem;
  gap: 0.15rem;
  align-items: flex-start;
}
.dist-drip-boost-bar-wrap {
  width: 100%;
  margin-top: 0.1rem;
}
.dist-drip-boost-bar-label {
  font-size: 0.46rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}
.dist-drip-boost-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.dist-drip-boost-gen-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  border-radius: 3px;
  animation: drip-gen-pulse 1.4s ease-in-out infinite;
}
@keyframes drip-gen-pulse {
  0%   { transform: translateX(-100%); opacity: 0.6; }
  50%  { opacity: 1; }
  100% { transform: translateX(300%); opacity: 0.6; }
}
.dist-drip-boost-win-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 3px;
  transition: width 1s linear;
}
.dist-drip-boost-win-fill--exp {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.dist-drip-boost-amount {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f59e0b;
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
}
.dist-drip-boost-amount span {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.dist-drip-boost-btn {
  margin-top: 0.2rem;
  width: 100%;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.56rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dist-drip-boost-btn--claim {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #111;
  animation: dist-drip-glow 2s ease-in-out infinite;
}
.dist-drip-boost-btn--claim:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  animation: none;
}
.dist-drip-boost-btn--cd {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  cursor: default;
}
.dist-drip-boost-btn--exp {
  background: rgba(239,68,68,0.12);
  color: rgba(239,68,68,0.7);
  cursor: default;
}
.dist-drip-boost-msg {
  font-size: 0.46rem;
  color: #86efac;
  margin-top: 0.1rem;
  text-align: center;
  width: 100%;
}
/* ─── Simple pending drip row ─── */
.dist-drip-pending-simple {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0 0;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 0.6rem;
  flex-wrap: wrap;
}
.dist-drip-pending-icon { font-size: 0.85rem; }
.dist-drip-pending-label {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dist-drip-pending-amt {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f59e0b;
  margin-left: auto;
}
.dist-drip-pending-eur {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
}
.dist-drip-pending-locked {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  margin-left: 0.25rem;
}

/* ─── Drip box internals (Kingdom Level Up & Attach Lands) ─── */
.dist-boost-box--drip-gen,
.dist-boost-box--drip-claim {
  align-items: flex-start;
  padding: 0.5rem 0.6rem 0.45rem;
  gap: 0.18rem;
  justify-content: flex-start;
}
.dist-drip-box-header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
}
.dist-drip-box-stat-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  font-size: 0.56rem;
}
.dist-drip-box-stat-label {
  color: rgba(255,255,255,0.38);
  font-weight: 600;
}
.dist-drip-box-stat-val {
  color: #F7A00F;
  font-weight: 900;
  font-size: 0.78rem;
}
.dist-drip-box-stat-sep {
  color: rgba(255,255,255,0.2);
}
.dist-drip-box-weight {
  margin-left: auto;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  font-size: 0.52rem;
}
.dist-drip-box-bar-wrap {
  width: 100%;
  margin-top: 0.15rem;
}
.dist-drip-box-bar-label {
  font-size: 0.46rem;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}
.dist-drip-box-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.dist-drip-box-gen-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  border-radius: 3px;
  animation: drip-gen-pulse 1s linear infinite;
}
@keyframes drip-gen-pulse {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.dist-drip-box-win-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 3px;
  transition: width 1s linear;
}
.dist-drip-box-win-fill--exp {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.dist-drip-box-rate {
  font-size: 0.64rem;
  font-weight: 800;
  color: #f59e0b;
  margin-top: 0.1rem;
}
.dist-drip-box-rate-unit {
  font-size: 0.48rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}
.dist-drip-box-claimable {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f59e0b;
  margin-top: 0.12rem;
}
.dist-drip-box-claimable span {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.dist-drip-box-btn {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.28rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  text-align: center;
  cursor: pointer;
}
.dist-drip-box-btn--claim {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #111;
  box-shadow: 0 0 8px rgba(245,158,11,0.4);
}
.dist-drip-box-btn--claim:hover:not(:disabled) { opacity: 0.9; }
.dist-drip-box-btn--claim:disabled { opacity: 0.45; cursor: not-allowed; }
.dist-drip-box-btn--cd {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  cursor: default;
}
.dist-drip-box-btn--exp {
  background: rgba(239,68,68,0.1);
  color: rgba(239,68,68,0.7);
  cursor: default;
}
.dist-drip-box-btn--disabled {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.25);
  cursor: not-allowed;
}
.dist-drip-box-no-drip-msg {
  font-size: 0.5rem;
  color: #ef4444;
  font-weight: 700;
  margin-top: 0.2rem;
  line-height: 1.3;
}
/* ─── Pie chart in right body column ─── */
.dist-pie-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.dist-pie-right-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dist-pie-right-svg {
  display: block;
}
.dist-pie-right-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.4);
}
.dist-pie-right-sub strong {
  color: rgba(255,255,255,0.75);
}
/* ─── Pending Drip section (below Your Estimated Rewards) ─── */
.dist-pending-drip-section {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.1rem;
}

/* Responsive */
@media (max-width: 700px) {
  .dist-section-wrapper { padding-top: 100px; }
  .dist-boost-row { gap: 0.3rem; top: -100px; }
  .dist-boost-box--tall { height: 100px !important; }
  .dist-boost-icon { font-size: 1rem; }
  .dist-boost-title { font-size: 0.52rem; }
  .dist-boost-desc { display: none; }
  .dist-boost-stat-row { display: none; }
  .dist-boost-progress-wrap { display: none; }
  .dist-boost-cta { display: none; }
  .dist-pool-value { font-size: 1.7rem; }
  .dist-pool-eur { font-size: 0.82rem; }
  .dist-body-split { flex-direction: column; gap: 0.75rem; }
  .dist-body-right { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.6rem; }
  .dist-weekly-body { flex-direction: column; gap: 0.5rem; }
  .dist-drip-section-body { flex-direction: column; }
  .dist-drip-section-amount { font-size: 1.2rem; }
}
/* ===== End Distribution Section Redesign ===== */
/* ===== 3D TLRPG Token Hero Card ===== */
.fm-tlrpg-hero-card {
  grid-column: 1 / -1 !important;
  overflow: visible !important;
  background: linear-gradient(135deg, #0d0e10 0%, #161410 30%, #1a150d 50%, #131210 100%) !important;
  border: 1px solid rgba(247, 160, 15, 0.1) !important;
  min-height: 220px;
  z-index: 1;
  padding: 1.2rem 1.5rem !important;
  position: relative;
}
.fm-tlrpg-hero-card::before {
  background: linear-gradient(90deg, rgba(247, 160, 15, 0.08), transparent 40%, transparent 60%, rgba(247, 160, 15, 0.04)) !important;
}
.fm-tlrpg-hero-card::after {
  background: linear-gradient(135deg, rgba(247, 160, 15, 0.08), transparent, rgba(247, 160, 15, 0.04)) !important;
}
.fm-tlrpg-hero-card:hover {
  border-color: rgba(247, 160, 15, 0.22) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(247, 160, 15, 0.06) !important;
}
.fm-tlrpg-bg-glow {
  position: absolute;
  top: -30%;
  left: -5%;
  width: 35%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(247, 160, 15, 0.07) 0%, rgba(247, 160, 15, 0.02) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* New layout: left column (title + coin + buttons) | right column (chart) */
.fm-tlrpg-hero-layout {
  display: flex;
  gap: 1.5rem;
  position: relative;
  z-index: 3;
  min-height: 190px;
}
.fm-tlrpg-hero-left {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.fm-tlrpg-title {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #F7A00F, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-align: center;
}
.fm-tlrpg-price {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}
.fm-tlrpg-3d-img {
  width: 140px;
  height: auto;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
  transform: translateZ(0);
  transition: transform 0.4s ease, filter 0.4s ease;
  animation: fm-tlrpg-float 5s ease-in-out infinite;
  margin: 0.2rem 0;
}
.fm-tlrpg-hero-card:hover .fm-tlrpg-3d-img {
  transform: translateY(-4px) scale(1.03) translateZ(0);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
}
@keyframes fm-tlrpg-float {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50% { transform: translateY(-4px) translateZ(0); }
}
.fm-tlrpg-actions {
  flex-direction: row !important;
  gap: 0.5rem;
  margin-top: auto;
}
.fm-tlrpg-hero-right {
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 0.5rem;
  overflow: hidden;
}
.fm-tlrpg-hero-right > * {
  flex: 1;
  min-height: 0;
}

/* ── Re-skin MarketPriceChart inside the forum TLRPG hero card so it
   blends with the dark/gold fantasy theme instead of the default green ── */
.fm-tlrpg-hero-right .price-chart-wrapper {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(247, 160, 15, 0.06), transparent 55%),
    linear-gradient(160deg, rgba(20, 14, 8, 0.85) 0%, rgba(10, 8, 6, 0.92) 100%) !important;
  border: 1px solid rgba(247, 160, 15, 0.18) !important;
  border-radius: 12px !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(247, 160, 15, 0.12),
    inset 0 0 32px rgba(247, 160, 15, 0.03) !important;
  padding: 0.85rem 1rem !important;
  overflow: hidden;
  position: relative;
}
.fm-tlrpg-hero-right .price-chart-wrapper::before {
  background: linear-gradient(90deg, transparent, rgba(247, 160, 15, 0.55), transparent) !important;
  height: 1px !important;
  opacity: 0.7;
}
.fm-tlrpg-hero-right .price-chart-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(247, 160, 15, 0.025) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(247, 160, 15, 0.018) 31px 32px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
}

/* Header text — gold accent */
.fm-tlrpg-hero-right .price-chart-title { color: rgba(247, 200, 120, 0.65) !important; letter-spacing: 0.14em !important; }
.fm-tlrpg-hero-right .price-chart-price {
  background: linear-gradient(135deg, #ffd87a 0%, #f7a00f 60%, #b07012 100%) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 18px rgba(247, 160, 15, 0.18);
  font-family: 'Orbitron', 'IBM Plex Mono', monospace !important;
  font-size: 1.35rem !important;
}
.fm-tlrpg-hero-right .price-chart-change { color: #f7a00f !important; }
.fm-tlrpg-hero-right .price-chart-change[style*="rgb(239"], /* negative */
.fm-tlrpg-hero-right .price-chart-change[style*="ef4444"] { color: #e85d4a !important; }
.fm-tlrpg-hero-right .price-chart-period { color: rgba(247, 200, 120, 0.45) !important; }
.fm-tlrpg-hero-right .price-chart-burns { color: rgba(247, 200, 120, 0.55) !important; }

/* Range buttons — coin-tab style */
.fm-tlrpg-hero-right .price-chart-range-btn {
  background: linear-gradient(180deg, rgba(60, 40, 18, 0.6), rgba(28, 20, 10, 0.7)) !important;
  border: 1px solid rgba(247, 160, 15, 0.18) !important;
  color: rgba(247, 200, 120, 0.7) !important;
  font-family: 'Orbitron', sans-serif !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  transition: all 0.18s ease !important;
}
.fm-tlrpg-hero-right .price-chart-range-btn:hover {
  background: linear-gradient(180deg, rgba(80, 55, 22, 0.75), rgba(40, 28, 14, 0.85)) !important;
  border-color: rgba(247, 160, 15, 0.42) !important;
  color: #ffd87a !important;
  box-shadow: 0 0 10px rgba(247, 160, 15, 0.18);
}
.fm-tlrpg-hero-right .price-chart-range-btn.active {
  background: linear-gradient(180deg, rgba(247, 160, 15, 0.32), rgba(176, 110, 18, 0.28)) !important;
  border-color: rgba(255, 215, 122, 0.65) !important;
  color: #fff5d6 !important;
  text-shadow: 0 0 8px rgba(247, 160, 15, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 215, 122, 0.4),
    0 0 14px rgba(247, 160, 15, 0.25) !important;
}

/* Re-color the SVG line + area (inline strokes use #10b981) */
.fm-tlrpg-hero-right .price-chart-canvas svg path[stroke="#10b981"] { stroke: #f7a00f !important; filter: drop-shadow(0 0 6px rgba(247, 160, 15, 0.55)); }
.fm-tlrpg-hero-right .price-chart-canvas svg circle[fill="#10b981"] { fill: #ffd87a !important; filter: drop-shadow(0 0 4px rgba(247, 160, 15, 0.7)); }

/* Override the green area gradient via a stacked gold gradient overlay */
.fm-tlrpg-hero-right .price-chart-canvas svg path[fill^="url(#priceAreaGradient"] {
  fill: url(#fmTlrpgGoldArea), linear-gradient(transparent, transparent) !important;
}
/* Inject a gold area gradient that overrides via CSS-only fallback —
   browsers don't allow defining <defs> from CSS, so use opacity + color */
.fm-tlrpg-hero-right .price-chart-canvas svg path[fill^="url(#priceAreaGradient"] {
  opacity: 0.55;
  fill: rgba(247, 160, 15, 0.12) !important;
}

/* Burn dots stay amber but beefier */
.fm-tlrpg-hero-right .price-chart-canvas svg circle[fill="#f59e0b"] {
  fill: #ffb347 !important;
  stroke: rgba(255, 215, 122, 0.9) !important;
  filter: drop-shadow(0 0 5px rgba(247, 160, 15, 0.85));
}

/* Crosshair + tooltip — gold edge */
.fm-tlrpg-hero-right .price-chart-canvas svg line[stroke^="rgba(255,255,255"] {
  stroke: rgba(247, 200, 120, 0.45) !important;
}
.fm-tlrpg-hero-right .price-chart-tooltip {
  background:
    linear-gradient(160deg, rgba(28, 20, 10, 0.98), rgba(14, 10, 6, 0.98)) !important;
  border: 1px solid rgba(247, 160, 15, 0.5) !important;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(247, 160, 15, 0.25),
    inset 0 1px 0 rgba(247, 160, 15, 0.2) !important;
  border-radius: 10px !important;
}
.fm-tlrpg-hero-right .price-chart-tooltip .tooltip-date { color: rgba(247, 200, 120, 0.55) !important; }
.fm-tlrpg-hero-right .price-chart-tooltip .tooltip-price {
  color: #ffd87a !important;
  font-family: 'Orbitron', 'IBM Plex Mono', monospace !important;
  text-shadow: 0 0 10px rgba(247, 160, 15, 0.45);
}
.fm-tlrpg-hero-right .price-chart-tooltip .tooltip-burn {
  color: #ffb347 !important;
  border-top: 1px solid rgba(247, 160, 15, 0.25) !important;
}

/* Replace the right-side container chrome — let the chart's own gold
   skin show through instead of the dim grey wrapper. */
.fm-tlrpg-hero-card .fm-tlrpg-hero-right {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* ===== End forum chart re-skin ===== */
/* ===== End 3D TLRPG Token Hero Card ===== */

.fm-card-rewards-inner {
  display: flex;
  gap: 1rem;
  height: 100%;
}
.fm-card-rewards-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.fm-card-rewards-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.4rem 0;
  border-left: 1px solid rgba(255,255,255,0.06);
  padding-left: 1rem;
}
.fm-req-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

/* Personal / Guild toggle tabs */
.fm-req-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 2px;
  margin-bottom: 0.4rem;
}
.fm-req-tab {
  flex: 1;
  padding: 0.25rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #777;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.fm-req-tab:hover {
  color: #bbb;
  background: rgba(255,255,255,0.04);
}
.fm-req-tab-active {
  color: #F7A00F;
  background: rgba(247, 160, 15, 0.1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.fm-req-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #ccc;
}
.fm-req-energy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fm-req-energy-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #aaa;
}
.fm-req-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.fm-req-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F7A00F, #f59e0b);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.fm-req-progress-fill.fm-req-met {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}
.fm-req-estimate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #F7A00F;
}
.fm-req-estimate-note {
  font-size: 0.62rem;
  color: #666;
  font-weight: 400;
}
.fm-req-warning {
  font-size: 0.7rem;
  color: #f59e0b;
  text-align: center;
  margin-top: 0.25rem;
}
.fm-req-loading, .fm-req-login {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  padding: 1rem 0;
}

/* ===== Guild Distribution Card ===== */
.fm-card-guild-dist {
  background: linear-gradient(145deg, rgba(34, 38, 46, 0.95) 0%, rgba(18, 22, 28, 0.98) 100%);
  border-color: rgba(34, 197, 94, 0.12);
}
.fm-guild-dist-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-guild-dist-estimate {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F7A00F;
  text-align: center;
  margin: 0.25rem 0;
}
.fm-guild-dist-contrib {
  font-size: 0.68rem;
  color: #888;
  text-align: center;
  margin-bottom: 0.4rem;
}
.fm-guild-dist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.78rem;
  color: #888;
  text-align: center;
}
.fm-guild-dist-empty span {
  font-size: 1.5rem;
}

/* ===== Compact Profile Bar (below grid) ===== */
.fm-profile-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(30, 32, 38, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.78rem;
}
.fm-profile-bar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.fm-profile-bar-name {
  font-weight: 600;
  white-space: nowrap;
}
.fm-profile-bar-vip, .fm-profile-bar-badge {
  width: 16px;
  height: 16px;
}
.fm-profile-bar-lv {
  color: #888;
  font-size: 0.72rem;
}
.fm-profile-bar-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  font-size: 0.72rem;
  color: #888;
}
.fm-profile-bar-tlrpg {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: #F7A00F;
  font-weight: 600;
}
.fm-profile-bar-token-img {
  width: 14px;
  height: 14px;
}

.fm-leaderboard-section {
  width: 100%;
}
.fm-leaderboard-section .fm-sidebar-card {
  max-width: none;
}
.fm-leaderboard-section .fm-lb-list {
  max-height: 360px;
}

@media (max-width: 1200px) {
  .fm-featured-grid { grid-template-columns: repeat(4, 1fr); }
  .fm-card-rewards-wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .fm-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .fm-card-rewards-wide { grid-column: span 2; }
  .fm-tower-card { grid-column: 1 / -1 !important; min-height: 200px; padding: 1rem !important; }
  .fm-tower-3d-img { width: 170px; right: 10px; bottom: -25px; }
  .fm-tower-card .fm-card-rewards-right { margin-right: 120px; }
  .fm-tlrpg-hero-card { grid-column: 1 / -1 !important; min-height: 180px; padding: 1rem !important; }
  .fm-tlrpg-hero-left { flex: 0 0 160px; }
  .fm-tlrpg-3d-img { width: 110px; }
  .fm-tlrpg-hero-right { min-height: 150px; }
}
@media (max-width: 600px) {
  .fm-featured-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .fm-card-rewards-wide { grid-column: span 1; }
  .fm-card-rewards-inner { flex-direction: column; }
  .fm-card-rewards-right { flex: none; border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.75rem; }
  .fm-tower-card { grid-column: 1 / -1 !important; min-height: auto; overflow: hidden !important; padding: 0.85rem !important; padding-bottom: 1rem !important; }
  .fm-tower-card .fm-card-rewards-inner { flex-direction: column; }
  .fm-tower-card .fm-card-rewards-right { margin-right: 0; flex: none; border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.6rem; }
  .fm-tower-3d-img { position: relative; right: auto; bottom: auto; width: 140px; display: block; margin: 0.5rem auto 0; opacity: 0.85; transform: none; animation: none; filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5)); }
  .fm-tower-card:hover .fm-tower-3d-img { transform: none; }
  .fm-tower-bg-glow { display: none; }
  .fm-tlrpg-hero-card { grid-column: 1 / -1 !important; min-height: auto; overflow: hidden !important; padding: 0.85rem !important; }
  .fm-tlrpg-hero-layout { flex-direction: column; gap: 0.75rem; }
  .fm-tlrpg-hero-left { flex: none; flex-direction: row; align-items: center; gap: 0.6rem; }
  .fm-tlrpg-3d-img { width: 70px; margin: 0; animation: none; transform: none; }
  .fm-tlrpg-hero-card:hover .fm-tlrpg-3d-img { transform: none; }
  .fm-tlrpg-title { font-size: 0.95rem; text-align: left; }
  .fm-tlrpg-price { font-size: 0.85rem; }
  .fm-tlrpg-actions { margin-top: 0; }
  .fm-tlrpg-hero-right { min-height: 140px; }
  .fm-tlrpg-bg-glow { display: none; }
  .fm-featured-card { padding: 0.85rem; }
  .fm-stat-value { font-size: 1rem; }
  .fm-card-btn { font-size: 0.72rem; padding: 0.45rem 0.6rem; }
  .fm-card-actions { flex-direction: column; }
  .fm-profile-bar { flex-wrap: wrap; }
  .fm-profile-bar-stats { width: 100%; justify-content: center; margin-left: 0; margin-top: 0.3rem; }
}

/* ===== Info Box Popup Modals (Dashboard-matching) ===== */
.fm-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fm-popup-fadein 0.2s ease;
}
@keyframes fm-popup-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fm-popup-box {
  background: linear-gradient(135deg, rgba(26, 28, 33, 0.98) 0%, rgba(15, 17, 20, 0.99) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fm-popup-slidein 0.2s ease;
}
.fm-popup-box-lg {
  max-width: 560px;
}
@keyframes fm-popup-slidein {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.fm-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fm-popup-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #D0D3D9;
}
.fm-popup-close {
  background: none;
  border: none;
  color: #838791;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}
.fm-popup-close:hover {
  color: #ef4444;
}
.fm-popup-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}
.fm-popup-body::-webkit-scrollbar { width: 6px; }
.fm-popup-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); border-radius: 4px; }
.fm-popup-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #F7A00F 0%, #ea580c 100%);
  border-radius: 4px;
}
.fm-popup-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.fm-popup-stat-row span {
  color: #838791;
  font-size: 0.85rem;
}
.fm-popup-stat-row strong {
  color: #D0D3D9;
  font-size: 0.9rem;
}
.fm-popup-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0.4rem 0 0.75rem;
}
.fm-popup-section {
  margin-bottom: 1.25rem;
}
.fm-popup-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #D0D3D9;
  margin: 0 0 0.5rem;
}
.fm-popup-section p {
  font-size: 0.85rem;
  color: #838791;
  line-height: 1.5;
  margin: 0;
}
.fm-popup-section p strong {
  color: #D0D3D9;
}
.fm-popup-section ul,
.fm-popup-section ol {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}
.fm-popup-section li {
  font-size: 0.85rem;
  color: #838791;
  line-height: 1.6;
  margin-bottom: 0.15rem;
}

/* Highlight bar */
.fm-popup-highlight {
  font-size: 0.85rem;
  font-weight: 600;
  color: #F7A00F;
  background: rgba(247, 160, 15, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* Formula bar */
.fm-popup-formula-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 1rem;
  background: transparent;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  margin-bottom: 0.6rem;
}
.fm-popup-formula-bar code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: #22c55e;
}
.fm-popup-formula-highlight {
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: #c4b5fd;
  margin-bottom: 0.5rem;
}

/* Weight table */
.fm-popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.fm-popup-table th,
.fm-popup-table td {
  padding: 0.5rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fm-popup-table th {
  font-size: 0.72rem;
  color: #838791;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.2);
}
.fm-popup-table td {
  color: #D0D3D9;
}
.fm-popup-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

/* Source list */
.fm-source-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.fm-source-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #D0D3D9;
}
.fm-source-rate {
  font-weight: 600;
  color: #ef4444;
}

/* Pool status block */
.fm-pool-status {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.fm-pool-status-header {
  font-weight: 700;
  font-size: 0.85rem;
  color: #22c55e;
  margin-bottom: 0.5rem;
  text-align: center;
}
.fm-pool-status-amount {
  font-size: 2rem;
  font-weight: bold;
  color: #22c55e;
  text-align: center;
  margin: 0.5rem 0;
}
.fm-pool-status-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: #838791;
}
.fm-status-value {
  font-weight: 600;
  color: #D0D3D9;
}

/* Sell Limits Block */
.fm-sell-limits {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.fm-sell-limits h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c4b5fd;
  margin: 0 0 0.6rem;
}
.fm-sell-limits-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.fm-sell-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  color: #838791;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.fm-sell-limit-row:last-child {
  border-bottom: none;
}
.fm-sell-limit-val {
  font-weight: 600;
  color: #D0D3D9;
}
.fm-sell-limit-max {
  padding-top: 0.5rem;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}
.fm-sell-limit-green {
  color: #22c55e !important;
  font-size: 0.9rem;
}

/* Buyback steps */
.fm-buyback-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.fm-buyback-step {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.1);
}
.fm-step-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}
.fm-step-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.fm-step-content strong {
  font-size: 0.85rem;
  color: #D0D3D9;
}
.fm-step-content span {
  font-size: 0.8rem;
  color: #838791;
}

/* Callout */
.fm-popup-callout {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.fm-popup-callout-whale ul {
  margin: 0 0 0.4rem;
  padding-left: 1.2rem;
  font-size: 0.85rem;
}
.fm-popup-callout-whale li {
  color: #D0D3D9;
  margin-bottom: 0.25rem;
}
.fm-popup-callout-whale p {
  font-size: 0.82rem !important;
  color: #838791 !important;
  margin: 0.4rem 0 0 !important;
}

/* Action button */
.fm-popup-action-btn {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, rgba(247, 160, 15, 0.15) 0%, rgba(234, 88, 12, 0.1) 100%);
  border: 1px solid rgba(247, 160, 15, 0.3);
  color: #D0D3D9;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.fm-popup-action-btn:hover {
  background: linear-gradient(135deg, rgba(247, 160, 15, 0.25) 0%, rgba(234, 88, 12, 0.2) 100%);
  border-color: rgba(247, 160, 15, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 500px) {
  .fm-popup-box, .fm-popup-box-lg { max-width: 95%; }
  .fm-popup-header { padding: 0.85rem 1rem; }
  .fm-popup-body { padding: 1rem; }
  .fm-popup-header h3 { font-size: 0.95rem; }
  .fm-login-banner { font-size: 0.78rem; padding: 0.5rem 0.75rem; }
  .fm-topbar-actions .fm-btn-sm { font-size: 0.72rem; padding: 0.35rem 0.65rem; }
}

/* ── Distribution List Popup Styles ── */
.fm-dist-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(247, 160, 15, 0.2);
  border-top-color: #F7A00F;
  border-radius: 50%;
  animation: fm-spin 0.8s linear infinite;
  margin: 0 auto 0.75rem;
}
@keyframes fm-spin {
  to { transform: rotate(360deg); }
}
.fm-dist-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 400px;
  overflow-y: auto;
}
.fm-dist-list::-webkit-scrollbar { width: 5px; }
.fm-dist-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.fm-dist-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #F7A00F, #ea580c);
  border-radius: 3px;
}
.fm-dist-detail-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(247,160,15,0.3) transparent;
}
.fm-dist-detail-scroll::-webkit-scrollbar { width: 5px; }
.fm-dist-detail-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 3px; }
.fm-dist-detail-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #F7A00F, #ea580c);
  border-radius: 3px;
}
.fm-dist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s;
  gap: 0.5rem;
}
.fm-dist-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.fm-dist-row-you {
  background: rgba(247, 160, 15, 0.08) !important;
  border-left: 3px solid #F7A00F;
}
.fm-dist-row-guild {
  background: rgba(168, 85, 247, 0.04);
}
.fm-dist-name {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}
.fm-dist-rank {
  color: #666;
  font-size: 0.72rem;
  min-width: 1.5rem;
  flex-shrink: 0;
}
.fm-dist-badge {
  flex-shrink: 0;
}
.fm-dist-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #D0D3D9;
  font-size: 0.82rem;
}
.fm-dist-you {
  background: rgba(247, 160, 15, 0.2);
  color: #F7A00F;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.fm-dist-rewards {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 0.1rem;
}
.fm-dist-tlrpg {
  font-size: 0.78rem;
  font-weight: 600;
  color: #D0D3D9;
  white-space: nowrap;
}
.fm-dist-eur {
  font-size: 0.7rem;
  color: #22c55e;
  white-space: nowrap;
}
.fm-dist-detail {
  padding: 0.4rem 0.65rem 0.4rem 2.2rem;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fm-dist-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #aaa;
  padding: 0.15rem 0;
}
.fm-dist-detail-total {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.35rem;
  margin-top: 0.1rem;
  font-weight: 600;
  color: #fff;
}

/* ── Anti-spam Captcha Modal ── */
.fm-captcha-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.fm-captcha-modal {
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.fm-captcha-modal h3 {
  margin: 0 0 0.5rem;
  color: #f5a623;
  font-size: 1.25rem;
}
.fm-captcha-modal p {
  color: #999;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.fm-captcha-q {
  font-size: 1.5rem;
  color: #fff;
  margin: 0.75rem 0;
  letter-spacing: 2px;
}
.fm-captcha-input {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  margin: 0.75rem 0;
  padding: 0.6rem;
}
.fm-captcha-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   CARD PACK PROMO BANNER
   ═══════════════════════════════════════════════════════════════ */
.fm-cardpack-promo {
  position: relative;
  margin: 1.2rem 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a0f05 0%, #1e1208 40%, #0f0a02 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.fm-cardpack-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.65);
}
.fm-cardpack-promo-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.fm-cardpack-promo-content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 1;
}
.fm-cardpack-promo-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.8rem 0.25rem 0.6rem;
  border-radius: 0 14px 0 10px;
  text-transform: uppercase;
}
.fm-cardpack-promo-images {
  position: relative;
  width: 90px;
  height: 70px;
  flex-shrink: 0;
}
.fm-cardpack-promo-img {
  position: absolute;
  height: 65px;
  width: auto;
  border-radius: 6px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.fm-cardpack-promo-img--back {
  top: 0;
  left: 0;
  transform: rotate(-8deg);
  opacity: 0.7;
}
.fm-cardpack-promo-img--front {
  top: 2px;
  left: 20px;
  transform: rotate(4deg);
}
/* Show desktop image on desktop, mobile image on mobile */
.fm-cardpack-promo-img--mobile { display: none; }
.fm-cardpack-promo-img--desktop {
  display: block;
  position: static;
  transform: none;
  width: auto;
  height: 130px;
  max-height: 130px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.fm-cardpack-promo-images:has(.fm-cardpack-promo-img--desktop) {
  width: auto;
  height: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
@media (max-width: 600px) {
  .fm-cardpack-promo-img--mobile { display: block; }
  .fm-cardpack-promo-img--desktop { display: none !important; }
}
.fm-cardpack-promo-text {
  flex: 1;
  min-width: 0;
}
.fm-cardpack-promo-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fde68a;
  line-height: 1.2;
}
.fm-cardpack-promo-desc {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.4;
}
.fm-cardpack-promo-desc strong {
  color: #fbbf24;
}
.fm-cardpack-promo-perks {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: #d1d5db;
}
.fm-cardpack-promo-perks span {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
}
.fm-cardpack-promo-cta {
  flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}
.fm-cardpack-promo:hover .fm-cardpack-promo-cta {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .fm-cardpack-promo-content {
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
    gap: 0.8rem;
  }
  .fm-cardpack-promo-images {
    width: 70px;
    height: 55px;
  }
  .fm-cardpack-promo-img { height: 50px; }
  .fm-cardpack-promo-img--front { left: 15px; }
  .fm-cardpack-promo-title { font-size: 0.9rem; }
  .fm-cardpack-promo-perks { gap: 0.4rem; font-size: 0.62rem; }
  .fm-cardpack-promo-cta {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
  }
}

/* =========================================================
   Mobile / Tablet polish (sticky headers + layout fixes)
   ========================================================= */

/* Ensure sticky topbar always works in authenticated forum:
   fm-page is a flex child; sticky needs scroll on ancestor to trigger.
   On mobile, the page itself is the scroll container, which is fine. */
.fm-page { will-change: transform; }

/* Prevent horizontal overflow on forum containers (global.css handles html/body) */
.fm-page, .fm-layout, .fm-layout-full { max-width: 100vw; overflow-x: hidden; box-sizing: border-box; }

/* On authenticated mobile, the top-status-bar (fixed 56px) already shows all
   key actions; the fm-topbar becomes redundant & eats vertical space. Shrink it. */
@media (max-width: 768px) {
  body.has-top-status-bar .fm-topbar-clean {
    top: 56px; /* sit below fixed top status bar */
  }
  body.has-top-status-bar .fm-topbar-clean .fm-topbar-inner {
    min-height: 0;
    height: auto;
    padding: 0.25rem 0.75rem;
  }
  /* Hide empty clean topbar entirely on very small screens */
  body.has-top-status-bar .fm-topbar-clean:empty,
  body.has-top-status-bar .fm-topbar-clean .fm-topbar-inner:empty {
    display: none;
  }
}

/* Larger tap targets on mobile */
@media (max-width: 768px) {
  .fm-btn, .fm-btn-sm { min-height: 36px; }
  .fm-topbar-actions .fm-btn-sm { padding: 0.4rem 0.75rem; }
}

/* Tablet (769-1024px): keep forum layout comfy */
@media (min-width: 769px) and (max-width: 1024px) {
  .fm-layout { padding: 1rem; gap: 1rem; }
  .fm-topbar-inner { max-width: 100%; padding: 0 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   UX OVERHAUL: Boost boxes EUR hero, payout bar, earnings hero
   ═══════════════════════════════════════════════════════════ */

/* ── Boost box internals ── */
.dist-box-top-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.dist-box-eur-hero {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f59e0b;
  font-family: monospace;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0.15rem 0 0.05rem;
}
.dist-box-eur-hero--dim {
  color: rgba(255,255,255,0.2);
}
.dist-box-sub-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.25rem;
}
.dist-box-gen-wrap {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin: 0.3rem 0 0.2rem;
}
.dist-box-gen-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  border-radius: 2px;
  animation: gen-pulse 1s ease-in-out infinite;
  width: 100%;
}
@keyframes gen-pulse {
  0%   { width: 0%; opacity: 1; }
  80%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0.3; }
}
.dist-box-win-wrap {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin: 0.3rem 0 0.25rem;
}
.dist-box-win-fill {
  height: 100%;
  background: #10b981;
  border-radius: 2px;
  transition: width 0.5s ease;
}
.dist-box-win-fill--exp {
  background: #ef4444;
}
.dist-box-rate-row {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.1rem;
}
.dist-box-rate-num { color: #10b981; font-weight: 600; font-family: monospace; }
.dist-box-rate-unit { color: rgba(255,255,255,0.25); }
.dist-box-no-drip {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  margin: 0.1rem 0;
}
.dist-box-claim-btn {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  letter-spacing: 0.03em;
}
.dist-box-claim-btn--active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0f00;
  cursor: pointer;
}
.dist-box-claim-btn--active:hover {
  filter: brightness(1.1);
}
.dist-box-claim-btn--active:disabled {
  opacity: 0.5;
  cursor: default;
  filter: none;
}
.dist-box-claim-btn--cd {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
  cursor: default;
}
.dist-box-claim-btn--exp {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  cursor: default;
}
.dist-box-claim-btn--disabled {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.2);
  cursor: default;
}
.dist-box-upsell {
  font-size: 0.55rem;
  color: #10b981;
  margin-top: 0.3rem;
  opacity: 0.8;
}

/* ── Payout progress bar (replaces weekly-req) ── */
.dist-payout-bar-section {
  margin: 0.6rem 0 0.5rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255,255,255,0.025);
  border-radius: 0.55rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.dist-payout-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.dist-payout-bar-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
}
.dist-payout-bar-label--met {
  color: #10b981;
}
.dist-payout-progress-wrap {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.dist-payout-progress-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.dist-payout-progress-fill--close {
  background: #f59e0b;
}
.dist-payout-progress-fill--met {
  background: #10b981;
}
.dist-payout-hint {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ── Daily earnings hero ── */
.dist-earnings-hero {
  padding: 0.5rem 0 0.4rem;
}
.dist-earnings-hero-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.dist-earnings-hero-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f59e0b;
  font-family: monospace;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.dist-earnings-details-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.35rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.62rem;
  padding: 0.18rem 0.55rem;
  cursor: pointer;
  transition: all 0.15s;
}
.dist-earnings-details-toggle:hover {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}
.dist-earnings-details {
  margin-top: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255,255,255,0.03);
  border-radius: 0.45rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.dist-earnings-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  padding: 0.15rem 0;
}
.dist-earnings-row--weight { color: rgba(255,255,255,0.35); }
.dist-earnings-warning {
  font-size: 0.6rem;
  color: #f87171;
  margin-top: 0.25rem;
}
.dist-earnings-locked {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
}
.dist-pending-drip-simple {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.35rem 0.55rem;
  background: rgba(245,158,11,0.07);
  border-radius: 0.4rem;
  border: 1px solid rgba(245,158,11,0.18);
  font-size: 0.65rem;
  flex-wrap: wrap;
}
.dist-pending-drip-icon { font-size: 0.8rem; }
.dist-pending-drip-amount { color: #f59e0b; font-weight: 700; font-family: monospace; }
.dist-pending-drip-eur { color: rgba(255,255,255,0.55); }
.dist-pending-drip-note { color: rgba(255,255,255,0.3); font-size: 0.58rem; margin-left: auto; }

/* ── Pool share card ── */
.dist-share-card {
  padding: 0.5rem 0;
}
.dist-share-pct {
  font-size: 2rem;
  font-weight: 800;
  color: #f59e0b;
  font-family: monospace;
  line-height: 1;
  margin-bottom: 0.1rem;
}
.dist-share-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.dist-upsell-row {
  font-size: 0.62rem;
  color: #10b981;
  padding: 0.15rem 0;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE AUTHENTICATED FORUM — Layout corrections
   ═══════════════════════════════════════════════════════════ */

/* ── Fix 1 + 2: Remove th-content padding for forum pages ───────────────
   th-content (MainLayout/TestHeader wrapper) has padding: 1.75rem on all
   sides. On mobile this creates:
     • left empty space (padding-left)
     • right clipping (content + padding > viewport)
     • top gap (padding-top + th-page-fade's incorrectly inherited 50px)
   On desktop it also creates an unwanted top gap.
   Using :has() we zero the padding only when a forum fm-page is inside,
   leaving all other pages untouched. */
.th-content:has(.fm-page) {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Remove excessive .content class horizontal padding on forum pages.
   The .content class (businesses.css) adds clamp(1rem,4vw,2rem) horizontal
   padding that creates large black empty margins on desktop. Zero it out
   so the forum content can use the full available width. */
.fm-page.content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Collapse the empty authenticated topbar globally (no content when logged in) */
.fm-topbar-clean .fm-topbar-inner {
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}
.fm-topbar-clean {
  border-bottom: none !important;
}
@media (max-width: 1024px) {
  .th-content:has(.fm-page) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
  }

  /* th-page-fade is matched by mobile-global [class*="-page"] rule
     (substring "-page" appears in "th-page-fade") and gets padding-top: 50px.
     Zero it out inside forum context. */
  .th-content:has(.fm-page) .th-page-fade {
    padding-top: 0 !important;
  }

  /* fm-page.content also picks up padding-top: 50px from mobile-global .content rule */
  .fm-page.content {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Collapse the empty clean forum topbar (no content when logged in) */
  .fm-topbar-clean .fm-topbar-inner:empty {
    display: none !important;
    padding: 0 !important;
  }
}

/* ── Fix 3: Prevent VIP promo banner title from overflowing right ────────
   fm-promo-banner-title has white-space: nowrap which forces the left
   column wider than the screen on narrow viewports. */
@media (max-width: 600px) {
  .fm-promo-banner-title {
    white-space: normal;
  }

  .fm-promo-banner-left {
    flex-shrink: 1;
    min-width: 0;
  }
}

/* ── Fix 4: Card pack promo — single image, larger, no overlap ─────────── */
@media (max-width: 600px) {
  .fm-cardpack-promo-images {
    width: 165px !important;
    height: 205px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .fm-cardpack-promo-img--front {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    max-height: 205px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
  }

  .fm-cardpack-promo-text {
    padding-top: 1.5rem;
  }

  .fm-cardpack-promo-title {
    font-size: 0.78rem;
  }

  .fm-cardpack-promo-desc {
    font-size: 0.68rem;
  }
}


/* ── YouTube Lives Section ─────────────────────────────────────────────────── */
.fm-yt-live,
.fm-yt-offline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  margin: 0 0 1rem;
}

.fm-yt-live {
  background: linear-gradient(135deg, #1a0303 0%, #200808 40%, #0f0202 100%);
  border: 1px solid rgba(255, 0, 0, 0.45);
}
.fm-yt-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 0, 0, 0.22);
  border-color: rgba(255, 0, 0, 0.7);
}
.fm-yt-live-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.13) 0%, transparent 70%);
  pointer-events: none;
}

.fm-yt-offline {
  background: linear-gradient(135deg, #0e0b0b 0%, #130d0d 40%, #090505 100%);
  border: 1px solid rgba(180, 10, 10, 0.38);
}
.fm-yt-offline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 20, 20, 0.18);
  border-color: rgba(200, 20, 20, 0.6);
}
.fm-yt-offline-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(180, 10, 10, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Top-right badge */
.fm-yt-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.85rem 0.22rem 0.65rem;
  border-radius: 0 14px 0 10px;
  text-transform: uppercase;
}
.fm-yt-badge-live {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
  animation: fm-yt-pulse 1.8s ease-in-out infinite;
}
.fm-yt-badge-offline {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  color: #fca5a5;
}
@keyframes fm-yt-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* Play icon box */
.fm-yt-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #ff0000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.45);
  position: relative;
  z-index: 1;
}
.fm-yt-yt-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(180, 10, 10, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ff5555;
  position: relative;
  z-index: 1;
}

/* Text content */
.fm-yt-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.fm-yt-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fde68a;
}
.fm-yt-live .fm-yt-title {
  color: #fca5a5;
}
.fm-yt-desc {
  margin: 0 0 0.38rem;
  font-size: 0.74rem;
  color: #9ca3af;
  line-height: 1.45;
}
.fm-yt-desc strong {
  color: #fbbf24;
}
.fm-yt-live .fm-yt-desc strong {
  color: #fca5a5;
}
.fm-yt-desc code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.72rem;
  color: #e5e7eb;
}
.fm-yt-perks {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.65rem;
  color: #d1d5db;
}
.fm-yt-live .fm-yt-perks span {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  padding: 0.12rem 0.45rem;
  border-radius: 20px;
  white-space: nowrap;
}
.fm-yt-offline .fm-yt-perks span {
  background: rgba(180, 10, 10, 0.1);
  border: 1px solid rgba(200, 20, 20, 0.2);
  padding: 0.12rem 0.45rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* CTA button */
.fm-yt-cta {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transition: background 0.2s;
}
.fm-yt-cta-live {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
}
.fm-yt-live:hover .fm-yt-cta-live {
  background: linear-gradient(135deg, #ff3333, #ee0000);
}
.fm-yt-cta-offline {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  color: #fca5a5;
}
.fm-yt-offline:hover .fm-yt-cta-offline {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
}

/* Mobile */
@media (max-width: 600px) {
  .fm-yt-live,
  .fm-yt-offline {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.55rem;
  }
  .fm-yt-icon,
  .fm-yt-yt-logo {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .fm-yt-title { font-size: 0.88rem; }
  .fm-yt-desc  { font-size: 0.7rem; }
  .fm-yt-perks { gap: 0.3rem; font-size: 0.62rem; }
  .fm-yt-cta   { font-size: 0.75rem; padding: 0.45rem 0.9rem; }
}

/* ── Fix: fm-layout desktop right-side clipping ─────────────────────────────
   The global rule ".fm-page, .fm-layout { max-width: 100vw }" overrides the
   original max-width: 1440px and causes fm-layout to expand to full viewport
   width. fm-page then clips it at its right edge (overflow-x: hidden), cutting
   off rounded corners and right padding of every content block.
   Fix: constrain fm-layout to 100% of its parent (fm-page content width). */
.fm-layout {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* --- Home Layout Grid --- */
.fm-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.fm-home-col-right {
  display: flex;
  flex-direction: column;
}
.fm-home-col-right .fm-feed {
  flex: 1;
}
@media (min-width: 992px) {
  .fm-home-grid {
    grid-template-columns: 4fr 5fr;
  }
  .fm-home-col-right {
    height: 0;
    min-height: 100%;
  }
  .fm-home-col-right .fm-feed {
    overflow-y: auto;
    padding-right: 6px;
  }
  
  /* Scrollbar override for feed inside grid */
  .fm-home-col-right .fm-feed::-webkit-scrollbar {
    width: 6px;
  }
  .fm-home-col-right .fm-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
  }
  .fm-home-col-right .fm-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  .fm-home-col-right .fm-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   Royal Exchange — Shop Page (/shop)
   Premium trading exchange UI — dark fantasy + stock-market aesthetic
   Prefix: se- (shop exchange)
   Fonts: Orbitron (headings/buttons) · Inter (body/data)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Root shell ─────────────────────────────────────────────────────────────── */
.se-root {
  position: relative;
  min-height: 100vh;
  padding: 1rem clamp(0.75rem, 2vw, 2rem) 3rem;
  color: #d0cdc4;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  overflow-x: hidden;
}

.se-bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(172deg, #07070d 0%, #0b0c14 35%, #090a10 100%),
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(247,160,15,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(96,165,250,0.03) 0%, transparent 50%);
}
.se-bg::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(247,160,15,0.008) 3px, rgba(247,160,15,0.008) 4px);
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.se-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 1.4rem;
  margin-bottom: 0.9rem;
  background: rgba(14,15,21,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-wrap: wrap;
}

.se-head__left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.se-head__crown {
  font-size: 2rem;
  filter: drop-shadow(0 0 12px rgba(247,160,15,0.45));
  line-height: 1;
}

.se-head__sub {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(200,170,120,0.55);
  margin-bottom: 0.1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.se-head__title {
  margin: 0;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #f7c255 0%, #f7a00f 45%, #c47a08 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #f7a00f;
  text-shadow: none;
}

.se-head__btns {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.se-head__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  color: #b0a590;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.se-head__btn:hover {
  background: rgba(247,160,15,0.08);
  border-color: rgba(247,160,15,0.35);
  color: #f7a00f;
  box-shadow: 0 0 18px rgba(247,160,15,0.08);
}

/* ── Body layout ────────────────────────────────────────────────────────────── */
.se-body {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.se-body__main {
  flex: 1 1 0;
  min-width: 0;
}

.se-body__side {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ── Filters ────────────────────────────────────────────────────────────────── */
.se-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
}

.se-filters__pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.se-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  color: rgba(180,160,130,0.55);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.se-cat-pill:hover {
  border-color: rgba(247,160,15,0.3);
  color: #c8a050;
  background: rgba(247,160,15,0.06);
}
.se-cat-pill--active {
  background: rgba(247,160,15,0.12);
  border-color: rgba(247,160,15,0.4);
  color: #f7a00f;
  box-shadow: 0 0 12px rgba(247,160,15,0.1);
}

.se-cat-pill--soon {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
}
.se-cat-pill--soon:hover {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.08);
  color: rgba(180,160,130,0.55);
}

.se-cat-pill__badge {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(247,160,15,0.12);
  color: #f7a00f;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.se-cat-pill__icon {
  font-size: 0.85rem;
  line-height: 1;
}

.se-filters__sel {
  padding: 0.35rem 1.8rem 0.35rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  background: rgba(8,8,14,0.7);
  color: #b0a590;
  font-size: 0.68rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23887860'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  transition: border-color 0.2s;
}
.se-filters__sel:hover, .se-filters__sel:focus { border-color: rgba(247,160,15,0.3); outline: none; }

.se-filters__cnt {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(180,160,130,0.4);
}

/* ── Table ──────────────────────────────────────────────────────────────────── */
.se-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,11,17,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.02);
}

.se-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

/* ── Table Header ──────────────────────────────────────────────────────── */
.se-th {
  padding: 0.75rem 0.85rem;
  text-align: left;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(190,170,140,0.45);
  font-family: 'Orbitron', system-ui, sans-serif;
  border-bottom: 2px solid rgba(255,255,255,0.05);
  cursor: default;
  white-space: nowrap;
  user-select: none;
  background: rgba(0,0,0,0.15);
}
.se-th:first-child { border-radius: 14px 0 0 0; padding-left: 1.1rem; }
.se-th:last-child  { border-radius: 0 14px 0 0; padding-right: 1.1rem; }

.se-th--item { min-width: 210px; }
.se-th--r    { text-align: right; }
.se-th--c    { text-align: center; }
.se-th--act  { text-align: center; width: 90px; }

.se-th[onclick], .se-th[class*="sort"] { cursor: pointer; }
.se-th[onclick]:hover, .se-th[class*="sort"]:hover { color: rgba(247,160,15,0.7); }

.se-sort {
  display: inline-block;
  margin-left: 0.2rem;
  font-size: 0.5rem;
  opacity: 0.3;
  transition: opacity 0.15s;
}
.se-sort.active { opacity: 1; color: #f7a00f; }

/* ── Table Body Rows ───────────────────────────────────────────────────── */
.se-tr {
  transition: all 0.15s ease;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.025);
  position: relative;
}
.se-tr:last-child { border-bottom: none; }

.se-tr:hover {
  background: linear-gradient(90deg, rgba(247,160,15,0.04) 0%, rgba(247,160,15,0.02) 50%, transparent 100%);
}

.se-tr.selected {
  background: linear-gradient(90deg, rgba(247,160,15,0.08) 0%, rgba(247,160,15,0.03) 50%, transparent 100%) !important;
  box-shadow: inset 3px 0 0 #f7a00f;
}

/* ── Table Cells ───────────────────────────────────────────────────────── */
.se-td {
  padding: 0.75rem 0.85rem;
  vertical-align: middle;
  white-space: nowrap;
}
.se-td:first-child { padding-left: 1.1rem; }
.se-td:last-child  { padding-right: 1.1rem; }

.se-td--item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.se-td--r { text-align: right; font-variant-numeric: tabular-nums; }
.se-td--c { text-align: center; }
.se-td--act { text-align: center; }

/* ── Item Cell ─────────────────────────────────────────────────────────── */
.se-item__icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.se-tr:hover .se-item__icon {
  transform: scale(1.05);
}

.se-item__text { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.se-item__name {
  font-weight: 700; color: #e8e0d4; font-size: 0.8rem;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.se-item__seller {
  font-size: 0.64rem; color: rgba(170,150,120,0.45);
}

/* ── Rarity Badge ──────────────────────────────────────────────────────── */
.se-rarity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Orbitron', system-ui, sans-serif;
}
.se-rarity-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Price Cell ────────────────────────────────────────────────────────── */
.se-price-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.06rem;
}
.se-price-cell__tlrpg {
  font-weight: 800;
  color: #f0c860;
  font-size: 0.82rem;
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.se-tlrpg-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(247,160,15,0.5));
}
.se-price-cell__eur {
  font-size: 0.62rem;
  color: rgba(170,150,120,0.4);
  font-weight: 600;
}

/* ── 24h Change Pill ───────────────────────────────────────────────────── */
.se-change-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem 0.55rem;
  border-radius: 20px;
  font-size: 0.66rem;
  font-weight: 800;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.se-change-pill--up {
  background: rgba(16,185,129,0.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.2);
}
.se-change-pill--down {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.18);
}
.se-change-pill--flat {
  background: rgba(255,255,255,0.04);
  color: rgba(180,160,140,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Volume Cell ───────────────────────────────────────────────────────── */
.se-vol-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.se-vol-cell__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: #b8a890;
  font-variant-numeric: tabular-nums;
}
.se-vol-cell__bar {
  width: 100%;
  max-width: 60px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.se-vol-cell__bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(247,160,15,0.3), rgba(247,160,15,0.7));
  transition: width 0.4s ease;
}

/* ── Listed Cell ───────────────────────────────────────────────────────── */
.se-listed {
  font-size: 0.66rem;
  color: rgba(170,150,120,0.4);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Buy Button ────────────────────────────────────────────────────────── */
.se-buy-btn {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(16,185,129,0.04) 100%);
  color: #10b981;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.se-buy-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.se-buy-btn:hover {
  background: rgba(16,185,129,0.2);
  border-color: #10b981;
  color: #6ee7b7;
  box-shadow: 0 0 18px rgba(16,185,129,0.18), 0 0 40px rgba(16,185,129,0.06);
  transform: translateY(-1px);
}
.se-buy-btn:hover::before { opacity: 1; }
.se-buy-btn:active { transform: scale(0.97); }

/* ── Legacy classes (still used by sub-views & detail panel) ──────────────── */
.se-buy {
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(16,185,129,0.35);
  border-radius: 7px;
  background: rgba(16,185,129,0.08);
  color: #10b981;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
}
.se-buy:hover {
  background: rgba(16,185,129,0.18);
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16,185,129,0.12);
}
.se-buy--lg {
  width: 100%; padding: 0.65rem; font-size: 0.78rem; margin-top: 0.5rem;
}

.se-rarity {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.se-cat {
  display: inline-flex; align-items: center; gap: 0.2rem;
  font-size: 0.7rem; font-weight: 600;
}

.se-price { display: flex; flex-direction: column; align-items: flex-end; gap: 0.05rem; }
.se-price__tlrpg { font-weight: 700; color: #e8c060; font-size: 0.76rem; }
.se-price__eur { font-size: 0.62rem; color: rgba(170,150,120,0.4); }

.se-muted { color: rgba(160,150,130,0.35); }

.se-cparty { font-size: 0.7rem; color: #b8a890; font-weight: 600; }

.se-player-link {
  transition: opacity 0.15s;
}
.se-player-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.se-hash {
  font-size: 0.62rem;
  color: rgba(160,150,130,0.35);
  background: rgba(255,255,255,0.03);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.se-trade-type {
  display: inline-flex; align-items: center; gap: 0.2rem;
  font-size: 0.66rem; font-weight: 700;
  font-family: 'Orbitron', system-ui, sans-serif;
}
.se-trade-type--bought { color: #10b981; }
.se-trade-type--sold   { color: #ef4444; }

/* ── Empty state ────────────────────────────────────────────────────────────── */
.se-empty {
  text-align: center;
  padding: 3.5rem 2rem;
}
.se-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
  opacity: 0.5;
}
.se-empty__title {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(200,180,150,0.35);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.se-empty__sub {
  font-size: 0.68rem;
  color: rgba(170,150,120,0.25);
}

/* ── Chart ──────────────────────────────────────────────────────────────────── */
.se-chart {
  background: rgba(10,11,17,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 0.9rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.se-chart__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.se-chart__symbol {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(190,170,140,0.45);
  font-family: 'Orbitron', system-ui, sans-serif;
  text-transform: uppercase;
}

.se-chart__price-row { display: flex; align-items: baseline; gap: 0.5rem; }

.se-chart__price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #f0ebe0;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.se-chart__pct {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.se-chart__pct.is-up { color: #10b981; }
.se-chart__pct.is-down { color: #ef4444; }

.se-chart__ranges { display: flex; gap: 0.2rem; }

.se-chart__rbtn {
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px;
  background: transparent;
  color: rgba(180,160,130,0.4);
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Orbitron', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.se-chart__rbtn:hover { color: #c8a050; border-color: rgba(255,255,255,0.12); }
.se-chart__rbtn.active {
  background: rgba(247,160,15,0.12);
  border-color: rgba(247,160,15,0.35);
  color: #f7a00f;
}

.se-chart__canvas { margin: 0 -0.3rem; }
.se-chart__canvas svg { display: block; width: 100%; }

/* ── Hover tooltip ──────────────────────────────────────────────────────── */
.se-chart__tooltip {
  position: absolute;
  transform: translateX(-50%);
  background: rgba(14,15,21,0.95);
  border: 1px solid rgba(247,160,15,0.25);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.se-chart__tooltip-price {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f0c860;
}
.se-chart__tooltip-date {
  font-size: 0.58rem;
  color: rgba(180,160,140,0.5);
  margin-top: 0.1rem;
}
.se-chart__tooltip-burn {
  font-size: 0.56rem;
  color: #f7a00f;
  margin-top: 0.15rem;
  font-weight: 600;
}

.se-chart__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.se-chart__stat {
  display: flex; flex-direction: column; gap: 0.05rem;
}
.se-chart__stat span {
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(170,150,120,0.35);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.se-chart__stat strong {
  font-size: 0.8rem; font-weight: 700; color: #c8bfa8;
  font-variant-numeric: tabular-nums;
}

/* ── Detail panel (right sidebar when item selected) ────────────────────────── */
.se-detail {
  background: rgba(10,11,17,0.55);
  border: 1px solid rgba(247,160,15,0.1);
  border-radius: 12px;
  padding: 0.85rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.se-detail__head {
  display: flex; align-items: center; gap: 0.55rem;
  padding-bottom: 0.6rem; margin-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.se-detail__icon { font-size: 1.5rem; flex-shrink: 0; }
.se-detail__name {
  font-size: 0.8rem; font-weight: 700; color: #e0d8c8; display: block;
}
.se-detail__seller {
  font-size: 0.62rem; color: rgba(170,150,120,0.4); display: block; margin-top: 1px;
}

.se-detail__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.8rem;
  margin-bottom: 0.55rem;
}
.se-detail__kv {
  display: flex; flex-direction: column; gap: 0.05rem;
}
.se-detail__kv span:first-child {
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(170,150,120,0.35);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.se-detail__kv span:last-child {
  font-size: 0.72rem; font-weight: 700; color: #c8bfa8;
}
.se-detail__kv span.up { color: #10b981; }
.se-detail__kv span.down { color: #ef4444; }

.se-detail__price {
  display: flex; flex-direction: column; align-items: center; gap: 0.05rem;
  padding: 0.55rem; margin-bottom: 0.4rem;
  background: rgba(247,160,15,0.04);
  border: 1px solid rgba(247,160,15,0.1);
  border-radius: 10px;
}
.se-detail__tlrpg { font-size: 1.1rem; font-weight: 800; color: #f0c060; font-family: 'Orbitron', system-ui, sans-serif; }
.se-detail__eur { font-size: 0.65rem; color: rgba(170,150,120,0.45); }

/* ── Insights row ───────────────────────────────────────────────────────────── */
.se-insights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

/* ── Trend card ─────────────────────────────────────────────────────────────── */
.se-trend {
  background: rgba(10,11,17,0.5);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.se-trend:hover {
  border-color: rgba(247,160,15,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.se-trend__head {
  display: flex; align-items: center; gap: 0.4rem;
  padding-bottom: 0.5rem; margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.se-trend__dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.se-trend__title {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em;
  color: #c8bfa8; text-transform: uppercase;
  font-family: 'Orbitron', system-ui, sans-serif;
}

.se-trend__list { display: flex; flex-direction: column; gap: 0.45rem; }

.se-trend__empty {
  text-align: center;
  padding: 0.8rem 0;
  font-size: 1.2rem;
  color: rgba(180,160,140,0.15);
}

.se-trend__row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.35rem;
}

.se-trend__icon {
  font-size: 1.05rem; flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.02); border-radius: 6px;
}

.se-trend__info {
  display: flex; flex-direction: column; gap: 0.02rem;
  min-width: 0; overflow: hidden; flex: 1;
}
.se-trend__name {
  font-size: 0.68rem; font-weight: 700; color: #c8bfa0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.se-trend__vol {
  font-size: 0.58rem; font-weight: 600; color: rgba(160,140,110,0.35);
}

.se-trend__right {
  display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0;
}

.se-trend__pct {
  font-size: 0.66rem; font-weight: 800; font-variant-numeric: tabular-nums;
  font-family: 'Orbitron', system-ui, sans-serif;
  min-width: 48px; text-align: right;
}
.se-trend__pct.is-up { color: #10b981; }
.se-trend__pct.is-down { color: #ef4444; }

.se-sparkline { display: block; flex-shrink: 0; }

/* ── Active header button ──────────────────────────────────────────────────── */
.se-head__btn--active {
  background: rgba(247,160,15,0.12) !important;
  border-color: rgba(247,160,15,0.4) !important;
  color: #f7a00f !important;
  box-shadow: 0 0 14px rgba(247,160,15,0.1);
}

/* ── Sub-view container ────────────────────────────────────────────────────── */
.se-subview {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.se-subview__back {
  margin-bottom: 0.7rem;
}

/* ── Back button ───────────────────────────────────────────────────────────── */
.se-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: #a09080;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s;
}
.se-back-btn:hover {
  background: rgba(247,160,15,0.06);
  border-color: rgba(247,160,15,0.25);
  color: #d4b060;
}

/* ── Panel (form/list container) ───────────────────────────────────────────── */
.se-panel {
  background: rgba(10,11,17,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.se-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.se-panel__icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }

.se-panel__title {
  margin: 0;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e0d8c8;
}

.se-panel__sub {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: rgba(180,160,130,0.45);
}

/* ── Form ──────────────────────────────────────────────────────────────────── */
.se-form { display: flex; flex-direction: column; gap: 0.7rem; }

.se-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.se-form__row--3 { grid-template-columns: 1fr 1fr 1fr; }

.se-form__group { display: flex; flex-direction: column; gap: 0.25rem; }

.se-form__label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(180,160,130,0.5);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.se-form__input,
.se-form__sel {
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(8,8,14,0.6);
  color: #d0c8b0;
  font-size: 0.76rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: border-color 0.2s;
  outline: none;
}
.se-form__input:focus,
.se-form__sel:focus {
  border-color: rgba(247,160,15,0.4);
  box-shadow: 0 0 0 3px rgba(247,160,15,0.05);
}
.se-form__input::placeholder { color: rgba(150,140,120,0.3); }

.se-form__sel {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23887860'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

.se-form__divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 0.2rem 0;
}

/* ── Preview card ──────────────────────────────────────────────────────────── */
.se-form__preview {
  background: rgba(247,160,15,0.03);
  border: 1px solid rgba(247,160,15,0.08);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.se-form__preview-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(180,160,130,0.4);
  margin-bottom: 0.45rem;
}

.se-form__preview-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: rgba(8,8,14,0.5);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 9px;
}

.se-form__preview-icon { font-size: 1.3rem; flex-shrink: 0; }

.se-form__preview-info {
  display: flex; flex-direction: column; gap: 0.05rem; flex: 1; min-width: 0;
}
.se-form__preview-name {
  font-weight: 700; color: #d8cfb8; font-size: 0.78rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.se-form__preview-meta {
  font-size: 0.62rem; color: rgba(170,150,120,0.4);
}

.se-form__preview-price {
  text-align: right; flex-shrink: 0;
}
.se-form__preview-price span {
  display: block; font-weight: 700; color: #e8c060; font-size: 0.8rem;
  font-family: 'Orbitron', system-ui, sans-serif;
}
.se-form__preview-price small {
  font-size: 0.6rem; color: rgba(170,150,120,0.35);
}

.se-form__fee {
  font-size: 0.62rem; color: rgba(160,140,110,0.45);
  margin-top: 0.4rem; text-align: center;
}
.se-form__fee strong { color: rgba(200,170,130,0.6); }

/* ── Submit button ─────────────────────────────────────────────────────────── */
.se-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1.2rem;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 10px;
  background: rgba(16,185,129,0.08);
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}
.se-submit:hover:not(:disabled) {
  background: rgba(16,185,129,0.18);
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16,185,129,0.15);
}
.se-submit:disabled {
  opacity: 0.4; cursor: not-allowed;
}

/* ── Success message ───────────────────────────────────────────────────────── */
.se-success {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(10,11,17,0.6);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.se-success__icon { font-size: 3rem; margin-bottom: 0.8rem; }
.se-success__title {
  margin: 0 0 0.5rem;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 1.3rem; font-weight: 800; color: #10b981;
}
.se-success__msg { font-size: 0.8rem; color: rgba(200,180,150,0.6); margin-bottom: 1.5rem; }
.se-success__msg strong { color: #e0c070; }

/* ── Filter pills ──────────────────────────────────────────────────────────── */
.se-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  background: transparent;
  color: rgba(180,160,130,0.5);
  font-size: 0.66rem;
  font-weight: 700;
  font-family: 'Orbitron', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.se-pill:hover { color: #c8a050; border-color: rgba(255,255,255,0.12); }
.se-pill--active {
  background: rgba(247,160,15,0.1);
  border-color: rgba(247,160,15,0.3);
  color: #f7a00f;
}
.se-pill__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  font-size: 0.58rem;
  padding: 0 0.3rem;
}
.se-pill--active .se-pill__n { background: rgba(247,160,15,0.18); }

/* ── Status badge ──────────────────────────────────────────────────────────── */
.se-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Cancel button ─────────────────────────────────────────────────────────── */
.se-btn-cancel {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 6px;
  background: rgba(239,68,68,0.06);
  color: #ef4444;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: 'Orbitron', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.se-btn-cancel:hover {
  background: rgba(239,68,68,0.14);
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239,68,68,0.1);
}

/* ── Trade type badge ──────────────────────────────────────────────────────── */
.se-trade-type {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.66rem;
  font-weight: 700;
}
.se-trade-type--bought { color: #10b981; }
.se-trade-type--sold { color: #ef4444; }

/* ── Counterparty ──────────────────────────────────────────────────────────── */
.se-cparty { font-size: 0.7rem; color: #b0a590; font-weight: 600; }

/* ── Tx hash ───────────────────────────────────────────────────────────────── */
.se-hash {
  font-size: 0.62rem;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  color: rgba(160,150,130,0.45);
  background: rgba(255,255,255,0.02);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* ── Muted text ────────────────────────────────────────────────────────────── */
.se-muted { color: rgba(160,140,110,0.4) !important; font-size: 0.68rem; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .se-body__side { flex: 0 0 300px; }
}

@media (max-width: 1024px) {
  .se-body { flex-direction: column; }
  .se-body__side { flex: none; width: 100%; }
  .se-insights { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .se-root { padding: 0.6rem 0.4rem 2rem; }
  .se-head { padding: 0.8rem 0.9rem; flex-direction: column; gap: 0.5rem; }
  .se-head__btns { width: 100%; justify-content: flex-start; }
  .se-head__btn { font-size: 0.65rem; padding: 0.4rem 0.7rem; }
  .se-insights { grid-template-columns: 1fr; }
  .se-filters { flex-wrap: wrap; }
  .se-th, .se-td { padding: 0.45rem 0.45rem; font-size: 0.66rem; }
  .se-th--item { min-width: 130px; }
  .se-item__name { font-size: 0.7rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   List Item View — Pet Material Cards & Form
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Material selection grid ─────────────────────────────────────────────── */
.se-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

/* Section headers in the "List an Item" picker (Pet Materials / Utility Cards) */
.se-list-section-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 200, 96, 0.75);
}

.se-list-section-note {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(180, 160, 130, 0.45);
}

.se-list-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.9rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(10,11,17,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.se-list-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: rgba(15,16,24,0.7);
}

.se-list-card--sel {
  border-color: rgba(247,160,15,0.4);
  box-shadow: 0 0 16px rgba(247,160,15,0.15);
  background: rgba(247,160,15,0.08);
}
.se-list-card--sel .se-list-card__img {
  box-shadow: 0 0 12px rgba(247,160,15,0.3);
}

.se-list-card--empty {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.se-list-card--empty:hover { transform: none; box-shadow: none; background: rgba(10,11,17,0.5); }

.se-list-card__img {
  width: 80px; height: 80px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
  transition: box-shadow 0.2s;
}
.se-list-card__name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d8d0c0;
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: 0.03em;
}
.se-list-card__epithet {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--accent, rgba(200,170,120,0.4));
  letter-spacing: 0.04em;
}
.se-list-card__owned {
  font-size: 0.64rem;
  font-weight: 800;
  color: rgba(200,180,150,0.5);
  font-family: 'Orbitron', system-ui, sans-serif;
  margin-top: 0.1rem;
}

/* ── Listing form ────────────────────────────────────────────────────────── */
.se-list-form {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.se-list-form__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.se-list-form__img {
  width: 72px; height: 72px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.se-list-form__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #d8d0c0;
  display: block;
}
.se-list-form__epithet {
  font-size: 0.6rem;
  font-weight: 600;
  display: block;
  margin-top: 1px;
}
.se-list-form__owned {
  margin-left: auto;
  font-size: 0.65rem;
  color: rgba(180,160,130,0.45);
}
.se-list-form__owned strong {
  color: rgba(200,180,150,0.7);
}

.se-list-form__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.se-list-form__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.se-list-form__qty {
  display: flex;
  align-items: center;
  gap: 0;
}
.se-list-form__qty-btn {
  width: 32px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #b0a590;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.se-list-form__qty-btn:first-child { border-radius: 8px 0 0 8px; }
.se-list-form__qty-btn:last-child  { border-radius: 0 8px 8px 0; }
.se-list-form__qty-btn:hover {
  background: rgba(247,160,15,0.1);
  border-color: rgba(247,160,15,0.3);
  color: #f7a00f;
}
.se-list-form__qty-val {
  width: 60px;
  text-align: center;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
}

.se-list-form__price-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.se-list-form__price-input .se-form__input {
  flex: 1;
}

.se-list-form__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: rgba(247,160,15,0.04);
  border: 1px solid rgba(247,160,15,0.1);
  border-radius: 10px;
}
.se-list-form__total span {
  font-size: 0.64rem;
  color: rgba(180,160,130,0.45);
  font-weight: 600;
}
.se-list-form__total strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f0c860;
  font-family: 'Orbitron', system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.se-list-form__total strong small {
  font-size: 0.6rem;
  color: rgba(170,150,120,0.4);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.se-list-form__chart {
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}
.se-list-form__chart-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(180,160,130,0.35);
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: 'Orbitron', system-ui, sans-serif;
}
.se-list-form__chart-placeholder {
  padding: 0.4rem 0.5rem 0.2rem;
}

.se-list-form__error {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

/* ── Skeleton Loading ─────────────────────────────────────────────────────── */
@keyframes se-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

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

/* ── Confetti ─────────────────────────────────────────────────────────────── */
@keyframes se-confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(60px) rotate(720deg); opacity: 0; }
}
.se-confetti { position: relative; overflow: hidden; }
.se-confetti::before,
.se-confetti::after {
  content: '🎉';
  position: absolute;
  animation: se-confetti-fall 1.5s ease-out forwards;
}
.se-confetti::before { left: 20%; top: -10px; animation-delay: 0s; }
.se-confetti::after { left: 70%; top: -10px; animation-delay: 0.3s; content: '✨'; }

.se-skeleton {
  animation: se-pulse 1.5s ease-in-out infinite;
}

/* ── Price Flash Animation ────────────────────────────────────────────────── */
@keyframes se-flash-green {
  0% { background: rgba(16,185,129,0.3); }
  100% { background: transparent; }
}
@keyframes se-flash-red {
  0% { background: rgba(239,68,68,0.3); }
  100% { background: transparent; }
}

.se-flash-up { animation: se-flash-green 0.6s ease-out; }
.se-flash-down { animation: se-flash-red 0.6s ease-out; }

/* ── Favorite Star ────────────────────────────────────────────────────────── */
.se-fav-btn:hover { opacity: 1 !important; transform: scale(1.15); }

/* ── Search Input ─────────────────────────────────────────────────────────── */
.se-search:focus { border-color: rgba(240,200,96,0.3) !important; box-shadow: 0 0 8px rgba(240,200,96,0.08); }

/* ── Buy Button ───────────────────────────────────────────────────────────── */
.se-buy-btn:hover:not(:disabled) { background: rgba(240,200,96,0.2) !important; border-color: rgba(240,200,96,0.4) !important; }

/* ── Clickable Row ────────────────────────────────────────────────────────── */
.se-tr--clickable:hover { background: rgba(255,255,255,0.02); }

/* ── Mobile Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .se-body { flex-direction: column; }
  .se-body__side { width: 100%; }
  .se-table-wrap { overflow-x: auto; }
  .se-table { min-width: 600px; }
  .se-filters { flex-wrap: wrap; gap: 0.4rem; }
  .se-filters__pills { flex-wrap: wrap; }
  .se-head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .se-head__btns { flex-wrap: wrap; }
  .se-insights { grid-template-columns: 1fr; }
  .se-search { width: 120px !important; }
}

@media (max-width: 500px) {
  .se-table { min-width: 480px; font-size: 0.6rem; }
  .se-head__btn { font-size: 0.6rem; padding: 0.3rem 0.5rem; }
  .se-cat-pill { font-size: 0.6rem; padding: 0.25rem 0.5rem; }
  .se-item__icon { width: 36px !important; height: 36px !important; }
  .se-item__icon img { width: 28px !important; height: 28px !important; }
}

/* ── Toast Notification ─────────────────────────────────────────────────── */
@keyframes se-toast-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Animated price transitions ──────────────────────────────────────────── */
@keyframes se-price-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: #f0c860; }
  100% { transform: scale(1); }
}
.se-price-update {
  animation: se-price-pop 0.4s ease-out;
  display: inline-block;
}
/* ── Earn Prizes ── /earnprizes ── Dark fantasy gold theme ── */

.ep-page {
  min-height: 100dvh;
  background: #080a0f;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
  font-family: 'Orbitron', system-ui, sans-serif;
}

/* Subtle diagonal scanlines */
.ep-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(247,160,15,0.012) 3px,
    rgba(247,160,15,0.012) 4px
  );
}

/* Warm ember glow from below */
.ep-page::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 90% 100px at 50% 100%, rgba(247,160,15,0.09) 0%, transparent 70%);
}

.ep-page > * {
  position: relative;
  z-index: 1;
}

/* ─── Top Banner ─── */
.ep-banner {
  background: linear-gradient(135deg, #0c0e14 0%, #11131a 100%);
  border-bottom: 1px solid rgba(247,160,15,0.18);
  padding: 14px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.ep-banner__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-banner__icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(247,160,15,0.5));
}

.ep-banner__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ep-banner__title {
  font-size: 0.9rem;
  font-weight: 900;
  color: #F7A00F;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(247,160,15,0.35);
}

.ep-banner__subtitle {
  font-size: 0.58rem;
  color: #4a4030;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: system-ui, sans-serif;
}

.ep-banner__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-banner__bronze-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(247,160,15,0.07);
  border: 1px solid rgba(247,160,15,0.22);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffe066;
  letter-spacing: 0.04em;
}

.ep-banner__bronze-icon {
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════════════════
   CATEGORY ROW — Full-box image cards, single line
   ══════════════════════════════════════════════════════════════════════ */
.ep-cat-row {
  display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto;
  padding: 12px 20px;
  max-width: 1200px; width: 100%; margin: 0 auto;
  scrollbar-width: thin; scrollbar-color: rgba(200,150,60,0.1) transparent;
}
.ep-cat-row::-webkit-scrollbar { height: 4px; }
.ep-cat-row::-webkit-scrollbar-thumb { background: rgba(200,150,60,0.1); border-radius: 2px; }
.ep-cat-card {
  flex-shrink: 0; width: 170px; height: 110px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(200,150,60,0.12);
  cursor: pointer; transition: all 0.2s; position: relative;
  background-size: cover; background-position: center;
  background-color: rgba(14,10,6,0.9);
}
.ep-cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}
.ep-cat-card:hover {
  border-color: rgba(200,150,60,0.35); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.ep-cat-card__body {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 1px;
}
.ep-cat-card__name {
  font-size: 0.6rem; font-weight: 700; color: #e8cc90;
  font-family: 'Orbitron', system-ui; letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.ep-cat-card__count {
  font-size: 0.48rem; color: rgba(255,255,255,0.5);
}
.ep-cat-card__actions {
  position: absolute; top: 4px; right: 4px; z-index: 3; display: flex; gap: 2px; opacity: 0; transition: opacity 0.2s;
}
.ep-cat-card:hover .ep-cat-card__actions { opacity: 1; }
.ep-cat-card__actions span {
  width: 20px; height: 20px; border-radius: 4px;
  background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; color: #e8c860; cursor: pointer; transition: all 0.15s;
}
.ep-cat-card__actions span:hover { background: rgba(200,150,60,0.25); }
.ep-cat-card--add {
  background: rgba(14,10,6,0.7); border-style: dashed; border-color: rgba(200,150,60,0.1); opacity: 0.7;
  display: flex; align-items: center; justify-content: center;
}
.ep-cat-card--add::after { display: none; }
.ep-cat-card--add:hover { opacity: 1; border-color: rgba(200,150,60,0.3); }
.ep-cat-card__add-icon { font-size: 1.8rem; color: rgba(200,150,60,0.2); }

/* Category form inline modal */
.ep-cat-form-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.ep-cat-form {
  background: linear-gradient(180deg, #1a140e 0%, #0f0c08 100%);
  border: 1px solid rgba(200,150,60,0.2); border-radius: 12px; padding: 20px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7); min-width: 320px;
}
.ep-cat-form__title { font-size: 0.7rem; font-weight: 700; color: #c8a050; margin-bottom: 12px; }
.ep-cat-form__input {
  width: 100%; padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(200,150,60,0.15);
  background: rgba(0,0,0,0.3); color: #e0c890; font-size: 0.62rem; margin-bottom: 12px;
  font-family: 'Orbitron', system-ui;
}
.ep-cat-form__input:focus { outline: none; border-color: rgba(200,150,60,0.4); }
.ep-cat-form__actions { display: flex; gap: 8px; justify-content: flex-end; }
.ep-cat-form__btn {
  padding: 6px 16px; border-radius: 6px; font-size: 0.58rem; font-weight: 700; cursor: pointer;
  font-family: 'Orbitron', system-ui; transition: all 0.2s;
}
.ep-cat-form__btn--cancel { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: #666; }
.ep-cat-form__btn--cancel:hover { border-color: rgba(255,255,255,0.2); color: #999; }
.ep-cat-form__btn--save { background: rgba(200,150,60,0.15); border: 1px solid rgba(200,150,60,0.25); color: #e8c860; }
.ep-cat-form__btn--save:hover { background: rgba(200,150,60,0.25); }

/* ══════════════════════════════════════════════════════════════════════
   HERO ROW — Image card + Daily Quests side by side
   ══════════════════════════════════════════════════════════════════════ */
.ep-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 20px 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
}
.ep-hero-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(200,150,60,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  min-height: 200px;
  display: flex; flex-direction: column;
}
.ep-hero-card--full {
  width: 100%; max-width: 100%;
}
.ep-hero-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5) saturate(0.8);
}
.ep-hero-card__stats {
  position: relative; z-index: 2; margin-top: auto;
  display: flex; gap: 2px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  padding: 20px 14px 10px;
}
.ep-hero-card__stat {
  flex: 1; text-align: center; display: flex; flex-direction: column; gap: 1px;
}
.ep-hero-card__stat strong {
  font-size: 0.72rem; font-weight: 800; color: #e8c860;
  font-family: 'Orbitron', system-ui;
  text-shadow: 0 0 6px rgba(200,150,60,0.2);
}
.ep-hero-card__stat small {
  font-size: 0.45rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.06em;
}
.ep-side-card--daily {
  display: flex; flex-direction: column;
}
@media(max-width:900px) {
  .ep-hero-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   CINEMATIC HERO BANNER (legacy — unused, replaced by ep-hero-row)
   ══════════════════════════════════════════════════════════════════════ */
.ep-hero {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(200,150,60,0.15);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 30px rgba(200,150,60,0.04);
  min-height: 160px;
  max-height: 180px;
}
.ep-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}
.ep-hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 40%, rgba(200,150,60,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 70% 80%, rgba(0,0,0,0.6) 0%, transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.75) 100%);
}
.ep-hero__content {
  position: relative; z-index: 2;
  padding: 18px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.ep-hero__chapter {
  font-size: 0.5rem; font-weight: 700; letter-spacing: 0.2em;
  color: rgba(200,150,60,0.6); text-transform: uppercase;
}
.ep-hero__title {
  font-size: 1.15rem; font-weight: 900; color: #e8c860;
  text-shadow: 0 0 20px rgba(200,150,60,0.3); letter-spacing: 0.03em;
  line-height: 1.15;
}
.ep-hero__subtitle {
  font-size: 0.55rem; color: rgba(255,255,255,0.35); max-width: 500px; line-height: 1.4;
}
.ep-hero__progress-wrap {
  display: flex; align-items: center; gap: 10px; margin-top: 2px;
}
.ep-hero__chapter {
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.2em;
  color: rgba(200,150,60,0.6); text-transform: uppercase;
}
.ep-hero__title {
  font-size: 1.4rem; font-weight: 900; color: #e8c860;
  text-shadow: 0 0 20px rgba(200,150,60,0.3); letter-spacing: 0.03em;
  line-height: 1.2;
}
.ep-hero__subtitle {
  font-size: 0.62rem; color: rgba(255,255,255,0.35); max-width: 500px; line-height: 1.5;
}
.ep-hero__progress-wrap {
  display: flex; align-items: center; gap: 10px; margin-top: 6px;
}
.ep-hero__progress-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden;
}
.ep-hero__progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, rgba(200,150,60,0.5), rgba(240,180,80,0.8), rgba(200,150,60,0.5));
  box-shadow: 0 0 8px rgba(240,180,80,0.3);
  transition: width 0.5s ease;
}
.ep-hero__progress-val {
  font-size: 0.75rem; font-weight: 800; color: #e8c860;
  text-shadow: 0 0 8px rgba(200,150,60,0.3);
  font-family: 'Orbitron', system-ui;
}

/* ══════════════════════════════════════════════════════════════════════
   DASHBOARD GRID — Main content area after hero
   ══════════════════════════════════════════════════════════════════════ */
.ep-dashboard {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  padding: 12px 20px 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

.ep-dashboard__main {
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}

.ep-dashboard__side {
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 16px;
}

/* ── Featured Quest Card ───────────────────────────────────────────── */
.ep-featured {
  background: linear-gradient(180deg, rgba(16,12,6,0.85) 0%, rgba(12,8,4,0.8) 100%);
  border: 1px solid rgba(200,150,60,0.12);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(200,150,60,0.03);
  position: relative; overflow: hidden;
}
.ep-featured::before {
  content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px;
  background: radial-gradient(circle at 100% 0%, rgba(200,150,60,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.ep-featured__label {
  font-size: 0.5rem; letter-spacing: 0.15em; color: rgba(200,150,60,0.5);
  text-transform: uppercase; margin-bottom: 6px;
}
.ep-featured__title {
  font-size: 0.9rem; font-weight: 800; color: #e8cc90; margin-bottom: 4px;
}
.ep-featured__desc {
  font-size: 0.58rem; color: #6a5030; line-height: 1.5; margin-bottom: 12px; max-width: 500px;
}
.ep-featured__objectives {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px;
}
.ep-featured__obj {
  display: flex; align-items: center; gap: 8px; font-size: 0.58rem; color: #8a7040;
}
.ep-featured__obj-icon {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(200,150,60,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 0.45rem;
  flex-shrink: 0;
}
.ep-featured__obj-icon--done {
  background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.3); color: #4ade80;
}
.ep-featured__row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.ep-featured__rewards {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.ep-featured__reward {
  display: flex; align-items: center; gap: 4px;
  background: rgba(200,150,60,0.06); border: 1px solid rgba(200,150,60,0.1);
  border-radius: 6px; padding: 5px 10px; font-size: 0.56rem; color: #c8a050;
}
.ep-featured__reward-icon { font-size: 0.8rem; }
.ep-featured__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(200,150,60,0.18), rgba(160,110,30,0.1));
  border: 1px solid rgba(200,150,60,0.25);
  color: #e8c860; font-size: 0.62rem; font-weight: 700; cursor: pointer;
  transition: all 0.3s; text-decoration: none; font-family: 'Orbitron', system-ui;
}
.ep-featured__cta:hover {
  background: linear-gradient(135deg, rgba(220,170,70,0.25), rgba(180,130,40,0.15));
  border-color: rgba(220,170,70,0.4); box-shadow: 0 0 16px rgba(200,150,60,0.1);
}

/* ── Side Panel Cards ──────────────────────────────────────────────── */
.ep-side-card {
  background: linear-gradient(180deg, rgba(14,10,6,0.85) 0%, rgba(10,8,4,0.8) 100%);
  border: 1px solid rgba(200,150,60,0.1);
  border-radius: 10px; padding: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.ep-side-card__header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.ep-side-card__title {
  font-size: 0.62rem; font-weight: 700; color: #c8a050; letter-spacing: 0.04em; text-transform: uppercase;
}
.ep-side-card__link {
  font-size: 0.48rem; color: rgba(200,150,60,0.4); cursor: pointer; transition: color 0.2s;
}
.ep-side-card__link:hover { color: rgba(200,150,60,0.7); }
.ep-side-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.ep-side-row:last-child { border-bottom: none; }
.ep-side-row__icon {
  font-size: 0.75rem; width: 30px; height: 30px; text-align: center; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.ep-daily-complete-btn {
  padding: 5px 14px; border-radius: 14px;
  background: rgba(200,150,60,0.12); border: 1px solid rgba(200,150,60,0.2);
  color: #e8c860; font-size: 0.54rem; font-weight: 700; cursor: pointer;
  font-family: 'Orbitron', system-ui; transition: all 0.2s; flex-shrink: 0;
}
.ep-daily-complete-btn:hover {
  background: rgba(200,150,60,0.22); border-color: rgba(200,150,60,0.35);
}
.ep-daily-complete-btn:disabled {
  opacity: 0.5; cursor: default; background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.15); color: #4ade80;
}
/* Daily Reward Modal — modern, clean */
.ep-daily-modal {
  background: linear-gradient(180deg, #1a140e 0%, #0f0c08 100%);
  border: 1px solid rgba(200,150,60,0.15); border-radius: 16px; padding: 28px 28px 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 40px rgba(200,150,60,0.04);
  max-width: 400px; width: 90vw; position: relative; text-align: center;
}
.ep-daily-modal__close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: rgba(255,255,255,0.2); font-size: 1rem; cursor: pointer; transition: color 0.2s;
}
.ep-daily-modal__close:hover { color: rgba(255,255,255,0.6); }
.ep-daily-modal__icon { font-size: 2.5rem; margin-bottom: 8px; }
.ep-daily-modal__title { font-size: 0.85rem; font-weight: 800; color: #e8cc90; margin-bottom: 2px; }
.ep-daily-modal__reward { font-size: 0.55rem; color: #6a5030; margin-bottom: 18px; }
.ep-daily-modal__main-cmd {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
  font-size: 0.62rem; color: #8a7040; margin-bottom: 14px;
}
.ep-daily-modal__main-cmd code {
  background: rgba(200,150,60,0.12); padding: 4px 10px; border-radius: 6px;
  color: #e8c860; font-size: 0.7rem; font-weight: 700; font-family: 'Orbitron', monospace;
  border: 1px solid rgba(200,150,60,0.15);
}
.ep-daily-modal__main-cmd strong { color: #c8a050; }
.ep-daily-modal__steps {
  text-align: left; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.ep-daily-modal__step {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.54rem; color: #8a7a5a; line-height: 1.5;
  padding: 8px 12px;
  background: rgba(0,0,0,0.25); border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
}
.ep-daily-modal__step span {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(200,150,60,0.12); display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 700; color: #c8a050;
}
.ep-daily-modal__step strong { color: #b89050; }
.ep-daily-modal__step a { color: #60a5fa; text-decoration: underline; }
.ep-daily-modal__btn {
  width: 100%; padding: 10px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(200,150,60,0.15), rgba(160,110,30,0.1));
  border: 1px solid rgba(200,150,60,0.2); color: #e8c860;
  font-size: 0.62rem; font-weight: 700; cursor: pointer;
  font-family: 'Orbitron', system-ui; transition: all 0.3s;
}
.ep-daily-modal__btn:hover {
  background: linear-gradient(135deg, rgba(220,170,70,0.22), rgba(180,130,40,0.14));
  border-color: rgba(220,170,70,0.35); box-shadow: 0 0 14px rgba(200,150,60,0.08);
}
.ep-daily-modal__btn:disabled { opacity: 0.5; cursor: default; }
.ep-daily-modal__success {
  padding: 10px; border-radius: 8px; background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.1); color: #4ade80;
  font-size: 0.6rem; font-weight: 600;
}
.ep-side-row__icon--quest {
  background: rgba(200,150,60,0.1); border: 1px solid rgba(200,150,60,0.15); color: #c8a050;
}
.ep-side-row__icon--coin {
  background: rgba(200,150,60,0.1); border: 1px solid rgba(200,150,60,0.15); color: #d4a840;
}
.ep-side-row__icon--people {
  background: rgba(100,150,200,0.1); border: 1px solid rgba(100,150,200,0.15); color: #80b0d0;
}
.ep-side-row__icon--check {
  background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.15); color: #4ade80;
}
.ep-side-row__icon--time {
  background: rgba(200,160,60,0.08); border: 1px solid rgba(200,160,60,0.12); color: #c8a050;
}

/* Level UP achievement section */
.ep-level-up {
  display: flex; align-items: center; gap: 16px; padding: 8px 0;
}
.ep-level-up__badge {
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1;
}
.ep-level-up__badge-img {
  width: 48px; height: 48px; object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(200,150,60,0.2));
}
.ep-level-up__badge-label {
  font-size: 0.48rem; color: #6a5030; text-transform: uppercase; letter-spacing: 0.06em;
}
.ep-level-up__badge-name {
  font-size: 0.56rem; font-weight: 700; color: #c8a050;
}
.ep-level-up__arrow {
  font-size: 1.2rem; color: rgba(200,150,60,0.3); flex-shrink: 0;
}
.ep-level-up__next {
  opacity: 0.5;
}
.ep-level-up__next .ep-level-up__badge-img {
  filter: drop-shadow(0 0 6px rgba(200,150,60,0.2)) grayscale(0.4);
}
.ep-side-row__info { flex: 1; min-width: 0; }
.ep-side-row__name { font-size: 0.58rem; font-weight: 600; color: #d0c8b8; }
.ep-side-row__stats { font-size: 0.48rem; color: #6a5030; }
.ep-side-row__reward {
  font-size: 0.54rem; font-weight: 700; color: #c8a050;
  background: rgba(200,150,60,0.06); padding: 3px 8px; border-radius: 4px;
  flex-shrink: 0;
}
.ep-side-row__progress {
  height: 3px; background: rgba(255,255,255,0.05); border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.ep-side-row__progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, rgba(200,150,60,0.4), rgba(200,150,60,0.7));
}

/* ── Achievements Row ──────────────────────────────────────────────── */
.ep-achievement {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.ep-achievement:last-child { border-bottom: none; }
.ep-achievement__badge {
  font-size: 1.2rem; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,60,0.1) 0%, transparent 70%);
  border: 1px solid rgba(200,150,60,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ep-achievement__info { flex: 1; min-width: 0; }
.ep-achievement__name { font-size: 0.56rem; font-weight: 600; color: #d0c8b8; }
.ep-achievement__desc { font-size: 0.48rem; color: #6a5030; margin-top: 1px; }

/* ── Quest Category Cards Row ──────────────────────────────────────── */
.ep-categories-row {
  padding: 0 20px 20px; max-width: 1200px; width: 100%; margin: 0 auto;
}
.ep-categories-row__title {
  font-size: 0.62rem; font-weight: 700; color: #c8a050; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 10px;
}
.ep-cat-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.ep-cat-card {
  background: linear-gradient(180deg, rgba(14,10,6,0.85) 0%, rgba(10,8,4,0.8) 100%);
  border: 1px solid rgba(200,150,60,0.1); border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.3); cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.ep-cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200,150,60,0.3), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.ep-cat-card:hover::before { opacity: 1; }
.ep-cat-card:hover {
  border-color: rgba(200,150,60,0.2); transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.45), 0 0 14px rgba(200,150,60,0.03);
}
.ep-cat-card__icon { font-size: 1.2rem; margin-bottom: 6px; }
.ep-cat-card__name {
  font-size: 0.62rem; font-weight: 700; color: #e0c890; margin-bottom: 2px;
}
.ep-cat-card__desc {
  font-size: 0.5rem; color: #6a5030; line-height: 1.4; margin-bottom: 6px;
}
.ep-cat-card__count {
  font-size: 0.5rem; font-weight: 600; color: #c8a050;
  background: rgba(200,150,60,0.06); display: inline-block; padding: 2px 8px; border-radius: 3px;
}

/* ── Task Cards in dashboard mode ──────────────────────────────────── */
.ep-dashboard .ep-tasks-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 0 8px 0; border-bottom: 1px solid rgba(200,150,60,0.08); margin-bottom: 8px;
}
.ep-dashboard .ep-tasks-header__title {
  font-size: 0.62rem; font-weight: 700; color: #c8a050; letter-spacing: 0.04em; text-transform: uppercase;
}
.ep-dashboard .ep-tasks-header__count { font-size: 0.52rem; color: #6a5030; }
.ep-dashboard .ep-task-card {
  background: linear-gradient(180deg, rgba(16,12,6,0.8) 0%, rgba(12,8,4,0.75) 100%);
  border: 1px solid rgba(200,150,60,0.08);
  border-radius: 8px; padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3); transition: all 0.25s;
}
.ep-dashboard .ep-task-card:hover {
  border-color: rgba(200,150,60,0.18); transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.4), 0 0 10px rgba(200,150,60,0.03);
}
.ep-dashboard .ep-task-card--completed {
  border-color: rgba(200,150,60,0.18); background: linear-gradient(180deg, rgba(20,14,8,0.8) 0%, rgba(16,10,5,0.75) 100%);
}

/* Responsive */
@media(max-width:900px) {
  .ep-dashboard { grid-template-columns: 1fr; }
  .ep-dashboard__side { position: static; }
  .ep-hero__content { padding: 20px; }
  .ep-hero__title { font-size: 1.1rem; }
}

/* ─── Main Split Layout ─── */
.ep-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

/* ─── Left Panel — Video Placeholder ─── */
.ep-video-panel {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-video-card {
  background: #0c0e14;
  border: 1px solid rgba(247,160,15,0.12);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ep-video-card:hover {
  border-color: rgba(247,160,15,0.3);
  box-shadow: 0 0 30px rgba(247,160,15,0.08);
}

/* Spinning conic gradient border ring (subtle) */
.ep-video-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: conic-gradient(from 0deg, transparent 0%, rgba(247,160,15,0.3) 25%, rgba(247,160,15,0.6) 50%, rgba(247,160,15,0.3) 75%, transparent 100%);
  animation: ep-border-spin 6s linear infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.ep-video-card--active .ep-video-card__glow {
  opacity: 1;
}

@keyframes ep-border-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ep-video-card__inner {
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 50%, #12100e 0%, #080a0f 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 1;
}

.ep-video-card__placeholder-icon {
  font-size: 3.5rem;
  opacity: 0.3;
  filter: drop-shadow(0 0 12px rgba(247,160,15,0.3));
  animation: ep-float 3s ease-in-out infinite;
}

@keyframes ep-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.ep-video-card__placeholder-text {
  font-size: 0.72rem;
  color: rgba(247,160,15,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: system-ui, sans-serif;
}

/* Video info cards below */
.ep-video-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ep-video-info-card {
  background: #0c0e14;
  border: 1px solid rgba(247,160,15,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.2s, background 0.2s;
}

.ep-video-info-card:hover {
  border-color: rgba(247,160,15,0.22);
  background: rgba(247,160,15,0.03);
}

.ep-video-info-card__icon {
  font-size: 1.1rem;
}

.ep-video-info-card__value {
  font-size: 0.82rem;
  font-weight: 900;
  color: #F7A00F;
  line-height: 1;
}

.ep-video-info-card__label {
  font-size: 0.5rem;
  color: #3a3020;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: system-ui, sans-serif;
}

/* ─── Right Panel — Tasks ─── */
.ep-tasks-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 4px;
}

.ep-tasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ep-tasks-header__title {
  font-size: 0.72rem;
  font-weight: 900;
  color: #c88a3a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ep-tasks-header__count {
  font-size: 0.58rem;
  color: #8a8a9a;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.ep-tasks-header__count strong {
  color: #ffe066;
  font-family: 'Orbitron', system-ui, sans-serif;
}

/* ─── Individual Task Card ─── */
.ep-task-card {
  background: #0c0e14;
  border: 1px solid rgba(247,160,15,0.09);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.ep-task-card:hover {
  border-color: rgba(247,160,15,0.25);
  background: rgba(247,160,15,0.03);
  box-shadow: 0 0 20px rgba(247,160,15,0.06);
  transform: translateY(-1px);
}

/* Completed task */
.ep-task-card--completed {
  border-color: rgba(74,222,128,0.15);
  background: rgba(74,222,128,0.03);
  opacity: 0.8;
}

.ep-task-card--completed:hover {
  border-color: rgba(74,222,128,0.3);
  box-shadow: 0 0 20px rgba(74,222,128,0.08);
}

/* Claimed task */
.ep-task-card--claimed {
  border-color: rgba(247,160,15,0.05);
  opacity: 0.5;
}

/* Glow line on left edge */
.ep-task-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #F7A00F, #f7931e);
  opacity: 0;
  transition: opacity 0.3s;
}

.ep-task-card:hover::before {
  opacity: 1;
}

.ep-task-card--completed::before {
  background: linear-gradient(180deg, #4ade80, #22c55e);
  opacity: 0.7;
}

.ep-task-card--claimed::before {
  opacity: 0.2;
}

/* Task icon */
.ep-task-card__icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(247,160,15,0.06);
  border: 1px solid rgba(247,160,15,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.ep-task-card:hover .ep-task-card__icon-wrap {
  background: rgba(247,160,15,0.1);
  border-color: rgba(247,160,15,0.25);
}

.ep-task-card--completed .ep-task-card__icon-wrap {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.2);
}

/* Task content */
.ep-task-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ep-task-card__name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.ep-task-card--completed .ep-task-card__name {
  color: #4ade80;
}

.ep-task-card__desc {
  font-size: 0.62rem;
  color: #4a4030;
  font-family: system-ui, sans-serif;
  line-height: 1.4;
}

/* Task progress bar */
.ep-task-card__progress-wrap {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-task-card__progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(247,160,15,0.06);
  border-radius: 5px;
  overflow: hidden;
}

.ep-task-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f7931e, #F7A00F, #ffe066);
  border-radius: 5px;
  transition: width 0.6s ease;
  box-shadow: 0 0 6px rgba(247,160,15,0.4);
}

.ep-task-card--completed .ep-task-card__progress-fill {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  box-shadow: 0 0 6px rgba(74,222,128,0.4);
}

.ep-task-card__progress-text {
  font-size: 0.54rem;
  font-weight: 800;
  color: #c88a3a;
  white-space: nowrap;
  font-family: system-ui, sans-serif;
}

.ep-task-card--completed .ep-task-card__progress-text {
  color: #4ade80;
}

/* Reward badge on the right */
.ep-task-card__reward {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(247,160,15,0.06);
  border: 1px solid rgba(247,160,15,0.14);
  border-radius: 10px;
  padding: 8px 12px;
  transition: background 0.2s, border-color 0.2s;
  min-width: 60px;
}

.ep-task-card--completed .ep-task-card__reward {
  background: rgba(74,222,128,0.06);
  border-color: rgba(74,222,128,0.18);
}

.ep-task-card__reward-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 4px rgba(247,160,15,0.5));
}

.ep-task-card__reward-amount {
  font-size: 0.74rem;
  font-weight: 900;
  color: #F7A00F;
  line-height: 1;
}

.ep-task-card__reward-label {
  font-size: 0.44rem;
  color: #3a3020;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: system-ui, sans-serif;
}

/* Rewards row — multiple boxes */
.ep-task-card__rewards {
  display: flex; gap: 4px; align-items: stretch;
}

/* XP reward box — white */
.ep-task-card__xp-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4px 8px; border-radius: 8px; gap: 1px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
}
.ep-task-card__xp-icon { font-size: 0.65rem; }
.ep-task-card__xp-text {
  font-size: 0.74rem; font-weight: 900; color: #e2e8f0;
  font-family: 'Orbitron', system-ui; white-space: nowrap; line-height: 1;
}

/* Spins reward box — grey */
.ep-task-card__spins-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4px 8px; border-radius: 8px; gap: 1px;
  background: rgba(128,128,128,0.08); border: 1px solid rgba(128,128,128,0.15);
}
.ep-task-card__spins-icon { font-size: 0.65rem; }
.ep-task-card__spins-text {
  font-size: 0.42rem; color: #9ca3af; font-weight: 700;
  font-family: 'Orbitron', system-ui; white-space: nowrap;
}

/* Claim button */
.ep-task-card__claim-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Orbitron', system-ui, sans-serif;
  background: linear-gradient(135deg, #d44f10 0%, #f07820 30%, #F7A00F 55%, #ffe066 70%, #F7A00F 85%);
  background-size: 180% 100%;
  color: #0a0500;
  box-shadow: 0 0 0 1px rgba(255,230,100,0.3), 0 3px 16px rgba(247,160,15,0.35);
  animation: ep-claim-pulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.ep-task-card__claim-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  background-size: 300% 100%;
  animation: earn-shimmer 2.2s ease-in-out infinite;
}

@keyframes ep-claim-pulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255,230,100,0.3), 0 3px 16px rgba(247,160,15,0.35);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(255,230,100,0.5), 0 3px 24px rgba(247,160,15,0.55);
  }
}

.ep-task-card__claim-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(255,230,100,0.5), 0 5px 24px rgba(247,160,15,0.5);
}

.ep-task-card__claim-btn:active {
  transform: scale(0.95);
}

.ep-task-card__claim-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  animation: none;
  transform: none;
}

.ep-task-card__claim-btn--claimed {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.25);
  color: #4ade80;
  box-shadow: none;
  animation: none;
  cursor: default;
}

.ep-task-card__claim-btn--claimed::before {
  display: none;
}

.ep-task-card__claimed-wrap {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}

.ep-countdown-timer {
  font-size: 0.45rem;
  color: rgba(255,255,255,0.35);
  font-family: 'Orbitron', system-ui;
  white-space: nowrap;
}

/* ─── Completed / Claimed Checkmarks ─── */
.ep-task-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

.ep-task-check--completed {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
}

.ep-task-check--claimed {
  background: rgba(247,160,15,0.1);
  color: #F7A00F;
}

/* ─── Empty State ─── */
.ep-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
  gap: 10px;
}

.ep-empty__icon {
  font-size: 2.5rem;
  opacity: 0.25;
}

.ep-empty__title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #3a3020;
  letter-spacing: 0.04em;
}

.ep-empty__desc {
  font-size: 0.6rem;
  color: #1a1808;
  font-family: system-ui, sans-serif;
  max-width: 260px;
  line-height: 1.5;
}

/* ─── Loading Skeleton ─── */
.ep-page--loading {
  align-items: center;
  justify-content: center;
}

.ep-loading-pulse {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: epFadeIn 0.3s ease 0.1s forwards;
}

.ep-loading-pulse__icon {
  font-size: 2.4rem;
  animation: epPulse 1.2s ease-in-out infinite;
}

.ep-loading-pulse__text {
  font-size: 0.8rem;
  color: rgba(247,160,15,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

@keyframes epFadeIn {
  to { opacity: 1; }
}

/* ─── Coin Pop Animation (on claim) ─── */
.ep-coin-pop {
  position: fixed;
  font-size: 2.0rem;
  pointer-events: none;
  z-index: 999;
  animation: epCoinUp 1.4s ease-out forwards;
  filter: drop-shadow(0 0 14px rgba(247,160,15,0.95));
}

@keyframes epCoinUp {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  55%  { opacity: 1; transform: translateY(-65px) scale(1.4); }
  100% { opacity: 0; transform: translateY(-110px) scale(0.7); }
}

/* ─── Toast message ─── */
.ep-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: system-ui, sans-serif;
  animation: epToastIn 0.3s ease, epToastOut 0.3s ease 2.5s forwards;
  pointer-events: none;
}

.ep-toast--success {
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
}

.ep-toast--error {
  color: #f87171;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
}

@keyframes epToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes epToastOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .ep-split {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 14px;
  }

  .ep-video-panel {
    position: static;
    order: -1;
  }

  .ep-video-card {
    aspect-ratio: 16 / 9;
  }

  .ep-task-card {
    padding: 14px;
    gap: 10px;
  }

  .ep-task-card__icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .ep-task-card__name {
    font-size: 0.72rem;
  }

  .ep-task-card__reward {
    padding: 6px 10px;
    min-width: 50px;
  }

  .ep-banner {
    padding: 12px 14px 10px;
  }
}

@media (max-width: 480px) {
  .ep-split {
    padding: 10px 8px;
    gap: 10px;
  }

  .ep-task-card {
    padding: 12px;
    gap: 8px;
    border-radius: 12px;
  }

  .ep-task-card__icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .ep-task-card__name {
    font-size: 0.68rem;
  }

  .ep-task-card__desc {
    font-size: 0.58rem;
  }

  .ep-task-card__reward {
    padding: 5px 8px;
    min-width: 44px;
    border-radius: 8px;
  }

  .ep-task-card__reward-amount {
    font-size: 0.66rem;
  }

  .ep-banner__title {
    font-size: 0.78rem;
  }

  .ep-banner__bronze-badge {
    font-size: 0.6rem;
    padding: 5px 10px;
  }

  .ep-video-info {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .ep-video-info-card {
    padding: 10px 12px;
  }
}

/* ─── Admin Tools ──────────────────────────────────────────────────── */

.ep-task-card__admin-tools {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}

.ep-task-card:hover .ep-task-card__admin-tools {
  opacity: 1;
}

.ep-admin-btn {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(247,160,15,0.2);
  border-radius: 5px;
  background: rgba(12,14,20,0.92);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  padding: 0;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
}

.ep-admin-btn:hover {
  border-color: rgba(247,160,15,0.5);
  background: rgba(247,160,15,0.12);
}

.ep-admin-btn--remove:hover {
  border-color: rgba(239,68,68,0.5);
  background: rgba(239,68,68,0.12);
}

/* ─── Admin Add Button ──────────────────────────────────────────────── */

.ep-admin-add-btn {
  width: 100%;
  padding: 9px 14px;
  border: 1px dashed rgba(247,160,15,0.25);
  border-radius: 10px;
  background: rgba(247,160,15,0.04);
  color: #c88a3a;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.ep-admin-add-btn:hover {
  border-color: rgba(247,160,15,0.5);
  background: rgba(247,160,15,0.1);
  color: #F7A00F;
}

/* ─── Task Cooldown Info ────────────────────────────────────────────── */

.ep-task-card__cooldown {
  font-size: 0.54rem;
  color: #4a3a20;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.03em;
}

/* ─── Form Modal ────────────────────────────────────────────────────── */

.ep-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.ep-modal {
  background: #0c0e14;
  border: 1px solid rgba(247,160,15,0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(247,160,15,0.08);
}

.ep-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(247,160,15,0.1);
}

.ep-modal__title {
  font-size: 0.78rem;
  font-weight: 900;
  color: #F7A00F;
  letter-spacing: 0.04em;
}

.ep-modal__close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(247,160,15,0.15);
  border-radius: 8px;
  background: transparent;
  color: #6a5030;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.ep-modal__close:hover {
  border-color: rgba(239,68,68,0.4);
  color: #f87171;
}

.ep-modal__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(247,160,15,0.08);
}

/* ─── Form Elements ─────────────────────────────────────────────────── */

.ep-form-label {
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6a5030;
  font-family: 'Orbitron', system-ui, sans-serif;
  margin-bottom: -8px;
}

.ep-form-input {
  width: 100%;
  box-sizing: border-box;
  background: #080a0f;
  border: 1px solid rgba(247,160,15,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: #c8cbd2;
  font-size: 0.8rem;
  font-family: system-ui, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.ep-form-input:focus {
  border-color: rgba(247,160,15,0.5);
}

.ep-form-input--short {
  max-width: 160px;
}

.ep-form-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #080a0f;
  border: 1px solid rgba(247,160,15,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: #c8cbd2;
  font-size: 0.8rem;
  font-family: system-ui, sans-serif;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.ep-form-textarea:focus {
  border-color: rgba(247,160,15,0.5);
}

.ep-form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep-form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.7rem;
  color: #8a8fa0;
  font-family: system-ui, sans-serif;
}

.ep-form-radio input[type="radio"] {
  accent-color: #F7A00F;
}

.ep-form-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
}

.ep-form-suffix {
  font-size: 0.7rem;
  color: #6a5030;
  font-family: system-ui, sans-serif;
}

.ep-form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.7rem;
  color: #8a8fa0;
  font-family: system-ui, sans-serif;
}

.ep-form-checkbox input[type="checkbox"] {
  accent-color: #F7A00F;
}

/* ─── Form Buttons ──────────────────────────────────────────────────── */

.ep-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.ep-btn--cancel {
  background: transparent;
  border-color: rgba(247,160,15,0.15);
  color: #6a5030;
}

.ep-btn--cancel:hover {
  border-color: rgba(247,160,15,0.3);
  color: #8a7050;
}

.ep-btn--save {
  background: rgba(247,160,15,0.12);
  border-color: rgba(247,160,15,0.3);
  color: #F7A00F;
}

.ep-btn--save:hover:not(:disabled) {
  background: rgba(247,160,15,0.2);
  border-color: rgba(247,160,15,0.5);
}

.ep-btn--save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── Pending Review State ──────────────────────────────────────────── */

.ep-task-card--pending {
  border-color: rgba(249,115,22,0.2);
  background: rgba(249,115,22,0.04);
}

.ep-task-card--pending:hover {
  border-color: rgba(249,115,22,0.35);
  box-shadow: 0 0 20px rgba(249,115,22,0.08);
}

.ep-task-card--pending::before {
  background: linear-gradient(180deg, #f97316, #ea580c);
  opacity: 0.7;
}

.ep-task-card__claim-btn--pending {
  background: rgba(249,115,22,0.12) !important;
  border-color: rgba(249,115,22,0.25) !important;
  color: #fb923c !important;
  cursor: not-allowed !important;
}

.ep-task-check--pending {
  color: #f97316;
  font-size: 1rem;
}

/* ─── Proof Info ────────────────────────────────────────────────────── */

.ep-task-card__proof-info {
  font-size: 0.52rem;
  color: #6a5030;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.03em;
}

/* ─── Proof Submit Modal ────────────────────────────────────────────── */

.ep-proof-task-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(247,160,15,0.06);
  border: 1px solid rgba(247,160,15,0.12);
  border-radius: 10px;
}

.ep-proof-task-icon {
  font-size: 1.3rem;
}

.ep-proof-task-name {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  font-family: system-ui, sans-serif;
}

.ep-proof-task-reward {
  font-size: 0.62rem;
  font-weight: 800;
  color: #F7A00F;
  font-family: 'Orbitron', system-ui, sans-serif;
  white-space: nowrap;
}

.ep-proof-task-desc {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  font-size: 0.6rem;
  color: #b0b8c0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ep-link {
  color: #60a5fa;
  text-decoration: underline;
  cursor: pointer;
  word-break: break-all;
}
.ep-link:hover {
  color: #93c5fd;
}

.ep-proof-photo-preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(247,160,15,0.2);
}

.ep-proof-photo-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.ep-proof-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(239,68,68,0.4);
  color: #f87171;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.6rem;
  cursor: pointer;
  font-family: system-ui, sans-serif;
}

.ep-proof-upload-btn {
  padding: 10px 16px;
  border: 1px dashed rgba(247,160,15,0.3);
  border-radius: 10px;
  background: rgba(247,160,15,0.04);
  color: #c88a3a;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.ep-proof-upload-btn:hover:not(:disabled) {
  border-color: rgba(247,160,15,0.5);
  background: rgba(247,160,15,0.1);
}

.ep-proof-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ep-proof-note {
  font-size: 0.58rem;
  color: #8a7050;
  font-family: system-ui, sans-serif;
  padding: 8px 12px;
  background: rgba(249,115,22,0.06);
  border-radius: 8px;
  border: 1px solid rgba(249,115,22,0.1);
}

.ep-admin-btn--test:hover {
  border-color: rgba(74,222,128,0.5);
  background: rgba(74,222,128,0.12);
}

.ep-task-card__claim-btn--submit {
  background: rgba(59,130,246,0.12) !important;
  border-color: rgba(59,130,246,0.25) !important;
  color: #60a5fa !important;
}

.ep-task-card__claim-btn--submit:hover:not(:disabled) {
  background: rgba(59,130,246,0.2) !important;
  border-color: rgba(59,130,246,0.45) !important;
}

/* ─── Declined State ───────────────────────────────────────────────── */

.ep-task-card--declined {
  border-color: rgba(239,68,68,0.15);
  background: rgba(239,68,68,0.03);
  opacity: 0.85;
}

.ep-task-card__claim-btn--declined {
  background: rgba(239,68,68,0.1) !important;
  border-color: rgba(239,68,68,0.2) !important;
  color: #f87171 !important;
  cursor: default !important;
  font-size: 0.56rem !important;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Category Tag ─────────────────────────────────────────────────── */

.ep-task-card__category {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

/* ─── Drag & Drop Upload Zone ──────────────────────────────────────── */

.ep-proof-dropzone {
  border: 2px dashed rgba(247,160,15,0.25);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: #8a8fa0;
  font-family: system-ui, sans-serif;
  background: rgba(247,160,15,0.02);
}

.ep-proof-dropzone:hover {
  border-color: rgba(247,160,15,0.5);
  background: rgba(247,160,15,0.06);
  color: #c8cbd2;
}

/* ─── Declined Label (inline, not button) ──────────────────────────── */

.ep-task-card__declined-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  min-width: 80px;
}

.ep-task-card__declined-label {
  font-size: 0.54rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

.ep-task-card__declined-reason {
  font-size: 0.48rem;
  color: #f87171;
  opacity: 0.7;
  max-width: 140px;
  text-align: right;
  line-height: 1.2;
}

/* ─── Coin Rain (dopamine effect) ──────────────────────────────────── */

.ep-coin-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

.ep-coin-rain__coin {
  position: absolute;
  top: -40px;
  animation: coinRainFall 1.8s ease-in forwards;
  opacity: 0.9;
}

@keyframes coinRainFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  70% { opacity: 0.8; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   6 DESIGNS — AAA Game Quest Interface
   Reference: dark fantasy quest board, golden cards, immersive game UI
   ══════════════════════════════════════════════════════════════════════ */

.ep-bg-full {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.ep-bg-full img { width: 100%; height: 100%; object-fit: cover; }

/* ── DESIGN 0: Original ───────────────────────────────────────────── */
.ep-d0 .ep-page { background: #080a0f; }
.ep-d0 .ep-bg-overlay, .ep-d0 .ep-bg-full { display: none; }
.ep-d0 .ep-split { z-index: auto; }
.ep-d0 .ep-split > * { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: none; border-radius: 0; box-shadow: none; }
.ep-d0 .ep-banner { background: linear-gradient(135deg, #0c0e14 0%, #11131a 100%); border-bottom: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ep-d0 .ep-banner::after, .ep-d0 .ep-banner::before { display: none; }
.ep-d0 .ep-task-card { background: #0c0e14; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid rgba(247,160,15,0.08); border-radius: 10px; box-shadow: none; transition: border-color 0.2s; }
.ep-d0 .ep-task-card:hover { border-color: rgba(247,160,15,0.2); box-shadow: none; transform: none; }
.ep-d0 .ep-task-card--completed { border-color: rgba(247,160,15,0.18); background: #0c0e14; }
.ep-d0 .ep-tasks-panel { display: flex !important; flex-direction: column !important; gap: 8px !important; }
.ep-d0 .ep-task-card { flex-direction: row !important; align-items: center !important; gap: 10px !important; padding: 12px 14px !important; text-align: left !important; }
.ep-d0 .ep-task-card__icon-wrap { font-size: 1.3rem !important; width: 40px !important; height: 40px !important; }
.ep-d0 .ep-task-card__name { font-size: 0.68rem !important; }
.ep-d0 .ep-task-card__desc { font-size: 0.56rem !important; }
.ep-d0 .ep-task-card__reward { flex-direction: row !important; gap: 4px !important; }
.ep-d0 .ep-task-card__reward-amount { font-size: 0.72rem !important; }

/* ══════════════════════════════════════════════════════════════════════
   DESIGN 1: GOLDEN QUEST BOARD — Large Bronze Cards, Dark Fantasy
   ══════════════════════════════════════════════════════════════════════ */
.ep-d1 .ep-page { background: transparent; }
.ep-d1 .ep-page::before, .ep-d1 .ep-page::after { display: none; }
.ep-d1 .ep-bg-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 40% 25%, rgba(200,150,60,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 70% 70%, rgba(180,120,40,0.05) 0%, transparent 55%),
    linear-gradient(180deg, rgba(2,2,4,0.72) 0%, rgba(6,5,8,0.5) 50%, rgba(3,3,5,0.88) 100%);
}
.ep-d1 .ep-bg-full img { filter: brightness(0.22) saturate(0.55) contrast(1.15); }
.ep-d1 .ep-split { z-index: 2; display: flex !important; flex-direction: column !important; gap: 12px !important; }
/* Left panel — compact stats row */
.ep-d1 .ep-video-panel {
  position: static !important;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 0 12px 0; border-bottom: 1px solid rgba(200,150,60,0.1); margin-bottom: 0;
}
/* Tasks panel — full-width single column of large cards */
.ep-d1 .ep-tasks-panel {
  display: flex !important; flex-direction: column !important; gap: 10px !important;
}
/* Large golden quest cards */
.ep-d1 .ep-task-card {
  background: linear-gradient(180deg, rgba(30,20,8,0.9) 0%, rgba(22,15,5,0.88) 40%, rgba(30,20,8,0.9) 100%);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid rgba(200,150,60,0.2);
  border-left: 3px solid rgba(210,160,70,0.35);
  border-radius: 2px 8px 8px 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 0 40px rgba(180,130,50,0.02);
  transition: all 0.3s ease;
  flex-direction: row !important; align-items: center !important; gap: 16px !important;
  padding: 16px 20px !important; text-align: left !important;
  position: relative; overflow: hidden;
}
/* Decorative golden flourishes */
.ep-d1 .ep-task-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 60px; height: 60px;
  background: radial-gradient(circle at 100% 0%, rgba(210,160,70,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.ep-d1 .ep-task-card::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,150,60,0.2), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.ep-d1 .ep-task-card:hover::after { opacity: 1; }
.ep-d1 .ep-task-card__icon-wrap {
  font-size: 1.8rem !important; width: 52px !important; height: 52px !important; min-width: 52px;
  background: radial-gradient(circle, rgba(200,150,60,0.12) 0%, transparent 70%);
  border: 1px solid rgba(200,150,60,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ep-d1 .ep-task-card__content { flex: 1; min-width: 0; }
.ep-d1 .ep-task-card__name {
  font-size: 0.82rem !important; font-weight: 700 !important;
  color: #e8cc90 !important; margin-bottom: 2px;
}
.ep-d1 .ep-task-card__desc {
  font-size: 0.6rem !important; color: #7a6040 !important; line-height: 1.4;
}
.ep-d1 .ep-task-card__reward {
  flex-shrink: 0; flex-direction: column !important; align-items: center !important; gap: 1px !important;
  min-width: 70px; text-align: center;
}
.ep-d1 .ep-task-card__reward-amount {
  font-size: 1rem !important; font-weight: 800 !important; color: #e0b040 !important;
  text-shadow: 0 0 8px rgba(200,150,40,0.3);
}
.ep-d1 .ep-task-card__reward-label {
  font-size: 0.5rem !important; color: #6a5030 !important; text-transform: uppercase; letter-spacing: 0.06em;
}
.ep-d1 .ep-task-card:hover {
  border-color: rgba(220,170,70,0.35);
  border-left-color: rgba(230,180,80,0.5);
  background: linear-gradient(180deg, rgba(36,24,10,0.92) 0%, rgba(28,18,7,0.9) 40%, rgba(36,24,10,0.92) 100%);
  box-shadow: 0 6px 28px rgba(0,0,0,0.6), 0 0 20px rgba(200,150,60,0.05);
  transform: translateY(-1px);
}
.ep-d1 .ep-task-card--completed {
  border-left-color: rgba(210,160,70,0.45);
  background: linear-gradient(180deg, rgba(38,26,11,0.92) 0%, rgba(30,20,9,0.9) 40%, rgba(38,26,11,0.92) 100%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 24px rgba(210,160,70,0.06);
}
.ep-d1 .ep-banner {
  background: linear-gradient(180deg, rgba(20,12,4,0.7) 0%, transparent 100%);
  border-bottom: 1px solid rgba(200,150,60,0.12); backdrop-filter: blur(8px);
}
.ep-d1 .ep-banner__title { text-shadow: 0 0 10px rgba(200,150,60,0.15); }

/* ══════════════════════════════════════════════════════════════════════
   DESIGN 2: SHADOW CONTRACTS — Dark Bounty Board, Red Wax Seals
   ══════════════════════════════════════════════════════════════════════ */
.ep-d2 .ep-page { background: transparent; }
.ep-d2 .ep-page::before, .ep-d2 .ep-page::after { display: none; }
.ep-d2 .ep-bg-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 35% 35% at 50% 20%, rgba(180,40,30,0.05) 0%, transparent 55%),
    linear-gradient(180deg, rgba(3,1,1,0.78) 0%, rgba(6,3,3,0.55) 50%, rgba(2,1,1,0.9) 100%);
}
.ep-d2 .ep-bg-full img { filter: brightness(0.18) saturate(0.3) contrast(1.2); }
.ep-d2 .ep-split { z-index: 2; display: flex !important; flex-direction: column !important; gap: 12px !important; }
.ep-d2 .ep-video-panel {
  position: static !important;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 0 12px 0; border-bottom: 1px solid rgba(180,40,30,0.1); margin-bottom: 0;
}
.ep-d2 .ep-tasks-panel {
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 14px !important;
}
/* Parchment contract cards */
.ep-d2 .ep-task-card {
  background: linear-gradient(180deg, rgba(32,16,12,0.9) 0%, rgba(24,12,8,0.88) 100%);
  backdrop-filter: none;
  border: 1px solid rgba(180,80,40,0.18);
  border-radius: 2px 10px 2px 10px;
  clip-path: polygon(2% 0%, 98% 0%, 100% 4%, 100% 96%, 97% 100%, 3% 100%, 0% 96%, 0% 4%);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.5), 0 0 10px rgba(160,40,30,0.03);
  transition: all 0.3s ease;
  flex-direction: column !important; padding: 16px 14px !important; gap: 8px !important;
  position: relative;
}
.ep-d2 .ep-task-card::before {
  content: '📍'; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; opacity: 0.35; filter: grayscale(0.5);
}
.ep-d2 .ep-task-card::after {
  content: ''; position: absolute; bottom: 8px; right: 12px; width: 10px; height: 10px;
  background: rgba(200,40,30,0.3); border-radius: 50%;
  box-shadow: 0 0 6px rgba(200,40,30,0.2);
}
.ep-d2 .ep-task-card__icon-wrap {
  font-size: 1.3rem !important; width: 38px !important; height: 38px !important;
  background: radial-gradient(circle, rgba(200,40,30,0.1) 0%, transparent 70%);
  border: 1px solid rgba(200,40,30,0.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ep-d2 .ep-task-card__name {
  font-size: 0.7rem !important; font-weight: 700 !important;
  color: #e0a090 !important; text-transform: uppercase; letter-spacing: 0.04em;
}
.ep-d2 .ep-task-card__desc { font-size: 0.54rem !important; color: #7a4030 !important; }
.ep-d2 .ep-task-card__reward {
  flex-direction: row !important; gap: 6px !important; align-self: flex-start;
  background: rgba(200,40,30,0.08); padding: 4px 10px; border-radius: 3px;
  border: 1px dashed rgba(200,40,30,0.15);
}
.ep-d2 .ep-task-card__reward-amount {
  font-size: 0.78rem !important; font-weight: 700 !important; color: #f06040 !important;
}
.ep-d2 .ep-task-card:hover {
  border-color: rgba(220,60,40,0.3);
  box-shadow: 6px 6px 16px rgba(0,0,0,0.6), 0 0 16px rgba(180,40,30,0.04);
  transform: translateY(-2px) rotate(-0.3deg);
}
.ep-d2 .ep-task-card--completed {
  border-color: rgba(220,60,40,0.25);
  background: linear-gradient(180deg, rgba(38,18,12,0.9) 0%, rgba(28,14,9,0.88) 100%);
}
.ep-d2 .ep-task-card--completed::after { background: rgba(220,60,40,0.5); box-shadow: 0 0 10px rgba(220,60,40,0.3); }
.ep-d2 .ep-banner {
  background: linear-gradient(180deg, rgba(16,6,4,0.7) 0%, transparent 100%);
  border-bottom: 1px solid rgba(180,40,30,0.12); backdrop-filter: blur(8px);
}
.ep-d2 .ep-banner__title { text-shadow: 0 0 8px rgba(200,40,30,0.2); }

/* ══════════════════════════════════════════════════════════════════════
   DESIGN 3: ELDER SCROLLS — Illuminated Manuscript, Wide Parchment
   ══════════════════════════════════════════════════════════════════════ */
.ep-d3 .ep-page { background: transparent; }
.ep-d3 .ep-page::before, .ep-d3 .ep-page::after { display: none; }
.ep-d3 .ep-bg-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 35% 30%, rgba(200,160,80,0.05) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10,6,2,0.7) 0%, rgba(15,10,4,0.5) 50%, rgba(6,3,1,0.85) 100%);
}
.ep-d3 .ep-bg-full img { filter: brightness(0.28) sepia(0.5) saturate(0.6); }
.ep-d3 .ep-split { z-index: 2; display: flex !important; flex-direction: column !important; gap: 12px !important; }
.ep-d3 .ep-video-panel {
  position: static !important;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 0 12px 0; border-bottom: 1px solid rgba(200,160,80,0.1); margin-bottom: 0;
}
.ep-d3 .ep-tasks-panel {
  display: flex !important; flex-direction: column !important; gap: 8px !important;
}
/* Wide illuminated scroll cards */
.ep-d3 .ep-task-card {
  background: linear-gradient(135deg, rgba(40,26,12,0.9) 0%, rgba(30,18,8,0.88) 50%, rgba(40,26,12,0.9) 100%);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(180,140,60,0.15);
  border-left: 4px solid rgba(200,160,80,0.3);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
  transition: all 0.35s ease;
  flex-direction: row !important; align-items: center !important; gap: 16px !important;
  padding: 15px 18px !important; text-align: left !important;
}
.ep-d3 .ep-task-card__icon-wrap {
  font-size: 1.6rem !important; width: 46px !important; height: 46px !important; min-width: 46px;
  background: radial-gradient(circle, rgba(200,160,80,0.1) 0%, transparent 70%);
  border: 1px solid rgba(200,160,80,0.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ep-d3 .ep-task-card__content { flex: 1; min-width: 0; }
.ep-d3 .ep-task-card__name {
  font-family: 'Georgia', 'Times New Roman', serif !important;
  font-size: 0.78rem !important; font-weight: 700 !important;
  color: #d4b87a !important; letter-spacing: 0.02em;
}
.ep-d3 .ep-task-card__desc {
  font-family: 'Georgia', 'Times New Roman', serif !important;
  font-size: 0.58rem !important; color: #8a7040 !important; font-style: italic;
}
.ep-d3 .ep-task-card__reward {
  flex-shrink: 0; flex-direction: column !important; align-items: center !important; gap: 1px !important;
}
.ep-d3 .ep-task-card__reward-amount {
  font-family: 'Georgia', serif !important;
  font-size: 0.9rem !important; font-weight: 700 !important; color: #e0c060 !important;
}
.ep-d3 .ep-task-card:hover {
  border-left-color: rgba(220,180,100,0.5);
  background: linear-gradient(135deg, rgba(46,30,14,0.92) 0%, rgba(34,22,10,0.9) 50%, rgba(46,30,14,0.92) 100%);
  box-shadow: 0 6px 26px rgba(0,0,0,0.55), 0 0 18px rgba(200,160,80,0.05);
  transform: translateX(3px);
}
.ep-d3 .ep-task-card--completed {
  border-left-color: rgba(220,180,100,0.4);
  background: linear-gradient(135deg, rgba(46,30,14,0.92) 0%, rgba(34,22,10,0.9) 50%, rgba(46,30,14,0.92) 100%);
}
.ep-d3 .ep-banner {
  background: linear-gradient(180deg, rgba(18,10,4,0.6) 0%, transparent 100%);
  border-bottom: 1px solid rgba(200,160,80,0.12); backdrop-filter: blur(8px);
}
.ep-d3 .ep-banner__title { text-shadow: 0 0 8px rgba(200,160,80,0.12); }

/* ══════════════════════════════════════════════════════════════════════
   DESIGN 4: OBSIDIAN RELIQUARY — Dark Crystal, Purple/Gold Glow
   ══════════════════════════════════════════════════════════════════════ */
.ep-d4 .ep-page { background: transparent; }
.ep-d4 .ep-page::before { display: block; z-index: 2;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(120,80,180,0.012) 2px, rgba(120,80,180,0.012) 4px);
}
.ep-d4 .ep-page::after { display: none; }
.ep-d4 .ep-bg-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 40% at 70% 25%, rgba(120,80,180,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 30% 35% at 30% 70%, rgba(200,150,60,0.04) 0%, transparent 55%),
    linear-gradient(180deg, rgba(4,2,10,0.75) 0%, rgba(8,6,16,0.5) 50%, rgba(3,1,8,0.88) 100%);
}
.ep-d4 .ep-bg-full img { filter: brightness(0.22) saturate(0.5) hue-rotate(10deg); }
.ep-d4 .ep-split { z-index: 3; display: flex !important; flex-direction: column !important; gap: 12px !important; }
.ep-d4 .ep-video-panel {
  position: static !important;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 0 12px 0; border-bottom: 1px solid rgba(120,80,180,0.1); margin-bottom: 0;
}
.ep-d4 .ep-tasks-panel {
  display: flex !important; flex-direction: column !important; gap: 8px !important;
}
/* Crystal reliquary cards */
.ep-d4 .ep-task-card {
  background: linear-gradient(180deg, rgba(18,12,30,0.88) 0%, rgba(14,10,24,0.85) 100%);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(120,80,180,0.15);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(140,100,200,0.03), 0 0 20px rgba(100,60,160,0.03);
  transition: all 0.3s ease;
  flex-direction: row !important; align-items: center !important; gap: 16px !important;
  padding: 15px 18px !important; text-align: left !important;
}
.ep-d4 .ep-task-card__icon-wrap {
  font-size: 1.5rem !important; width: 44px !important; height: 44px !important; min-width: 44px;
  background: radial-gradient(circle, rgba(140,100,200,0.1) 0%, transparent 70%);
  border: 1px solid rgba(140,100,200,0.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ep-d4 .ep-task-card__content { flex: 1; min-width: 0; }
.ep-d4 .ep-task-card__name {
  font-size: 0.76rem !important; font-weight: 700 !important;
  color: #c0a0e0 !important;
}
.ep-d4 .ep-task-card__desc { font-size: 0.58rem !important; color: #6a4a8a !important; }
.ep-d4 .ep-task-card__reward {
  flex-shrink: 0; flex-direction: column !important; align-items: center !important; gap: 1px !important;
}
.ep-d4 .ep-task-card__reward-amount {
  font-size: 0.85rem !important; font-weight: 700 !important;
  color: #d4b840 !important; text-shadow: 0 0 8px rgba(200,160,40,0.25);
}
.ep-d4 .ep-task-card:hover {
  border-color: rgba(160,110,220,0.25);
  background: linear-gradient(180deg, rgba(22,15,36,0.9) 0%, rgba(18,12,30,0.88) 100%);
  box-shadow: 0 6px 28px rgba(0,0,0,0.6), 0 0 22px rgba(120,80,180,0.06);
  transform: translateY(-1px);
}
.ep-d4 .ep-task-card--completed {
  border-color: rgba(160,110,220,0.2);
  background: linear-gradient(180deg, rgba(24,16,38,0.9) 0%, rgba(20,14,32,0.88) 100%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 22px rgba(140,100,200,0.04);
}
.ep-d4 .ep-banner {
  background: linear-gradient(180deg, rgba(12,6,20,0.6) 0%, transparent 100%);
  border-bottom: 1px solid rgba(120,80,180,0.12); backdrop-filter: blur(8px);
}
.ep-d4 .ep-banner__title { text-shadow: 0 0 10px rgba(140,100,200,0.15); }

/* ══════════════════════════════════════════════════════════════════════
   DESIGN 5: HALL OF HEROES — Monumental Stone, Emerald/Gold
   ══════════════════════════════════════════════════════════════════════ */
.ep-d5 .ep-page { background: transparent; }
.ep-d5 .ep-page::before, .ep-d5 .ep-page::after { display: none; }
.ep-d5 .ep-bg-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 35% at 50% 20%, rgba(80,160,100,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 80% 70%, rgba(200,150,60,0.04) 0%, transparent 55%),
    linear-gradient(180deg, rgba(2,4,3,0.75) 0%, rgba(5,8,6,0.5) 50%, rgba(2,3,2,0.9) 100%);
}
.ep-d5 .ep-bg-full img { filter: brightness(0.24) saturate(0.5) hue-rotate(-5deg); }
.ep-d5 .ep-split { z-index: 2; display: flex !important; flex-direction: column !important; gap: 12px !important; }
.ep-d5 .ep-video-panel {
  position: static !important;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 0 12px 0; border-bottom: 1px solid rgba(80,160,100,0.1); margin-bottom: 0;
}
.ep-d5 .ep-tasks-panel {
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important;
}
/* Monumental stone cards */
.ep-d5 .ep-task-card {
  background: linear-gradient(180deg, rgba(16,22,18,0.9) 0%, rgba(12,16,14,0.88) 100%);
  backdrop-filter: none;
  border: 1px solid rgba(80,160,100,0.12);
  border-top: 3px solid rgba(100,180,120,0.25);
  border-radius: 3px 3px 0 0;
  clip-path: polygon(0% 6px, 6px 0%, calc(100% - 6px) 0%, 100% 6px, 100% 100%, 0% 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  flex-direction: column !important; padding: 16px 14px !important; gap: 8px !important;
  align-items: center !important; text-align: center !important;
}
.ep-d5 .ep-task-card__icon-wrap {
  font-size: 1.6rem !important; width: 48px !important; height: 48px !important;
  background: radial-gradient(circle, rgba(100,180,120,0.1) 0%, transparent 70%);
  border: 1px solid rgba(100,180,120,0.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ep-d5 .ep-task-card__name {
  font-family: 'Orbitron', system-ui, sans-serif !important;
  font-size: 0.68rem !important; font-weight: 700 !important;
  color: #a0d8b0 !important; letter-spacing: 0.04em; text-transform: uppercase;
}
.ep-d5 .ep-task-card__desc { font-size: 0.52rem !important; color: #4a6a50 !important; }
.ep-d5 .ep-task-card__reward {
  flex-direction: row !important; gap: 4px !important;
  background: rgba(200,150,60,0.08); padding: 4px 12px; border-radius: 3px;
  border: 1px solid rgba(200,150,60,0.12);
}
.ep-d5 .ep-task-card__reward-amount {
  font-size: 0.78rem !important; font-weight: 700 !important;
  color: #e0c040 !important;
}
.ep-d5 .ep-task-card:hover {
  border-top-color: rgba(120,200,140,0.4);
  border-top-width: 4px;
  background: linear-gradient(180deg, rgba(20,26,22,0.92) 0%, rgba(16,20,18,0.9) 100%);
  box-shadow: 0 6px 26px rgba(0,0,0,0.6), 0 0 16px rgba(100,180,120,0.04);
  transform: translateY(-2px);
}
.ep-d5 .ep-task-card--completed {
  border-top-color: rgba(200,160,60,0.35) !important;
  background: linear-gradient(180deg, rgba(22,28,24,0.92) 0%, rgba(18,22,20,0.9) 100%);
}
.ep-d5 .ep-banner {
  background: linear-gradient(180deg, rgba(8,14,10,0.6) 0%, transparent 100%);
  border-bottom: 1px solid rgba(80,160,100,0.12); backdrop-filter: blur(8px);
}
.ep-d5 .ep-banner__title { text-shadow: 0 0 8px rgba(100,180,120,0.12); }

/* ── Design Switcher ───────────────────────────────────────────────── */
.ep-design-switcher {
  display: flex; gap: 3px; align-items: center; padding: 3px 6px;
  background: rgba(0,0,0,0.4); border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(8px);
}
.ep-design-switcher__label {
  font-size: 0.48rem; color: rgba(255,255,255,0.2); padding: 0 4px;
  font-family: 'Orbitron', system-ui; letter-spacing: 0.1em;
}
.ep-design-switcher__btn {
  width: 26px; height: 26px; padding: 0; border-radius: 6px;
  border: 1px solid transparent; background: transparent;
  color: rgba(255,255,255,0.25); font-size: 0.58rem; font-weight: 700;
  cursor: pointer; font-family: 'Orbitron', system-ui;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.ep-design-switcher__btn:hover { color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.04); }
.ep-design-switcher__btn--active {
  color: #F7A00F; border-color: rgba(247,160,15,0.3);
  background: rgba(247,160,15,0.1); box-shadow: 0 0 8px rgba(247,160,15,0.1);
}
.ep-d0 .ep-design-switcher__btn--active { color: #F7A00F; border-color: rgba(247,160,15,0.3); background: rgba(247,160,15,0.1); }
.ep-d1 .ep-design-switcher__btn--active { color: #e0b040; border-color: rgba(224,176,64,0.3); background: rgba(224,176,64,0.1); }
.ep-d2 .ep-design-switcher__btn--active { color: #f06040; border-color: rgba(240,96,64,0.3); background: rgba(240,96,64,0.1); }
.ep-d3 .ep-design-switcher__btn--active { color: #d4b87a; border-color: rgba(212,184,122,0.3); background: rgba(212,184,122,0.1); }
.ep-d4 .ep-design-switcher__btn--active { color: #c0a0e0; border-color: rgba(192,160,224,0.3); background: rgba(192,160,224,0.1); }
.ep-d5 .ep-design-switcher__btn--active { color: #a0d8b0; border-color: rgba(160,216,176,0.3); background: rgba(160,216,176,0.1); }


/* Category Grid in dashboard — single horizontal row */
.ep-cat-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
}
.ep-cat-grid .ep-cat-card {
  flex-shrink: 0; width: 170px; height: 110px;
  min-width: 170px;
}
.ep-cat-grid .ep-cat-card--add {
  min-height: 110px; flex-shrink: 0; width: 170px; min-width: 170px;
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — All Popups & Modals
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* ── General Modal Overlay ── */
  .ep-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .ep-modal {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    width: 100%;
  }
  .ep-modal__header {
    padding: 12px 16px 10px;
  }
  .ep-modal__title {
    font-size: 0.7rem;
  }
  .ep-modal__body {
    padding: 12px 16px;
    gap: 10px;
  }
  .ep-modal__footer {
    padding: 10px 16px 14px;
  }

  /* ── Form Elements Mobile ── */
  .ep-form-input {
    font-size: 0.72rem;
    padding: 10px 12px;
  }
  .ep-form-input--short {
    max-width: 100%;
  }
  .ep-form-textarea {
    font-size: 0.72rem;
  }
  .ep-form-label {
    font-size: 0.52rem;
    margin-bottom: -6px;
  }
  .ep-form-inline {
    flex-wrap: wrap;
  }

  /* ── Daily Reward Modal ── */
  .ep-daily-modal {
    max-width: 100%;
    width: 92vw;
    padding: 20px 16px 18px;
    border-radius: 16px 16px 0 0;
    margin: auto auto 0 auto;
  }
  .ep-daily-modal__icon {
    font-size: 2rem;
  }
  .ep-daily-modal__title {
    font-size: 0.75rem;
  }
  .ep-daily-modal__main-cmd {
    font-size: 0.56rem;
    gap: 4px;
  }
  .ep-daily-modal__main-cmd code {
    font-size: 0.62rem;
    padding: 3px 8px;
  }
  .ep-daily-modal__step {
    font-size: 0.5rem;
    padding: 6px 10px;
    gap: 8px;
  }
  .ep-daily-modal__step span {
    width: 18px;
    height: 18px;
    font-size: 0.45rem;
  }
  .ep-daily-modal__btn {
    font-size: 0.58rem;
    padding: 8px;
  }

  /* ── Category Form Overlay ── */
  .ep-cat-form-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .ep-cat-form {
    min-width: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 16px 18px;
  }
  .ep-cat-form__input {
    font-size: 0.6rem;
    padding: 10px 12px;
  }
  .ep-cat-form__btn {
    font-size: 0.55rem;
    padding: 8px 14px;
  }

  /* ── Proof Submit Modal ── */
  .ep-proof-task-info {
    padding: 8px 10px;
    gap: 8px;
  }
  .ep-proof-task-name {
    font-size: 0.64rem;
  }
  .ep-proof-task-reward {
    font-size: 0.56rem;
  }
  .ep-proof-task-desc {
    font-size: 0.54rem;
    padding: 8px 10px;
  }
  .ep-proof-dropzone {
    padding: 20px 14px;
    font-size: 0.6rem;
  }
  .ep-proof-note {
    font-size: 0.52rem;
  }

  /* ── Buttons Mobile ── */
  .ep-btn {
    font-size: 0.58rem;
    padding: 8px 14px;
  }
  
  /* ── Task Cards Mobile ── */
  .ep-task-card {
    padding: 12px;
    gap: 8px;
  }
  .ep-task-card__name {
    font-size: 0.7rem;
  }
  .ep-task-card__rewards {
    flex-wrap: wrap;
  }
  .ep-task-card__reward {
    padding: 6px 10px;
  }
  .ep-task-card__reward-amount {
    font-size: 0.64rem;
  }
  .ep-task-card__xp-text {
    font-size: 0.64rem;
  }
  .ep-task-card__claim-btn {
    font-size: 0.54rem;
    padding: 7px 12px;
  }

  /* ── Hero Card Mobile ── */
  .ep-hero-card {
    min-height: 140px;
  }
  .ep-hero-card__stats {
    padding: 14px 10px 8px;
  }
  .ep-hero-card__stat strong {
    font-size: 0.6rem;
  }
  .ep-hero-card__stat small {
    font-size: 0.4rem;
  }

  /* ── Dashboard Mobile ── */
  .ep-dashboard {
    grid-template-columns: 1fr;
    padding: 8px 10px;
    gap: 10px;
  }
  .ep-dashboard__side {
    position: static;
  }
  .ep-cat-grid {
    gap: 6px;
  }
  .ep-cat-grid .ep-cat-card {
    width: 130px;
    height: 85px;
    min-width: 130px;
  }
  .ep-cat-grid .ep-cat-card--add {
    width: 130px;
    min-width: 130px;
    min-height: 85px;
  }
  .ep-cat-card__name {
    font-size: 0.52rem;
  }
  .ep-cat-card__count {
    font-size: 0.42rem;
  }

  /* ── Submissions in Sidebar ── */
  .ep-side-card {
    padding: 12px;
  }

  /* ── Countdown timer ── */
  .ep-countdown-timer {
    font-size: 0.4rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   DAILY KILLS MILESTONE SUB-LIST (inside task card)
   ══════════════════════════════════════════════════════════════════════ */
.ep-milestone-list {
  margin-top: 6px;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 2px;
}
.ep-milestone-list::-webkit-scrollbar {
  width: 3px;
}
.ep-milestone-list::-webkit-scrollbar-thumb {
  background: rgba(200,150,60,0.15);
  border-radius: 2px;
}
.ep-milestone-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.5rem;
  color: #4a3a20;
  background: rgba(255,255,255,0.01);
  transition: all 0.2s;
}
.ep-milestone-item--done {
  color: #4ade80;
  background: rgba(74,222,128,0.04);
}
.ep-milestone-item--claimed {
  color: #22c55e;
  background: rgba(74,222,128,0.06);
  opacity: 0.7;
}
.ep-milestone-item__icon {
  font-size: 0.55rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.ep-milestone-item__target {
  flex: 1;
  font-weight: 600;
  font-size: 0.5rem;
}
.ep-milestone-item__reward {
  font-size: 0.45rem;
  color: #6a5030;
  white-space: nowrap;
  font-family: 'Orbitron', system-ui;
}
.ep-milestone-item--done .ep-milestone-item__reward {
  color: #4ade80;
}
/* ========================================
   VIP PAYMENT FAILED – Lock Screen
   Matches TokenLordsRPG design system
   ======================================== */

.vpf-overlay {
  position: fixed;
  inset: 0;
  background: var(--tl-bg, hsl(220, 10%, 7%));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
  overflow-y: auto;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Ambient glow behind card */
.vpf-overlay::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Main Card ── */
.vpf-card {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: hsla(220, 10%, 10%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow:
    0 0 40px rgba(245, 158, 11, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.6);
  animation: vpfSlideUp 0.5s cubic-bezier(.2,.8,.2,1) both;
}

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

/* ── Warning Icon ── */
.vpf-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(180, 83, 9, 0.15) 100%);
  border: 2px solid rgba(245, 158, 11, 0.35);
  animation: vpfPulse 3s ease-in-out infinite;
}

.vpf-icon-wrap .vpf-icon {
  font-size: 2rem;
  line-height: 1;
}

@keyframes vpfPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
  50%      { box-shadow: 0 0 24px 4px rgba(245, 158, 11, 0.15); }
}

/* ── Status Badge ── */
.vpf-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  margin-bottom: 1rem;
}

.vpf-status-badge .vpf-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: vpfDotBlink 2s ease-in-out infinite;
}

@keyframes vpfDotBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.vpf-status-badge span:last-child {
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Title ── */
.vpf-title {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

/* ── Info Panel ── */
.vpf-info-panel {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--tl-border, hsl(220, 10%, 18%));
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.vpf-info-panel p {
  color: var(--tl-text, #d0d3d9);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

.vpf-tier-highlight {
  color: var(--tl-primary, #f7a00f);
  font-weight: 600;
}

.vpf-red {
  color: #ef4444;
  font-weight: 600;
}

/* ── Action Buttons ── */
.vpf-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.vpf-btn-retry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--tl-primary, #f7a00f);
  color: var(--tl-primary-foreground, #111);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: var(--radius, 0.5rem);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.vpf-btn-retry:hover:not(:disabled) {
  background: var(--tl-accent, #f9b642);
  transform: translateY(-2px);
  box-shadow: 0 0 14px 3px hsla(38, 90%, 65%, 0.45);
}

.vpf-btn-retry:active {
  transform: translateY(0) scale(0.97);
}

.vpf-btn-retry:disabled {
  opacity: 0.6;
  cursor: wait;
}

.vpf-btn-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: var(--radius, 0.5rem);
  border: 1px solid rgba(99, 102, 241, 0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  width: 100%;
}

.vpf-btn-change:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.vpf-btn-change:active {
  transform: translateY(0) scale(0.98);
}

/* ── Error ── */
.vpf-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
}

.vpf-error p {
  color: #fca5a5;
  font-size: 0.82rem;
  margin: 0;
}

/* ── Divider ── */
.vpf-divider {
  border: none;
  height: 1px;
  background: var(--tl-border, hsl(220, 10%, 18%));
  margin: 0.75rem 0;
}

/* ── Tip Box ── */
.vpf-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  text-align: left;
}

.vpf-tip .vpf-tip-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.vpf-tip p {
  color: var(--tl-text-muted, #838791);
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Bottom Row (Settings / Sign Out) ── */
.vpf-bottom-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.vpf-btn-subtle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tl-border, hsl(220, 10%, 18%));
  color: var(--tl-text-muted, #838791);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius, 0.5rem);
  font-size: 0.82rem;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.vpf-btn-subtle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tl-text, #d0d3d9);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Account Line ── */
.vpf-account {
  color: var(--tl-text-muted, #838791);
  font-size: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .vpf-card {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 16px;
  }

  .vpf-icon-wrap {
    width: 64px;
    height: 64px;
  }

  .vpf-icon-wrap .vpf-icon {
    font-size: 1.6rem;
  }

  .vpf-bottom-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* ========================================
   VIP PAYMENT RECOVERY – Tier Selector
   Matches TokenLordsRPG design system
   ======================================== */

.vpr-page {
  position: fixed;
  inset: 0;
  background: var(--tl-bg, hsl(220, 10%, 7%));
  z-index: 99998;
  overflow-y: auto;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Container ── */
.vpr-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* ── Header ── */
.vpr-header {
  position: relative;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, rgba(247, 160, 15, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid rgba(247, 160, 15, 0.12);
  border-radius: 16px 16px 0 0;
}

.vpr-back-btn {
  position: absolute;
  top: 1rem;
  left: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--tl-border, hsl(220, 10%, 18%));
  color: var(--tl-text-muted, #838791);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius, 0.5rem);
  font-size: 0.82rem;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.vpr-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--tl-text, #d0d3d9);
}

.vpr-header h1 {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
}

.vpr-header h1 .vpr-gradient-text {
  background: linear-gradient(135deg, var(--tl-primary, #f7a00f) 0%, var(--tl-accent, #f9b642) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vpr-header p {
  color: var(--tl-text-muted, #838791);
  font-size: 0.88rem;
  margin: 0;
}

/* ── Alert Banner ── */
.vpr-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  animation: vprFadeIn 0.4s ease both;
}

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

.vpr-alert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.vpr-alert-title {
  color: var(--tl-primary, #f7a00f);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.vpr-alert-desc {
  color: var(--tl-text-muted, #838791);
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.45;
}

/* ── Tier Selector Grid ── */
.vpr-tier-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .vpr-tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 400px) {
  .vpr-tier-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
}

.vpr-tier-btn {
  position: relative;
  padding: 0.65rem 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter', system-ui, sans-serif;
}

.vpr-tier-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.vpr-tier-btn.active {
  border-width: 2px;
  background: var(--tier-bg);
  border-color: var(--tier-color);
  box-shadow: 0 0 16px var(--tier-glow);
}

.vpr-tier-btn .vpr-tier-tag {
  position: absolute;
  top: -7px;
  right: -4px;
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

.vpr-tier-tag.failed {
  background: #ef4444;
  color: #fff;
}

.vpr-tier-tag.popular {
  background: #6366f1;
  color: #fff;
}

.vpr-tier-tag.best {
  background: linear-gradient(135deg, #00E676, #00C853);
  color: #000;
}

.vpr-tier-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.vpr-tier-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.vpr-tier-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tl-text-muted, #838791);
  transition: color 0.2s;
}

.vpr-tier-btn.active .vpr-tier-name {
  color: var(--tier-color);
}

.vpr-tier-price {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
}

.vpr-tier-btn.active .vpr-tier-price {
  color: rgba(255, 255, 255, 0.7);
}

.vpr-tier-price-suffix {
  font-size: 0.55rem;
  opacity: 0.7;
}

/* ── Details Card ── */
.vpr-details-card {
  background: hsla(220, 10%, 10%, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--detail-border, var(--tl-border));
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  animation: vprFadeIn 0.3s ease both;
}

/* Tier header inside card */
.vpr-detail-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.vpr-detail-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.vpr-detail-emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.vpr-detail-info {
  flex: 1;
}

.vpr-detail-name {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--tier-color, #fff);
}

.vpr-detail-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}

.vpr-detail-orig-price {
  color: var(--tl-text-muted, #838791);
  text-decoration: line-through;
  font-size: 0.82rem;
}

.vpr-detail-price {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.vpr-detail-period {
  color: var(--tl-text-muted, #838791);
  font-size: 0.82rem;
}

.vpr-discount-chip {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--tier-bg);
  color: var(--tier-color);
}

/* ── Benefits Grid ── */
.vpr-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
}

.vpr-benefit-group {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.75rem;
}

.vpr-benefit-group-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--tier-color, var(--tl-primary));
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vpr-benefit-group-icon {
  font-size: 0.8rem;
}

.vpr-benefit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vpr-benefit-row:last-child {
  border-bottom: none;
}

.vpr-benefit-label {
  color: var(--tl-text-muted, #838791);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.vpr-benefit-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--tl-text-muted, #838791);
  font-size: 0.55rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.vpr-benefit-info-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.vpr-benefit-value {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.vpr-tooltip {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--tl-text, #d0d3d9);
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.vpr-tooltip-close {
  background: none;
  border: none;
  color: var(--tl-text-muted, #838791);
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  padding: 0;
}

/* ── Action Button ── */
.vpr-action-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius, 0.5rem);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(.2,.8,.2,1);
  margin-bottom: 0.75rem;
}

.vpr-action-btn.primary {
  background: var(--tl-primary, #f7a00f);
  color: var(--tl-primary-foreground, #111);
  border: none;
}

.vpr-action-btn.primary:hover:not(:disabled) {
  background: var(--tl-accent, #f9b642);
  transform: translateY(-2px);
  box-shadow: 0 0 14px 3px hsla(38, 90%, 65%, 0.45);
}

.vpr-action-btn.tier-colored {
  color: #000;
  border: none;
}

.vpr-action-btn.tier-colored:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--tier-glow);
}

.vpr-action-btn.demote {
  background: rgba(100, 100, 100, 0.15);
  color: var(--tl-text-muted, #838791);
  border: 1px solid rgba(100, 100, 100, 0.3);
}

.vpr-action-btn.demote:hover:not(:disabled) {
  background: rgba(100, 100, 100, 0.25);
  color: var(--tl-text, #d0d3d9);
  transform: translateY(-1px);
}

.vpr-action-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.vpr-action-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

/* ── Hint / Warning Boxes ── */
.vpr-hint {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  text-align: center;
}

.vpr-hint p {
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.5;
}

.vpr-hint.amber {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.vpr-hint.amber p {
  color: var(--tl-primary, #f7a00f);
}

.vpr-hint.red {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.vpr-hint.red p {
  color: #fca5a5;
}

/* ── Error Display ── */
.vpr-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.vpr-error p {
  color: #fca5a5;
  font-size: 0.82rem;
  margin: 0;
}

/* ── Security Footer ── */
.vpr-security {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

.vpr-security-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.vpr-security-title {
  color: var(--tl-text-muted, #838791);
  font-size: 0.72rem;
  margin: 0;
}

.vpr-security-desc {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.68rem;
  margin: 0.1rem 0 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .vpr-container {
    padding: 1rem 0.75rem 2rem;
  }

  .vpr-header {
    padding: 1.5rem 0.5rem 1rem;
  }

  .vpr-details-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .vpr-benefits-grid {
    grid-template-columns: 1fr;
  }
}
.vpf-overlay{position:fixed;inset:0;background:var(--tl-bg, hsl(220, 10%, 7%));display:flex;align-items:center;justify-content:center;z-index:99999;padding:1rem;overflow-y:auto;font-family:Inter,system-ui,sans-serif}.vpf-overlay:before{content:"";position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:600px;height:600px;background:radial-gradient(ellipse,rgba(245,158,11,.08) 0%,transparent 70%);pointer-events:none}.vpf-card{position:relative;max-width:520px;width:100%;background:#17191cd9;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(245,158,11,.25);border-radius:20px;padding:2.5rem 2rem 2rem;text-align:center;box-shadow:0 0 40px #f59e0b1a,0 24px 60px #0009;animation:vpfSlideUp .5s cubic-bezier(.2,.8,.2,1) both}@keyframes vpfSlideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.vpf-icon-wrap{width:80px;height:80px;margin:0 auto 1.25rem;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f59e0b33,#b4530926);border:2px solid rgba(245,158,11,.35);animation:vpfPulse 3s ease-in-out infinite}.vpf-icon-wrap .vpf-icon{font-size:2rem;line-height:1}@keyframes vpfPulse{0%,to{box-shadow:0 0 #f59e0b4d}50%{box-shadow:0 0 24px 4px #f59e0b26}}.vpf-status-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .9rem;background:#ef44441f;border:1px solid rgba(239,68,68,.3);border-radius:20px;margin-bottom:1rem}.vpf-status-badge .vpf-badge-dot{width:6px;height:6px;border-radius:50%;background:#ef4444;animation:vpfDotBlink 2s ease-in-out infinite}@keyframes vpfDotBlink{0%,to{opacity:1}50%{opacity:.3}}.vpf-status-badge span:last-child{color:#fca5a5;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.vpf-title{font-family:Orbitron,system-ui,sans-serif;font-size:clamp(1.15rem,3vw,1.5rem);font-weight:700;color:#fff;margin:0 0 .75rem;letter-spacing:.02em}.vpf-info-panel{background:#0006;border:1px solid var(--tl-border, hsl(220, 10%, 18%));border-radius:12px;padding:1rem 1.25rem;margin-bottom:1.5rem;text-align:left}.vpf-info-panel p{color:var(--tl-text, #d0d3d9);font-size:.88rem;line-height:1.65;margin:0}.vpf-tier-highlight{color:var(--tl-primary, #f7a00f);font-weight:600}.vpf-red{color:#ef4444;font-weight:600}.vpf-actions{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1.25rem}.vpf-btn-retry{display:flex;align-items:center;justify-content:center;gap:.6rem;padding:.85rem 1.5rem;background:var(--tl-primary, #f7a00f);color:var(--tl-primary-foreground, #111);font-weight:700;font-size:.95rem;font-family:Inter,system-ui,sans-serif;border-radius:var(--radius, .5rem);border:none;cursor:pointer;transition:background .2s,transform .2s,box-shadow .2s;width:100%}.vpf-btn-retry:hover:not(:disabled){background:var(--tl-accent, #f9b642);transform:translateY(-2px);box-shadow:0 0 14px 3px #f6bb5573}.vpf-btn-retry:active{transform:translateY(0) scale(.97)}.vpf-btn-retry:disabled{opacity:.6;cursor:wait}.vpf-btn-change{display:flex;align-items:center;justify-content:center;gap:.6rem;padding:.85rem 1.5rem;background:#6366f11f;color:#a5b4fc;font-weight:600;font-size:.95rem;font-family:Inter,system-ui,sans-serif;border-radius:var(--radius, .5rem);border:1px solid rgba(99,102,241,.3);cursor:pointer;transition:background .2s,transform .2s,border-color .2s;width:100%}.vpf-btn-change:hover{background:#6366f138;border-color:#6366f180;transform:translateY(-1px)}.vpf-btn-change:active{transform:translateY(0) scale(.98)}.vpf-error{background:#ef44441a;border:1px solid rgba(239,68,68,.25);border-radius:8px;padding:.6rem .8rem;margin-bottom:1rem}.vpf-error p{color:#fca5a5;font-size:.82rem;margin:0}.vpf-divider{border:none;height:1px;background:var(--tl-border, hsl(220, 10%, 18%));margin:.75rem 0}.vpf-tip{display:flex;align-items:flex-start;gap:.5rem;padding:.7rem .85rem;background:#f59e0b0f;border:1px solid rgba(245,158,11,.15);border-radius:10px;margin-bottom:1.25rem;text-align:left}.vpf-tip .vpf-tip-icon{font-size:.85rem;flex-shrink:0;margin-top:1px}.vpf-tip p{color:var(--tl-text-muted, #838791);font-size:.75rem;line-height:1.55;margin:0}.vpf-bottom-row{display:flex;justify-content:center;gap:.75rem}.vpf-btn-subtle{background:#ffffff0d;border:1px solid var(--tl-border, hsl(220, 10%, 18%));color:var(--tl-text-muted, #838791);padding:.5rem 1.2rem;border-radius:var(--radius, .5rem);font-size:.82rem;font-family:Inter,system-ui,sans-serif;cursor:pointer;transition:background .2s,color .2s,border-color .2s;display:flex;align-items:center;gap:.35rem}.vpf-btn-subtle:hover{background:#ffffff1a;color:var(--tl-text, #d0d3d9);border-color:#fff3}.vpf-account{color:var(--tl-text-muted, #838791);font-size:.75rem;margin-top:1.25rem;margin-bottom:0;opacity:.7}@media(max-width:600px){.vpf-card{padding:2rem 1.25rem 1.5rem;border-radius:16px}.vpf-icon-wrap{width:64px;height:64px}.vpf-icon-wrap .vpf-icon{font-size:1.6rem}.vpf-bottom-row{flex-direction:column;gap:.5rem}}.vpr-page{position:fixed;inset:0;background:var(--tl-bg, hsl(220, 10%, 7%));z-index:99998;overflow-y:auto;font-family:Inter,system-ui,sans-serif}.vpr-container{max-width:860px;margin:0 auto;padding:1.5rem 1.25rem 3rem}.vpr-header{position:relative;text-align:center;padding:2rem 1rem 1.5rem;margin-bottom:1.5rem;background:linear-gradient(180deg,rgba(247,160,15,.06) 0%,transparent 100%);border-bottom:1px solid rgba(247,160,15,.12);border-radius:16px 16px 0 0}.vpr-back-btn{position:absolute;top:1rem;left:.5rem;background:#ffffff0f;border:1px solid var(--tl-border, hsl(220, 10%, 18%));color:var(--tl-text-muted, #838791);padding:.4rem .85rem;border-radius:var(--radius, .5rem);font-size:.82rem;font-family:Inter,system-ui,sans-serif;cursor:pointer;transition:background .2s,color .2s;display:flex;align-items:center;gap:.3rem}.vpr-back-btn:hover{background:#ffffff1f;color:var(--tl-text, #d0d3d9)}.vpr-header h1{font-family:Orbitron,system-ui,sans-serif;font-size:clamp(1.1rem,3vw,1.6rem);font-weight:700;margin:0 0 .35rem;letter-spacing:.03em}.vpr-header h1 .vpr-gradient-text{background:linear-gradient(135deg,var(--tl-primary, #f7a00f) 0%,var(--tl-accent, #f9b642) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.vpr-header p{color:var(--tl-text-muted, #838791);font-size:.88rem;margin:0}.vpr-alert{display:flex;align-items:center;gap:.75rem;padding:.85rem 1.1rem;background:#f59e0b14;border:1px solid rgba(245,158,11,.2);border-radius:12px;margin-bottom:1.5rem;animation:vprFadeIn .4s ease both}@keyframes vprFadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.vpr-alert-icon{font-size:1.3rem;flex-shrink:0}.vpr-alert-title{color:var(--tl-primary, #f7a00f);font-size:.85rem;font-weight:600;margin:0 0 .15rem}.vpr-alert-desc{color:var(--tl-text-muted, #838791);font-size:.78rem;margin:0;line-height:1.45}.vpr-tier-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:.5rem;margin-bottom:1.5rem}@media(max-width:700px){.vpr-tier-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:400px){.vpr-tier-grid{grid-template-columns:repeat(2,1fr);gap:.4rem}}.vpr-tier-btn{position:relative;padding:.65rem .4rem;background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:12px;cursor:pointer;transition:all .2s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;align-items:center;gap:.25rem;font-family:Inter,system-ui,sans-serif}.vpr-tier-btn:hover{background:#ffffff0f;transform:translateY(-2px)}.vpr-tier-btn.active{border-width:2px;background:var(--tier-bg);border-color:var(--tier-color);box-shadow:0 0 16px var(--tier-glow)}.vpr-tier-btn .vpr-tier-tag{position:absolute;top:-7px;right:-4px;padding:1px 5px;border-radius:8px;font-size:.55rem;font-weight:700;text-transform:uppercase;letter-spacing:.3px;line-height:1.5}.vpr-tier-tag.failed{background:#ef4444;color:#fff}.vpr-tier-tag.popular{background:#6366f1;color:#fff}.vpr-tier-tag.best{background:linear-gradient(135deg,#00e676,#00c853);color:#000}.vpr-tier-img{width:30px;height:30px;object-fit:contain}.vpr-tier-emoji{font-size:1.4rem;line-height:1}.vpr-tier-name{font-size:.72rem;font-weight:600;color:var(--tl-text-muted, #838791);transition:color .2s}.vpr-tier-btn.active .vpr-tier-name{color:var(--tier-color)}.vpr-tier-price{font-size:.68rem;font-weight:500;color:#ffffff59}.vpr-tier-btn.active .vpr-tier-price{color:#ffffffb3}.vpr-tier-price-suffix{font-size:.55rem;opacity:.7}.vpr-details-card{background:#17191cb3;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--detail-border, var(--tl-border));border-radius:20px;padding:1.5rem;margin-bottom:1rem;animation:vprFadeIn .3s ease both}.vpr-detail-header{display:flex;align-items:center;gap:.85rem;margin-bottom:1.25rem;flex-wrap:wrap}.vpr-detail-img{width:44px;height:44px;object-fit:contain}.vpr-detail-emoji{font-size:2.2rem;line-height:1}.vpr-detail-info{flex:1}.vpr-detail-name{font-family:Orbitron,system-ui,sans-serif;font-size:1.15rem;font-weight:700;margin:0;color:var(--tier-color, #fff)}.vpr-detail-pricing{display:flex;align-items:baseline;gap:.4rem;margin-top:.2rem;flex-wrap:wrap}.vpr-detail-orig-price{color:var(--tl-text-muted, #838791);text-decoration:line-through;font-size:.82rem}.vpr-detail-price{color:#fff;font-size:1.15rem;font-weight:700}.vpr-detail-period{color:var(--tl-text-muted, #838791);font-size:.82rem}.vpr-discount-chip{display:inline-flex;padding:2px 7px;border-radius:8px;font-size:.65rem;font-weight:600;background:var(--tier-bg);color:var(--tier-color)}.vpr-benefits-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.75rem}.vpr-benefit-group{background:#0000004d;border:1px solid rgba(255,255,255,.05);border-radius:12px;padding:.75rem}.vpr-benefit-group-title{display:flex;align-items:center;gap:.35rem;color:var(--tier-color, var(--tl-primary));font-size:.75rem;font-weight:600;margin:0 0 .4rem;text-transform:uppercase;letter-spacing:.5px}.vpr-benefit-group-icon{font-size:.8rem}.vpr-benefit-row{display:flex;justify-content:space-between;align-items:center;padding:.3rem 0;border-bottom:1px solid rgba(255,255,255,.04)}.vpr-benefit-row:last-child{border-bottom:none}.vpr-benefit-label{color:var(--tl-text-muted, #838791);font-size:.78rem;display:flex;align-items:center;gap:.25rem}.vpr-benefit-info-btn{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;border:none;background:#ffffff14;color:var(--tl-text-muted, #838791);font-size:.55rem;font-weight:700;cursor:pointer;transition:background .2s}.vpr-benefit-info-btn:hover{background:#ffffff26}.vpr-benefit-value{color:#fff;font-size:.78rem;font-weight:600}.vpr-tooltip{background:#000000e6;border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:.5rem .65rem;margin-top:.4rem;font-size:.72rem;color:var(--tl-text, #d0d3d9);line-height:1.5;display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem}.vpr-tooltip-close{background:none;border:none;color:var(--tl-text-muted, #838791);cursor:pointer;font-size:.75rem;flex-shrink:0;padding:0}.vpr-action-btn{width:100%;padding:.9rem 1.5rem;border-radius:var(--radius, .5rem);font-size:.95rem;font-weight:700;font-family:Inter,system-ui,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem;transition:all .2s cubic-bezier(.2,.8,.2,1);margin-bottom:.75rem}.vpr-action-btn.primary{background:var(--tl-primary, #f7a00f);color:var(--tl-primary-foreground, #111);border:none}.vpr-action-btn.primary:hover:not(:disabled){background:var(--tl-accent, #f9b642);transform:translateY(-2px);box-shadow:0 0 14px 3px #f6bb5573}.vpr-action-btn.tier-colored{color:#000;border:none}.vpr-action-btn.tier-colored:hover:not(:disabled){filter:brightness(1.15);transform:translateY(-2px);box-shadow:0 4px 20px var(--tier-glow)}.vpr-action-btn.demote{background:#64646426;color:var(--tl-text-muted, #838791);border:1px solid rgba(100,100,100,.3)}.vpr-action-btn.demote:hover:not(:disabled){background:#64646440;color:var(--tl-text, #d0d3d9);transform:translateY(-1px)}.vpr-action-btn:disabled{opacity:.6;cursor:wait}.vpr-action-btn:active:not(:disabled){transform:translateY(0) scale(.97)}.vpr-hint{padding:.7rem .85rem;border-radius:10px;margin-bottom:.75rem;text-align:center}.vpr-hint p{font-size:.78rem;margin:0;line-height:1.5}.vpr-hint.amber{background:#f59e0b14;border:1px solid rgba(245,158,11,.18)}.vpr-hint.amber p{color:var(--tl-primary, #f7a00f)}.vpr-hint.red{background:#ef444414;border:1px solid rgba(239,68,68,.18)}.vpr-hint.red p{color:#fca5a5}.vpr-error{background:#ef44441a;border:1px solid rgba(239,68,68,.25);border-radius:8px;padding:.65rem .85rem;margin-bottom:.75rem;text-align:center}.vpr-error p{color:#fca5a5;font-size:.82rem;margin:0}.vpr-security{display:flex;align-items:center;gap:.65rem;background:#ffffff08;border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:.7rem .9rem}.vpr-security-icon{font-size:1.1rem;flex-shrink:0}.vpr-security-title{color:var(--tl-text-muted, #838791);font-size:.72rem;margin:0}.vpr-security-desc{color:#ffffff4d;font-size:.68rem;margin:.1rem 0 0}@media(max-width:600px){.vpr-container{padding:1rem .75rem 2rem}.vpr-header{padding:1.5rem .5rem 1rem}.vpr-details-card{padding:1rem;border-radius:14px}.vpr-benefits-grid{grid-template-columns:1fr}}
