/* ================================
   APP LIVRO DO ANO
   ================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hidden,
body:not(.logged-in) .bottom-nav {
  display: none !important;
}

/* Visibility Utilities */
/* Visibility Utilities - Restored & Optimized */
.role-desbravador-only,
.role-lider-only {
  /* Por padrão, não impomos display, deixamos a lógica de body:not controlar */
}

body:not(.role-desbravador) .role-desbravador-only {
  display: none !important;
}

body:not(.role-lider) .role-lider-only {
  display: none !important;
}

:root {
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-light: #a78bfa;
  --purple-bg: rgba(124, 58, 237, 0.15);
  --orange: #f97316;
  --orange-bg: rgba(249, 115, 22, 0.15);
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.15);
  --red: #ef4444;
  --gold: #fbbf24;
  --gold-dark: #d97706;
  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.15);

  --bg: #0a0a1a;
  --bg2: #12122b;
  --bg3: #1a1a38;
  --surface: #1e1e3e;
  --surface-elevated: #2d2d52;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.13);

  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);

  --nav-h: 80px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 600px;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* Touch Feedback Universal */
button:active:not(.no-haptic),
.btn:active:not(.no-haptic),
.nav-item:active,
.club-card:active {
  transform: scale(0.96);
  transition: transform 0.1s cubic-bezier(0, 0, 0.2, 1);
}

/* ===== SPLASH ===== */
.splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1e1b4b 0%, #0a0a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  pointer-events: none;
}

.splash-logo {
  height: 140px;
  filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.4));
  animation: splashPulse 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

#splash-capa {
  height: 100%;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@keyframes splashPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.5));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 50px rgba(124, 58, 237, 0.8));
  }
}

.splash-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.splash-sub {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 48px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== CLUBE DO LIVRO ICON STACK ===== */
.cl-icon-stack {
  display: inline-flex;
  width: 32px;
  height: 32px;
  position: relative;
  margin-right: 12px;
  vertical-align: middle;
}

.cl-icon-stack::before,
.cl-icon-stack::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cl-icon-stack::before {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  /* Green */
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-12deg);
}

.cl-icon-stack::after {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  /* Blue */
  bottom: 0;
  right: 0;
  z-index: 3;
  transform: rotate(8deg);
}

/* Middle square */
.cl-icon-stack span {
  position: absolute;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ec4899, #be185d);
  /* Pink */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 5px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.action-label {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dashboard spacing adjustments */
.screen-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.splash-loader {
  width: 180px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.splash-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 2px;
  animation: splashLoad 1.8s ease forwards;
}

@keyframes splashLoad {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* ===== APP LAYOUT ===== */
#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

@media (min-width: 992px) {
  #app {
    flex-direction: row;
  }

  body {
    background: #020617;
    background-image: radial-gradient(circle at 10% 10%, #1e1b4b 0%, #020617 100%);
  }
}

.main {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ===== AUTH SCREENS (RESTORATION) ===== */
.auth-screen {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow-y: auto !important;
}

.auth-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.auth-brand {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1b4b;
  /* Fallback */
  overflow: hidden;
}

@media (max-width: 991px) {
  .auth-brand {
    display: none;
  }
}

.auth-brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.8) 0%, rgba(10, 10, 26, 0.9) 100%);
  z-index: 1;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/uploads/capas/1772041233549-903745.png');
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.65);
  transform: scale(1.05);
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  max-width: 500px;
}

.auth-brand-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-brand-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.auth-form-container {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
}

@media (max-width: 991px) {
  .auth-form-container {
    padding: 20px;
  }
}

.auth-form-wrapper {
  width: 100%;
  max-width: 420px;
  animation: authSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-top-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-icon-badge {
  display: inline-flex;
  width: 64px;
  height: 64px;
  background: var(--purple-bg);
  border-radius: 20px;
  font-size: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.2);
}

.auth-form .form-group {
  margin-bottom: 24px;
}

.auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s;
}

.auth-form input:focus {
  border-color: var(--purple);
  background: var(--surface-elevated);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  outline: none;
}

.auth-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
}

.auth-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-dim);
}

