/* Core Design System & Global Variables — Piano Black Premium */
:root {
  /* Piano Black ultra-dark backgrounds */
  --bg-primary: #050507;
  --bg-secondary: #090910;
  --bg-card: rgba(12, 12, 18, 0.92);
  --bg-card-hover: rgba(18, 18, 26, 0.98);
  --border-color: rgba(212, 175, 55, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Gold accent */
  --accent-gold: #D4AF37;
  --accent-gold-hover: #FFE07D;
  --accent-gold-glow: rgba(212, 175, 55, 0.20);
  
  --accent-purple: hsl(265, 85%, 63%);
  --accent-purple-hover: hsl(265, 90%, 68%);
  --accent-purple-glow: hsla(265, 85%, 63%, 0.25);
  
  --accent-cyan: hsl(185, 85%, 48%);
  --accent-cyan-hover: hsl(185, 95%, 55%);
  --accent-cyan-glow: hsla(185, 85%, 48%, 0.2);
  
  --color-success: hsl(145, 75%, 45%);
  --color-success-bg: hsla(145, 75%, 45%, 0.15);
  --color-warning: hsl(40, 95%, 55%);
  --color-warning-bg: hsla(40, 95%, 55%, 0.15);
  --color-danger: hsl(355, 85%, 55%);
  --color-danger-bg: hsla(355, 85%, 55%, 0.15);
  
  --text-primary: hsl(0, 0%, 96%);
  --text-secondary: hsl(220, 14%, 72%);
  --text-muted: hsl(220, 10%, 54%);
  
  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --sidebar-width: 260px;
  --header-height: 80px;
  --card-radius: 16px;
  --button-radius: 10px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-premium: 0 12px 40px -10px rgba(0, 0, 0, 0.5);
  --glass-effect: backdrop-filter: blur(16px) saturate(130%);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* App Container Layout */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar-backdrop {
  display: none;
}

/* Sidebar Styling (Black Piano Premium) */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #010101 0%, #060608 50%, #0a0a0f 100%);
  border-right: 1px solid rgba(212, 175, 55, 0.22); /* Elegant gold sidebar separation line */
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.08), 8px 0 30px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  position: fixed;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s ease;
}

.logo-area {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1rem;
}
.logo-area::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 10%;
  height: 80%;
  width: 4px;
  background: linear-gradient(180deg, transparent, #D4AF37, #FFE07D, transparent);
  box-shadow: 0 0 15px rgba(212,175,55,0.8);
  border-radius: 4px;
}

.logo-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.6s;
  transform: perspective(600px) rotateY(-15deg);
  filter: drop-shadow(10px 10px 15px rgba(0,0,0,0.8)) drop-shadow(0 0 5px rgba(212,175,55,0.3));
}
.logo-img:hover {
  transform: perspective(600px) rotateY(0deg) scale(1.1);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.9)) drop-shadow(0 0 25px rgba(212,175,55,1));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFF0B3 0%, #D4AF37 50%, #aa8410 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}
