/* ==========================================================================
   FLAREX™ NEWGEN MODERATION BOT - DASHBOARD STYLESHEET
   Obsidian Dark & Warm Copper/Bronze Luxury Glassmorphism Aesthetic
   With Discord Native Emojis, Discord OAuth2 Login & Server Picker
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@500;600;700;800&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600;1,700&family=Great+Vibes&family=Inter:ital,opsz,wght@0,14..32,300..800;1,14..32,300..800&family=JetBrains+Mono:wght@400;500;600&family=Pinyon+Script&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Dark Espresso Brown Theme */
  --bg-main: #1C120E;
  --bg-sidebar: #261914;
  --bg-card: #302019;
  --bg-card-hover: #493024;
  --bg-card-active: #3B281F;
  --bg-input: #261914;
  --bg-input-focus: #302019;
  --bg-elevated: #3B281F;

  /* Discord Brand Colors */
  --discord-blurple: #5865f2;
  --discord-blurple-hover: #4752c4;
  --discord-green: #57f287;
  --discord-yellow: #D2AD8A;
  --discord-fuchsia: #B88963;
  --discord-red: #ed4245;
  --discord-dark: #261914;
  --discord-darker: #1C120E;

  /* Primary Accent & Warm Mocha / Caramel Brand Accents */
  --accent-copper: #B88963;
  --accent-copper-light: #D2AD8A;
  --accent-copper-dark: #8D7768;
  --accent-amber: #D2AD8A;
  --accent-gold: #B88963;
  --accent-glow: rgba(184, 137, 99, 0.28);
  --accent-glow-strong: rgba(184, 137, 99, 0.45);
  --accent-subtle: rgba(184, 137, 99, 0.14);
  --accent-border: #654533;
  --accent-border-hover: #B88963;

  /* Status Colors */
  --status-online: #4ade80;
  --status-online-bg: rgba(74, 222, 128, 0.14);
  --status-danger: #f87171;
  --status-danger-bg: rgba(248, 113, 113, 0.14);
  --status-warning: #D2AD8A;
  --status-warning-bg: rgba(210, 173, 138, 0.14);
  --status-info: #D2AD8A;
  --status-info-bg: rgba(210, 173, 138, 0.14);

  /* Typography Colors - High-Contrast Warm Espresso Precision System */
  --text-primary: #F3E6D8;
  --text-secondary: #BDA797;
  --text-muted: #8D7768;
  --text-dim: #654533;
  --text-accent: #D2AD8A;
  --text-placeholder: #8D7768;

  /* Borders & Shadows */
  --border-light: #654533;
  --border-glass: rgba(101, 69, 51, 0.45);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(101, 69, 51, 0.45);
  --shadow-glow: 0 0 25px rgba(184, 137, 99, 0.25);
  --shadow-glow-sm: 0 0 15px rgba(184, 137, 99, 0.15);

  /* Typography */
  --font-serif: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-cursive: 'Great Vibes', 'Alex Brush', 'Pinyon Script', cursive;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Layout */
  --sidebar-left-width: 250px;
  --sidebar-right-width: 320px;
  --header-height: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(223, 155, 109, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(223, 155, 109, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(223, 155, 109, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0d0b09;
}
::-webkit-scrollbar-thumb {
  background: rgba(223, 155, 109, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(223, 155, 109, 0.45);
}

/* ==========================================================================
   DISCORD NATIVE EMOJI STYLES (Matches Discord Client)
   ========================================================================== */
.discord-emoji {
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  object-fit: contain;
  display: inline-block;
  user-select: none;
  -webkit-user-drag: none;
}

.discord-emoji.large {
  width: 28px;
  height: 28px;
  vertical-align: -6px;
}

.discord-emoji.small {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(16, 14, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

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

.brand-crown-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-copper);
}

.brand-crown-icon img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 10px rgba(223, 155, 109, 0.75));
  border: 1px solid rgba(223, 155, 109, 0.3);
}

.brand-crown-icon svg {
  width: 28px;
  height: 28px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #f5eee8 0%, #df9b6d 50%, #f3ba8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.brand-title img,
.brand-title-logo {
  -webkit-text-fill-color: initial;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-tm {
  font-size: 11px;
  font-family: var(--font-sans);
  color: var(--accent-copper);
  vertical-align: super;
  -webkit-text-fill-color: var(--accent-copper);
}

.brand-subtitle {
  font-size: 9px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent-copper);
  opacity: 0.85;
  font-weight: 600;
  margin-top: 2px;
}

/* Center Search Bar */
.search-container {
  flex: 1;
  max-width: 440px;
  margin: 0 20px;
  position: relative;
}

.search-bar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-bar-btn:hover {
  background: var(--bg-input-focus);
  border-color: var(--accent-border-hover);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(223, 155, 109, 0.12);
}

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

.search-shortcut-badge {
  background: rgba(223, 155, 109, 0.1);
  border: 1px solid rgba(223, 155, 109, 0.2);
  color: var(--accent-copper);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Right Nav Controls */
.nav-actions-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Live Gateway Sync Badge */
.live-sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--status-online);
  transition: all 0.2s ease;
  user-select: none;
}

.live-sync-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-online);
  box-shadow: 0 0 8px var(--status-online);
  animation: pulseDot 2s infinite;
}