.auth-footer a {
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 700;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.main.hidden {
  display: none;
}

/* ===== SCREENS ===== */
.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: var(--bg);
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.screen-scroll {
  height: 100%;
  overflow-y: auto;
  /* Adjust padding-top for fixed mobile header (60px) and padding-bottom for nav */
  padding: 84px 20px calc(var(--nav-h) + 24px);
  scroll-behavior: smooth;
}

@media (min-width: 992px) {
  .screen-scroll {
    padding: 60px;
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  .screen-scroll.home-scroll {
    padding-top: 60px;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 992px) {
  .screen-scroll.home-scroll {
    padding: 0;
    max-width: none;
    margin: 0;
  }
}

.screen-scroll::-webkit-scrollbar {
  width: 0;
}

/* ===== SCREEN HEADER ===== */
.screen-top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.screen-title {
  font-size: 30px;
  font-weight: 950;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
}

.screen-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== DASHBOARD STATUS BAR (FIXED ON MOBILE) ===== */
.dashboard-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  /* Initial fallback */
  padding: env(safe-area-inset-top, 8px) 16px 8px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  min-height: 60px;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: transform 0.3s ease;
  /* Fix: Prevents black rectangle artifact on pinch-to-zoom in mobile browsers */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.modal-open .dashboard-status-bar {
  transform: translateY(-100%);
  pointer-events: none;
}

/* Force visibility and high z-index for Leaders ON MOBILE ONLY */
@media (max-width: 991px) {
  body.role-lider .dashboard-status-bar {
    display: flex;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    z-index: 1000 !important;
    /* Sidebar should be higher */
    background: #0a0a1a !important;
    /* Solid background */
    pointer-events: all !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
}

/* Specific for Mobile Redesign: Sidebar Navigation */
@media (max-width: 991px) {

  body.role-lider .dashboard-status-bar,
  body.role-desbravador .dashboard-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px !important;
    height: 60px;
  }
}

.status-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.status-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mobile-top-points {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.4s ease-out;
}

.mobile-top-points .pts-icon {
  font-size: 12px;
}

.btn-menu-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-emoji {
  font-size: 20px;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10001;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Sidebar Container */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100%;
  background: rgba(13, 13, 31, 0.98);
  backdrop-filter: blur(20px);
  z-index: 10002;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
  padding: 24px;
}

.mobile-sidebar .sidebar-content {
  flex: 1;
  overflow-y: auto;
  margin-right: -10px;
  padding-right: 10px;
}

.mobile-sidebar .sidebar-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.sidebar-open .mobile-sidebar {
  left: 0;
}

.mobile-sidebar .sidebar-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 24px !important;
}

.mobile-sidebar .user-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.welcome-text {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.user-name-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.user-name {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.btn-logout-link {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.btn-close-sidebar {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
}

/* Plan Card (Leader) */
.plan-status-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  align-self: flex-start;
}

.btn-sidebar-pro-cta {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* Club Card (Mobile Sidebar Premium) */
.sidebar-section-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin: 20px 0 12px 4px;
  text-transform: uppercase;
}

.club-card-premium {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.04));
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.club-card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.club-logo-container {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.club-card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.club-card-initials {
  font-size: 20px;
  font-weight: 900;
  color: var(--purple-light);
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.club-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1;
}

.club-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.club-card-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.club-card-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

/* Club Selector (Sidebar - Old) */
.sidebar-club-selector {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 24px;
}

/* Points Card (Pathfinder) */
.points-card-mobile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.points-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.star-icon {
  font-size: 24px;
}

.points-value {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
}

.points-label {
  font-size: 16px;
  color: #64748b;
  margin-top: 8px;
}

.btn-view-extrato-mobile {
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: 100%;
}

.status-center {
  display: flex;
  justify-content: center;
  flex: 1;
}

.btn-top-bar {
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-top-bar:hover {
  background: var(--purple-bg);
  border-color: var(--purple);
}

.btn-top-bar.logout {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--red);
}

.btn-top-bar.logout:hover {
  background: var(--red);
  color: #fff;
}

.logout-icon-only {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: var(--red) !important;
  border-radius: 12px;
  font-size: 18px;
  /* Slightly smaller icon to feel more centered */
  transition: all 0.2s ease;
  line-height: 1;
}

.logout-icon-only:active {
  transform: scale(0.9);
  background: var(--red) !important;
  color: #fff !important;
}

.btn-top-pro {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  /* Mixed case */
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-top-pro:active {
  transform: scale(0.95);
}

.btn-top-pro.btn-pro-manage {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

@media (min-width: 992px) {
  .dashboard-status-bar {
    display: none !important;
    /* Stats moved to sidebar on desktop */
  }
}

.status-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.club-selector-container {
  display: flex;
  align-items: center;
}

.club-selector-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.club-selector-trigger:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.1);
}

.club-selector-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.club-selector-name {
  font-size: 14px;
  font-weight: 700;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-selector-arrow {
  font-size: 12px;
  color: var(--text-dim);
}

.status-points {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-icon {
  margin-right: 4px;
}

.status-streak {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

/* ===== HOME HERO SLIDER (NETFLIX STYLE) ===== */
.home-hero-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  /* fallback */
  height: 60dvh;
  /* modern iOS: dynamic viewport height respects address bar */
  min-height: 380px;
  overflow: hidden;
  background: var(--bg);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ===== PULL TO REFRESH ===== */
.pull-refresh {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 900;
  pointer-events: none;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.pull-refresh.visible {
  opacity: 1;
  transform: translateY(0);
}

.pull-refresh.refreshing .pull-refresh-icon {
  animation: spin 1s linear infinite;
}

.pull-refresh-icon {
  font-size: 20px;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.pull-refresh-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 992px) {
  .pull-refresh {
    display: none;
  }
}

.slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  /* NOTE: do NOT add will-change:transform here ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â it promotes to a GPU compositing layer
     and causes stale hit-testing on mobile, making the hero button unclickable */
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  /* NOTE: removed translateZ(0) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â it creates unnecessary GPU compositing layers per slide
     and can cause hit-testing issues on mobile browsers for child interactive elements */
  overflow: hidden;
}

.hero-img-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Background image ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â must not intercept clicks */
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
  width: 24px;
  border-radius: 4px;
}

/* HERO SLIDER ARROWS */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.hero-arrow.prev {
  left: 30px;
}

@media (min-width: 992px) {
  .hero-arrow.prev {
    left: 310px;
    /* Account for 280px sidebar + 30px margin */
  }
}

.hero-arrow.next {
  right: 30px;
}

@media (max-width: 768px) {
  .hero-arrow {
    display: none;
    /* Mobile uses swipe */
  }

  .slider-dots {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
  }
}


/* HERO SLIDE STATES */
.hero-slide.locked {
  filter: grayscale(0.9) blur(6px);
  transform: scale(1.02);
  /* Slight scale to hide blurry edges */
}

.hero-slide.locked .hero-overlay {
  background: linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 26, 0.8) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Decorative only ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â must never block clicks on hero content */
  /* Safari fallback: use solid gradient instead of transparent to avoid WebKit rendering bugs */
  background: -webkit-linear-gradient(bottom, var(--bg) 0%, rgba(10, 10, 26, 0.4) 60%, rgba(10, 10, 26, 0.1) 100%);
  background: linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 26, 0.4) 60%, rgba(10, 10, 26, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-main-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  .hero-main-area {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
  }

  .hero-text-block {
    flex: 1;
  }

  .hero-action-block {
    flex: 0 0 250px;
  }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-tag#home-chapter-tag,
.hero-slide .card-tag {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.01em;
}

@media (min-width: 992px) {

  .card-tag#home-chapter-tag,
  .hero-slide .card-tag {
    font-size: 38px;
  }
}

.status-pill {
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-pill.locked {
  background: #334155;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.05);
}

.status-pill.concluido {
  background: #22c55e;
  border: none;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.hero-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 30px;
  max-width: 800px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 18px;
  }
}

.hero-progress-section {
  margin-top: 20px;
  margin-bottom: 20px;
  max-width: 500px;
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-hero-play {
  width: 100%;
  padding: 14px 28px;
  background: #ffffff;
  color: #000000;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-hero-play:hover {
  background: #f3f3f3;
  color: #000 !important;
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
  .btn-hero-play {
    padding: 16px 32px;
    font-size: 18px;
  }
}

.btn-icon-play {
  font-size: 20px;
  line-height: 1;
}



/* ===== DASHBOARD BODY ===== */
.dashboard-body {
  padding: 24px 20px;
  position: relative;
  z-index: 5;
  max-width: 1300px;
  margin: 0 auto;
}

.greeting-area {
  margin-bottom: 32px;
}

.greeting-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.greeting-title {
  font-size: 24px;
  font-weight: 800;
}

.streak-badge {
  background: linear-gradient(135deg, #ff6b35, #ff9500);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  animation: streakPulse 2s ease-in-out infinite;
}

@keyframes streakPulse {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  }

  50% {
    box-shadow: 0 4px 24px rgba(255, 107, 53, 0.7);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

/* Ranking Top 3 Home Card */
.card-ranking-top3 {
  background: var(--surface);
  border: 1px solid var(--border);
}

.ranking-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
}

.card-footer-link {
  text-align: right;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: 5px;
}

.card-footer-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}

.card-footer-link a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card:active {
  transform: scale(0.98);
}

.card-glass {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(30, 30, 56, 0.4) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .points-hero {
    grid-column: span 2;
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom:
    10px;
}

.card-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.daily-tag {
  color: var(--gold);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.card-badge-blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.card-badge-green {
  background: var(--green-bg);
  color: var(--green);
}

.card-badge-orange {
  background: var(--orange-bg);
  color: var(--orange);
}

/* ===== PROGRESS ===== */
.progress-track {
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ===== DAILY MISSION ===== */
.reward-chip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.daily-progress {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.daily-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.daily-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.daily-dot.done {
  background: var(--green);
  border-color: var(--green);
}

/* ===== QUICK GRID ===== */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.quick-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  transition: transform 0.15s, background 0.2s;
}

.quick-btn:active {
  transform: scale(0.95);
}

.quick-icon {
  font-size: 28px;
}

.quick-btn-mission {
  border-color: rgba(108, 99, 255, 0.3);
}

.quick-btn-rank {
  border-color: rgba(245, 158, 11, 0.3);
}

.quick-btn-flash {
  border-color: rgba(34, 197, 94, 0.3);
}

.quick-btn-leader {
  border-color: rgba(59, 130, 246, 0.3);
}

/* ===== BUTTONS ===== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 15px var(--purple-bg);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 25px var(--purple-bg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}


.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ===== CHAPTER STEPS ===== */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(108, 99, 255, 0.05));
  opacity: 0;
  transition: opacity 0.2s;
}

.step-card:hover::before {
  opacity: 1;
}

.step-card:active {
  transform: scale(0.98);
}

.step-card.done {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.step-card.active-step {
  border-color: rgba(108, 99, 255, 0.5);
  background: rgba(108, 99, 255, 0.08);
}

.step-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Trail Connector */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-bottom: 20px;
}

@media (min-width: 992px) {
  .steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px;
  bottom: -20px;
  width: 2px;
  height: 20px;
  background: repeating-linear-gradient(to bottom, var(--border) 0, var(--border) 4px, transparent 4px, transparent 8px);
  z-index: 1;
}

@media (min-width: 992px) {
  .step-card::after {
    display: none !important;
  }
}

.step-card.done:not(:last-child)::after {
  background: repeating-linear-gradient(to bottom, var(--green) 0, var(--green) 4px, transparent 4px, transparent 8px);
}

/* Content released but not yet uploaded / disponivel=0 */
.step-card.content-locked {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.05);
  cursor: pointer;
}

.step-pending-label {
  display: block;
  font-size: 11px;
  color: var(--orange, #f59e0b);
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* Inline toast below steps / Global */
.inline-toast {
  position: fixed;
  bottom: 120px;
  /* Higher to clearly clear bottom nav (90px + margin) */
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 18, 35, 0.85);
  /* Slightly darker for better contrast */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 16px;
  /* Modern rounded corners */
  padding: 16px 28px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 100001;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.inline-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input:not([type="checkbox"]),
.form-group select {
  width: 100%;
  padding: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
  /* Reset default arrow */
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: #1e1b4b;
  /* Deep Indigo for dark theme */
  color: #fff;
  padding: 10px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple-light);
  background: var(--surface2);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

/* Checkbox Alignment Fix */
.form-group-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  margin-bottom: 24px;
  cursor: pointer;
}

.form-group-checkbox input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
  accent-color: var(--purple);
}

.form-group-checkbox label {
  display: inline-block !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 0 !important;
  user-select: none;
}

/* Premium Link Style */
.terms-link {
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  position: relative;
}

.terms-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

.terms-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--purple-light), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.terms-link:hover::after {
  transform: scaleX(1);
}

/* Logo Upload UI */
.logo-upload-container {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.logo-preview-box {
  width: 60px;
  height: 60px;
  background: var(--bg3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.form-input-file {
  font-size: 13px;
  color: var(--text-muted);
}

.form-input-file::-webkit-file-upload-button {
  background: var(--purple);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Registration Stepper & Multi-step */
.registration-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
}

.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.step-indicator.active {
  background: var(--purple);
  border-color: var(--purple-light);
  color: #fff;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.step-indicator.completed {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  max-width: 50px;
}

.step-line.completed {
  background: var(--green);
}

.reg-step {
  display: none;
  animation: fadeInStep 0.4s ease forwards;
}

.reg-step.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  margin-bottom: 24px;
  border-left: 4px solid var(--purple);
  padding-left: 15px;
}

.step-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.step-header p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Optimizations for Inputs */
@media (max-width: 768px) {
  .registration-card {
    padding: 20px;
  }

  .form-group input,
  .form-group select {
    font-size: 16px;
    /* Prevents iOS zoom on focus */
    padding: 12px;
  }
}

.form-input-file::-webkit-file-upload-button:hover {
  background: var(--purple-dark);
}

/* Club Card Logo */
.club-card-logo,
.club-card-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.club-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-card-logo-placeholder {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  font-weight: 800;
  font-size: 18px;
}

.step-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.step-info {
  flex: 1;
}

.step-name {
  font-size: 15px;
  font-weight: 700;
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.step-status {
  font-size: 18px;
}

/* ===== PREMIUM CONTENT ===== */
.premium-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 16px;
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.premium-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.3), transparent);
}

.premium-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-card {
  border: 1px dashed rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.03);
}

.premium-badge {
  display: inline-block;
  font-size: 10px;
  background: var(--gold);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  margin-top: 6px;
}

.premium-icon-large {
  font-size: 64px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backface-visibility: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(0, 0, 0);
  isolation: isolate;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  position: relative;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

@media (max-width: 991px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    background: rgba(0, 0, 0, 0.8);
  }

  .modal {
    border-radius: 30px 30px 0 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 44px 24px 32px !important;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  }

  .modal::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
  }
}

.modal.modal-immersive {
  max-width: 1200px;
  width: 95vw;
  height: 90vh;
  height: 90dvh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  position: relative;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  /* Important for ellipsis */
}

.modal.modal-immersive .modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.modal-close,
.modal-btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.modal-close:hover,
.modal-btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.modal-close:hover {
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

.modal-body-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 60px 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-light) transparent;
}

.modal-body-scrollable::-webkit-scrollbar {
  width: 6px;
}

.modal-body-scrollable::-webkit-scrollbar-thumb {
  background-color: var(--purple-light);
  border-radius: 10px;
}

.summary-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
  text-align: justify;
  hyphens: auto;
}

.summary-content p {
  margin-bottom: 28px;
}

.summary-footer {
  margin-top: 20px;
  padding-bottom: 60px;
  text-align: center;
}

/* Responsive adjustments for immersive modal */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-start;
  }

  .modal.modal-immersive {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    border-radius: 0;
  }

  .modal-header {
    padding: max(32px, calc(16px + env(safe-area-inset-top, 0px))) 20px 16px;
  }

  .modal-body-scrollable {
    padding: 20px 24px;
    padding-bottom: max(40px, env(safe-area-inset-bottom, 20px));
  }

  .summary-content {
    font-size: 1.1rem;
    text-align: left;
  }
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

/* Fullscreen Modal Support */
.modal-fullscreen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

.modal-fullscreen.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mf-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  /* Fallback */
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding: 0 24px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.mf-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.mf-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s;
}