.logo-text span {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFE07D 50%, #DFBA6B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Logged-in User Profile Card (Sidebar) */
.user-profile-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.sidebar-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #D4AF37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}
.sidebar-avatar:hover {
  transform: scale(1.07);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.55);
}
.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.sidebar-user-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.user-badge {
  font-size: 0.65rem;
  padding: 0.12rem 0.45rem;
  background: var(--accent-purple-glow);
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  width: fit-content;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--button-radius);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}
.nav-item i {
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.nav-item.active {
  background: linear-gradient(90deg, var(--accent-purple-glow), transparent);
  border-left: 3px solid var(--accent-purple);
  color: #fff;
  font-weight: 600;
}
.nav-item.active i {
  color: var(--accent-purple);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.sidebar-footer p {
  font-weight: 600;
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Top Header Bar */
.top-header {
  height: var(--header-height);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 11, 16, 0.5);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 99;
}
.top-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}
.header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.sidebar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  flex-shrink: 0;
}
.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}
.text-secondary {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.font-sm {
  font-size: 0.8rem;
}
.date-display {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

/* View Viewport */
.view-viewport {
  padding: 3rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.tab-view {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}
.tab-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.35);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-danger {
  background: var(--color-danger);
  color: #fff;
}
.btn-danger:hover {
  background: hsl(355, 90%, 60%);
}
.btn-xs {
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 6px;
}
.btn-warning {
  background: #f59e0b;
  color: #111;
  font-weight: 600;
}
.btn-warning:hover {
  background: #d97706;
}
.btn-doar-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-doar-preset:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.btn-doar-preset.active {
  background: var(--accent-purple);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
}
.btn-doar-preset .preset-amount {
  font-size: 1rem;
  font-weight: 700;
}
.btn-doar-preset .preset-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}
.btn-doar-preset:hover .preset-tag {
  color: var(--accent-gold);
}
.btn-doar-preset.active .preset-tag {
  color: var(--accent-cyan);
}
.donor-capsule {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.campanha-progress-fill {
  background: linear-gradient(90deg, #D4AF37, #FFE07D, #D4AF37);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  animation: shimmerBar 3s linear infinite;
}
@keyframes shimmerBar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.btn-outline {
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--text-muted);
}
.btn-xs {
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 6px;
}
.btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Cards Design */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ================= DASHBOARD VIEW ELEMENTS ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.stat-icon.purple {
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
}
.stat-icon.blue {
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
}
.stat-icon.green {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.stat-info h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.stat-info p {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Dashboard Highlight (Próximo Evento) */
.dashboard-highlight {
  margin-bottom: 2rem;
}
.highlight-card {
  border-left: 4px solid var(--accent-purple);
  background: linear-gradient(135deg, hsla(265, 80%, 12%, 0.3) 0%, var(--bg-card) 60%);
}
.highlight-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.badge-accent {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(to right, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.highlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 1024px) {
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .view-viewport {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .app-container {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 320px);
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    transform: translateX(-102%);
    z-index: 220;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
    backdrop-filter: blur(0px);
    z-index: 210;
  }

  .app-container.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(2px);
  }

  .app-container.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 14px 0 40px rgba(0, 0, 0, 0.6);
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .main-content {
    margin-left: 0;
    height: auto;
    overflow: visible;
  }

  .top-header {
    height: auto;
    padding: 0.85rem 1rem;
    gap: 0.85rem;
    align-items: flex-start;
  }

  .header-info {
    gap: 0.65rem;
    flex-wrap: wrap;
  }

  .top-header h1 {
    font-size: 1.2rem;
    line-height: 1.1;
  }

  #page-subtitle {
    display: none;
  }

  .date-display {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 14px;
  }

  .auth-screen-overlay {
    padding: 0;
    overflow-y: auto;
  }
  
  .auth-split-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    background-position: center top;
  }

  .auth-left-brand {
    padding: 3rem 1.5rem;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(3, 3, 5, 0.95) 0%, rgba(3, 3, 5, 0.75) 100%);
  }

  .brand-line {
    margin: 0 auto 1.5rem auto;
  }

  .brand-main-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .brand-subtitle {
    font-size: 0.9rem;
  }

  .auth-right-forms {
    padding: 1.5rem 1rem;
    align-items: flex-start;
  }

  .auth-card {
    max-width: 100%;
    padding: 1.5rem 1.25rem;
    margin: 0;
    border-radius: 18px;
    max-height: none;
  }

  .auth-logo-section {
    margin-bottom: 1.25rem;
  }

  .auth-logo-img {
    width: 56px;
    height: 56px;
  }

  .auth-logo-section h2 {
    font-size: 1.2rem;
  }

  .auth-form {
    gap: 1rem;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .email-input-group {
    flex-direction: column;
  }

  .email-suffix {
    border-left: 1px solid var(--border-color);
    border-top: none;
    border-top-right-radius: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 0.65rem 1rem;
    justify-content: center;
  }

  .auth-submit-btn {
    padding: 0.8rem;
  }

  .section-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .search-filter-group {
    max-width: none;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .stats-grid,
  .events-grid,
  .cifras-list-grid,
  .members-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1rem;
  }

  .stat-card {
    padding: 1rem 1.1rem;
    gap: 1rem;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .highlight-header {
    gap: 0.65rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .highlight-card,
  .event-card,
  .cifra-card,
  .member-card {
    border-radius: 14px;
  }

  .event-card-header {
    margin-bottom: 0.75rem;
  }

  .event-card-body h3,
  .cifra-card-top h3,
  .member-card h3 {
    font-size: 1.05rem;
  }

  .member-card {
    padding: 1.25rem 1rem;
  }

  .member-avatar-lg {
    width: 68px;
    height: 68px;
  }

  .member-contacts,
  .event-meta-block,
  .highlight-meta-list,
  .quick-presence-actions {
    gap: 0.6rem;
  }

  .quick-presence-box {
    padding: 0.85rem;
  }

  .section-actions-bar h2,
  .section-actions-bar .search-filter-group {
    width: 100%;
  }

  body.sidebar-open {
    overflow: hidden;
    touch-action: none;
  }

  .top-header {
    padding: 0 1.25rem;
  }

  .header-info {
    gap: 0.75rem;
  }

  .top-header h1 {
    font-size: 1.35rem;
  }

  .view-viewport {
    padding: 1.25rem;
    overflow: visible;
  }
}
.event-title-highlight {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.highlight-meta-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.meta-item i {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-top: 0.15rem;
}
.time-arrival {
  color: var(--color-warning);
  font-weight: 600;
}
.color-palette-preview {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.quick-presence-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  padding: 1rem;
  border-radius: 12px;
}
.quick-presence-box h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.quick-presence-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.presence-status-banner {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.presence-status-banner.confirmed {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}
.presence-status-banner.declined {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}
.presence-status-banner.pending {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

/* Integrantes Escalados List */
.scale-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.scale-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}
.scale-member-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.scale-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}
.scale-member-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}
.scale-member-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.status-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.status-indicator.confirmed {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.status-indicator.declined {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  cursor: help;
}
.status-indicator.pending {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

/* Músicas do Dia List */
.songs-list-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.song-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.song-link-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-purple);
  transform: translateX(3px);
}
.song-link-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}
.song-link-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.song-link-key {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  border-radius: 4px;
}

/* ================= ESCALAS VIEW CARDS ================= */
.section-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}
.event-card {
  border-top: 4px solid var(--accent-cyan);
}
.event-card.card-ensaio {
  border-top-color: var(--accent-purple);
}
.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.event-type-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
}
.card-ensaio .event-type-tag {
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
}
.event-date-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.event-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.event-meta-block {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.event-meta-block i {
  color: var(--text-muted);
  width: 16px;
}
.event-scale-preview {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.event-scale-preview h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.scale-members-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.scale-member-badge {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ================= CIFRAS VIEW CARDS ================= */
.search-filter-group {
  display: flex;
  gap: 1rem;
  flex: 1;
  max-width: 600px;
}
.search-input-wrapper {
  position: relative;
  flex: 1;
}
.search-input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--button-radius);
  outline: none;
  transition: var(--transition-smooth);
}
.search-input-wrapper input:focus {
  border-color: var(--accent-purple);
  background: var(--bg-card-hover);
}
.filter-dropdown {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--button-radius);
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.filter-dropdown:focus {
  border-color: var(--accent-purple);
}

.cifras-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.cifra-card {
  cursor: pointer;
}
.cifra-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.song-tags-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.song-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
}
.cifra-card-key {
  background: linear-gradient(135deg, var(--accent-purple-glow), var(--accent-cyan-glow));
  border: 1px solid var(--accent-purple);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}

/* ================= GALERIA MASONRY ================= */
.gallery-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}
@media (max-width: 768px) {
  .gallery-masonry {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .gallery-masonry {
    column-count: 1;
  }
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-caption {
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Lightbox */
.lightbox-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox-backdrop.active {
  display: flex;
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  font-size: 3rem;
  cursor: pointer;
  color: #fff;
  opacity: 0.6;
  transition: var(--transition-smooth);
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.lightbox-content p {
  color: var(--text-primary);
  font-size: 1.1rem;
  text-align: center;
}

/* ================= INTEGRANTES VIEW CARDS ================= */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
.member-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
  box-shadow: 0 4px 15px var(--accent-purple-glow);
  margin-bottom: 1rem;
}
.member-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.member-instrument-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}
.member-contacts {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.member-contacts i {
  width: 14px;
}
.member-attendance-panel {
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
}
.member-attendance-bar {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.member-attendance-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-purple), var(--accent-cyan));
  border-radius: 3px;
}
.member-absence-reasons-list {
  font-size: 0.7rem;
  color: var(--color-danger);
  margin-top: 0.5rem;
  text-align: left;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem;
  max-height: 80px;
  overflow-y: auto;
}
.member-absence-reasons-list h5 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* ================= MODAIS BACKDROP & DIALOG ================= */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.25s ease;
}
.modal-backdrop.active {
  display: flex;
}
.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
}
.modal-card-lg {
  max-width: 800px;
}
.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-close-modal {
  font-size: 1.75rem;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition-smooth);
}
.btn-close-modal:hover {
  opacity: 1;
}
.modal-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  outline: none;
  transition: var(--transition-smooth);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.05);
}
.form-group select option {
  background: #1e1e24;
  color: var(--text-primary);
}

