/* ==========================================================================
   AURA ORGS — Minimalist Monochrome Dark Theme (Linear / Vercel / Tech Style)
   ========================================================================== */

:root {
  /* Color Palette — High Contrast Monochrome Dark */
  --bg-deep: #08080a;
  --bg-dark: #0f0f12;
  --bg-card: #141418;
  --bg-card-hover: #1b1b20;
  --bg-input: #18181c;
  --bg-sidebar: #0c0c0e;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-focus: #ffffff;
  
  --accent-white: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.15);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --color-success: #10b981;
  --color-success-hover: #059669;
  --color-danger: #ef4444;
  --color-danger-hover: #dc2626;
  --color-warning: #f59e0b;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.12);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s var(--ease-out);
  --transition-normal: all 0.3s var(--ease-out);
}

/* ==========================================================================
   CSS Reset & Base Setup
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Clean Matte Dark Background Setup */
.ambient-glow {
  display: none !important;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex-1 { flex: 1; }
.full-width { width: 100%; }
.text-purple { color: #ffffff !important; }
.text-neon { color: #e4e4e7 !important; }

.margin-top-xs { margin-top: 6px; }
.margin-top-sm { margin-top: 14px; }
.margin-top-md { margin-top: 22px; }
.margin-top-lg { margin-top: 32px; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Buttons System
   ========================================================================== */

button {
  font-family: var(--font-family);
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-fast);
  user-select: none;
}

button:active {
  transform: scale(0.97);
}

/* High-Contrast White Primary Button */
.btn-primary-gradient {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.12);
  font-weight: 700;
}
.btn-primary-gradient:hover {
  background: #f4f4f5;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-success {
  background: #10b981;
  color: #fff;
  font-weight: 700;
}
.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  font-weight: 700;
}
.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-danger-ghost {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger-ghost:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.btn-purple {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}
.btn-purple:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.btn-sheets {
  background: #16a34a;
  color: #fff;
}
.btn-sheets:hover {
  background: #15803d;
}

.btn-dark-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.btn-dark-outline:hover {
  border-color: var(--border-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-action {
  padding: 10px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  height: 42px;
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.icon-btn {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: var(--radius-sm);
}
.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Inputs & Form Controls
   ========================================================================== */

.modern-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-fast);
}

.modern-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
  background-color: #202024;
}

.modern-input[readonly] {
  background-color: rgba(20, 20, 24, 0.5);
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: not-allowed;
}

.input-container {
  position: relative;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.custom-select, .custom-select-sm {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  outline: none;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-select:focus, .custom-select-sm:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   App Layout Structure
   ========================================================================== */

.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* Mobile Topbar */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(14, 14, 16, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 90;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* Sidebar Navigation */
.sidebar {
  width: 270px;
  background-color: rgba(12, 12, 14, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.logo-box {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-wordmark-img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}
.logo-text-group {
  display: flex;
  flex-direction: column;
}
.logo-main-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.1;
}
.logo-sub-text {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.user-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
}

/* Sidebar Scrollable Container */
.sidebar-scroll-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar-scroll-area::-webkit-scrollbar {
  width: 5px;
}

.sidebar-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.sidebar-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-links {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.nav-item {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  border-radius: var(--radius-md);
  justify-content: flex-start;
  font-weight: 700;
}
.nav-link {
  background: transparent;
  color: var(--text-secondary);
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sidebar Nav Categories (Collapsible Dropdowns) */
.nav-category {
  margin-top: 4px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-category:hover {
  border-color: rgba(0, 242, 254, 0.25);
  background: rgba(255, 255, 255, 0.03);
}
.nav-category-header {
  width: 100%;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  color: var(--accent-cyan);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}
.nav-category-header:hover {
  background: rgba(0, 242, 254, 0.08);
  color: #ffffff;
}
.nav-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-arrow {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}
.nav-category.open .nav-arrow {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}
.nav-category-content {
  display: none;
  padding: 4px 5px 6px 5px;
  flex-direction: column;
  gap: 3px;
  background: rgba(0, 0, 0, 0.25);
}
.nav-category.open .nav-category-content {
  display: flex;
}
.nav-sub-item {
  padding-left: 24px !important;
  font-size: 0.73rem !important;
}

/* Sidebar Search Box */
.sidebar-search-box {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}
.sidebar-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 10px 7px 32px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-family: var(--font-family);
  outline: none;
  transition: var(--transition-fast);
}
.sidebar-search-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Sidebar Filters */
.filter-panel {
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.filter-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  display: block;
}
.pill-group {
  display: flex;
  gap: 4px;
}
.filter-pill {
  flex: 1;
  padding: 5px 6px;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.filter-pill.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.sidebar-section-header {
  padding: 8px 12px 4px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-purple-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Factions Button List */
.factions-list {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 80px;
}
.faction-item-btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  justify-content: flex-start;
  transition: var(--transition-fast);
}
.faction-item-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.faction-item-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.sidebar-exports {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #080809;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.btn-side {
  width: 100%;
  padding: 7px 12px;
  font-size: 0.74rem;
}

/* ==========================================================================
   Main Workspace & Dashboard Views
   ========================================================================== */

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
  position: relative;
  z-index: 10;
}

/* Top Stats & Music Player Header Bar */
.top-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(14, 14, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 80;
}

.top-stats-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.6px;
}

.stat-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Glassmorphic Top Music Player Widget */
.top-music-player-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(20, 20, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition-fast);
}

.top-music-player-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

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

.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  width: 14px;
}

.music-equalizer .eq-bar {
  width: 3px;
  height: 4px;
  background: #ffffff;
  border-radius: 2px;
  transition: height 0.2s ease;
}

.music-equalizer.playing .eq-bar:nth-child(1) {
  animation: eqBounce 0.6s infinite ease-in-out;
}

.music-equalizer.playing .eq-bar:nth-child(2) {
  animation: eqBounce 0.8s infinite ease-in-out 0.2s;
  background: #c084fc;
}

.music-equalizer.playing .eq-bar:nth-child(3) {
  animation: eqBounce 0.7s infinite ease-in-out 0.4s;
  background: #ffffff;
}

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.music-info-group {
  display: flex;
  flex-direction: column;
}

.music-track-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-track-artist {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.music-center-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.music-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.music-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.music-btn.play-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 10px;

}

.music-btn.play-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
}

.music-btn.playlist-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
}

.music-btn.playlist-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.music-right-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-progress-bar-container {
  width: 80px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.music-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffffff, #c084fc);
  border-radius: 99px;
  transition: width 0.1s linear;
}

.music-time-display {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: monospace;
}

/* Content Views */
.content-view {
  display: none;
  padding: 28px;
  flex: 1;
  overflow-y: auto;
}
.content-view.active {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInView 0.3s var(--ease-out);
}
@keyframes fadeInView {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  position: relative;
  transition: var(--transition-fast);
}

.view-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
}
.view-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Detail Header Grid */
.detail-header-card {
  background: #141418;
  border-color: var(--border-strong);
}
.detail-header-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 20px;
  align-items: center;
}
.header-col {
  display: flex;
  align-items: center;
  gap: 12px;
}
.col-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
}

