/* ==========================================================================
   BEARDED VILLAINS PORTUGAL - PORTAL DESIGN SYSTEM
   Visual Language: Official BVPT Authentic Chapter Identity
   Palette: Matte Charcoal (#1a1a1a), Authentic Gold (#c59b27), Maritime Teal (#78aab4)
   Font: Official Chapter Font 'Norse'
   ========================================================================== */

@font-face {
  font-family: 'Norse';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Norse.otf') format('opentype'),
       url('../fonts/Norse.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'NewLetterGothicW01Regular';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/NewLetterGothicW01Regular.ttf') format('truetype'),
       url('../fonts/NewLetterGothicW01Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  /* Signature BVPT Maritime Teal */
  --bvpt-teal: #78aab4;
  --bvpt-teal-light: #9cc5ce;
  --bvpt-teal-pale: #e6f2f5;
  --bvpt-teal-dark: #4b7882;
  --bvpt-teal-surface: rgba(120, 170, 180, 0.08);
  --bvpt-teal-gradient: linear-gradient(135deg, #78aab4 0%, #52838c 100%);
  --bvpt-teal-glow: none;

  /* Authentic Matte Charcoal Surfaces (Matching Chapter Site #1a1a1a) */
  --bg-darkest: #141414;
  --bg-primary: #181818;
  --bg-surface: #222222;
  --bg-surface-hover: #292929;
  --bg-surface-card: #202020;
  --bg-glass: rgba(26, 26, 26, 0.95);

  /* Clean Matte Borders (No Neon Glows) */
  --border-subtle: #2d2d2d;
  --border-medium: #3c3c3c;
  --border-teal: #4b7882;
  --border-teal-glow: #4b7882;

  /* Board Gold Accents */
  --bvpt-gold: #c59b27;
  --bvpt-gold-light: #e6bf54;
  --bvpt-gold-dark: #8c6a12;
  --bvpt-gold-gradient: linear-gradient(135deg, #e6bf54 0%, #c59b27 100%);
  --bvpt-gold-glow: none;
  --border-gold: #c59b27;
  --gold-primary: var(--bvpt-gold);
  --gold-light: var(--bvpt-gold-light);
  --gold-glow: none;

  /* Accents */
  --accent-cobalt: #2563eb;
  --accent-yellow: #fbbf24;
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.15);
  --accent-red: #ef4444;
  --accent-red-bg: rgba(239, 68, 68, 0.15);
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;

  --discord-color: #5865f2;
  --discord-hover: #4752c4;

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-teal: #9cc5ce;
  --text-gold: #fbe59c;

  --font-brand: 'Cinzel', Georgia, serif;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-norse: 'Norse', Georgia, serif;
  --font-body: 'NewLetterGothicW01Regular', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Caveat', cursive, sans-serif;

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: #1a1a1a;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography - Cinzel is the prestigious brand font */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  font-weight: 700;
}

a {
  color: var(--bvpt-teal-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #fff;
}

/* Top App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.brand-logo:hover {
  transform: rotate(4deg) scale(1.05);
}

.brand-title-wrap h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.brand-subtitle {
  font-family: var(--font-norse);
  font-size: 0.88rem;
  color: var(--bvpt-teal-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* User Profile Badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.user-badge:hover {
  border-color: var(--border-teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

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

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.user-role-badge {
  font-family: var(--font-norse);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.role-board {
  background: rgba(229, 185, 76, 0.2);
  color: var(--bvpt-gold-light);
  border: 1px solid var(--border-gold);
}

.role-villain {
  background: rgba(120, 170, 180, 0.2);
  color: var(--bvpt-teal-light);
  border: 1px solid var(--border-teal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  text-decoration: none;
}

/* Primary Button in Signature BVPT Teal */
.btn-primary {
  background: var(--bvpt-teal-gradient);
  color: #070e14;
  font-weight: 700;
  border: 1px solid var(--bvpt-teal-light);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8cbac4 0%, #60919a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  color: #000;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-teal);
  color: #fff;
}

.btn-discord {
  background: var(--discord-color);
  color: #fff;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-discord:hover {
  background: var(--discord-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.btn-danger {
  background: var(--accent-red-bg);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: var(--accent-red);
  color: #fff;
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
}

/* Navigation Tabs */
.nav-tabs-container {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow-x: auto;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--text-main);
}

.nav-tab-btn.active {
  color: var(--bvpt-teal-pale);
  border-bottom-color: var(--bvpt-teal);
}

.tab-badge {
  background: rgba(120, 170, 180, 0.15);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--bvpt-teal-light);
  font-family: var(--font-body);
}

.sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
}

/* App Main Layout - Dynamic Full Width matching Header */
.app-main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
}

/* Sections and Views */
.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

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

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

/* KPI Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

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

/* 4-column grid variant (Finances tab) */
.stats-grid.stats-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

/* 2-column grid variant */
.stats-grid.stats-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 960px) {
  .stats-grid.stats-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3-column grid variant (explicit, for Merch Villain view) */
.stats-grid.stats-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.stat-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--border-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--bvpt-teal-gradient);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.stat-value {
  font-size: 1.95rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.stat-value.gold {
  color: var(--bvpt-gold-light);
}

.stat-value.green {
  color: var(--accent-green);
}

.stat-value.red {
  color: var(--accent-red);
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 0.45rem;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
}

.stat-sub span {
  white-space: nowrap;
}

.stat-sub .sub-sep {
  color: var(--text-muted);
  opacity: 0.55;
  font-weight: 600;
}

/* Section Header and Controls */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Search and Filters Bar */
.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.25rem;
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--bvpt-teal);
  box-shadow: 0 0 0 2px rgba(120, 170, 180, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.select-filter {
  background: var(--bg-darkest);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.select-filter:focus {
  border-color: var(--bvpt-teal);
}

.view-toggle {
  display: flex;
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-btn {
  background: transparent;
  border: none;
  padding: 0.45rem 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn.active {
  background: var(--bvpt-teal);
  color: #070e14;
  font-weight: 700;
}

/* ==========================================================================
   MEMBER CARDS GRID (Flyer-Inspired Visual Architecture)
   ========================================================================== */

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.member-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.member-card:hover {
  border-color: var(--border-teal);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.member-card.member-card-board:hover {
  border-color: var(--border-gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.member-card.member-card-honorary {
  border-color: rgba(230, 57, 70, 0.4);
}

.member-card.member-card-honorary:hover {
  border-color: #e63946;
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.25);
}

/* Top Curved Wave Banner */
.member-card-banner {
  height: 80px;
  position: relative;
  background: #252525;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0.75rem 1rem;
}

.member-card-board .member-card-banner {
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.22) 0%, #202020 100%);
}

.member-card-honorary .member-card-banner {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.28) 0%, #202020 100%);
}

/* Watermark Emblem inside the banner */
.member-card-watermark {
  position: absolute;
  left: -15px;
  top: -15px;
  width: 110px;
  height: 110px;
  background-image: url('/images/BVPTLogo.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.member-wave-svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 32px;
  pointer-events: none;
}

/* Top flags */
.badge-board-flag {
  font-family: var(--font-norse);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(197, 155, 39, 0.2);
  color: var(--bvpt-gold-light);
  border: 1px solid rgba(197, 155, 39, 0.45);
}

.badge-villain-flag {
  font-family: var(--font-norse);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(120, 170, 180, 0.18);
  color: var(--bvpt-teal-pale);
  border: 1px solid rgba(120, 170, 180, 0.35);
}

.badge-hopeful-flag {
  font-family: var(--font-norse);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(46, 196, 182, 0.18);
  color: #72efdd;
  border: 1px solid rgba(46, 196, 182, 0.45);
}

.badge-honorary-flag {
  font-family: var(--font-norse);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(230, 57, 70, 0.22);
  color: #ff6b75;
  border: 1px solid rgba(230, 57, 70, 0.55);
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.25);
}

/* Card Body & Elevated Avatar */
.member-card-body {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  margin-top: -30px;
}

.member-card-header {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.member-photo-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
}

.member-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-medium);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  background: #1a1a1a;
  transition: transform var(--transition-fast);
}

.photo-board .member-photo, img.table-avatar.photo-board {
  border: 2px solid var(--bvpt-gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.photo-honorary .member-photo, img.table-avatar.photo-honorary {
  border: 2px solid #e63946 !important;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.45);
}

.member-photo-wrap:hover .member-photo {
  transform: scale(1.05);
}

.member-primary-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 0.2rem;
}

.member-name {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
}

/* Pill Badge for Role */
.member-cargo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-norse);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cargo-villain {
  background: var(--bvpt-teal);
  color: #081017;
  font-weight: 700;
}

.cargo-board {
  background: var(--bvpt-gold);
  color: #1a1200;
  font-weight: 700;
}

.cargo-hopeful {
  background: #2ec4b6;
  color: #032b28;
  font-weight: 700;
}

.cargo-honorary {
  background: #e63946 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.35);
}

.member-cargo-pill-sm {
  display: inline-block;
  font-family: var(--font-norse);
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* Patches & Milestones Progression Box */
.member-patches-section {
  background: #1c1c1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
}

.patches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.patches-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.patches-subtitle {
  font-family: var(--font-norse);
  font-size: 0.82rem;
  color: var(--bvpt-teal-light);
  letter-spacing: 0.06em;
}

.member-dates-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #242424;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.date-item.patch-achieved {
  background: #272727;
  border: 1px solid var(--border-medium);
}

.date-item.patch-loyal-box {
  background: rgba(197, 155, 39, 0.1);
  border: 1px solid rgba(197, 155, 39, 0.35);
}

.date-item.patch-elite-box {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.date-item.patch-bom-item {
  grid-column: span 2;
}

.date-item.patch-bom-box {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.45);
}

.date-icon-box {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.date-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.date-label {
  font-size: 0.62rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.date-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.date-val.loyal-active {
  color: var(--bvpt-gold-light);
}

.date-val.elite-active {
  color: #2ecc71;
}

.date-val.bom-active {
  color: #ff6b6b;
  font-weight: 800;
}

/* Contact Pills & Instagram */
.member-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.contact-pill.contact-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-teal);
  color: #fff;
}

.contact-pill.ig-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 500;
}

.contact-pill.ig-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--bvpt-teal);
  transform: translateX(2px);
  color: #fff;
}