/* Estilo premium específico para o seletor de tipo de evento */
#event-type {
  background-color: #0a0a0f !important;
  color: #f5f5f5 !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
#event-type option {
  background-color: #0a0a0f;
  color: #f5f5f5;
}
#event-type:focus {
  border-color: #D4AF37 !important;
  background-color: #111118 !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35) !important;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 1rem;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.songs-checkboxes-container {
  max-height: 120px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.songs-checkboxes-container label {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.songs-checkboxes-container input {
  cursor: pointer;
}

.scale-selector-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  max-height: 160px;
  overflow-y: auto;
  background: rgba(0,0,0,0.2);
}
.scale-selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}
.scale-selector-row:last-child {
  border: none;
  padding: 0;
}
.scale-selector-row label {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.scale-selector-row select {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/* ================= INTERACTIVE CIFRA VIEWER OVERLAY ================= */
.cifra-viewer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}
.cifra-viewer-overlay.active {
  display: flex;
}
.cifra-viewer-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.cifra-viewer-header {
  padding: 1.5rem 3rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.song-meta-view h2 {
  font-size: 1.8rem;
  margin-top: 0.25rem;
}
.cifra-viewer-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.control-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.transposer-buttons, .autoscroll-buttons, .font-buttons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
#current-key-display {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 0.5rem;
  color: var(--accent-cyan);
  font-family: var(--font-display);
}
/* Área de Upload de Foto */
.photo-upload-area {
  border: 2px dashed var(--accent-purple);
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  background: rgba(124, 58, 237, 0.05);
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}
.photo-upload-area:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: #a855f7;
}
.photo-upload-area p { color: var(--text-primary); margin: 0; }

.cifra-viewer-body {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 3rem;
  scroll-behavior: smooth;
  text-align: left;
  background: var(--bg-dark);
}

.cifra-viewer-body pre {
  display: block;
  text-align: left;
  font-family: 'Consolas', 'Roboto Mono', 'SFMono-Regular', Menlo, Monaco, 'Courier New', monospace !important;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: pre !important;
  color: #e2e8f0;
  margin: 0 auto;
  max-width: 900px;
  tab-size: 4;
}

/* Estilização para o Alinhamento Cifra Club (Acordes por cima da letra) */
.cifra-row {
  line-height: 1.45;
  white-space: pre !important;
  font-family: inherit;
  margin-bottom: 0;
}

.chord-line {
  color: #ff8c00; /* Laranja vibrante de acordes Cifra Club */
  font-weight: 700;
  min-height: 1.3em;
  margin-top: 0.45rem;
  margin-bottom: 0.05rem;
  user-select: text;
}

.chord {
  color: #ff7700;
  font-weight: 700;
  display: inline;
  letter-spacing: 0;
  cursor: default;
  transition: color 0.15s ease;
}

.chord:hover {
  color: #ffaa00;
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.4);
}

.lyrics-line {
  color: #f1f5f9;
  min-height: 1.3em;
  margin-bottom: 0.2rem;
  user-select: text;
  font-weight: 400;
}

.cifra-empty-line {
  height: 1em;
}

.cifra-tab-line {
  color: #38bdf8; /* Azul ciano nítido para tablaturas */
  font-family: inherit;
  font-weight: 600;
  min-height: 1.3em;
  white-space: pre !important;
}

.cifra-section-header {
  color: var(--accent-purple);
  font-weight: 700;
  margin: 1.5rem 0 0.4rem 0;
  font-size: 0.95em;
  border-bottom: 1px solid rgba(124, 58, 237, 0.25);
  padding-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.cifra-section-header-inline {
  color: var(--accent-purple);
  font-weight: 700;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.75rem;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}

/* Helpers */
.hidden { display: none !important; }
.text-danger { color: var(--color-danger); }
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Auto Uppercase Inputs */
.auto-upper {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auto-upper::placeholder {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.45;
}

/* Cifra Club Search Button */
.btn-cifraclub {
  background: linear-gradient(135deg, #e65c00 0%, #f9d423 100%);
  color: #000 !important;
  font-weight: 700;
  border: 1px solid rgba(230, 92, 0, 0.4);
  box-shadow: 0 4px 15px rgba(230, 92, 0, 0.25);
}
.btn-cifraclub:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 92, 0, 0.45);
  background: linear-gradient(135deg, #ff6b00 0%, #ffde3b 100%);
}

/* Auth Screen Overlay Styling (Premium Split View with Image Background) */
.auth-screen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: #030305;
  align-items: center;
  justify-content: center;
}
.auth-screen-overlay.active {
  display: flex;
}

/* Split Container */
.auth-split-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  width: 100%;
  height: 100%;
  position: relative;
  background-image: url('bg_igreja.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Coluna da Esquerda (Texto Institucional) */
.auth-left-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 6rem;
  background: linear-gradient(90deg, rgba(3, 3, 5, 0.25) 0%, rgba(3, 3, 5, 0.45) 60%, rgba(3, 3, 5, 0.75) 100%);
  position: relative;
}

.brand-text-wrapper {
  max-width: 540px;
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.brand-line {
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, transparent);
  margin-bottom: 2rem;
}

.brand-main-title {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #FFF6D6 0%, #D4AF37 50%, #aa8410 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #FFECA1;
  text-transform: uppercase;
  opacity: 0.9;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

/* Coluna da Direita (Formulários sobre a igreja) */
.auth-right-forms {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at center, rgba(3, 3, 5, 0.2) 0%, rgba(3, 3, 5, 0.75) 100%);
  position: relative;
  overflow-y: auto;
}

.auth-card {
  background: rgba(3, 3, 5, 0.82);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(212, 175, 55, 0.35); /* Elegant Gold border */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  text-align: center;
  animation: fadeInRight 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.auth-card .auth-form,
.auth-card .form-row-2,
.auth-card .form-group,
.auth-card .email-input-group {
  width: 100%;
}

.auth-card .form-row-2 {
  align-items: start;
}

.auth-card .form-row-2 > .form-group {
  min-width: 0;
}

.auth-card .form-group input,
.auth-card .form-group select,
.auth-card .form-group textarea {
  width: 100%;
  min-width: 0;
}

.auth-logo-section {
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-logo-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  transform: translateX(-50%);
  height: 120%;
  width: 120%;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.auth-logo-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
  transform: perspective(600px) rotateY(-15deg);
  filter: drop-shadow(10px 10px 15px rgba(0,0,0,0.8)) drop-shadow(0 0 5px rgba(212,175,55,0.3));
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.6s;
}
.auth-logo-img:hover {
  transform: perspective(600px) rotateY(0deg) scale(1.1);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.9)) drop-shadow(0 0 25px rgba(212,175,55,1));
}
.auth-logo-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFF0B3 0%, #D4AF37 50%, #aa8410 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}
.auth-form .form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.auth-form .form-group input, .auth-form .form-group select {
  background: #0a0a0f;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
  color: #f5f5f5;
  transition: var(--transition-smooth);
}
.auth-form .form-group select option {
  background: #0a0a0f;
  color: #f5f5f5;
}
.auth-form .form-group input:focus, .auth-form .form-group select:focus {
  border-color: #D4AF37;
  background: #111118;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #D4AF37 0%, #8C6D1F 100%);
  color: #000 !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #FFE07D 0%, #D4AF37 100%);
}