.mf-close:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.mf-download-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s;
}

.mf-download-btn:hover {
  background: var(--purple-bg);
  border-color: var(--purple);
  transform: scale(1.1);
}

.mf-body {
  position: absolute;
  top: calc(64px + env(safe-area-inset-top, 0px));
  bottom: 80px;
  /* Default footer height */
  left: 0;
  right: 0;
  background: #222;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
  .mf-body {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  }
}

.mf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.mf-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.mf-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 50;
}

@media (max-width: 991px) {
  .mf-footer {
    height: auto;
    min-height: 75px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
  }

  .mf-footer .btn {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mf-footer .btn-ghost {
    display: none;
  }
}

/* ===== QUIZ ===== */
.quiz-panel {
  margin-bottom: 14px;
}

.quiz-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

.quiz-question {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.quiz-option:hover {
  border-color: var(--purple);
  background: var(--purple-bg);
}

.quiz-option.correct {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green);
}

.quiz-option.wrong {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.quiz-feedback {
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-xs);
  margin-top: 12px;
  text-align: center;
  animation: fadeSlideUp 0.3s ease;
}

.quiz-feedback.correct {
  background: var(--green-bg);
  color: var(--green);
}

.quiz-feedback.wrong {
  background: rgba(239, 68, 68, 0.12);
  color: var(--red);
}

.quiz-next {
  margin-top: 12px;
}

/* ===== COMPLETION ===== */
.completion-panel {
  text-align: center;
}

.completion-emoji {
  font-size: 56px;
  margin-bottom: 10px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.completion-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.completion-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.completion-reward {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: 100px;
  margin-bottom: 20px;
  animation: rewardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rewardPop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== MISSIONS ===== */
@media (min-width: 992px) {
  #missions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
  }
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 2px 12px rgba(108, 99, 255, 0.4);
}

#missions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 992px) {
  #missions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.mission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: transform 0.2s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-card:active {
  transform: scale(0.99);
}

.mission-card.completed {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), var(--surface));
}

.mission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-chapter-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.difficulty-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diff-facil {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.diff-media {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.diff-dificil {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.mission-description {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.mission-how-to {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--purple-light);
}

.mission-metadata-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta-item {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item b {
  color: var(--text);
}

.mission-actions {
  margin-top: 4px;
}

.btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.missions-pts-chip {
  background: var(--purple-bg);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--purple-light);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
}

/* ===== RANKING ===== */
.rank-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.rank-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  padding: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.rank-tab.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 2px 10px rgba(108, 99, 255, 0.4);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-list.hidden {
  display: none;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color 0.2s;
}

.rank-item.my-unit {
  border-color: rgba(108, 99, 255, 0.5);
  background: var(--purple-bg);
}

.rank-num {
  font-size: 18px;
  font-weight: 900;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.rank-num.gold {
  color: var(--gold);
}

.rank-num.silver {
  color: #94a3b8;
}

.rank-num.bronze {
  color: #cd7f32;
}

.rank-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
}

.rank-name {
  font-size: 14px;
  font-weight: 700;
}

.rank-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.rank-pts {
  font-size: 16px;
  font-weight: 800;
  color: var(--purple-light);
}

/* ===== LÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚ÂDER ===== */
/* ===== NAVIGATION (SIDE & BOTTOM) ===== */

.bottom-nav {
  display: flex;
  height: 90px;
  background: rgba(18, 18, 43, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding-bottom: env(safe-area-inset-bottom, 20px);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
  .bottom-nav {
    width: 280px;
    height: 100vh;
    flex-direction: column;
    border-top: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 20px;
    order: -1;
    background: linear-gradient(180deg, rgba(17, 17, 26, 1) 0%, rgba(10, 10, 20, 0.98) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 15px 0 50px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    gap: 32px;
  }
}

.sidebar-header {
  display: none;
}

@media (min-width: 992px) {
  .sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-welcome {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-user-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.sidebar-logout {
  font-size: 12px;
  color: var(--text-muted);
  text-underline-offset: 4px;
  transition: all 0.2s;
}

.sidebar-logout:hover {
  color: var(--error);
}

.sidebar-plan-container {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Premium Plan Badge */
.plan-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.plan-badge.free {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.2);
}

.plan-badge.pro {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

.btn-pro-action {
  background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-pro-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
  filter: brightness(1.1);
}

.sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.sidebar-stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Navigation Items Premium Refinement */
.nav-menu {
  display: flex;
  width: 100%;
}

@media (min-width: 992px) {
  .nav-menu {
    flex-direction: column;
    flex: 1;
    margin-top: 10px;
  }
}

/* Helpers */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: flex;
}

.mobile-lider-nav {
  display: none !important;
}

@media (max-width: 991px) {
  .mobile-only {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }

  body.role-lider .mobile-lider-nav {
    display: flex !important;
  }
}

/* Grouped Navigation */
.nav-sidebar-section {
  display: none;
}

@media (min-width: 992px) {
  .nav-sidebar-section {
    display: block;
    margin-top: 24px;
    margin-bottom: 8px;
  }
}

.nav-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 20px;
}

@media (min-width: 992px) {
  .nav-sub-item {
    margin-left: 20px !important;
    border-radius: 12px 0 0 12px !important;
    width: calc(100% - 20px) !important;
  }
}

/* Mobile Submenu Bottom Sheet */
.my-club-submenu-container {
  display: flex;
  /* Desktop: column via nav-menu */
  flex-direction: column;
}

@media (max-width: 991px) {
  .my-club-submenu-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px 24px 0 0;
    padding: 20px 16px 40px;
    z-index: 5000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  }

  .my-club-submenu-container.active {
    transform: translateY(0);
  }

  .mobile-submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 8px;
  }

  .mobile-submenu-header h4 {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-dim);
  }

  .btn-close-submenu {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .my-club-submenu-container .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 20px;
    gap: 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    margin-bottom: 8px;
  }
}

/* ===== CLUB DROPDOWN PREMIUM ===== */
.club-dropdown {
  position: fixed;
  /* Header Context */
  top: 80px;
  left: 20px;
  right: 20px;
  background: rgba(30, 30, 62, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  overflow: hidden;
  animation: dropdownPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 992px) {
  .club-dropdown {
    position: absolute;
    width: 320px;
    top: 60px;
    left: 0;
    right: auto;
  }
}

@keyframes dropdownPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.club-dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.club-dropdown-header h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.btn-close-dropdown {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.club-selector-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
}

.club-selector-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.club-selector-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.club-selector-item.active {
  background: var(--purple-bg);
}

.club-dropdown-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.btn-add-club-full,
.btn-invite-full {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-club-full {
  background: var(--purple);
  color: white;
}

.btn-invite-full {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  color: var(--purple-light);
  margin-top: 8px;
}

.btn-add-club-full:hover,
.btn-invite-full:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Base Nav Item - Shared properties */
.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
  gap: 12px;
  position: relative;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 11px;
}

/* Mobile Navbar Context */
@media (max-width: 991px) {
  .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    font-size: 10px;
  }

  .nav-item.active {
    color: var(--purple-light);
  }

  .nav-item.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%) scale(1);
    width: 48px;
    height: 32px;
    background: var(--purple-bg);
    border-radius: 16px;
    z-index: -1;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* Desktop Sidebar Context */
@media (min-width: 992px) {
  .nav-item {
    flex-direction: row;
    padding: 16px 20px;
    margin-bottom: 8px;
    gap: 16px;
    font-size: 14px;
    border-radius: 16px;
  }

  .nav-label {
    font-size: 14px !important;
    font-weight: 800;
  }

  .nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
  }

  .nav-item.active {
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple-light);
    border-color: rgba(124, 58, 237, 0.2);
  }
}

.nav-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 22px);
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border: 1.5px solid var(--bg);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@media (min-width: 992px) {
  .nav-badge {
    position: absolute;
    top: 8px;
    right: 20px;
    margin-left: 0;
  }
}