.ig-user {
  color: var(--bvpt-teal-light);
  font-weight: 600;
}

/* Card Footer */
.member-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.member-id-tag {
  font-size: 0.72rem;
  font-family: monospace;
  color: var(--text-subtle);
}

.member-actions {
  display: flex;
  gap: 0.35rem;
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) var(--bg-darkest);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--bg-darkest);
  border-radius: var(--radius-full);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--bvpt-teal);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.data-table th {
  background: rgba(0, 0, 0, 0.45);
  color: var(--bvpt-teal-pale);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.75rem 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  text-transform: uppercase;
}

.data-table td {
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: var(--bg-surface-hover);
}

.table-row-honorary {
  background: rgba(230, 57, 70, 0.04);
}

.table-row-honorary:hover {
  background: rgba(230, 57, 70, 0.09) !important;
}

.table-member-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}

.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-medium);
  background: #000;
}

.patch-date-tag {
  font-weight: 600;
  color: var(--text-main);
}

.loyal-badge-pill {
  color: var(--bvpt-gold-light);
  font-weight: 700;
}

.table-phone-link {
  color: var(--text-muted);
}
.table-phone-link:hover {
  color: #fff;
  text-decoration: underline;
}

.table-ig-link {
  color: var(--bvpt-teal-light);
  font-weight: 700;
}
.table-ig-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   MEMBER DIRECTORY SPECIFIC TABLE STYLING
   ========================================================================== */