.live-sync-indicator.syncing::before {
  background: var(--status-warning);
  box-shadow: 0 0 8px var(--status-warning);
}

.live-sync-indicator.failed::before {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
}

.sync-retry-btn:hover {
  background: #dc2626 !important;
}

/* Server Selector Button in Header */
.server-selector-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 5px 14px 5px 6px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.server-selector-btn:hover {
  border-color: var(--accent-border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 0 15px rgba(223, 155, 109, 0.15);
}

.server-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b87343, #df9b6d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.server-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-round-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-round-btn:hover {
  border-color: var(--accent-copper);
  color: var(--accent-copper);
  box-shadow: 0 0 12px rgba(223, 155, 109, 0.2);
}

/* User Profile Pill & Login Button */
.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 4px 12px 4px 5px;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-pill:hover {
  border-color: var(--accent-copper);
  background: var(--bg-card-hover);
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-copper);
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.user-role-tag {
  font-size: 10px;
  color: var(--accent-copper);
  font-weight: 500;
}

.discord-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--discord-blurple);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
}

.discord-login-btn:hover {
  background: var(--discord-blurple-hover);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   APP MAIN CONTAINER & LAYOUT GRID
   ========================================================================== */
.app-container {
  display: flex;
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* ==========================================================================
   LEFT SIDEBAR
   ========================================================================== */
.sidebar-left {
  width: var(--sidebar-left-width);
  height: calc(100vh - var(--header-height));
  position: fixed;
  top: var(--header-height);
  left: 0;
  background: rgba(16, 14, 12, 0.92);
  border-right: 1px solid var(--border-light);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  z-index: 90;
}

.nav-menu-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-category-header {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-copper-light);
  opacity: 0.9;
  padding: 8px 12px 4px;
  margin-top: 10px;
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
}

.nav-item-btn:hover {
  background: rgba(223, 155, 109, 0.08);
  color: #ffffff;
  border-color: rgba(223, 155, 109, 0.25);
  transform: translateX(2px);
}

.nav-item-btn.active {
  background: linear-gradient(180deg, rgba(48, 33, 23, 0.85) 0%, rgba(24, 18, 14, 0.95) 100%);
  border: 1px solid rgba(223, 155, 109, 0.35);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(223, 155, 109, 0.3), 0 0 12px rgba(223, 155, 109, 0.18);
}

.nav-item-btn .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-copper);
}

.nav-item-btn .nav-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-copper);
  filter: drop-shadow(0 0 4px rgba(184, 137, 99, 0.2));
  transition: all 0.2s;
}

.nav-item-btn .nav-icon img,
.nav-item-btn .nav-icon .discord-emoji {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: block;
}

.nav-item-btn.active .nav-icon svg {
  color: var(--accent-copper-light);
  filter: drop-shadow(0 0 8px rgba(184, 137, 99, 0.5));
}