.nav-badge.hidden {
  display: none;
}

.nav-label {
  font-size: 10px;
}

/* ===== MODALS ===== */


.modal {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from {
    transform: scale(0.9) opacity(0);
  }

  to {
    transform: scale(1) opacity(1);
  }
}

.modal-paywall {
  border-radius: var(--radius);
  margin: 16px;
}

.modal-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paywall-list {
  text-align: left;
  list-style: none;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paywall-list li {
  font-size: 14px;
  font-weight: 600;
}

/* ===== FLASHCARDS ===== */
.modal-flash {
  border-radius: var(--radius);
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.flash-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.flash-close {
  background: var(--surface2);
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font);
}

.flashcard {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
  margin-bottom: 20px;
}

.flashcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flashcard-inner.flipped {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  backface-visibility: hidden;
}

.flashcard-front {
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
}

.flashcard-back {
  background: linear-gradient(135deg, var(--purple-bg), var(--surface2));
  border: 1px solid rgba(108, 99, 255, 0.3);
  transform: rotateY(180deg);
}

.flash-hint {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

#flash-q,
#flash-a {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.flash-tap {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
}

.flash-actions {
  display: flex;
  gap: 10px;
}

.flash-actions .btn {
  flex: 1;
}

.flash-progress-track {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}

.flash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ===== PTS FLOAT ANIMATION ===== */
.pts-float {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  padding: 10px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.5);
  z-index: 2000;
  pointer-events: none;
  animation: floatUp 1.4s ease forwards;
}

.pts-float.hidden {
  display: none;
}

@keyframes floatUp {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(-80px);
    opacity: 0;
  }
}

/* ===== CONFETTI ===== */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3000;
}

/* ===== UTILITY ===== */
.hidden {
  display: none !important;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CHAPTER MONTH BADGE ===== */
.chapter-month {
  background: var(--purple-bg);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ===== STEP CONTENT PANELS ===== */
.step-content-panel {
  animation: fadeSlideUp 0.3s ease;
  border-color: rgba(108, 99, 255, 0.25);
}

.scp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  justify-content: flex-start;
}

.scp-header strong {
  flex: 1;
}

.scp-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.scp-close {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  transition: background 0.2s;
}

.scp-close:hover {
  background: var(--bg3);
  color: var(--text);
}

/* Podcast audio player */
.scp-audio {
  width: 100%;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  background: var(--bg3);
  accent-color: var(--purple);
  filter: invert(0);
}

.scp-audio::-webkit-media-controls-panel {
  background: var(--surface2);
  border-radius: var(--radius-xs);
}

/* PDF iframe (HQ / Slides) */
.scp-pdf {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
  background: var(--bg3);
}

/* Download / open link */
.scp-download {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px;
}

/* Resumo formatted text */
.scp-resumo {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  background: var(--bg3);
  border-radius: var(--radius-xs);
  padding: 14px;
  margin-bottom: 4px;
}

.scp-resumo p {
  margin-bottom: 10px;
}

.scp-resumo b,
.scp-resumo strong {
  color: var(--text);
}

.scp-resumo ul,
.scp-resumo ol {
  padding-left: 20px;
  margin-bottom: 10px;
}

.scp-resumo li {
  margin-bottom: 4px;
}

.scp-resumo h2,
.scp-resumo h3 {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 8px;
}

.scp-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
  line-height: 1.5;
}

/* ===== MANAGEMENT UI (LEADER SCREEN) ===== */
.mgmt-container {
  padding: 20px 0;
}

.mgmt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mgmt-title {
  font-size: 20px;
  font-weight: 800;
}

.mgmt-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.mgmt-tab-link {
  padding: 12px 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  position: relative;
  font-family: var(--font);
  font-size: 14px;
  white-space: nowrap;
}

.mgmt-tab-link.active {
  color: var(--purple);
}

.mgmt-tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple);
}

.mgmt-tab-pane {
  display: none;
}

.mgmt-tab-pane.active {
  display: block;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.2s;
}

.item-row:active {
  transform: scale(0.98);
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-name {
  font-weight: 700;
  font-size: 15px;
}

.item-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.item-pts {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid rgba(251, 191, 36, 0.2);
  flex-shrink: 0;
}

.pf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-chevron {
  font-size: 18px;
  color: var(--text-dim);
  opacity: 0.5;
  margin-left: 4px;
}

.ranking-filter-select {
  background: var(--bg3);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text);
  padding: 8px 12px;
  padding-right: 32px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.2s;
  outline: none;
}

.ranking-filter-select:hover {
  border-color: var(--purple-light);
  background-color: var(--surface);
}

.ranking-filter-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-bg);
}

/* Management Modals */
.modal-mgmt-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  margin: 16px;
  animation: scaleIn 0.3s ease;
}

.modal-mgmt-lg {
  max-width: 800px;
}

.modal-mgmt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-mgmt-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.required {
  color: var(--red);
  font-size: 13px;
}

/* Quiz Immersive Styles */
/* Quiz Immersive Styles - Premium Timer */
.quiz-timer-box {
  background: rgba(245, 158, 11, 0.1);
  /* Unified Orange */
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  /* Pill Shape */
  font-weight: 800;
  color: var(--orange);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.05);
}