.pill-selector {
  display: flex;
  gap: 6px;
}
.pill-btn {
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.pill-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.seguimentos-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pill-selector-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-multi-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.pill-multi-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Coordinates Grid */
.coords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.coord-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-normal);
}
.coord-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.coord-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.coord-pill-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.6px;
}
.coord-card-body {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-copy {
  padding: 8px 16px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.btn-copy:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Detail Action Bar */
.detail-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Form Cards Layout */
.form-card, .users-card, .config-card {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.inline-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  animation: fadeInView 0.2s var(--ease-out);
}
.field-pill-label {
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.form-actions-row {
  display: flex;
  gap: 14px;
}

/* User Management Layout */
.users-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}
.list-wrapper {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: 310px;
  overflow-y: auto;
}
.users-list-ul {
  list-style: none;
}
.user-item {
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.user-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-left: 3px solid #ffffff;
}

.presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.presets-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
}
.preset-btn {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.preset-btn:hover {
  background: #ffffff;
  color: #000000;
}

/* Config List */
.form-inline-add {
  display: flex;
  gap: 12px;
}
.config-fields-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.config-item-title {
  font-weight: 800;
  font-size: 0.88rem;
}

/* Status Bar Footer */
.status-bar {
  background: rgba(10, 10, 12, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 28px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright {
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Modals System — Clean Matte Black Design
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #08080a;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInView 0.2s var(--ease-out);
}
.glass-modal {
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
}
.modal-sm { max-width: 440px; }
.modal-md { max-width: 620px; }

/* Login Modal Matching User Reference */
.login-card {
  max-width: 400px;
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  box-shadow: none;
}
.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 22px;
  position: relative;
  z-index: 10;
}

.login-tab-btn {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.login-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.login-logo-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
}
.login-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-top: 4px;
}
.error-msg {
  color: var(--color-danger);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin-top: 12px;
}
.login-footer-copyright {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
}

.backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.backup-box {
  background: var(--bg-input);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.backup-box h4 {
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
}
.backup-box p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #18181b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  animation: toastIn 0.3s var(--ease-out);
}
@keyframes toastIn {
  from { transform: translateY(20px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   Logs & Audit Trail View
   ========================================================================== */

.logs-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logs-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logs-filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.date-filter-container {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-date-input {
  width: 170px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color-scheme: dark;
  transition: var(--transition-fast);
}

.custom-date-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.custom-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.9);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.custom-date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: invert(1);
}

.btn-clear-date {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-clear-date:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.logs-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(14, 14, 16, 0.6);
  max-height: 62vh;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.logs-table th {
  background: #18181c;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 5;
}

.logs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.logs-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.log-time-tag {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

.log-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-create {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-edit {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-delete {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-user {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-system {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.log-action-title {
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   Organization Rules View
   ========================================================================== */

.rules-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rules-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rules-display-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 6px;
}

.rule-card-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition-fast);
}

.rule-card-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: #18181c;
}

.rule-number-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.rule-content-body {
  flex: 1;
}

.rule-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.rule-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.modern-textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.9rem;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  transition: var(--transition-fast);
}

.modern-textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: #1a1a1e;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
}

.rules-edit-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}

/* ==========================================================================
   Home Landing Dashboard View
   ========================================================================== */

.home-hero-card {
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(17, 17, 19, 0.95), rgba(24, 24, 28, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.home-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.home-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.home-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.status-indicator-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.status-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.6px;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-stat-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.stat-box-icon {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-box-info {
  display: flex;
  flex-direction: column;
}

.stat-box-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-box-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  margin-top: 4px;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.home-col-main, .home-col-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flex-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  font-size: 1.2rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.announcement-body {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  border-left: 4px solid #ffffff;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.shortcut-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: var(--transition-fast);
}

.shortcut-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: #18181c;
  transform: translateY(-2px);
}

.shortcut-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

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

.shortcut-info strong {
  font-size: 0.85rem;
  color: #ffffff;
  font-family: var(--font-heading);
}

.shortcut-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.home-recent-logs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
}

.recent-log-item {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.recent-log-author {
  font-weight: 700;
  color: #ffffff;
}

.recent-log-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

.recent-log-detail {
  color: var(--text-secondary);
  font-size: 0.78rem;
  word-break: break-word;
}

.flex-gap-sm {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
  .mobile-topbar { display: flex; }
  .app-container { padding-top: 60px; }

  .sidebar {
    position: fixed;
    top: 60px;
    left: -280px;
    bottom: 0;
    height: calc(100vh - 60px);
    transition: var(--transition-normal);
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.9);
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 95;
    display: none;
  }
  .sidebar-overlay.active {
    display: block;
  }

  .top-stats-bar {
    flex-wrap: wrap;
    padding: 12px 18px;
  }
  .detail-header-grid {
    grid-template-columns: 1fr;
  }
  .form-row-grid, .users-layout-grid, .backup-grid {
    grid-template-columns: 1fr;
  }
  .home-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
  .login-footer-copyright {
    bottom: 16px;
    right: 16px;
    left: 16px;
    text-align: center;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Chuck Master Center Screen Overlay & Message Animation
   ========================================================================== */

.chuck-broadcast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: chuckOverlayFadeIn 0.4s var(--ease-out) forwards;
}

.chuck-broadcast-overlay.hide {
  animation: chuckOverlayFadeOut 0.4s var(--ease-out) forwards;
}

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

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

.chuck-broadcast-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, rgba(18, 18, 24, 0.95), rgba(9, 9, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 255, 255, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: chuckModalSpringIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.chuck-broadcast-overlay.hide .chuck-broadcast-card {
  animation: chuckModalSpringOut 0.4s ease forwards;
}

@keyframes chuckModalSpringIn {
  0% {
    transform: scale(0.6) translateY(40px);
    opacity: 0;
  }
  70% {
    transform: scale(1.04) translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes chuckModalSpringOut {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(0.85) translateY(-30px);
    opacity: 0;
  }
}

.chuck-card-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chuck-card-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

.chuck-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 32px;
}

.chuck-badge-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.chuck-time-stamp {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chuck-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.chuck-avatar-glow {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
  animation: crownPulse 2s infinite alternate ease-in-out;
  flex-shrink: 0;
}

@keyframes crownPulse {
  from { transform: scale(1); box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
  to { transform: scale(1.08); box-shadow: 0 0 30px rgba(255, 255, 255, 0.3); }
}

.chuck-text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chuck-title-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.25;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.chuck-sub-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
}

.chuck-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.chuck-status-pulse {
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Videos & Tutorials View
   ========================================================================== */

.videos-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.videos-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.videos-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.videos-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.video-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.video-card-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.video-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000000;
  overflow: hidden;
}

.video-embed-container iframe,
.video-embed-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.video-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.video-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.video-date-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.video-card-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.video-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

.video-card-footer {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Login Tabs & Pending User Requests Styles
   ========================================================================== */

.login-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.login-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.login-tab-btn:hover {
  color: #ffffff;
}

.login-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pending-users-section {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.pending-users-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.pending-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #f59e0b;
}

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

.pending-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.pending-user-card {
  background: rgba(20, 20, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pending-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pending-username {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
}

.pending-email {
  font-size: 0.78rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.pending-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

.pending-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-approve-req {
  flex: 1;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-approve-req:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-reject-req {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-reject-req:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Cinema Video Player Modal Styles */
.modal-lg {
  max-width: 820px;
  width: 92%;
}

.cinema-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.cinema-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cinema-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.cinema-player-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cinema-player-container iframe,
.cinema-player-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cinema-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-play-in-site {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-play-in-site:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   TOP FIXED MUSIC PLAYER & PRESET STATIONS
   ========================================================================== */

.top-music-player-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -32px -36px 24px -36px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(139, 92, 246, 0.15);
}

.music-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  max-width: 320px;
}

.music-center-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-right-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  flex: 1;
  max-width: 380px;
}

.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.eq-bar {
  flex: 1;
  background: var(--accent-purple-light);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.top-music-player-bar.playing .eq-bar:nth-child(1) {
  animation: eq-pulse 0.6s infinite alternate ease-in-out;
}

.top-music-player-bar.playing .eq-bar:nth-child(2) {
  animation: eq-pulse 0.8s 0.2s infinite alternate ease-in-out;
}

.top-music-player-bar.playing .eq-bar:nth-child(3) {
  animation: eq-pulse 0.5s 0.4s infinite alternate ease-in-out;
}

@keyframes eq-pulse {
  0% { height: 3px; }
  100% { height: 16px; }
}

.music-info-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.music-track-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.2;
}

.music-track-artist {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.2;
}

.music-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
}

.music-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.music-btn.play-btn {
  font-size: 0.95rem;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: rgba(56, 189, 248, 0.5);
  padding: 6px 16px;
}

.music-btn.play-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.5) 0%, rgba(139, 92, 246, 0.5) 100%);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.music-btn.playlist-btn {
  font-size: 0.75rem;
  font-family: var(--font-heading);
}

/* Volume Control Widget */
.music-volume-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.music-volume-group:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.music-volume-group .volume-btn {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  padding: 2px 4px;
  cursor: pointer;
  box-shadow: none;
}

.music-volume-group .volume-btn:hover {
  transform: scale(1.15);
  background: transparent;
}

.music-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 75px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.music-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.music-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.music-volume-val {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
}

.music-progress-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.music-progress-bar-container:hover {
  background: rgba(255, 255, 255, 0.2);
  height: 8px;
}

.music-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #a78bfa 100%);
  border-radius: var(--radius-pill);
  transition: width 0.1s linear;
}

.music-time-display {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: monospace;
  min-width: 80px;
  text-align: right;
}

.playlist-presets-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.preset-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.preset-station-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.preset-station-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: #a78bfa;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.music-progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.music-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-purple-light), #ec4899);
  transition: width 0.2s linear;
}

/* Playlist Directory Tracks List */
.playlist-tracks-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.playlist-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.playlist-track-item:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}

.playlist-track-item.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple-light);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

.track-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.track-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.track-artist {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .mini-music-player {
    bottom: 70px;
    right: 12px;
    left: 12px;
    max-width: none;
    justify-content: space-between;
  }
}

.track-source-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  display: inline-block;
}

.badge-spotify {
  background: rgba(30, 215, 96, 0.15);
  color: #1ed760;
  border: 1px solid rgba(30, 215, 96, 0.3);
}

.badge-youtube {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-audio {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   AUDITORIA ORGS — COMPARATIVO E ESTATÍSTICAS DE ENTREGAS
   ========================================================================== */

.audit-card {
  padding: 28px 32px;
}

.audit-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.audit-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-fast);
}

.audit-metric-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.metric-value.color-purple {
  color: #a78bfa;
}

.metric-value.color-pink {
  color: #f43f5e;
}

.metric-value.color-green {
  color: #34d399;
}

.metric-subtext {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.badge-green {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Highlighted Growth Summary Banner */
.audit-summary-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.summary-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.summary-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #f43f5e;
  letter-spacing: 0.5px;
}

.summary-desc {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 4px;
}

/* Chart Container & Bars (matching reference image) */
.audit-chart-card {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.chart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.chart-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legend-item {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-dot.dot-today {
  background-color: #f43f5e;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
}

.legend-dot.dot-yesterday {
  background-color: #6366f1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

.chart-visual-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 180px;
  padding: 20px 10px 10px 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  overflow-x: auto;
}

.chart-time-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 45px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bars-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
  width: 100%;
  justify-content: center;
}

.chart-bar {
  width: 12px;
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease, transform 0.2s ease;
  min-height: 4px;
}

.chart-bar.bar-today {
  background: linear-gradient(180deg, #f43f5e, #e11d48);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

.chart-bar.bar-yesterday {
  background: linear-gradient(180deg, #6366f1, #4f46e5);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.chart-slot-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Audit Table */
.audit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.audit-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.audit-table td {
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.audit-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.badge-delivery-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   ENTREGA DE FAC — FORMULÁRIO COMPLETO
   ========================================================================== */

.delivery-form-card {
  padding: 32px 36px;
  max-width: 900px;
  margin: 0 auto;
}

.form-section-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-purple-light);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ==========================================================================
   ENTREGA DE FAC — SUBTABS & FACÇÕES ENTREGUES REGISTRADAS
   ========================================================================== */

.delivery-subtabs-bar {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.delivery-filters-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}

.delivery-filter-item {
  display: flex;
  flex-direction: column;
}

.filter-mini-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.modern-input-sm {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition-fast);
  height: 38px;
}

.modern-input-sm:focus {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.delivery-subtab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.delivery-subtab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

.delivery-subview.hidden {
  display: none !important;
}

.badge-count {
  background: rgba(244, 63, 94, 0.3);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.5);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.delivered-factions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.delivered-fac-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}

.delivered-fac-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.delivered-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.delivered-fac-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.delivered-meta-tag {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.tag-region {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.tag-seguimento {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.delivered-leaders-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leader-info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.leader-box-header {
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.leader-01-color {
  color: #f43f5e;
}

.leader-02-color {
  color: #6366f1;
}

.leader-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.leader-detail-item strong {
  color: var(--text-primary);
  font-weight: 700;
}

.delivery-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-delete-delivery {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.4);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-delete-delivery:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: #f43f5e;
  color: #ffffff;
}

/* 100% Invisible Background Audio Engine */
.background-audio-container {
  position: fixed !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 300px !important;
  height: 200px !important;
  opacity: 0.001 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: -9999 !important;
}

.background-audio-container iframe {
  width: 300px !important;
  height: 200px !important;
  border: none !important;
}

/* ==========================================================================
   AURA VERSE - User Profile Card Modal & User Links
   ========================================================================== */

.user-profile-link {
  cursor: pointer !important;
  color: #c084fc !important;
  font-weight: 700;
  text-decoration: underline dotted;
  transition: all 0.2s ease;
}

.user-profile-link:hover {
  color: #e9d5ff !important;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
  text-decoration: underline solid;
}

.modal-profile-card {
  width: 900px;
  max-width: 95vw;
  background: linear-gradient(135deg, rgba(18, 14, 28, 0.96), rgba(28, 20, 44, 0.96)) !important;
  border: 1px solid rgba(192, 132, 252, 0.3) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 35px rgba(168, 85, 247, 0.25) !important;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10, 8, 18, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-tab-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(124, 58, 237, 0.4));
  border-color: rgba(192, 132, 252, 0.6);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.profile-tab-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-card-body {
  padding: 24px;
}

#profile-tab-body-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  #profile-tab-body-profile {
    grid-template-columns: 1fr;
  }
}

.profile-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .profile-left-col {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
  }
}

.profile-avatar-container {
  position: relative;
  margin-top: 8px;
}

.profile-crown-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
  z-index: 2;
  animation: floatCrown 2.5s infinite ease-in-out;
}

@keyframes floatCrown {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -4px); }
}

.profile-avatar-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px solid rgba(192, 132, 252, 0.6);
  object-fit: cover;
  background: rgba(20, 20, 30, 0.8);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.profile-display-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  word-break: break-word;
}

.profile-id-badge {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.profile-likes-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-likes-btn:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  transform: scale(1.04);
}

.profile-edit-btn {
  margin-top: 4px;
  width: 100%;
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.profile-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-field-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-field-box.full-width {
  grid-column: span 2;
}

.profile-field-label {
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.profile-field-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  word-break: break-word;
}

.profile-field-value.cargo-badge {
  color: #c084fc;
  font-weight: 800;
}

.profile-bio-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
}

.profile-bio-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
}

.profile-bio-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.avatar-edit-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
}

.avatar-edit-preview-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #c084fc;
  object-fit: cover;
}

/* --- GALERIA DA FAMA & RANKINGS SYSTEM --- */
.profile-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-tab-btn:hover:not(.disabled) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.profile-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(99, 102, 241, 0.35));
  border: 1px solid rgba(192, 132, 252, 0.4);
}

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

.fame-header {
  text-align: center;
  margin-bottom: 16px;
}

.fame-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
}