.nav-badge-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--accent-subtle);
  color: var(--accent-copper);
}

/* Sidebar Left Footer with Lantern & Quote */
.sidebar-footer-decor {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.sidebar-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
  opacity: 0.9;
}

.sidebar-quote strong {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-copper);
  margin-top: 2px;
}

.sidebar-butterfly {
  font-size: 16px;
  color: var(--accent-copper);
  opacity: 0.7;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  animation: floatButterfly 4s ease-in-out infinite alternate;
}

@keyframes floatButterfly {
  0% { transform: translateY(0px) rotate(-2deg); }
  100% { transform: translateY(-4px) rotate(3deg); }
}

.sidebar-lantern-wrap {
  width: 100%;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 60%, rgba(223, 155, 109, 0.25) 0%, #0d0b09 70%);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   CENTER MAIN CONTENT AREA
   ========================================================================== */
.main-content {
  margin-left: var(--sidebar-left-width);
  margin-right: var(--sidebar-right-width);
  flex: 1;
  padding: 24px;
  min-height: calc(100vh - var(--header-height));
  max-width: 1280px;
}

/* Tab Panels */
.tab-content-panel {
  display: none;
  animation: fadeInTab 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content-panel.active {
  display: block;
}

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

/* ==========================================================================
   HERO BANNER COMPONENT
   ========================================================================== */
.hero-banner-card {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  background: #0f0d0b;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c0a09 15%, rgba(12, 10, 9, 0.6) 50%, rgba(12, 10, 9, 0.2) 80%, #0c0a09 100%),
              radial-gradient(circle at 75% 40%, rgba(223, 155, 109, 0.3) 0%, transparent 60%),
              url('../assets/flarex_reference.png') 60% 18%/170% auto no-repeat;
  filter: brightness(0.95) contrast(1.05);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 44px;
  z-index: 2;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.75) 48%, transparent 85%);
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  overflow: visible;
}

.hero-brand-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.hero-brand-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 155, 109, 0.65) 0%, rgba(223, 155, 109, 0.25) 50%, transparent 72%);
  z-index: 0;
  filter: blur(8px);
  pointer-events: none;
}

.hero-brand-logo {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(223, 155, 109, 0.65);
  box-shadow: 0 0 25px rgba(223, 155, 109, 0.6), inset 0 0 10px rgba(223, 155, 109, 0.3);
}

.hero-brand-text-block {
  display: flex;
  align-items: baseline;
  overflow: visible;
  padding-left: 6px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.hero-brand-name {
  font-family: var(--font-cursive);
  font-size: 78px;
  font-weight: 400;
  line-height: 1.05;
  display: inline-block;
  padding-left: 8px;
  padding-right: 4px;
  overflow: visible;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #fff7f0 35%, #f3ba8f 75%, #df9b6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(223, 155, 109, 0.55));
  letter-spacing: 1px;
}

.hero-brand-tm {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  color: var(--accent-copper-light);
  -webkit-text-fill-color: var(--accent-copper-light);
  vertical-align: super;
  margin-left: 8px;
  display: inline-block;
  opacity: 0.95;
  text-shadow: 0 0 12px rgba(223, 155, 109, 0.4);
}

.hero-subtitle-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hero-subtitle-line {
  height: 1px;
  width: 50px;
  background: linear-gradient(90deg, transparent, var(--accent-copper));
}

.hero-subtitle-line.right {
  background: linear-gradient(90deg, var(--accent-copper), transparent);
}

.hero-subtitle-text {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: 11.5px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-copper-light);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(223, 155, 109, 0.3);
}

.hero-slogan-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', 'Cinzel', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 2px;
  color: #ffffff;
  opacity: 0.95;
  text-shadow: 0 0 12px rgba(223, 155, 109, 0.35);
}

.hero-slogan-pills span.star {
  font-style: normal;
  color: var(--accent-copper);
  font-size: 12px;
  text-shadow: 0 0 8px var(--accent-copper);
}