.auth-error-msg {
  font-size: 0.8rem;
  color: var(--color-danger);
  font-weight: 600;
  text-align: center;
}

.auth-footer-toggle {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.link-toggle {
  background: none;
  border: none;
  color: #D4AF37;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 0.85rem;
}
.link-toggle:hover {
  color: #FFE07D;
}

/* Logout Button styling */
.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  color: var(--color-danger);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-logout:hover {
  background: var(--color-danger-bg);
  border-color: var(--color-danger);
  transform: translateY(-1px);
}

.btn-wa-settings {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  background: rgba(37, 211, 102, 0.05);
  border: 1px dashed rgba(37, 211, 102, 0.3);
  color: #25D366;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-wa-settings:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25D366;
  transform: translateY(-1px);
}


/* Email Suffix and Input Group */
.email-input-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}
.email-input-group input {
  min-width: 0;
  flex: 1;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.email-suffix {
  background-color: #0d0d12;
  border: 1px solid var(--border-color);
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #c5c5d0;
  user-select: none;
  font-weight: 500;
  white-space: nowrap;
}

/* ================= MENSAGENS ================= */
.messages-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.message-item {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface-light);
  border-left: 4px solid var(--primary-color);
}

.message-item.broadcast {
  border-left-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.message-item.reply {
  border-left-color: var(--success-green);
  margin-left: 2rem;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.message-body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.message-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.status-pending { background: rgba(230, 92, 0, 0.2); color: #ff8c42; }
.status-answered { background: rgba(0, 200, 83, 0.2); color: var(--success-green); }

.message-form-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.message-form-container textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--surface-light);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

.message-form-container textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.blocked-warning {
  color: #ff8c42;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-inbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .admin-inbox-grid { grid-template-columns: 1fr; }
}

.reply-box {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ================= PRINT STYLES ================= */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .app-container, .top-header, .top-header *, .cifra-viewer-header, .cifra-viewer-header * {
    display: none !important;
  }
  .cifra-viewer-overlay {
    position: static !important;
    display: block !important;
    background: #fff !important;
    width: auto !important;
    height: auto !important;
  }
  .cifra-viewer-body {
    padding: 0 !important;
    overflow: visible !important;
  }
  .cifra-viewer-body pre {
    color: #000 !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }
  .chord {
    color: #000 !important;
    text-shadow: none !important;
    font-weight: 800 !important;
    text-decoration: underline;
  }
}

/* Animations for Split Auth View */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   CADASTRO — PREVIEW CIRCULAR DE AVATAR AO VIVO
   ============================================ */

.register-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.register-avatar-circle {
  position: relative;
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(265,50%,18%) 0%, hsl(265,70%,25%) 100%);
  border: 3px solid #D4AF37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.2), 0 6px 20px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.register-avatar-circle:hover {
  box-shadow: 0 0 0 4px rgba(212,175,55,0.4), 0 8px 25px rgba(0,0,0,0.6);
  transform: scale(1.03);
}

.register-avatar-initials {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #D4AF37;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-avatar-upload-zone {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.register-avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 8px;
  color: #D4AF37;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.register-avatar-upload-btn:hover {
  background: rgba(212,175,55,0.22);
  border-color: rgba(212,175,55,0.6);
  transform: translateY(-1px);
}

.register-avatar-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.register-photo-block > label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.access-code-hint {
  font-size: 0.72rem;
  color: var(--color-warning);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ============================================
   DASHBOARD — BANNER HERO + SAUDAÇÃO PERSONALIZADA
   ============================================ */

/* ── Hero Banner "Um Lugar Para Chamar de Lar" ── */
.hero-banner-wrap {
  width: 100%;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  line-height: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  border: 1px solid rgba(212,175,55,0.15);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.greeting-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg,
    rgba(212,175,55,0.06) 0%,
    rgba(124,58,237,0.08) 50%,
    rgba(3,3,5,0.5) 100%);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--card-radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

/* Brilho decorativo no canto */
.greeting-banner::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Lado esquerdo: ícone + texto */
.greeting-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  margin-bottom: 0;
  margin-left: -1rem;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  max-width: 320px;
}
.greeting-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Ícone do período (sol, nuvem, lua) */
.greeting-icon-wrap {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px currentColor);
  animation: greetingPulse 3s ease-in-out infinite;
}

@keyframes greetingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.85; }
}

/* Textos */
.greeting-text {
  min-width: 0;
}

.greeting-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.2;
}

.greeting-frase {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
  max-width: 200px;
}

/* Lado direito: botões de ação + avatar/grupo */
.greeting-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: flex-start;
  gap: 1.5rem;
  flex-shrink: 0;
}