.quiz-timer-box.warning {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fff;
  animation: pulseTimerPremium 1.2s infinite ease-in-out;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

@keyframes pulseTimerPremium {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.05);
    filter: brightness(1.2);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.timer-icon {
  font-size: 14px;
}

@keyframes pulseTimer {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.quiz-intro-card {
  max-width: 600px;
  margin: 10px auto !important;
  text-align: center;
  padding: 10px;
  animation: fadeIn 0.4s ease;
}

.quiz-warning-box {
  background: rgba(249, 115, 22, 0.05);
  border-left: 4px solid var(--orange);
  padding: 24px;
  border-radius: 12px;
  margin: 20px 0;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.quiz-warning-title {
  color: var(--orange);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-warning-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 10px;
}

.quiz-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quiz-question-text {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.4;
  text-align: center;
}

.quiz-options-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

.quiz-option-btn {
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  padding: 18px 24px;
  border-radius: 16px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.quiz-option-btn .opt-label {
  background: rgba(255, 255, 255, 0.1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

.quiz-option-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quiz-option-btn.correct {
  background: var(--green-bg) !important;
  border-color: var(--green) !important;
  color: var(--green) !important;
}

.quiz-option-btn.wrong {
  background: var(--red-bg) !important;
  border-color: var(--red) !important;
  color: var(--red) !important;
}

.quiz-option-btn:disabled {
  opacity: 0.8;
  cursor: default;
}

.quiz-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-top: 50px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--purple);
  width: 0;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#quiz-next-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.quiz-results-container {
  padding-top: 10px;
}

/* ============================================
   CHAPTER HEADER ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â 16:9 THUMBNAIL + NUMBERING
   ============================================ */
.chapter-header-thumb {
  width: 160px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.chapter-header-content {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.chapter-header-text {
  display: flex;
  flex-direction: column;
}

.chapter-number-label {
  display: inline-block;
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  width: fit-content;
}

/* ============================================
   CHAPTER LAYOUT GRID (Desktop side-by-side)
   ============================================ */
.chapter-layout-grid {
  display: grid;
  gap: 40px;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .chapter-layout-grid {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
}

/* ============================================
   TRAIL VERTICAL LAYOUT
   ============================================ */
.steps-trail-container {
  padding-left: 20px;
  position: relative;
  margin-top: 16px;
}

/* Vertical connecting line */
.steps-trail-container::before {
  content: '';
  position: absolute;
  left: 42px;
  top: 22px;
  bottom: 22px;
  width: 4px;
  background: linear-gradient(to bottom, var(--purple-bg), transparent);
  opacity: 0.4;
  border-radius: 2px;
  z-index: 0;
}

/* Chapter Selector UI */
.chapter-selector-header {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

#chapter-select-wrapper {
  min-width: 220px;
}

.chapter-select {
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.chapter-select:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--purple-light);
}

.chapter-select:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.chapter-select option {
  background-color: #1a1a1a;
  color: white;
  padding: 10px;
}

/* Locked Trail Visuals */
.steps-trail-container {
  position: relative;
  transition: all 0.4s ease;
}

.steps-trail-container.locked-trail {
  position: relative;
  min-height: 200px;
  pointer-events: none;
}

.locked-overlay {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: rgba(15, 15, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.5s ease;
  /* Fixed: only enable pointer events when screen is active.
     Previously this was 'all' by default, overriding parent screen's 'none'
     and blocking hits to the underlying Home screen on mobile. */
  pointer-events: none;
}

.screen.active .locked-overlay {
  pointer-events: all;
}

.locked-content {
  text-align: center;
  padding: 30px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.locked-icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(124, 58, 237, 0.2);
  border: 2px solid rgba(124, 58, 237, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 8px;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
  animation: pulseLock 2s infinite ease-in-out;
}

@keyframes pulseLock {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.locked-content h3 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.locked-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.steps-trail-container.locked-trail .trail-step {
  opacity: 0.15 !important;
  filter: blur(3px) grayscale(1);
  pointer-events: none;
}

.trail-step {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s, filter 0.3s;
}

/* LOCKED states ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â visually distinct */
.trail-step.locked,
.trail-step.content-locked {
  opacity: 0.4;
  filter: grayscale(0.9);
}

.trail-step.locked .trail-card,
.trail-step.content-locked .trail-card {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.01);
  cursor: not-allowed;
}

.trail-step.locked .trail-card:hover,
.trail-step.content-locked .trail-card:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.01);
}

/* Step number badge */
.trail-number {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 3px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 15px;
  position: relative;
  z-index: 2;
}

.trail-step.active-step .trail-number {
  background: var(--purple);
  border-color: rgba(124, 58, 237, 0.5);
  color: white;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.trail-step.done .trail-number {
  background: var(--green);
  border-color: var(--green-bg);
  color: white;
}

/* Step card */
.trail-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.trail-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.trail-step.active-step .trail-card {
  border-color: var(--purple);
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.07);
}

.trail-step.done .trail-card {
  border-color: var(--green-bg);
  background: rgba(34, 197, 94, 0.04);
}

/* ============================================
   PREMIUM SECTION ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â Diamond icons
   ============================================ */
.premium-card .step-status {
  color: var(--purple-light);
  font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.5));
}

/* ===== SIDEBAR BOOK (DESKTOP) ===== */
.sidebar-book-container {
  padding: 16px 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  display: none;
  /* hidden on mobile */
}

@media (min-width: 992px) {
  .sidebar-book-container {
    display: block;
  }
}

.sidebar-book-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-book-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.sidebar-book-thumb {
  width: 70px;
  height: 98px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
}

.sidebar-book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-book-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.sidebar-book-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--purple-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-book-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== BOOK DETAIL MODAL ===== */
.book-detail-hero {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px 0;
  margin-bottom: 30px;
}

@media (min-width: 600px) {
  .book-detail-hero {
    flex-direction: row;
    align-items: flex-start;
  }
}

.book-detail-capa {
  width: 180px;
  aspect-ratio: 2/3;
  background: var(--bg2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .book-detail-capa {
    margin: 0;
    width: 220px;
  }
}

.book-detail-capa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-detail-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

@media (min-width: 600px) {
  .book-detail-main {
    text-align: left;
    padding-top: 10px;
  }
}

.book-detail-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.book-detail-author {
  font-size: 16px;
  color: var(--text-muted);
}

.book-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}

@media (min-width: 600px) {
  .book-detail-meta {
    justify-content: flex-start;
  }
}

.meta-item {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  color: var(--text-muted);
}

.book-detail-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.book-detail-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.btn-buy {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.4);
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(124, 58, 237, 0.6);
}

/* ===== EXTRATO STYLES ===== */
.status-link {
  font-size: 11px;
  color: var(--purple-light);
  text-decoration: underline;
  margin-left: 8px;
  font-weight: 600;
  opacity: 0.8;
}

.status-link-logout {
  color: var(--red);
  opacity: 0.85;
}

.status-link-logout:hover {
  opacity: 1;
}

.sidebar-link-sm {
  font-size: 11px;
  color: var(--purple-light);
  text-decoration: underline;
  margin-top: -6px;
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
  opacity: 0.8;
}

.extrato-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
  padding-top: 10px;
}

/* ===== EXTRATO MODAL ===== */
.modal.modal-extrato {
  max-width: 560px;
  width: 95vw;
  height: 85vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal.modal-extrato .modal-body-scrollable {
  padding: 24px 20px;
  flex: 1;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .modal.modal-extrato {
    width: 100vw;
    height: 100dvh;
    /* Dynamic Viewport Height for Safari */
    max-width: 100vw;
    border-radius: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .modal.modal-extrato .modal-header {
    padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 16px;
    margin-top: calc(-1 * env(safe-area-inset-top, 0px));
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
  }
}

.extrato-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.extrato-total-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.extrato-total-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.extrato-total-pts {
  font-size: 26px;
  font-weight: 900;
  color: var(--purple-light);
  letter-spacing: -0.02em;
}

.extrato-group-header {
  text-align: center;
  margin: 20px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.extrato-chapter-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--purple-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.15);
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.extrato-chapter-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.extrato-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.extrato-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extrato-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.extrato-item-label {
  font-size: 15px;
  font-weight: 700;
}

.extrato-item-pts {
  font-size: 16px;
  font-weight: 900;
  color: var(--green);
}

.extrato-item-footer {
  display: flex;
  justify-content: flex-end;
}

.extrato-item-date {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

/* ===== CLUB SELECTOR (LEADER) ===== */
.club-selector-container {
  position: relative;
  z-index: 200;
}

.club-selector-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.club-selector-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--purple-light);
}

.club-selector-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg3);
}

.club-initials-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--purple-main), #9d4edd);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.club-selector-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-selector-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.club-selector-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: dropdownIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 210;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.club-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.club-option:hover {
  background: rgba(124, 58, 237, 0.2);
}

.club-option.active {
  background: var(--purple-bg);
  border-left: 3px solid var(--purple);
}

.club-option-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.club-option-info {
  display: flex;
  flex-direction: column;
}

.club-option-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.status-stats-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Add Club Button below Selector */
.btn-add-club-selector {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px dashed var(--purple-light);
  color: var(--purple-light);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-add-club-selector:hover {
  background: rgba(124, 58, 237, 0.2);
  transform: translateY(-1px);
}

.invite-link-selector {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.invite-link-selector:hover {
  color: var(--purple-light);
  text-decoration: underline;
}

body:not(.role-lider) .invite-link-selector {
  display: none !important;
}

body.role-lider #nav-home,
body.role-lider #nav-chapter,
body.role-lider #sidebar-book-container {
  display: none !important;
}

body:not(.role-lider) .btn-add-club-selector {
  display: none !important;
}

/* Books Horizontal Scroll */
.books-horizontal-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 4px 20px 4px;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.books-horizontal-container::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari/Webkit */
}

.book-item-card {
  flex: 0 0 110px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.book-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-light);
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.2);
}

.book-item-card.active {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--purple-light);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.book-item-card.active::after {
  content: '\2713';
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--purple-main);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

.book-item-capa {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: var(--bg-secondary);
}

.book-item-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Nav Separator */
.nav-separator {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  margin: 0 8px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .nav-separator {
    display: none;
    /* Hide on mobile bottom nav if it gets too crowded */
  }
}

/* Sidebar Specific Separator */
.sidebar-nav-separator {
  height: 1px;
  width: 100%;
  background: var(--border-color);
  margin: 16px 0;
  opacity: 0.3;
}