/* ==========================================================================
   METRICS GRID (4 Top Cards - Matches User Reference Screenshot Exactly)
   ========================================================================== */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: #13100e;
  border: 1px solid rgba(223, 155, 109, 0.12);
  border-radius: 16px;
  padding: 20px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
}

.metric-card:hover {
  border-color: rgba(223, 155, 109, 0.35);
  background: #171310;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(223, 155, 109, 0.12);
}

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

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.35;
  max-width: 110px;
}

.metric-change-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 8px;
  background: #0f2d1e;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.15);
}

.metric-change-badge.online-badge {
  border-radius: 12px;
  padding: 3px 10px;
  background: #0f2d1e;
  color: #4ade80;
}

.metric-value {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-sans);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-top: 8px;
}

/* ==========================================================================
   QUICK ACTIONS SECTION
   ========================================================================== */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .title-star {
  color: var(--accent-copper);
}

.section-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-action-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 15px rgba(223, 155, 109, 0.12);
}

.quick-action-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-action-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid rgba(223, 155, 109, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-action-arrow {
  color: var(--accent-copper);
  opacity: 0.7;
  font-size: 14px;
  transition: transform 0.2s;
}

.quick-action-card:hover .quick-action-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* ==========================================================================
   RECENT ACTIVITY FEED
   ========================================================================== */
.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.activity-view-all-link {
  font-size: 12px;
  color: var(--accent-copper);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.activity-view-all-link:hover {
  color: var(--accent-copper-light);
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 13px;
  transition: background 0.15s;
}

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

.activity-row:hover {
  background: rgba(223, 155, 109, 0.04);
  border-radius: var(--radius-sm);
}

.activity-left-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.activity-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-copper);
  box-shadow: 0 0 6px var(--accent-glow);
}

.activity-event-name {
  color: var(--text-secondary);
  min-width: 150px;
}

.activity-event-target {
  color: var(--text-primary);
  font-weight: 600;
}

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

/* ==========================================================================
   RIGHT SIDEBAR (BOT INFO & CHART)
   ========================================================================== */
.sidebar-right {
  width: var(--sidebar-right-width);
  height: calc(100vh - var(--header-height));
  position: fixed;
  top: var(--header-height);
  right: 0;
  background: rgba(16, 14, 12, 0.92);
  border-left: 1px solid var(--border-light);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  z-index: 90;
}

.bot-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.bot-info-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.bot-info-crown {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-copper);
}

.bot-info-crown img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 8px rgba(223, 155, 109, 0.75));
  border: 1px solid rgba(223, 155, 109, 0.3);
}

.bot-info-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #df9b6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bot-info-subtitle {
  font-size: 8.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-copper);
  font-weight: 600;
  margin-bottom: 12px;
}

.bot-info-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

.bot-info-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent-copper);
  font-size: 10px;
}

.bot-info-divider::before, .bot-info-divider::after {
  content: '';
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(223, 155, 109, 0.4));
}

.bot-info-divider::after {
  background: linear-gradient(90deg, rgba(223, 155, 109, 0.4), transparent);
}

.bot-info-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bot-info-table-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.bot-edit-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.bot-edit-btn:hover {
  border-color: var(--accent-copper);
  color: var(--accent-copper);
}

.bot-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.bot-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.bot-detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.bot-detail-val {
  color: var(--text-primary);
  font-weight: 600;
}

/* Server Stats Chart Card */
.server-stats-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.chart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

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

.chart-dropdown-select {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  outline: none;
  cursor: pointer;
}

.chart-canvas-wrap {
  width: 100%;
  height: 110px;
  position: relative;
}