/* ── Botões de ação rápida (🔔 💬 ⚠️) ── */
.greeting-action-btns {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.greeting-action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0;
  min-width: 48px;
}

.greeting-action-btn i {
  font-size: 0.95rem;
  display: block;
}

.greeting-action-label {
  font-size: 0.52rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.greeting-action-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.greeting-action-btn:hover .greeting-action-label {
  color: var(--text-secondary);
}

/* Botão de Mensagens — roxo */
.greeting-action-btn:first-child {
  border-color: rgba(124,58,237,0.3);
  color: var(--accent-purple);
}
.greeting-action-btn:first-child:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}

/* Botão de Notificações (bell) — dourado */
.greeting-action-btn.notif-btn {
  border-color: rgba(212,175,55,0.3);
  color: #D4AF37;
}
.greeting-action-btn.notif-btn:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 4px 16px rgba(212,175,55,0.2);
}

/* Botão de Alertas — vermelho/atenção */
.greeting-action-btn.alert-btn {
  border-color: rgba(239,68,68,0.3);
  color: var(--color-danger);
}
.greeting-action-btn.alert-btn:hover {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.5);
  box-shadow: 0 4px 16px rgba(239,68,68,0.2);
}

/* Ponto vermelho de notificação */
.notif-dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-danger);
  border: 1.5px solid var(--bg-primary);
  animation: notifPulse 2s ease-in-out infinite;
}

@keyframes notifPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

/* Avatar + grupo/cargo */
.greeting-group-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.greeting-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.5);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.greeting-role-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.3;
}

.greeting-role-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-banner-img {
    max-height: 120px;
  }
  .greeting-banner {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .greeting-action-btn {
    padding: 0.3rem 0.5rem;
    min-width: 42px;
    border-radius: 8px;
  }
  .greeting-action-btn i {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .dash-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .greeting-right {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
  }
  .greeting-title {
    font-size: 1.15rem;
  }
  .greeting-icon-wrap {
    font-size: 1.8rem;
  }
}

/* ============================================================
   NEW DASHBOARD — PIANO BLACK REDESIGN
   ============================================================ */

/* Hero Section with banner background */
.dash-hero-section {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  min-height: 160px;
  display: flex;
  align-items: stretch;
}
.dash-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.dash-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.dash-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(5,5,7,0.9) 0%,
    rgba(5,5,7,0.1) 50%,
    rgba(5,5,7,0.9) 100%);
}
.dash-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 240px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Stats Grid — 4 cards */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 1200px) { .dash-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .dash-stats-grid { grid-template-columns: 1fr; } }

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.dash-stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold-glow);
}
.dash-stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  opacity: 0.6;
}
.dash-stat-attendance {
  background-image: linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.85)), url('attendance_card_bg.jpg') !important;
  background-size: cover;
  background-position: center;
}
.dash-stat-members {
  background-image: linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.85)), url('members_card_bg.jpg') !important;
  background-size: cover;
  background-position: center;
}
.dash-stat-songs {
  background-image: linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.85)), url('songs_card_bg.jpg') !important;
  background-size: cover;
  background-position: center;
}
.dash-stat-agenda {
  background-image: linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.85)), url('agenda_card_bg.jpg') !important;
  background-size: cover;
  background-position: center;
}
.dash-stat-attendance::before {
  background: linear-gradient(90deg, #D4AF37, #FFE07D, transparent);
}

.dash-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.dash-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}
.dash-stat-menu {
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.dash-stat-icon-float {
  font-size: 1.5rem;
  color: var(--accent-gold);
  opacity: 0.6;
}

.dash-stat-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.dash-badge-medal {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.4);
  color: #D4AF37;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash-badge-range {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.dash-stat-big {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.dash-stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Attendance progress bar */
.dash-attendance-bar-wrap { margin-bottom: 0.5rem; }
.dash-attendance-bar {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.dash-attendance-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #D4AF37, #FFE07D);
  transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 8px rgba(212,175,55,0.4);
}

/* Personal Cards Grid — 4 cards */
.dash-personal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 1200px) { .dash-personal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .dash-personal-grid { grid-template-columns: 1fr; } }

.dash-personal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.dash-personal-role {
  background-image: linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.85)), url('role_card_bg.jpg') !important;
  background-size: cover;
  background-position: center;
}
.dash-personal-repo {
  background-image: linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.85)), url('personal_repo_card_bg.jpg') !important;
  background-size: cover;
  background-position: center;
}
.dash-personal-msg {
  background-image: linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.85)), url('personal_msg_card_bg.jpg') !important;
  background-size: cover;
  background-position: center;
}
.dash-personal-camp {
  background-image: linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.85)), url('campanha_card_bg.jpg') !important;
  background-size: cover;
  background-position: center;
}
.dash-personal-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.1);
}

.dash-personal-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.dash-personal-icon.purple { background: var(--accent-purple-glow); color: var(--accent-purple); }
.dash-personal-icon.green  { background: var(--color-success-bg);  color: var(--color-success); }
.dash-personal-icon.blue   { background: var(--accent-cyan-glow);   color: var(--accent-cyan); }
.dash-personal-icon.gold   { background: rgba(212,175,55,0.15);     color: #D4AF37; }

.dash-personal-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}
.dash-personal-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.dash-personal-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-personal-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.dash-personal-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  align-self: flex-start;
}
.dash-personal-btn:hover {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.3);
  color: #D4AF37;
}

/* Main Dashboard Grid — 3 columns */
.dash-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: start;
}
@media (max-width: 1300px) { .dash-main-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px)  { .dash-main-grid { grid-template-columns: 1fr; } }

.dash-col-left, .dash-col-center, .dash-col-right { display: flex; flex-direction: column; gap: 1rem; }

/* Section Cards */
.dash-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
}
.dash-section-header h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-section-header h3 i { color: var(--accent-gold); }