.member-directory-table {
  width: 100%;
  table-layout: auto;
}

.member-directory-table th,
.member-directory-table td {
  padding: 0.65rem 0.45rem;
}

.member-directory-table .col-center {
  text-align: center;
}

.member-directory-table .col-avatar {
  width: 44px;
  text-align: center;
  padding-left: 0.75rem;
  padding-right: 0.25rem;
}

.member-directory-table .col-avatar .table-avatar {
  display: block;
  margin: 0 auto;
}

.member-directory-table .col-name {
  min-width: 135px;
}

.member-directory-table .col-dob {
  white-space: nowrap;
  font-size: 0.8rem;
  text-align: center;
}

.member-directory-table .col-date,
.member-directory-table .col-patch {
  white-space: nowrap;
  font-size: 0.8rem;
  text-align: center;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

.member-directory-table .col-address {
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 180px;
  min-width: 105px;
  word-break: break-word;
}

.member-directory-table .col-contact {
  white-space: nowrap;
  font-size: 0.8rem;
}

.member-directory-table .col-ig {
  white-space: nowrap;
  font-size: 0.8rem;
}

.member-directory-table .col-actions {
  width: 72px;
  text-align: center;
  white-space: nowrap;
  padding-right: 0.75rem;
}

.member-directory-table .col-actions .btn-sm {
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
}

.badge-income {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-expense {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--accent-red-bg);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-status.recebido {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.pendente {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.producao {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   MODALS & FORMS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
}

.modal-title {
  font-size: 1.25rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-end;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--bvpt-teal);
}

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

/* Modal Profile Header: Photo on Left, Name and Birth Date on Right */
.modal-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-avatar-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.modal-avatar-wrapper .preview-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bvpt-teal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  background: #000;
  display: block;
}

.modal-profile-primary-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-age-display {
  color: var(--bvpt-teal-light);
  font-weight: 700;
  margin-left: 0.25rem;
  font-size: 0.8rem;
}

.avatar-fetch-status {
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 1.2rem;
}

.avatar-fetch-status.loading {
  color: var(--bvpt-teal-light);
}

.avatar-fetch-status.success {
  color: var(--accent-green);
}

.avatar-fetch-status.warning {
  color: var(--accent-amber);
}

.avatar-fetch-status.error {
  color: var(--accent-red);
}

.input-with-action {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.input-with-action .form-input {
  flex: 1;
}

.input-date-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.input-date-wrapper .form-input {
  flex: 1;
  min-width: 0;
}

.btn-clear-date {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  align-self: stretch;
  min-height: 38px;
  padding: 0 0.65rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: var(--radius-md);
  color: #ff6b75;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-clear-date:hover,
.btn-clear-date:active {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--accent-red);
  color: #ffffff;
}

/* ==========================================================================
   LOGIN HERO SCREEN (When Not Authenticated)
   ========================================================================== */

.login-hero-container {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bvpt-teal-gradient);
}

.login-crest {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.login-title {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.login-subtitle {
  color: var(--bvpt-teal-light);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  font-family: var(--font-norse);
  font-weight: 400;
}

.login-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dev-preview-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-subtle);
  text-align: center;
}

.dev-preview-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bvpt-teal-light);
  margin-bottom: 0.75rem;
}