/* Right Sidebar Bottom Card */
.thank-you-card {
  background: linear-gradient(135deg, rgba(223, 155, 109, 0.08) 0%, rgba(16, 14, 12, 0.95) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.thank-you-butterfly {
  font-size: 26px;
  color: var(--accent-copper);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.thank-you-text {
  font-family: var(--font-cursive);
  font-size: 22px;
  color: var(--accent-copper-light);
  line-height: 1.2;
}

.thank-you-star {
  color: var(--accent-copper);
  font-size: 12px;
  margin-top: 4px;
}

/* ==========================================================================
   MODULE CONFIGURATION CARDS & COMPONENTS
   ========================================================================== */
.module-header-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.module-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.module-header-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  border: 1.5px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(223, 155, 109, 0.15);
}

.module-header-title {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.module-header-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.5;
}

/* Master Switch Toggle */
.master-switch-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 30px;
}

.master-switch-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Toggle Switch Control */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #241e1a;
  border: 1px solid rgba(223, 155, 109, 0.2);
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(135deg, var(--accent-copper), #b87343);
  border-color: var(--accent-copper-light);
  box-shadow: 0 0 12px rgba(223, 155, 109, 0.4);
}

input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* Configuration Grid & Section Cards */
.config-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.config-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.config-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.config-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.config-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.45;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(223, 155, 109, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  outline: none;
  transition: all 0.2s ease;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-placeholder);
  opacity: 0.9;
}

.form-select option {
  background: #171310;
  color: #ffffff;
  padding: 8px 12px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent-copper);
  box-shadow: 0 0 14px rgba(223, 155, 109, 0.25);
}

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

/* Range Sliders */
.range-slider-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #241e1a;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-copper);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-val-badge {
  min-width: 44px;
  text-align: center;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent-copper-light);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8.5px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-copper), #b87343);
  color: #fff;
  border-color: var(--accent-copper-light);
  box-shadow: 0 0 15px rgba(223, 155, 109, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-copper-light), var(--accent-copper));
  box-shadow: 0 0 25px rgba(223, 155, 109, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border-hover);
  color: #ffffff;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border-color: #f87171;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.btn-blurple {
  background: var(--discord-blurple);
  color: #fff;
}

.btn-blurple:hover {
  background: var(--discord-blurple-hover);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
  color: #ffffff;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: 6px;
}

/* Variable Tag Chips */
.tag-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-chip {
  background: rgba(223, 155, 109, 0.1);
  border: 1px solid rgba(223, 155, 109, 0.25);
  color: var(--accent-copper);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-chip:hover {
  background: var(--accent-copper);
  color: #120e0b;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ==========================================================================
   DISCORD EMBED LIVE PREVIEW WIDGET
   ========================================================================== */
.discord-preview-box {
  background: #2b2d31;
  border-radius: 8px;
  padding: 16px;
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #dbdee1;
  margin-top: 14px;
  border-left: 4px solid var(--accent-copper);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.discord-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5865f2;
  object-fit: cover;
}

.discord-author-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.discord-author-name {
  font-weight: 600;
  color: #f2f3f5;
  font-size: 15px;
}

.discord-bot-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.discord-timestamp {
  font-size: 11px;
  color: #949ba4;
}

.discord-embed-card {
  background: #1e1f22;
  border-radius: 4px;
  border-left: 4px solid var(--accent-copper);
  padding: 12px 16px;
  margin-top: 6px;
  max-width: 520px;
}

.discord-embed-title {
  font-size: 15px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 6px;
}

.discord-embed-desc {
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.4;
  white-space: pre-wrap;
  margin-bottom: 10px;
}

.discord-embed-footer {
  font-size: 11px;
  color: #949ba4;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   SERVER PICKER MODAL & GRID VIEW
   ========================================================================== */
.server-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px 0;
  max-height: 460px;
  overflow-y: auto;
}

.server-picker-card {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.server-picker-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-copper);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(223, 155, 109, 0.15);
}

.server-picker-card.active-server {
  border-color: var(--accent-copper-light);
  background: linear-gradient(135deg, rgba(223, 155, 109, 0.12), rgba(16, 14, 12, 0.95));
  box-shadow: 0 0 20px rgba(223, 155, 109, 0.25);
}

.server-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-icon-squircle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #b87343, #df9b6d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: border-radius 0.2s;
}

.server-picker-card:hover .server-icon-squircle {
  border-radius: 12px;
}

.server-icon-squircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.server-title-text {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.server-members-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ==========================================================================
   DISCORD LOGIN MODAL / POPUP
   ========================================================================== */
.discord-auth-box {
  text-align: center;
  padding: 24px;
}

.discord-auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--discord-blurple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.4);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.discord-auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.discord-auth-title {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.discord-auth-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.demo-users-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.demo-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-user-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-copper);
}