/* Role-based Visibility Control */
body.role-lider #pathfinder-stats-header,
body.role-lider #sidebar-stats-header {
  display: none !important;
}

body.role-lider #leader-club-selector-container,
body.role-lider #leader-club-selector-sidebar {
  display: block !important;
}

/* Navigation & Sidebar Role Toggling */
body:not(.role-lider) #nav-leader,
body:not(.role-lider) .quick-btn-leader {
  display: none !important;
}

body.role-lider #nav-leader,
body.role-lider .quick-btn-leader {
  display: flex !important;
}

/* Default state for selectors (hidden) */
#leader-club-selector-container,
#leader-club-selector-sidebar {
  display: none;
}


/* ===== CONFIG GRID ===== */
.mgmt-configs-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 20px;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .config-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== PARAM CARDS ===== */
.param-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.param-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.param-card-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.param-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px 0;
}

.param-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.param-save-btn {
  width: 100%;
  margin-top: auto;
  /* keep button pinned to bottom of card */
  padding-top: 4px;
}

.quiz-time-select {
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Params grid: 2-column grid on desktop, single column on mobile */
.params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  /* equal-height cards */
}

.params-grid .param-card {
  min-width: 0;
  margin-bottom: 0;
}

/* Full-width card spanning both columns (e.g. Tempo do Quiz) */
.param-card--full {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .params-grid {
    grid-template-columns: 1fr;
  }

  .param-card--full {
    grid-column: 1;
  }
}

/* ===== LEADER MISSIONS DASHBOARD ===== */

/* Stats bar */
.lm-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.lm-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lm-stat-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.lm-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lm-stat--pendente .lm-stat-value {
  color: var(--gold);
}

.lm-stat--cumprida .lm-stat-value {
  color: var(--green);
}

.lm-stat--expirada .lm-stat-value {
  color: var(--red);
}

/* Filters */
.lm-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.lm-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.lm-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.lm-filter-select {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: border-color 0.2s;
}

.lm-filter-select:focus {
  outline: none;
  border-color: var(--purple-light);
}

/* Mission list */
.lm-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mission card */
.lm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.lm-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.lm-card--overdue {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, var(--surface) 60%);
}

.lm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lm-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lm-cap-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg3);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Status badges */
.lm-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.lm-badge--pendente {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
}

.lm-badge--cumprida {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.lm-badge--expirada {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.lm-badge--cancelada {
  background: rgba(107, 114, 128, 0.12);
  color: var(--text-muted);
}

.lm-overdue-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.lm-card-mission {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lm-card-pathfinder {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.lm-pf-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.lm-unit-tag {
  font-size: 11px;
  color: var(--purple-light);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

.lm-card-dates {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.lm-card-dates b {
  color: var(--text);
  font-weight: 700;
}

.lm-date-overdue {
  color: var(--red) !important;
}

.lm-card-obs {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .lm-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ATRIBUIR MISSÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â¢ES ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â BATCH MODAL ===== */

/* Wider modal for the 3-section form */
.am-modal-content {
  max-width: 560px;
}

/* Sections */
.am-section {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.am-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.am-section-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.am-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

/* Alvo row */
.am-alvo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.am-section select.form-input,
.am-alvo-row .form-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  color: var(--text);
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s;
}

.am-section select.form-input:focus,
.am-alvo-row .form-input:focus {
  outline: none;
  border-color: var(--purple-light);
}

.am-count-badge {
  display: flex;
  align-items: baseline;
  gap: 4px;
  background: var(--purple-bg);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.am-count-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--purple-light);
  line-height: 1;
}

.am-count-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Sub-select groups that appear below the alvo selector */
.am-sub-group {
  margin-top: 12px;
  animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Difficulty grid */
.am-difficulty-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.am-difficulty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
}

.am-diff-info {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 80px;
  flex-shrink: 0;
}

.am-diff-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.am-diff-dot--facil {
  background: var(--green);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.am-diff-dot--medio {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.5);
}

.am-diff-dot--dificil {
  background: var(--red);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.am-diff-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Compact qty select */
.am-qty-select {
  width: 72px;
  background: var(--bg2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  color: var(--text);
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.am-qty-select:focus {
  outline: none;
  border-color: var(--purple-light);
}

.am-qty-hint {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
}

/* Date validation error */
.am-date-error {
  font-size: 12px;
  color: var(--red);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  margin-top: 8px;
}

/* ===== LEADER MISSION ASSIGNMENT CARDS ===== */

.lm-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  background: var(--surface2);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
}

.lm-attr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.lm-attr-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.lm-attr-value {
  font-weight: 700;
  color: var(--text);
}

.lm-attr-value--highlight {
  color: var(--purple-light);
  font-size: 15px;
}

.lm-attr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Difficulty chips inside the assignment card */
.am-diff-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
}

.am-diff-chip--facil {
  background: var(--green-bg, rgba(34, 197, 94, 0.12));
  color: var(--green, #22c55e);
}

.am-diff-chip--medio {
  background: var(--orange-bg, rgba(249, 115, 22, 0.12));
  color: var(--orange, #f97316);
}

.am-diff-chip--dificil {
  background: rgba(239, 68, 68, 0.12);
  color: var(--red, #ef4444);
}

/* Action buttons row at the bottom of each card */
.lm-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Alvo / target sub-line below chapter tag */
.lm-card-sub-target {
  font-size: 13px;
  margin: 4px 0 8px;
  color: var(--text-muted);
}

.lm-card-sub-target b {
  color: var(--text);
}


/* Button size variant */
.btn-sm {
  width: auto;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
}

/* Success & Danger button variants */
.btn-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s, transform 0.15s;
}

.btn-success:hover {
  opacity: 0.9;
}

.btn-success:active {
  transform: scale(0.97);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s, transform 0.15s;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-danger:active {
  transform: scale(0.97);
}

/* Modal ConfirmaÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â£o Customizada */
.modal-confirm-content {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-confirm-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.modal-confirm-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.modal-confirm-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 25px;
}

.modal-confirm-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-confirm-footer .btn {
  flex: 1;
}

/* ===== PODIUM CELEBRATION ===== */
#podium-celebration {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#podium-celebration.active {
  pointer-events: all;
}

.podium-confetti-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall 3.5s ease-in forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

.podium-banner {
  position: relative;
  z-index: 10000;
  background: linear-gradient(135deg, #1a1040, #2d1b69);
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.3), 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: bannerPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  max-width: 320px;
  cursor: pointer;
}

@keyframes bannerPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.podium-banner-trophy {
  font-size: 64px;
  animation: trophyBounce 0.8s ease-in-out infinite alternate;
  display: block;
  margin-bottom: 10px;
}

@keyframes trophyBounce {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-10px) rotate(5deg);
  }
}

.podium-banner-title {
  font-size: 22px;
  font-weight: 900;
  color: gold;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  margin: 8px 0 4px;
  letter-spacing: -0.3px;
}

.podium-banner-position {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin: 8px 0;
}

.podium-banner-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.podium-banner-close {
  margin-top: 20px;
  background: rgba(255, 215, 0, 0.15);
  color: gold;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 30px;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.podium-banner-close:hover {
  background: rgba(255, 215, 0, 0.3);
}

.podium-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===== QUIZ SYSTEM ===== */
.quiz-intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.quiz-intro-icon {
  font-size: 72px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.3));
}

.quiz-intro-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.quiz-intro-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 30px;
}

.quiz-warning-box {
  width: 100%;
  max-width: 500px;
  background: rgba(249, 115, 22, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  padding: 24px;
  text-align: left;
  margin-bottom: 24px;
}

.quiz-warning-title {
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 800;
  color: var(--orange);
  display: block;
}

.quiz-warning-text {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.quiz-warning-footer {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

/* Quiz Questions */
.quiz-question-container {
  max-width: 800px;
  margin: 0 auto;
}

.quiz-question-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.quiz-question-text {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
  text-align: center;
}

.quiz-options-grid {
  display: grid;
  gap: 12px;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-option-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--purple-light);
}

.quiz-option-btn.correct {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: var(--green) !important;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: var(--red) !important;
}

.opt-label {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.quiz-action-area {
  margin-top: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-feedback {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.quiz-feedback.correct {
  background: rgba(34, 197, 94, 0.08);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.quiz-feedback.wrong {
  background: rgba(239, 68, 68, 0.08);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.quiz-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}

/* Intro Specifics */
.quiz-intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

.quiz-intro-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 15px var(--purple-bg));
}

.quiz-warning-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.quiz-warning-title {
  display: block;
  font-weight: 900;
  color: var(--orange);
  font-size: 17px;
  margin-bottom: 12px;
}

.quiz-warning-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 12px;
}

.quiz-warning-footer {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  box-shadow: 0 0 10px var(--purple-bg);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Premium Overrides Refined */
@media (max-width: 600px) {
  #quiz-modal .modal-immersive {
    height: 100dvh;
    width: 100vw;
    border-radius: 0;
  }

  /* Reduce top padding to lift content */
  #quiz-modal .modal-body-scrollable {
    padding: 10px 20px 0 !important;
  }

  .quiz-question-container {
    padding: 0;
    height: auto;
    min-height: 100%;
  }

  .quiz-question-header {
    margin-bottom: 12px;
  }

  .quiz-question-text {
    font-size: 16px;
    margin-bottom: 18px;
    line-height: 1.4;
  }

  .quiz-options-grid {
    gap: 8px;
    margin-bottom: 20px;
  }

  .quiz-option-btn {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    gap: 10px;
  }

  .opt-label {
    width: 24px;
    height: 24px;
    font-size: 11px;
    border-radius: 6px;
  }

  .quiz-action-area {
    background: var(--surface);
    margin: 0 -20px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    position: sticky;
    bottom: 0;
  }

  .quiz-feedback {
    min-height: 48px;
    font-size: 13px;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
  }

  .quiz-next-btn {
    width: 100% !important;
    max-width: none !important;
    padding: 16px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
  }

  .quiz-intro-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .quiz-warning-box {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .quiz-warning-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .quiz-warning-text,
  .quiz-warning-footer {
    font-size: 13px;
  }
}

/* ===== RANKING CONFIG SCREEN ===== */
.ranking-config-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.ranking-config-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.ranking-config-section-icon {
  font-size: 20px;
}

.ranking-config-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.ranking-config-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.ranking-config-option:last-child {
  border-bottom: none;
}

.ranking-config-option-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.ranking-config-option-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.ranking-config-option-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.ranking-config-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
  outline: none;
  min-width: 120px;
  transition: border-color 0.2s;
}

.ranking-config-select:focus {
  border-color: var(--purple);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: background 0.25s, border-color 0.25s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--purple);
  border-color: var(--purple);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(22px) translateY(-50%);
  background: #fff;
}

/* ===== RANKING CONFIGURATION ===== */
.ranking-config-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.ranking-config-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.ranking-config-section-icon {
  font-size: 24px;
}

.ranking-config-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.ranking-config-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

.ranking-config-option:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ranking-config-option-info {
  flex: 1;
}

.ranking-config-option-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.ranking-config-option-desc {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.ranking-config-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  min-width: 100px;
}

/* ==========================================================================
   PREMIUM PAYWALL REDESIGN
   ========================================================================== */

#paywall-modal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(10, 10, 20, 0.85);
  z-index: 9999;
}

.modal-premium-paywall {
  position: relative;
  max-width: 500px;
  width: 90%;
  background: linear-gradient(135deg, #1e1e2d 0%, #11111a 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(124, 58, 237, 0.15);
}

.paywall-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.paywall-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  font-size: 14px;
}

.paywall-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
}

.paywall-content {
  position: relative;
  padding: 40px 32px;
  z-index: 1;
  text-align: center;
}

.paywall-icon-box {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--purple) 0%, #a78bfa 100%);
  border-radius: 20px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.paywall-icon {
  font-size: 32px;
}

.paywall-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.paywall-subtitle {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 32px;
  padding: 0 10px;
}

.paywall-section-label {
  background: rgba(124, 58, 237, 0.1);
  color: #c4b5fd;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.paywall-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 32px 0 !important;
  text-align: left;
}

.paywall-features li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.sidebar-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 4px;
}

.btn-sidebar-extrato {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple-light);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-sidebar-extrato:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

.feat-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feat-text b {
  display: block;
  color: #f1f5f9;
  font-size: 15px;
  margin-bottom: 4px;
  font-weight: 600;
}

.feat-text p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.paywall-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-paywall-cta {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%);
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-paywall-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(124, 58, 237, 0.5);
  filter: brightness(1.1);
}

.btn-paywall-secondary {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  transition: all 0.2s;
}

.btn-paywall-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.paywall-footer {
  font-size: 12px;
  color: #475569;
  margin-top: 20px;
}

/* ==========================================================
   FINAL SEARCH BAR REFINEMENT (BULLETPROOF)
   ========================================================== */

.pf-search-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  background: var(--surface-elevated) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
  margin: 12px 0 20px !important;
}

.pf-search-wrapper:focus-within {
  border-color: var(--purple) !important;
  background: var(--bg3) !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1) !important;
}