.dash-see-all-btn {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.25);
  transition: var(--transition-smooth);
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.75rem;
}
.dash-see-all-btn:hover { background: rgba(212,175,55,0.1); }
.dash-see-all-btn-sm {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.dash-see-all-btn-sm:hover { text-decoration: underline; }

/* Weekly Calendar */
.dash-week-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dash-week-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition-smooth);
}
.dash-week-item:hover { background: rgba(255,255,255,0.05); }
.dash-week-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}
.dash-week-day-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.dash-week-day-name {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.dash-week-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-week-info { flex: 1; min-width: 0; }
.dash-week-info strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.dash-week-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Next Event Details */
.dash-event-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.dash-event-type-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(212,175,55,0.15);
  color: #D4AF37;
  border: 1px solid rgba(212,175,55,0.35);
  text-transform: uppercase;
  white-space: nowrap;
}
.dash-next-event-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.dash-next-event-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.dash-next-event-row i { color: var(--accent-gold); width: 14px; }
.dash-presence-status {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Comunicados Recentes */
.dash-comunicados-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dash-comunicado-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dash-comunicado-item:last-child { border-bottom: none; }
.dash-comunicado-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.3rem;
}
.dash-comunicado-info strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}
.dash-comunicado-info span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Birthday List */
.dash-birthday-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dash-birthday-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dash-birthday-item:last-child { border-bottom: none; }
.dash-birthday-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(212,175,55,0.3);
  flex-shrink: 0;
}
.dash-birthday-info strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}
.dash-birthday-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.dash-birthday-emoji {
  margin-left: auto;
  font-size: 1.1rem;
}

/* Verse Banner Footer */
.dash-verse-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg,
    rgba(212,175,55,0.05) 0%,
    rgba(5,5,7,0.8) 50%,
    rgba(212,175,55,0.05) 100%);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--card-radius);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dash-verse-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('banner_home.png') center/cover no-repeat;
  opacity: 0.06;
}
.dash-verse-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  flex-shrink: 0;
  position: relative;
}
.dash-verse-text { position: relative; }
.dash-verse-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.dash-verse-ref {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Sidebar Verse Box */
.sidebar-verse-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem 0.85rem;
  margin-bottom: 0.85rem;
  background-color: #08080c;
  background-image: linear-gradient(180deg, rgba(8, 8, 12, 0.72) 0%, rgba(5, 5, 8, 0.88) 100%), 
                    url('verse_card_bg.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 
              inset 0 1px 1px rgba(255, 255, 255, 0.08),
              0 0 15px rgba(212, 175, 55, 0.08);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.sidebar-verse-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}
.sidebar-verse-box:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), 
              0 0 20px rgba(212, 175, 55, 0.16);
  transform: translateY(-2px);
}
.sidebar-verse-emblem {
  width: 32px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
  margin-bottom: 0.2rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}
.sidebar-verse-box:hover .sidebar-verse-emblem {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(212, 175, 55, 0.85));
}
.sidebar-verse-text {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-style: italic;
  color: #f0f0f5;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.sidebar-verse-ref {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--accent-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* ============================================================
   CAMPANHAS DE DOAÇÃO
   ============================================================ */

.campanhas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 768px) { .campanhas-grid { grid-template-columns: 1fr; } }

.campanha-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.campanha-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), rgba(212,175,55,0.3));
}
.campanha-card:hover {
  background: var(--bg-card-hover);
}

.campanha-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.campanha-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #D4AF37;
  flex-shrink: 0;
}
.campanha-title-area { flex: 1; }
.campanha-title-area h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.campanha-title-area p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.campanha-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
.campanha-status-badge.ativa {
  background: rgba(34,197,94,0.12);
  color: var(--color-success);
  border: 1px solid rgba(34,197,94,0.3);
}
.campanha-status-badge.concluida {
  background: rgba(212,175,55,0.12);
  color: #D4AF37;
  border: 1px solid rgba(212,175,55,0.3);
}

/* Progress Bar */
.campanha-progress-wrap { margin-bottom: 1rem; }
.campanha-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.campanha-progress-collected {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.campanha-progress-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  align-self: flex-end;
}
.campanha-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0;
}
.campanha-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #D4AF37, #FFE07D);
  transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 10px rgba(212,175,55,0.35);
}
.campanha-progress-pct {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}

/* Campaign meta info */
.campanha-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
.campanha-meta-row i { color: var(--accent-gold); width: 14px; }

.campanha-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Dashboard compact campaign card */
.dash-camp-mini {
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-top: 0.25rem;
}
.dash-camp-mini-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin: 0.35rem 0;
}
.dash-camp-mini-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #D4AF37, #FFE07D);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS FOR NEW DASHBOARD
   ============================================================ */
@media (max-width: 1300px) {
  .dash-col-right { flex-direction: row; flex-wrap: wrap; }
  .dash-col-right .dash-section-card { flex: 1; min-width: 240px; }
}
@media (max-width: 900px) {
  .dash-col-right { flex-direction: column; }
}
@media (max-width: 768px) {
  .dash-hero-content { padding: 1rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .dash-verse-banner { flex-direction: column; text-align: center; padding: 1.25rem; }
  .dash-verse-logo { display: none; }
  .dash-verse-quote { font-size: 1rem; }
}

/* ============================================================
   MURAL DA COMUNIDADE & PORTAL DE RECADOS PÚBLICOS
   ============================================================ */
.dash-community-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.dash-community-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-gold), transparent);
}

.dash-community-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.dash-community-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dash-community-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(212, 175, 55, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.dash-community-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-community-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.dash-community-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.comm-filter-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.comm-filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.comm-filter-tab.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(212, 175, 55, 0.25));
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* Publicador de Recados */
.dash-community-publisher {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease;
}

.dash-community-publisher:focus-within {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.08);
}

.comm-publisher-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.comm-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.comm-publisher-user-info {
  display: flex;
  flex-direction: column;
}

.comm-publisher-author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.comm-publisher-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Mood Selector */
.comm-mood-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.comm-mood-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  user-select: none;
}

.comm-mood-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateY(-1px);
}

.comm-mood-pill.active {
  background: var(--active-bg, rgba(16, 185, 129, 0.2)) !important;
  border-color: var(--active-color, #10b981) !important;
  color: #fff !important;
  box-shadow: 0 0 10px var(--active-glow, rgba(16, 185, 129, 0.3));
  font-weight: 700;
  transform: scale(1.03);
}

/* Textarea */
.comm-input-wrap {
  margin-bottom: 0.85rem;
}

.comm-post-textarea {
  width: 100%;
  background: rgba(8, 8, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.comm-post-textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}

.comm-post-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
}

/* Publisher Footer */
.comm-publisher-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.comm-emoji-quick-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comm-emoji-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.comm-emoji-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.comm-emoji-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.comm-emoji-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.25) translateY(-2px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.comm-emoji-btn:active {
  transform: scale(0.95);
}

.comm-publish-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-purple), #9333ea);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.comm-publish-btn:hover {
  background: linear-gradient(135deg, #9333ea, var(--accent-gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Feed de Postagens */
.dash-community-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.1rem;
}