/* ==========================================================================
   TABLES & LISTS
   ========================================================================== */
.custom-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.custom-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-copper-light);
  border-bottom: 1px solid var(--accent-border);
  background: rgba(223, 155, 109, 0.04);
}

.custom-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 13px;
}

.custom-table tr:hover td {
  background: rgba(223, 155, 109, 0.04);
  color: #ffffff;
}

/* ==========================================================================
   FLOATING UNSAVED CHANGES BAR
   ========================================================================== */
.floating-save-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(20, 17, 15, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-copper);
  border-radius: var(--radius-xl);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(223, 155, 109, 0.3);
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-save-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.floating-save-text {
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   MODALS (SEARCH, SERVER PICKER, AUTH)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

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

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-card), 0 0 35px rgba(223, 155, 109, 0.2);
  overflow: hidden;
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog.large {
  max-width: 720px;
}

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

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-input);
}

.modal-title-text {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--accent-copper);
}

.search-modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-input);
}

.search-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
}

.search-results-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.search-result-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 85px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--accent-copper);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(223, 155, 109, 0.25);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

@keyframes toastIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(50px); }
}

/* ==========================================================================
   MOBILE MENU TOGGLE & COLLAPSIBLE SIDEBAR
   ========================================================================== */
.mobile-menu-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(223, 155, 109, 0.1);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  color: var(--accent-copper);
  font-size: 18px;
  cursor: pointer;
  margin-right: 10px;
  transition: all 0.2s ease;
}

.mobile-menu-toggle-btn:hover {
  background: rgba(223, 155, 109, 0.2);
  border-color: var(--accent-copper);
  color: #fff;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1400px) {
  :root {
    --sidebar-right-width: 280px;
  }
}

@media (max-width: 1200px) {
  .sidebar-right {
    display: none !important;
  }
  .main-content {
    margin-right: 0 !important;
  }
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .mobile-menu-toggle-btn {
    display: flex;
  }

  .sidebar-left {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 260px;
    height: calc(100vh - var(--header-height));
    z-index: 200;
    background: rgba(16, 14, 12, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--accent-border);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.85);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .sidebar-left.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
    padding: 20px 16px;
  }

  .search-container {
    max-width: 260px;
  }

  .search-shortcut-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-navbar {
    padding: 0 12px;
  }

  .brand-subtitle {
    display: none;
  }

  .search-container {
    display: none;
  }

  .server-selector-btn span#headerServerName {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-profile-pill .user-info-text {
    display: none;
  }

  .metrics-row, 
  .config-grid-2col, 
  .config-grid-3col, 
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner-card {
    height: auto;
    min-height: 160px;
    padding: 20px 16px;
  }

  .hero-brand-script {
    font-size: 36px;
  }

  .module-header-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .floating-save-bar {
    left: 16px;
    right: 16px;
    transform: translateY(120px);
    width: calc(100vw - 32px);
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    border-radius: var(--radius-md);
  }

  .floating-save-bar.visible {
    transform: translateY(0);
  }

  .floating-save-bar > div:last-child {
    width: 100%;
    display: flex;
    justify-content: stretch;
  }

  .floating-save-bar button {
    flex: 1;
  }
}

/* ==========================================================================
   PREMIUM MODULE & SUBSCRIPTION STYLES
   ========================================================================== */