.dev-buttons-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: slideInRight 0.3s ease-out;
}

.toast.success {
  border-color: var(--accent-green);
}

.toast.error {
  border-color: var(--accent-red);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-full {
    grid-column: span 1;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .app-main {
    padding: 1rem 0.75rem;
  }
}

/* ==========================================================================
   DOCUMENTOS & ESTATUTOS SECTION (FLYER AESTHETICS)
   ========================================================================== */

.docs-filter-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-pill {
  background: var(--bg-darkest);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cat-pill:hover {
  background: var(--bg-surface-hover);
  color: #fff;
  border-color: var(--border-teal);
}

.cat-pill.active {
  background: var(--bvpt-teal);
  color: #081017;
  font-weight: 700;
  border-color: var(--bvpt-teal-light);
  box-shadow: 0 2px 8px rgba(120, 170, 180, 0.3);
}

.btn-block {
  width: 100%;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.doc-card:hover {
  border-color: var(--border-teal);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.doc-card-banner {
  height: 75px;
  position: relative;
  background: #252525;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0.75rem 1rem;
}

.doc-card-watermark {
  position: absolute;
  left: -15px;
  top: -15px;
  width: 100px;
  height: 100px;
  background-image: url('/images/BVPTLogo.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.doc-wave-svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 28px;
  pointer-events: none;
}

.doc-card-body {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  margin-top: -26px;
}

.doc-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.doc-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 2px solid var(--bvpt-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.doc-icon-main {
  font-size: 1.8rem;
}

.doc-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.doc-cat-tag {
  font-family: var(--font-norse);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bvpt-teal-light);
}

.doc-update-tag {
  font-size: 0.68rem;
  color: var(--text-subtle);
}

.doc-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.doc-card-subtitle {
  font-size: 0.8rem;
  color: var(--bvpt-teal-light);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.doc-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.doc-sections-preview {
  background: #1c1c1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  margin-bottom: 1.25rem;
}

.preview-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}

.preview-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.preview-chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-card-footer {
  margin-top: auto;
}

.doc-card-footer-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.5rem;
  margin-top: auto;
}

.doc-card-footer-split .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.65rem;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.doc-btn-download {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.doc-pdf-size-pill {
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-left: 0.25rem;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   DOCUMENT VIEWER MODAL / READER
   ========================================================================== */

.doc-reader-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 95vw;
  max-width: 1100px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.25s ease-out;
}

.doc-reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
}

.doc-reader-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.doc-reader-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.doc-reader-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-reader-subtitle {
  font-size: 0.75rem;
  color: var(--bvpt-teal-light);
}

.doc-reader-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.doc-reader-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.doc-reader-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.doc-reader-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar Index */
.doc-reader-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: rgba(7, 10, 15, 0.7);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 0.85rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.doc-reader-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.doc-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.doc-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.doc-nav-item.active {
  background: rgba(120, 170, 180, 0.15);
  color: var(--bvpt-teal-pale);
  border-left: 3px solid var(--bvpt-teal);
  font-weight: 600;
}

.nav-idx {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bvpt-teal-light);
  min-width: 14px;
}

.sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-subtle);
  text-align: center;
}

/* Reader Content Area */
.doc-reader-content {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 3rem;
  position: relative;
  background: var(--bg-surface);
  line-height: 1.7;
  scroll-behavior: smooth;
}

.doc-watermark-bg {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 220px;
  height: 220px;
  background-image: url('/images/BVPTLogo.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.035;
  pointer-events: none;
}

.doc-content-header {
  margin-bottom: 1.75rem;
}

.doc-badge-pill {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bvpt-teal);
  color: #070e14;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.doc-main-heading {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.doc-main-lead {
  font-size: 1.05rem;
  color: var(--bvpt-teal-light);
  margin-bottom: 0.75rem;
}

.doc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.doc-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--border-teal) 0%, transparent 100%);
  margin: 1.5rem 0 2rem;
}