@media (max-width: 768px) {
  .dash-community-feed {
    grid-template-columns: 1fr;
  }
}

.comm-post-card {
  background: rgba(14, 14, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  backdrop-filter: blur(10px);
  animation: commFadeIn 0.35s ease;
}

@keyframes commFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.comm-post-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  background: rgba(20, 20, 30, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.comm-post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.comm-author-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.comm-post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(212, 175, 55, 0.25);
}

.comm-author-meta {
  display: flex;
  flex-direction: column;
}

.comm-author-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.comm-author-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.comm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.comm-post-mood-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.comm-post-delete-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.comm-post-delete-btn:hover {
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.15);
}

.comm-post-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  white-space: pre-line;
  word-break: break-word;
}

.comm-post-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comm-reactions-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.comm-react-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.comm-react-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

.comm-react-btn.reacted {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-gold);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.comm-time-ago {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Empty State */
.comm-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.comm-empty-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.comm-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.comm-empty-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SISTEMA DE TROCA INTELIGENTE DE ESCALAS (SUBSTITUIÇÃO ENTRE MEMBROS)
   ========================================================================== */

.swap-alerts-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.swap-alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-left: 4px solid var(--accent-purple);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.swap-alert-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
}

.swap-alert-card.my-request {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(234, 179, 8, 0.3);
  border-left-color: #f59e0b;
}

.swap-alert-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  min-width: 0;
}