.nav-item-btn.nav-premium-btn {
  background: linear-gradient(135deg, rgba(223, 155, 109, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid rgba(223, 155, 109, 0.3);
  margin-bottom: 6px;
}
.nav-item-btn.nav-premium-btn:hover {
  background: linear-gradient(135deg, rgba(223, 155, 109, 0.22) 0%, rgba(139, 92, 246, 0.22) 100%);
  border-color: rgba(223, 155, 109, 0.6);
  box-shadow: 0 0 16px rgba(223, 155, 109, 0.2);
}
.nav-item-btn.nav-premium-btn.active {
  background: linear-gradient(135deg, rgba(223, 155, 109, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: var(--accent-copper);
}
.premium-glow-pill {
  background: linear-gradient(135deg, #df9b6d, #b87343) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 10px !important;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(223, 155, 109, 0.4);
}

.premium-status-banner {
  background: linear-gradient(135deg, rgba(20, 17, 15, 0.95) 0%, rgba(30, 20, 45, 0.65) 50%, rgba(20, 17, 15, 0.95) 100%);
  border: 1px solid rgba(223, 155, 109, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(139, 92, 246, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.premium-status-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 280px;
}

.premium-status-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 155, 109, 0.25) 0%, rgba(20, 17, 15, 0.9) 100%);
  border: 2px solid var(--accent-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 20px rgba(223, 155, 109, 0.35);
  overflow: hidden;
}

.premium-status-info h3 {
  font-size: 18px;
}

/* ==========================================================================
   PREMIUM MODULE & LUXURY SHOWCASE (Dark Espresso Brown Theme)
   ========================================================================== */
.premium-hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(184, 137, 99, 0.12) 0%, rgba(59, 40, 31, 0.5) 100%), #302019;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(184, 137, 99, 0.1);
}

.premium-hero-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 137, 99, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.premium-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.premium-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(184, 137, 99, 0.15);
  border: 1px solid var(--accent-border);
  color: var(--accent-copper-light);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
}

.premium-sparkle {
  color: var(--accent-copper-light);
}

.premium-hero-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-sidebar);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
}

.premium-hero-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.25;
}

.premium-hero-title .gradient-text {
  background: linear-gradient(135deg, #F3E6D8 0%, #D2AD8A 50%, #B88963 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-hero-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 820px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.premium-status-banner {
  background: var(--bg-sidebar);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.premium-status-info {
  flex: 1;
  min-width: 240px;
}

.premium-status-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.premium-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 6px var(--text-muted);
}

.premium-status-indicator.active {
  background: var(--status-online);
  box-shadow: 0 0 8px var(--status-online);
}

.premium-status-tier-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.premium-status-details {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.premium-status-timer-box {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  text-align: center;
  min-width: 160px;
}

.premium-timer-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.premium-timer-digits {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-copper-light);
}

.premium-timer-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.premium-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-premium-claim {
  background: linear-gradient(135deg, #D2AD8A, #B88963);
  color: #1C120E !important;
  font-weight: 700;
  border: 1px solid #D2AD8A;
  box-shadow: 0 4px 15px rgba(184, 137, 99, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-premium-claim:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(184, 137, 99, 0.5);
  transform: translateY(-1px);
}

.btn-premium-buy {
  background: linear-gradient(135deg, #B88963, #8D7768);
  color: #F3E6D8 !important;
  font-weight: 700;
  border: 1px solid #D2AD8A;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(184, 137, 99, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-premium-buy:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 22px rgba(184, 137, 99, 0.5);
  transform: translateY(-1px);
}

.premium-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.premium-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-section-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.premium-unified-poster-showcase {
  width: 100%;
  margin-bottom: 34px;
}

.premium-poster-card.unified-poster-card {
  border-color: var(--accent-copper);
  background: #140d0a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 25px rgba(184, 137, 99, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.premium-poster-card.unified-poster-card:hover {
  border-color: var(--accent-copper-light);
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.9), 0 0 35px rgba(184, 137, 99, 0.35);
}

.premium-poster-card.unified-poster-card .premium-poster-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.premium-posters-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
  width: 100%;
  align-items: stretch;
}

.premium-poster-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.premium-poster-card.gold-poster-card {
  border-color: rgba(210, 173, 138, 0.7);
}

.premium-poster-card.diamond-poster-card {
  border-color: var(--accent-copper);
}

.premium-poster-card.obsidian-poster-card {
  border-color: var(--accent-border);
}

.premium-poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(184, 137, 99, 0.25);
}

.premium-poster-card.gold-poster-card:hover {
  border-color: #facc15;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(250, 204, 21, 0.25);
}

.premium-poster-card.diamond-poster-card:hover {
  border-color: var(--accent-copper-light);
}

.premium-poster-card.obsidian-poster-card:hover {
  border-color: var(--accent-copper);
}

.premium-poster-img-container {
  position: relative;
  width: 100%;
  background: #140d0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-poster-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.35s ease;
  background: #140d0a;
}

.premium-poster-card:hover .premium-poster-img {
  transform: scale(1.02);
}

/* Gold Tier 7-Day Free Trial Card & Plan Styling */
.premium-gold-card {
  background: linear-gradient(180deg, rgba(210, 173, 138, 0.16) 0%, var(--bg-card) 45%);
  border: 1px solid var(--accent-copper);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(184, 137, 99, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.premium-gold-card:hover {
  border-color: var(--accent-copper-light);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(210, 173, 138, 0.3);
  transform: translateY(-2px);
}

.premium-gold-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.premium-gold-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.premium-gold-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(184, 137, 99, 0.25);
  border: 1px solid var(--accent-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(184, 137, 99, 0.25);
  flex-shrink: 0;
}

.premium-gold-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-gold-tagline {
  font-size: 12.5px;
  color: var(--accent-copper-light);
  margin-top: 2px;
}

.premium-gold-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .premium-gold-perks-grid {
    grid-template-columns: 1fr;
  }
}

.gold-perk-item {
  background: rgba(28, 18, 14, 0.6);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color 0.2s;
}

.gold-perk-item:hover {
  border-color: var(--accent-copper);
}

.gold-perk-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.gold-perk-content {
  flex: 1;
}

.gold-perk-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.gold-perk-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.gold-trial-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}

.gold-trial-guarantee {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.premium-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.premium-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.premium-plan-card:hover {
  border-color: var(--accent-copper);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(184, 137, 99, 0.2);
  transform: translateY(-2px);
}

.premium-plan-card.featured-plan {
  border-color: var(--accent-copper);
  background: linear-gradient(180deg, rgba(184, 137, 99, 0.12) 0%, var(--bg-card) 45%);
}

.premium-plan-card.obsidian-tier-card {
  border-color: var(--accent-copper-dark);
  background: linear-gradient(180deg, rgba(101, 69, 51, 0.2) 0%, var(--bg-sidebar) 45%);
}

.premium-plan-featured-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent-copper);
  color: #1C120E;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.premium-plan-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.premium-plan-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--accent-border);
  background: var(--bg-sidebar);
}