.fame-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

.fame-rankings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 860px) {
  .fame-rankings-grid {
    grid-template-columns: 1fr;
  }
}

.ranking-card {
  background: rgba(15, 10, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.ranking-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.ranking-badge-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
  text-transform: uppercase;
}

.ranking-badge-pill.pill-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.ranking-badge-pill.pill-purple {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}

.ranking-card-header h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px 0;
}

.ranking-auto-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ranking-list-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ranking-item-row {
  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);
  border-radius: 8px;
  padding: 6px 10px;
  transition: background 0.15s ease;
}

.ranking-item-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.ranking-rank-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  width: 24px;
  text-align: center;
}

.ranking-rank-1 { color: #f59e0b; }
.ranking-rank-2 { color: #94a3b8; }
.ranking-rank-3 { color: #b45309; }

.ranking-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin: 0 8px;
  overflow: hidden;
}

.ranking-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ranking-username {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-score-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: #c084fc;
}

.engajamento-inputs-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.engajamento-row-input {
  display: grid;
  grid-template-columns: 32px 1fr 120px;
  gap: 8px;
  align-items: center;
}

.frame-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .frame-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.frame-card-item {
  background: rgba(15, 10, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.frame-card-item:hover {
  border-color: rgba(192, 132, 252, 0.4);
  transform: translateY(-2px);
}

.frame-card-item.active {
  border-color: #c084fc;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.1);
}

.frame-preview-box {
  position: relative;
  margin-top: 8px;
}

.frame-card-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

.frame-badge-status {
  font-size: 0.65rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
}