.swap-alert-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.swap-alert-card.my-request .swap-alert-icon {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.swap-alert-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.swap-alert-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.swap-alert-role-badge {
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.swap-alert-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.swap-alert-reason {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.1rem;
}

.swap-alert-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Modal de Solicitação de Troca */
.swap-event-summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.swap-event-summary-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.swap-event-summary-meta {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.swap-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.swap-radio-card {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.swap-radio-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.swap-radio-card.active {
  border-color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.12);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

.swap-radio-card i {
  font-size: 1.1rem;
  color: var(--accent-purple);
  margin-top: 0.15rem;
}

.swap-radio-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.swap-radio-card span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Lista de Candidatos a Substituto */
.swap-candidates-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.swap-candidate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.swap-candidate-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.swap-candidate-item.selected {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent-purple);
}

.swap-candidate-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.swap-candidate-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.swap-candidate-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.swap-candidate-role {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

.swap-candidate-status {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 768px) {
  .swap-alert-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .swap-alert-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .swap-mode-toggle {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODO PALCO / SETLIST CONTÍNUO (PARA MÚSICOS NO ALTAR)
   ========================================================================== */

.stage-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(90deg, #110d21 0%, #1e1538 50%, #140e29 100%);
  border-bottom: 2px solid var(--accent-purple);
  padding: 0.6rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.stage-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.stage-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: stagePulse 2.5s infinite;
}

@keyframes stagePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 12px 2px rgba(212, 175, 55, 0.25); }
}

.stage-event-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.stage-song-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.stage-bar-center {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.2rem 0;
  scrollbar-width: none;
  flex: 1;
  max-width: 50%;
}

.stage-bar-center::-webkit-scrollbar {
  display: none;
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.stage-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.stage-chip.active {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.stage-chip-key {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.stage-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.stage-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-nav-btn:hover {
  background: var(--accent-purple);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

.stage-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.stage-tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-tool-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.stage-tool-btn.active {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   TEMA ALTO CONTRASTE (PITCH BLACK OLED / PALCO ESCURO)
   ========================================================================== */

.cifra-viewer-overlay.stage-high-contrast {
  background: #000000 !important;
}

.cifra-viewer-overlay.stage-high-contrast .cifra-viewer-container {
  background: #000000 !important;
  color: #ffffff !important;
}

.cifra-viewer-overlay.stage-high-contrast .cifra-viewer-header {
  background: #080808 !important;
  border-bottom: 2px solid #333 !important;
}

.cifra-viewer-overlay.stage-high-contrast .stage-mode-bar {
  background: #0a0a0a !important;
  border-bottom: 2px solid #D4AF37 !important;
}

.cifra-viewer-overlay.stage-high-contrast pre {
  color: #ffffff !important;
  font-weight: 500 !important;
  background: transparent !important;
}

.cifra-viewer-overlay.stage-high-contrast .chord,
.cifra-viewer-overlay.stage-high-contrast .chord-line {
  color: #fbbf24 !important; /* Amarelo fluorescente de altíssimo contraste */
  font-weight: 800 !important;
  text-shadow: 0 0 2px rgba(251, 191, 36, 0.5);
}

.cifra-viewer-overlay.stage-high-contrast .cifra-section-header {
  color: #38bdf8 !important;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
  margin-top: 1rem;
}

/* Divisores de Músicas no Modo Contínuo */
.stage-continuous-divider {
  margin: 3rem 0 1.5rem 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.25) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-left: 5px solid var(--accent-purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-continuous-divider h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
  font-family: var(--font-display);
}

.stage-continuous-divider .stage-divider-key {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
  .stage-mode-bar {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .stage-bar-center {
    max-width: 40%;
  }
  .stage-event-title {
    display: none;
  }
  .hide-mobile {
    display: none;
  }
}

/* =====================================================
   PLAYBACK AUDIO & PITCH SHIFTER PLAYER
   ===================================================== */

.song-audio-upload-box {
  background: rgba(124, 58, 237, 0.05);
  border: 1px dashed rgba(124, 58, 237, 0.3);
  padding: 1rem;
  border-radius: 8px;
}

.song-audio-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.song-audio-filename-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-audio-filename-badge.has-file {
  color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  font-weight: 600;
}

/* Barra do Player Integrado no Visualizador */
.cifra-audio-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #111116 0%, #1c142e 100%);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  z-index: 10;
}

.audio-bar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.btn-audio-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-audio-circle:hover {
  transform: scale(1.08);
  background: #905cf6;
}

.btn-audio-circle:active {
  transform: scale(0.95);
}

.audio-track-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.audio-track-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  text-transform: uppercase;
}

.audio-timer {
  font-size: 0.75rem;
  font-family: 'Consolas', monospace;
  color: var(--text-secondary);
}

.audio-bar-center {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
}

.audio-seek-range {
  width: 100%;
  accent-color: var(--accent-purple);
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.audio-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.audio-pitch-control-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-pitch-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.audio-pitch-btn-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-pitch-step {
  padding: 0.2rem 0.55rem;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 4px;
}

.audio-pitch-tag {
  font-size: 0.8rem;
  font-weight: 800;
  font-family: 'Consolas', monospace;
  color: #fff;
  background: rgba(124, 58, 237, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--accent-purple);
  min-width: 80px;
  text-align: center;
}

.audio-sync-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.audio-sync-toggle input {
  accent-color: var(--accent-purple);
  cursor: pointer;
}

/* Badge de playback nos cards de música */
.song-playback-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.35rem;
}

/* =====================================================
   PLAYBACK AUDIO & PITCH SHIFTER PLAYER
   ===================================================== */

.song-audio-upload-box {
  background: rgba(124, 58, 237, 0.05);
  border: 1px dashed rgba(124, 58, 237, 0.3);
  padding: 1rem;
  border-radius: 8px;
}

.song-audio-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.song-audio-filename-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-audio-filename-badge.has-file {
  color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  font-weight: 600;
}

/* Barra do Player Integrado no Visualizador */
.cifra-audio-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #111116 0%, #1c142e 100%);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  z-index: 10;
}

.audio-bar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.btn-audio-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-audio-circle:hover {
  transform: scale(1.08);
  background: #905cf6;
}

.btn-audio-circle:active {
  transform: scale(0.95);
}

.audio-track-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.audio-track-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  text-transform: uppercase;
}

.audio-timer {
  font-size: 0.75rem;
  font-family: 'Consolas', monospace;
  color: var(--text-secondary);
}

.audio-bar-center {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
}

.audio-seek-range {
  width: 100%;
  accent-color: var(--accent-purple);
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.audio-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.audio-pitch-control-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-pitch-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.audio-pitch-btn-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-pitch-step {
  padding: 0.2rem 0.55rem;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 4px;
}

.audio-pitch-tag {
  font-size: 0.8rem;
  font-weight: 800;
  font-family: 'Consolas', monospace;
  color: #fff;
  background: rgba(124, 58, 237, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--accent-purple);
  min-width: 80px;
  text-align: center;
}

.audio-sync-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.audio-sync-toggle input {
  accent-color: var(--accent-purple);
  cursor: pointer;
}

/* Badge de playback nos cards de música */
.song-playback-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .cifra-audio-player-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
  }
  .audio-bar-center {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .audio-bar-right {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ============================================================
   RADAR DE SAÚDE & FREQUÊNCIA DOS VOLUNTÁRIOS (LIDERANÇA)
   ============================================================ */

.dash-health-section {
  background: linear-gradient(135deg, rgba(14, 14, 22, 0.95) 0%, rgba(8, 8, 14, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--card-radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.4s ease forwards;
}

.dash-health-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.7;
}

.dash-health-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-health-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 580px;
}

.dash-health-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  width: fit-content;
}

.dash-health-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.dash-health-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.dash-health-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.dash-health-dept-bar {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.health-dept-btn {
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.health-dept-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.health-dept-btn.active {
  color: #050507;
  background: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.btn-health-reminder {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}
.btn-health-reminder:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.dash-health-filters {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.health-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.health-filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.health-filter-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.dot-green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.dot-blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }

/* Grid de Voluntários */
.dash-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

/* Card Individual de Voluntário */
.health-member-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.health-member-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}

/* Círculo Redondo com Anel de Frequência */
.health-circle-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.health-gauge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.health-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4;
}

.health-gauge-fill {
  fill: none;
  stroke-width: 4.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.health-circle-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.health-member-card:hover .health-circle-avatar {
  transform: scale(1.05);
}

.health-count-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid #0a0a0f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Cores de Estado: Sobrecarga (Vermelho), Normal (Verde), Descanso (Dourado/Amarelo) */
.health-member-card.status-overload {
  border-color: rgba(239, 68, 68, 0.28);
}
.health-member-card.status-overload:hover {
  border-color: #ef4444;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.22);
}
.health-member-card.status-overload .health-gauge-fill {
  stroke: #ef4444;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.7));
}
.health-member-card.status-overload .health-count-badge {
  background: #ef4444;
}

.health-member-card.status-balanced {
  border-color: rgba(16, 185, 129, 0.25);
}
.health-member-card.status-balanced:hover {
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.22);
}
.health-member-card.status-balanced .health-gauge-fill {
  stroke: #10b981;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.7));
}
.health-member-card.status-balanced .health-count-badge {
  background: #10b981;
}

.health-member-card.status-rest {
  border-color: rgba(245, 158, 11, 0.22);
}
.health-member-card.status-rest:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}
.health-member-card.status-rest .health-gauge-fill {
  stroke: #f59e0b;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}
.health-member-card.status-rest .health-count-badge {
  background: #f59e0b;
}

/* Informações do Membro */
.health-member-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
}

.health-member-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.health-member-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.health-status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-overload .health-status-tag {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.status-balanced .health-status-tag {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-rest .health-status-tag {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Modais de Detalhe e Lembrete */
.health-modal-card, .preservice-modal-card {
  max-width: 520px;
  width: 90%;
  background: #0d0e14;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.health-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.preservice-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.health-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.health-detail-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.health-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  padding-right: 0.25rem;
}

.health-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
}

.health-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.health-whatsapp-btn:hover {
  background: #1eb956;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .dash-health-header {
    flex-direction: column;
    align-items: stretch;
  }
  .dash-health-actions-wrap {
    align-items: stretch;
  }
  .dash-health-filters {
    overflow-x: auto;
  }
  .dash-health-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
  .health-member-card {
    padding: 0.85rem 0.5rem;
  }
  .health-circle-wrap {
    width: 64px;
    height: 64px;
  }
  .health-circle-avatar {
    width: 48px;
    height: 48px;
  }
}

/* Modal Overlay Universal Fallback */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex !important;
}

/* ============================================================
   INLINE PLAYER NOS CARDS DA BIBLIOTECA MUSICAL
   ============================================================ */
.song-card-audio-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.song-card-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.song-card-play-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.5);
}

.song-card-play-btn.playing {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
}

.song-card-stop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0.68rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.song-card-stop-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.song-card-time-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