.doc-sections-stream {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.doc-article-section {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-article-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  border-left: 3px solid var(--bvpt-teal);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.section-article-body h4 {
  font-size: 1rem;
  color: var(--bvpt-teal-pale);
  margin: 1.25rem 0 0.5rem;
}

.section-article-body p {
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.section-article-body ul, .section-article-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-main);
}

.section-article-body li {
  margin-bottom: 0.4rem;
}

/* Callouts & Specific Rule Boxes */
.doc-callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.doc-callout-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.doc-callout-item strong {
  display: block;
  color: var(--bvpt-teal-light);
  margin-bottom: 0.35rem;
}

.doc-rule-box {
  background: rgba(10, 15, 23, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.doc-rule-box .rule-title {
  font-weight: 700;
  color: var(--bvpt-teal-light);
  margin-bottom: 0.4rem;
}

.doc-rule-box.alert-box {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
}

.doc-rule-box.alert-box .rule-title {
  color: var(--accent-red);
}

.hierarchy-tree {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1rem 0;
  max-width: 320px;
}

.hierarchy-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.hierarchy-level span {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 700;
}

.hierarchy-level.level-1 {
  border-color: var(--border-gold);
  background: rgba(229, 185, 76, 0.1);
  color: var(--bvpt-gold-light);
}

.hierarchy-arrow {
  text-align: center;
  color: var(--bvpt-teal-light);
  font-size: 0.9rem;
}

.four-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.pillar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(120, 170, 180, 0.08);
  border: 1px solid var(--border-teal);
}

.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}

.logo-preview-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(10, 15, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.doc-logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.color-palette-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.color-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.color-chip {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.color-meta {
  display: flex;
  flex-direction: column;
}

.color-meta code {
  font-size: 0.75rem;
  color: var(--bvpt-teal-light);
}

.color-meta small {
  font-size: 0.68rem;
  color: var(--text-subtle);
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.symbol-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.symbol-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.symbol-content strong {
  display: block;
  color: var(--bvpt-teal-light);
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
}

.symbol-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.scout-step-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(10, 15, 23, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bvpt-teal-light);
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.scout-step-card.highlight-step {
  border-color: var(--border-teal);
  background: rgba(120, 170, 180, 0.06);
}

.probation-requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.req-item {
  display: flex;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.req-check {
  color: var(--accent-green);
  font-weight: 900;
  font-size: 1.1rem;
}

.patch-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.patch-guide-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.patch-guide-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--bvpt-teal-light);
}

.patch-guide-card.mayhem-card {
  border-color: var(--border-gold);
  background: rgba(229, 185, 76, 0.08);
}

.patch-guide-card.mayhem-card .patch-guide-header {
  color: var(--bvpt-gold-light);
}

.doc-quote {
  border-left: 3px solid var(--bvpt-teal);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  background: rgba(120, 170, 180, 0.06);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--bvpt-teal-pale);
}

.doc-callout-warning {
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.85rem;
}

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

.footer-seal-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-seal-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .doc-reader-layout {
    flex-direction: column;
  }
  .doc-reader-sidebar {
    width: 100%;
    max-height: 180px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .doc-reader-content {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   ROLE-BASED PERMISSION & SELF-PROFILE STYLES
   ========================================================================== */

.badge-self-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-norse);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(197, 155, 39, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.member-card-self {
  border-color: var(--gold-primary) !important;
}

.badge-read-only {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(120, 170, 180, 0.12);
  color: var(--bvpt-teal-pale);
  border: 1px solid rgba(120, 170, 180, 0.3);
  margin-left: 0.75rem;
  vertical-align: middle;
}

.villain-permission-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #242424;
  border: 1px solid rgba(120, 170, 180, 0.35);
  border-left: 4px solid var(--bvpt-teal);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--bvpt-teal-pale);
}

.villain-permission-notice .notice-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.form-input-locked {
  background: rgba(15, 15, 15, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
  opacity: 0.75;
}

.badge-locked {
  font-family: var(--font-norse);
  font-size: 0.72rem;
  color: var(--gold-light);
  background: rgba(229, 185, 76, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  margin-left: 0.35rem;
  font-weight: 400;
}

.btn-dev-role {
  font-family: var(--font-norse);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-dev-role-villain {
  background: rgba(120, 170, 180, 0.15);
  color: var(--bvpt-teal-pale);
  border: 1px solid var(--bvpt-teal);
}

.btn-dev-role-villain:hover {
  background: rgba(120, 170, 180, 0.28);
  color: #fff;
}

.btn-dev-role-board {
  background: rgba(229, 185, 76, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.btn-dev-role-board:hover {
  background: rgba(229, 185, 76, 0.28);
  color: #fff;
}

/* ==========================================================================
   INTERACTIVE LOGO SHOWCASE (GRANDE PLANO & HOTSPOTS)
   ========================================================================== */

.bvpt-interactive-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #181818;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.bvpt-interactive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.toolbar-title {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.toolbar-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Tour Progress Bar */
.tour-progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: #202020;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-subtle);
}

.tour-progress-fill {
  height: 4px;
  background: var(--gold-primary);
  border-radius: var(--radius-full);
  width: 0%;
}

.tour-status-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

/* Stage Layout */
.bvpt-stage-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: stretch;
  flex: 1;
}

@media (max-width: 960px) {
  .bvpt-stage-layout {
    grid-template-columns: 1fr;
  }
}

/* Stage Container & 3D Tilt Card */
.bvpt-logo-stage-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #232730 0%, #13161c 70%, #0d0f14 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  min-height: 600px;
  height: 100%;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}

.bvpt-logo-3d-card {
  position: relative;
  width: min(580px, 72vh, 85vw);
  height: min(580px, 72vh, 85vw);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.12s cubic-bezier(0.1, 0.4, 0.2, 1);
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 0 3px rgba(197, 160, 89, 0.45);
}

.bvpt-logo-3d-card.theme-black {
  background: #000000;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.bvpt-logo-3d-card.theme-white {
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 0 3px rgba(197, 160, 89, 0.45);
}

.bvpt-logo-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  transition: background 0.1s ease;
}

.bvpt-logo-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.bvpt-logo-main-img.variant-black {
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.65));
}

/* SVG Overlay for Focus Ring */
.bvpt-logo-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.svg-focus-ring {
  fill: rgba(229, 185, 76, 0.08);
  stroke: var(--gold-primary);
  stroke-width: 0.8;
  stroke-dasharray: 2 1;
  animation: ringRotate 15s linear infinite;
  transform-origin: center;
}

@keyframes ringRotate {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 60; }
}