.pf-search-icon {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 16px !important;
  opacity: 0.6 !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.pf-modern-search-input {
  all: unset !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  padding: 0 16px 0 48px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  cursor: text !important;
}

.pf-modern-search-input::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.5 !important;
}

/* Global Mobile Fixes */
@media (max-width: 991px) {
  .pf-search-bar-container {
    padding: 0 16px !important;
  }
}

/* ===== RANKING PROMOTION MODAL ===== */
.modal-ranking-promotion {
  max-width: 400px;
  width: 90%;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 24px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 58, 237, 0.2);
  animation: modalScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.promotion-header {
  margin-bottom: 25px;
}

.promotion-icon {
  font-size: 50px;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.5));
  animation: bounce 2s infinite;
}

.promotion-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 5px;
}

.promotion-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

.promotion-ranking-container {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 10px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.promotion-rank-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  height: 50px;
}

.promotion-rank-item.user-item {
  background: var(--purple-bg);
  border-color: var(--purple-light);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
  z-index: 10;
}

.promotion-rank-num {
  font-weight: 800;
  font-size: 14px;
  width: 30px;
  color: var(--text-muted);
}

.promotion-rank-name {
  flex: 1;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promotion-rank-pts {
  font-weight: 800;
  font-size: 13px;
  color: var(--purple-light);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.modal-ranking-promotion .modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 20;
}

/* --- OPTIMIZATION: SKELETONS & FADE-IN --- */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.hero-img-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img.loaded {
  opacity: 1;
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
  border-radius: 4px;
}

.hero-slide.is-loading .hero-content {
  opacity: 0.5;
  filter: blur(4px);
  transition: all 0.5s ease;
}

/* --- UI: SPINNERS & FEEDBACK --- */
.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== PREMIUM ONBOARDING ===== */
.onboarding-container {
  width: 100%;
  max-width: 500px;
  background: rgba(30, 30, 62, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: onboardingFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100;
  font-size: 14px;
}

.onboarding-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
}


@keyframes onboardingFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.onboarding-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.onboarding-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  width: 25%;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onboarding-step {
  display: none;
  animation: stepSlideIn 0.4s ease-out forwards;
}

.onboarding-step.active {
  display: block;
}

@keyframes stepSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.onboarding-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--purple-bg);
  color: var(--purple-light);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.onboarding-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
}

.onboarding-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.onboarding-logo-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.onboarding-logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 3px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-dim);
  overflow: hidden;
}

.onboarding-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-onboarding-upload {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-onboarding-upload:hover {
  background: rgba(255, 255, 255, 0.1);
}

.onboarding-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  transition: all 0.2s;
}

.onboarding-input:focus {
  border-color: var(--purple-light);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.onboarding-unit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  min-height: 40px;
}

.onboarding-unit-tag {
  background: var(--surface-elevated);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
}

.btn-remove-unit {
  background: transparent;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 16px;
}

.onboarding-add-unit-row {
  display: flex;
  gap: 10px;
}

.onboarding-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 12px;
  padding: 0 10px;
}