.premium-plan-title-box {
  flex: 1;
}

.premium-plan-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.premium-plan-tagline {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.premium-plan-badge-row {
  margin-bottom: 16px;
}

.premium-plan-perks-list {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-plan-perks-list li {
  list-style: none !important;
  list-style-type: none !important;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.perk-check {
  color: var(--accent-copper-light);
  font-weight: 700;
  flex-shrink: 0;
}

.premium-plan-footer {
  margin-top: auto;
}


.premium-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.premium-comparison-table th {
  padding: 12px 16px;
  background: var(--bg-sidebar);
  color: var(--text-primary);
  font-weight: 700;
  border-bottom: 1px solid var(--accent-border);
}

.premium-comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(101, 69, 51, 0.4);
  color: var(--text-secondary);
}

.premium-comparison-table tr:hover td {
  background: rgba(184, 137, 99, 0.05);
}

/* ==========================================================================
   POSTER LIGHTBOX MODAL
   ========================================================================== */
.poster-lightbox-backdrop {
  background: rgba(16, 10, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
}

.poster-lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.poster-lightbox-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 85vh;
}

.poster-lightbox-body .lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(184, 137, 99, 0.35);
}

.poster-lightbox-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-primary);
  text-align: center;
  background: rgba(38, 25, 20, 0.9);
  border: 1px solid var(--accent-border);
  padding: 8px 20px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  max-width: 600px;
}

.poster-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent-copper);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.poster-lightbox-close:hover {
  background: var(--accent-copper);
  color: #1C120E;
  transform: scale(1.08);
}

@media (max-width: 1080px) {
  .premium-posters-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .premium-posters-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}