/* Hotspots Layer & Radar Beacons */
.bvpt-hotspots-layer {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  z-index: 10;
}

.bvpt-hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #141414;
  border: 2px solid var(--gold-primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 10px rgba(229, 185, 76, 0.25);
  user-select: none;
}

.bvpt-hotspot-pin:hover,
.bvpt-hotspot-pin.active {
  transform: translate(-50%, -50%) scale(1.28);
  background: var(--gold-primary);
  border-color: #ffffff;
  color: #111111;
  box-shadow: 0 0 20px rgba(229, 185, 76, 0.7), 0 6px 14px rgba(0, 0, 0, 0.7);
  z-index: 25;
}

.beacon-number {
  font-family: var(--font-cinzel, 'Cinzel', -apple-system, sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-light);
  pointer-events: none;
  transition: color 0.2s ease;
}

.bvpt-hotspot-pin:hover .beacon-number,
.bvpt-hotspot-pin.active .beacon-number {
  color: #111111;
  font-weight: 900;
}

.beacon-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  opacity: 0;
  pointer-events: none;
  animation: beaconWave 2.2s infinite;
}

@keyframes beaconWave {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* Floating Popup Card (Cursor Tracking) */
.bvpt-floating-popup {
  position: absolute;
  z-index: 50;
  width: min(320px, 90vw);
  background: rgba(22, 22, 22, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 185, 76, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  color: #eee;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 185, 76, 0.15);
  pointer-events: none;
  animation: popupFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: left 0.08s ease-out, top 0.08s ease-out;
}

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

.popup-notch {
  position: absolute;
  top: -6px;
  left: 18px;
  width: 10px;
  height: 10px;
  background: #161616;
  border-left: 1px solid rgba(229, 185, 76, 0.4);
  border-top: 1px solid rgba(229, 185, 76, 0.4);
  transform: rotate(45deg);
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.popup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #111;
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.popup-header-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.popup-category {
  font-family: var(--font-norse, sans-serif);
  font-size: 0.72rem;
  color: #78aab4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.popup-title {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0;
  line-height: 1.25;
}

.popup-subtitle {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.popup-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.45rem;
}

.popup-desc strong {
  color: #f0f0f0;
}

.popup-detail {
  font-size: 0.74rem;
  color: var(--text-subtle);
  line-height: 1.35;
  font-style: italic;
  margin-bottom: 0.4rem;
}

.popup-footer {
  font-size: 0.65rem;
  color: var(--text-subtle);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.35rem;
  display: flex;
  justify-content: flex-end;
}

/* Sidebar Elements Directory */
.bvpt-elements-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.sidebar-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: calc(90vh - 340px);
  min-height: 290px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  background: #202020;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-item:hover,
.sidebar-item.active {
  background: #272727;
  border-color: rgba(229, 185, 76, 0.4);
  transform: translateX(3px);
}

.sidebar-item.active {
  border-color: var(--gold-primary);
  background: rgba(229, 185, 76, 0.1);
}

.item-num {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 0.78rem;
  font-weight: 800;
  color: #111;
  background: var(--gold-primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.inspector-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #111;
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.item-title {
  font-size: 0.78rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inspector Card */
.inspector-card {
  background: #202020;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.inspector-card.has-element {
  border-color: rgba(229, 185, 76, 0.35);
  background: rgba(229, 185, 76, 0.05);
}

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

.inspector-badge {
  font-family: var(--font-norse, sans-serif);
  font-size: 0.72rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.inspector-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.inspector-close:hover {
  color: #fff;
}

.inspector-title {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.inspector-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

/* Modal Dialog Variant for Interactive Logo */
.modal-interactive-logo {
  max-width: 1440px !important;
  width: 96vw !important;
  max-height: 94vh !important;
  height: 94vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-interactive-logo .modal-body {
  padding: 1.25rem 1.5rem !important;
  max-height: none !important;
  flex: 1 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.interactive-logo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: radial-gradient(circle at left, rgba(229, 185, 76, 0.12) 0%, rgba(20, 20, 20, 0.8) 100%);
  border: 1px solid rgba(229, 185, 76, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.interactive-cta-text h4 {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 0.95rem;
  color: var(--gold-light);
  margin: 0 0 0.25rem 0;
}

.interactive-cta-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