.btn-onboarding-add {
  width: 48px;
  height: 48px;
  background: var(--purple);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.onboarding-scoring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.score-input-item label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.onboarding-input-sm {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.onboarding-success-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.onboarding-share-card {
  background: rgba(124, 58, 237, 0.08);
  border: 1px dashed var(--purple-light);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

.share-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--purple-light);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.share-url-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 13px;
  color: #fff;
  margin-bottom: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-onboarding-copy {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-onboarding-next,
.btn-onboarding-finish {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 16px;
}

.onboarding-footer {
  margin-top: 40px;
  display: flex;
  gap: 12px;
}

/* TOP BAR PRO CTA & BADGE (Leader Only) */
.btn-top-pro-cta {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff !important;
  border: none;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  animation: fadeIn 0.4s ease-out;
}

.top-pro-badge {
  background: rgba(124, 58, 237, 0.2);
  color: #a78bfa !important;
  border: 1px solid rgba(124, 58, 237, 0.4);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  animation: fadeIn 0.4s ease-out;
}

/* ============================================================
   ANO BÃƒÆ’Ã‚ÂBLICO E MISSÃƒÆ’Ã¢â‚¬Â¢ES ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â HEADER GRID
   ============================================================ */

.home-top-cards {
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .home-top-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .home-top-cards>.card {
    margin-bottom: 20px;
  }

  .home-top-cards>.card:only-child {
    grid-column: span 2;
  }
}

/* ============================================================
   ANO BÃƒÆ’Ã‚ÂBLICO ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â CARD (Home Screen)
   ============================================================ */

.card-ano-biblico {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative glow */
.card-ano-biblico::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--blue-bg) 0%, transparent 70%);
  pointer-events: none;
}

.card-ano-biblico-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-ano-biblico-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.card-ano-biblico-date {
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.card-ano-biblico-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Reference row: ÃƒÂ°Ã…Â¸Ã¢â‚¬Å“Ã¢â‚¬â€œ ÃƒÆ’Ã…Â xodo 24 */
.ano-biblico-refs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ano-biblico-bible-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.ano-biblico-ref-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

/* Pontos info */
.ano-biblico-pts-info {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* "Estudado" status */
.ano-biblico-status-done {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

/* Empty state */
.ano-biblico-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 0;
}

/* CTA Button ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â "Estudar Agora" */
.btn-estudar-agora {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-estudar-agora:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-estudar-agora:active {
  transform: scale(0.97);
}

/* ============================================================
   ANO BÃƒÆ’Ã‚ÂBLICO ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â MODAL
   ============================================================ */

#modal-ano-biblico {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9900;
  display: flex;
  align-items: flex-end;
  /* Bottom sheet on mobile */
  justify-content: center;
  padding: 0;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

#modal-ano-biblico.active {
  opacity: 1;
  pointer-events: all;
}

/* On desktop: center the modal like a dialog */
@media (min-width: 600px) {
  #modal-ano-biblico {
    align-items: center;
    padding: 20px;
  }
}

.modal-ano-biblico {
  background: #0f1629;
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(40px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal-ano-biblico.active .modal-ano-biblico {
  transform: translateY(0);
}

@media (min-width: 600px) {
  .modal-ano-biblico {
    border-radius: 24px;
    max-height: 88vh;
    transform: translateY(20px) scale(0.97);
  }

  #modal-ano-biblico.active .modal-ano-biblico {
    transform: translateY(0) scale(1);
  }
}

/* Drag handle */
.modal-ano-biblico::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .modal-ano-biblico::before {
    display: none;
  }
}

/* Header */
.modal-ano-biblico-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  flex-shrink: 0;
}

.modal-ano-biblico-date {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.modal-ano-biblico-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-ano-biblico-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Title */
.modal-ano-biblico-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  padding: 4px 20px 12px;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

/* Tabs (shown only with multiple chapters) */
.ano-biblico-tabs {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.ano-biblico-tabs::-webkit-scrollbar {
  display: none;
}

.ano-biblico-tab {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ano-biblico-tab.active {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  border-color: rgba(79, 195, 247, 0.3);
  color: #e1f5fe;
  box-shadow: 0 4px 14px rgba(13, 71, 161, 0.5);
}

/* Verse text area */
.ano-biblico-text-area {
  flex: 1;
  overflow-y: auto;
  padding: 4px 20px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  -webkit-user-select: text;
  user-select: text;
}

.ano-biblico-text-area::-webkit-scrollbar {
  width: 4px;
}

.ano-biblico-text-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

/* Chapter reference heading inside text area */
.ano-biblico-content-ref {
  font-size: 16px;
  font-weight: 800;
  color: #4fc3f7;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

/* Individual verse paragraph */
.ano-biblico-verso {
  font-size: 15px;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ano-biblico-verso:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Verse number */
.ano-biblico-num {
  color: #4fc3f7;
  font-size: 11px;
  font-weight: 900;
  margin-right: 6px;
  vertical-align: super;
  opacity: 0.8;
}

/* "No text" placeholder */
.ano-biblico-no-text {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
  font-size: 14px;
}

/* Modal footer with "Concluir Leitura" */
.modal-ano-biblico-footer {
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 22, 41, 0.9);
}

/* "Concluir Leitura" button */
.btn-concluir-leitura {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s;
}

.btn-concluir-leitura:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.55);
}

.btn-concluir-leitura:active {
  transform: scale(0.97);
}

.btn-concluir-leitura:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Ano Bíblico Quiz Variant */
.modal.modal-ano-biblico-variant {
  border: 1px solid var(--purple-light) !important;
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.2);
}

.modal.modal-ano-biblico-variant .modal-header {
  background: linear-gradient(to right, var(--purple-dark), var(--bg2));
  border-bottom: 1px solid var(--purple-bg);
}

.modal.modal-ano-biblico-variant .modal-title {
  color: var(--purple-light) !important;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

/* ===== LEADER PREMIUM BIBLE CARD ===== */
.premium-bible-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
}

.btn-date-nav {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-date-nav:hover,
.btn-date-nav:active {
  background: var(--purple-bg);
  color: var(--purple-light);
  transform: scale(1.05);
}

.premium-bible-card {
  flex: 1;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(10, 10, 26, 0.95) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.premium-bible-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple-light);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pbc-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
}

.pbc-content {
  flex: 1;
}

.pbc-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.pbc-refs {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-light);
  opacity: 0.9;
}

.btn-pbc-read {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.premium-bible-card:hover .btn-pbc-read {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Custom Date Picker Wrapper */
.date-picker-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 160px;
}

.date-picker-icon {
  position: absolute;
  right: 14px;
  pointer-events: none;
  font-size: 16px;
  z-index: 1;
}

.premium-date-input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 14px;
  padding: 12px 40px 12px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.premium-date-input:focus,
.premium-date-input:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--purple-light);
}

.premium-date-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

@media (max-width: 600px) {
  .premium-bible-nav {
    gap: 8px;
  }

  .premium-bible-card {
    padding: 16px;
    gap: 12px;
  }

  .pbc-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 12px;
  }

  .pbc-title {
    font-size: 16px;
  }

  .btn-date-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .btn-pbc-read {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ===== PATHFINDER INDIVIDUAL DASHBOARD ===== */

.pfd-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pfd-back-btn {
  align-self: flex-start;
  padding: 8px 0;
  opacity: 0.7;
}

.pfd-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pfd-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 2px solid rgba(124, 58, 237, 0.4);
}

.pfd-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.pfd-unit {
  font-size: 13px;
  color: var(--purple-light);
  font-weight: 600;
  margin: 0;
  background: var(--purple-bg);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
}

/* Stats Grid */
.pfd-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.pfd-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: border-color 0.2s;
}

.pfd-stat-card:hover {
  border-color: var(--border-light);
}

.pfd-stat--points {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06) 0%, var(--surface) 60%);
}

.pfd-stat-icon {
  font-size: 20px;
}

.pfd-stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.pfd-stat--points .pfd-stat-value {
  color: var(--gold);
}

.pfd-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Section Headers */
.pfd-section-header {
  margin-bottom: 16px;
}

.pfd-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}

.pfd-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Chapter Cards */
.pfd-chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.pfd-chapter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}

.pfd-chapter-card:hover {
  border-color: var(--border-light);
}

.pfd-chapter-card--locked {
  opacity: 0.45;
  background: var(--bg2);
  border-style: dashed;
}

.pfd-chapter-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pfd-chapter-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.pfd-chapter-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.pfd-status--concluido {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.pfd-status--em_andamento {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
}

.pfd-status--nao_iniciado {
  background: rgba(107, 114, 128, 0.12);
  color: var(--text-muted);
}

.pfd-status--bloqueado {
  background: rgba(107, 114, 128, 0.08);
  color: var(--text-dim);
}

/* Bible Heatmap */
.pfd-bible-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pfd-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hm-cell {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.hm-none  { background: var(--bg3); border: 1px solid var(--border); }
.hm-studied { background: var(--purple); opacity: 0.85; }
.hm-full  { background: var(--gold); }

.pfd-heatmap-wrap {
  overflow-x: auto;
  padding-top: 24px;
  padding-bottom: 8px;
}

.pfd-heatmap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: fit-content;
}

.heatmap-week-labels {
  display: flex;
  gap: 4px;
  padding-left: 32px;
  margin-bottom: 2px;
}

.heatmap-month-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 14px;
  text-align: center;
}

.heatmap-row {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.heatmap-row:hover {
  z-index: 10;
}

.heatmap-day-label {
  font-size: 10px;
  color: var(--text-dim);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.heatmap-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  cursor: default;
  position: relative;
  transition: transform 0.1s;
}

.heatmap-cell:hover {
  z-index: 100;
}

.heatmap-cell:active {
  transform: scale(0.9);
}

.heatmap-cell[data-tip] {
  cursor: default;
}

/* Tooltip global do heatmap — sempre no topo da página */
#hm-global-tip {
  position: fixed;
  background: var(--surface-elevated, #1e293b);
  border: 1px solid var(--border-light, rgba(255,255,255,0.15));
  color: var(--text, #f1f5f9);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 7px;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.1s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

#hm-global-tip.hm-tip-visible {
  opacity: 1;
}

@media (max-width: 600px) {
  .pfd-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pfd-chapters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pfd-name {
    font-size: 18px;
  }
}