/* ========================================================
   SIRENE AMIGA — Premium Dark Aurora Theme
   ======================================================== */

/* --- Design Tokens --- */
:root {
  --bg-deep: #050816;
  --bg-surface: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-elevated: rgba(30, 41, 59, 0.55);
  --bg-input: rgba(15, 23, 42, 0.6);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.1);
  --border-light: rgba(148, 163, 184, 0.18);
  --primary: #8b5cf6;
  --primary-hover: #a78bfa;
  --primary-glow: rgba(139, 92, 246, 0.25);
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.2);
  --success: #10b981;
  --danger: #ef4444;
  --danger-hover: #f87171;
  --gradient-primary: linear-gradient(135deg, #8b5cf6, #06b6d4);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-aurora: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #10b981 100%);
  --gradient-text: linear-gradient(135deg, #c4b5fd, #67e8f9, #6ee7b7);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-button: 0 4px 16px rgba(139, 92, 246, 0.3);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --glass-blur: blur(20px);
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg-deep);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  display: block;
  max-width: 100%;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Form Elements --- */
button,
input,
select,
textarea {
  font: inherit;
  color: var(--text-primary);
  border: none;
  outline: none;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

input::placeholder {
  color: var(--text-muted);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

input[type="range"] {
  padding: 0;
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  margin: 0.5rem 0;
}

input[type="range"]::-webkit-slider-track {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-elevated);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-surface);
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 0 8px var(--primary-glow);
}

input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 12px var(--primary-glow);
}

input[type="checkbox"] {
  width: 44px;
  height: 24px;
  padding: 0;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--transition-normal), background var(--transition-fast);
}

input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
  transform: translateX(20px);
  background: white;
}

/* --- Buttons --- */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

button:hover {
  background: rgba(51, 65, 85, 0.6);
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.25);
}

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

button.primary {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-button);
}

button.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

button.gradient-btn {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-button);
  position: relative;
  overflow: hidden;
}

button.gradient-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

button.gradient-btn:hover::before {
  opacity: 1;
}

button.danger {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

button.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--danger-hover);
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-btn.lg {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}

/* --- Utility --- */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.muted {
  color: var(--text-muted);
}

label {
  display: block;
}

label .label-text {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Pill / Badge --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-glow);
  color: var(--primary-hover);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.pill.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.25);
}

.pill.offline {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.25);
  animation: pulse-pill 2s ease-in-out infinite;
}

.pill.muted-pill {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  border-color: rgba(100, 116, 139, 0.2);
}

.pill.active-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.25);
}

@keyframes pulse-pill {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* --- Card / Panel --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-normal);
}

.card:hover {
  border-color: var(--border-light);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header .card-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.card-icon.purple { background: var(--primary-glow); }
.card-icon.cyan { background: rgba(6, 182, 212, 0.2); }
.card-icon.amber { background: var(--accent-glow); }
.card-icon.green { background: rgba(16, 185, 129, 0.2); }
.card-icon.red { background: rgba(239, 68, 68, 0.15); }

/* --- Item Card (tracks, schedules, users) --- */
.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.item-card:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: var(--border-light);
}

.item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.item-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0 0;
}

.item-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.actions-row {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.promote-global {
  font-size: 1.1rem;
  padding: 0.4rem 0.6rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.promote-global:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
  transform: scale(1.05);
}

/* --- Import Global Button --- */
.import-global-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.03));
  border: 1px dashed rgba(6, 182, 212, 0.35);
  color: #06b6d4;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.75rem;
}

.import-global-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-style: solid;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

/* --- Import Panel --- */
.import-panel {
  margin-bottom: 0.75rem;
  animation: recording-fade-in 0.3s ease;
}

.import-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.import-close-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.import-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.import-global-list {
  display: grid;
  gap: 0.4rem;
  max-height: 360px;
  overflow-y: auto;
}

.import-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.import-track-item:hover {
  border-color: var(--border-light);
}

.import-track-item.imported {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.import-track-info {
  flex: 1;
  min-width: 0;
}

.import-track-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.import-toggle-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.import-toggle-btn.add {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #06b6d4;
}

.import-toggle-btn.add:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: rgba(6, 182, 212, 0.5);
}

.import-toggle-btn.remove {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.import-toggle-btn.remove:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.import-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Switch component --- */
.switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.switch span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.switch input {
  width: auto;
}

/* =========================================
   LANDING PAGE — Tema "Escola Alegre"
   Os tokens são redefinidos SOMENTE no escopo .landing:
   a página de vendas fica clara e colorida (público escolar)
   e o painel (#app-view) permanece no dark aurora.
   ========================================= */
.landing {
  --bg-deep: #fff8ec;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-elevated: rgba(255, 255, 255, 0.75);
  --bg-input: #fffdf7;
  --text-primary: #253052;
  --text-secondary: #4c5a80;
  --text-muted: #6f7ea1;
  --border: rgba(37, 48, 82, 0.1);
  --border-light: rgba(37, 48, 82, 0.18);
  --primary: #ff5d5d;
  --primary-hover: #e6403f;
  --primary-glow: rgba(255, 93, 93, 0.16);
  --secondary: #1e9be9;
  --accent: #ffb020;
  --accent-glow: rgba(255, 176, 32, 0.24);
  --gradient-primary: linear-gradient(135deg, #ff9130, #ff5d73);
  --gradient-warm: linear-gradient(135deg, #ffb020, #ff5d5d);
  --gradient-aurora: linear-gradient(135deg, #ff5d73 0%, #ffb020 50%, #35c98e 100%);
  --gradient-text: linear-gradient(115deg, #ff4f68, #ff9210 48%, #1e9be9);
  --shadow-glow: 0 0 60px rgba(255, 176, 32, 0.14);
  --shadow-card: 0 10px 30px rgba(64, 50, 18, 0.1);
  --shadow-button: 0 4px 16px rgba(255, 93, 93, 0.35);
  position: relative;
  min-height: 100vh;
  animation: land-in 600ms ease both;
  color: var(--text-primary);
  /* faixa arco-íris no topo + fundo creme acolhedor */
  background:
    linear-gradient(90deg, #ff5d73, #ffb020, #ffd93d, #56c98e, #4db3ff, #a983ff) top / 100% 8px no-repeat,
    var(--bg-deep);
}

/* Céu ensolarado (substitui o aurora mesh no tema claro) */
.landing::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 14% 10%, rgba(255, 201, 66, 0.32), transparent),
    radial-gradient(ellipse 45% 55% at 86% 18%, rgba(94, 190, 255, 0.28), transparent),
    radial-gradient(ellipse 40% 40% at 72% 88%, rgba(86, 201, 142, 0.24), transparent),
    radial-gradient(ellipse 35% 35% at 18% 82%, rgba(255, 143, 171, 0.22), transparent);
  z-index: -1;
  pointer-events: none;
}

/* Sol flutuante */
.landing::after {
  content: '';
  position: fixed;
  top: 10%;
  right: 10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 54, 0.22), transparent 70%);
  animation: float-orb 12s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.05); }
  66% { transform: translate(20px, -30px) scale(0.95); }
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* -- Landing Nav -- */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--primary-glow);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--primary-hover);
}

/* -- Hero Section -- */
.landing-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 2rem 0 4rem;
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--primary-hover);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.hero-btn.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
  border: none;
}

.hero-btn.primary:hover {
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.hero-btn.secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.hero-btn.secondary:hover {
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text-primary);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trust-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

/* -- Auth Card -- */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: sticky;
  top: 2rem;
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.auth-header {
  margin-bottom: 1.5rem;
}

.auth-header .eyebrow-text {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-hover);
  margin-bottom: 0.35rem;
}

.auth-header h2 {
  font-size: 1.8rem;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form button[type="submit"] {
  margin-top: 0.35rem;
}

/* O grid do .auth-form estica os filhos; o label precisa alinhar caixa e texto
   sem herdar a largura total, e o texto tem que quebrar no celular. */
.lembrar-login {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: normal;
  min-width: 0;
}

/* NÃO redimensionar o checkbox aqui: o design system o desenha como interruptor
   (44x24, appearance:none) e o botão deslizante do ::after anda 20px ao marcar.
   Encolher a caixa faz o botão sair dela e cobrir o texto do label. */
.lembrar-login input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}

.auth-form button:not(.primary) {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.auth-form button:not(.primary):hover {
  color: var(--primary-hover);
  border-color: var(--primary-glow);
}

/* -- Feature Strip -- */
.features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 3rem 0;
}

.feature-strip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-normal);
}

.feature-strip-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.feature-number {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.feature-strip-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.feature-strip-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* -- Story Section -- */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 0;
}

.story-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
}

.story-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* -- Feature Grid -- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 0 4rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-normal);
  min-height: 180px;
}

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

.feature-card.tall {
  grid-row: span 2;
}

.feature-card.wide {
  grid-column: span 2;
}

.feature-icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-icon-box.purple {
  background: var(--primary-glow);
}

.feature-icon-box.cyan {
  background: rgba(6, 182, 212, 0.18);
}

.feature-icon-box.amber {
  background: var(--accent-glow);
}

.feature-icon-box.green {
  background: rgba(16, 185, 129, 0.18);
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* -- Landing Footer -- */
.landing-footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

@keyframes land-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -- Tema claro: ajustes de cor que eram hardcoded p/ fundo escuro -- */
.landing .brand-icon {
  box-shadow: 0 4px 16px rgba(255, 93, 93, 0.35);
  transform: rotate(-4deg);
}

.landing .nav-cta:hover {
  border-color: rgba(255, 93, 93, 0.35);
}

.landing .hero-eyebrow {
  border-color: rgba(255, 145, 48, 0.35);
  background: rgba(255, 176, 32, 0.16);
  color: #c25e00;
}

.landing .hero-btn.primary {
  box-shadow: 0 6px 24px rgba(255, 93, 93, 0.35);
}

.landing .hero-btn.primary:hover {
  box-shadow: 0 8px 32px rgba(255, 93, 93, 0.5);
}

.landing .feature-icon-box.purple { background: rgba(169, 131, 255, 0.24); }
.landing .feature-icon-box.cyan { background: rgba(77, 179, 255, 0.26); }
.landing .feature-icon-box.amber { background: rgba(255, 176, 32, 0.28); }
.landing .feature-icon-box.green { background: rgba(86, 201, 142, 0.28); }

.landing .feature-strip-card { border-top: 4px solid var(--accent); }
.landing .feature-strip-card:nth-child(2) { border-top-color: var(--secondary); }
.landing .feature-strip-card:nth-child(3) { border-top-color: #56c98e; }

/* -- Demo Video -- */
.video-section {
  padding: 1rem 0 3.5rem;
}

.video-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.75rem;
}

.video-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.video-header p {
  color: var(--text-secondary);
}

.video-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #10142a; /* moldura escura: as tarjas do vídeo somem nela */
  border: 6px solid #ffffff;
  box-shadow: 0 18px 48px rgba(37, 48, 82, 0.25);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 1280 / 726; /* reserva o espaço antes do load (evita layout shift) */
}

.video-sound-btn {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255, 93, 93, 0.45);
  animation: sound-btn-pulse 2.4s ease-in-out infinite;
  transition: transform var(--transition-fast);
}

.video-sound-btn:hover {
  transform: translateX(-50%) scale(1.05);
  animation-play-state: paused;
}

@keyframes sound-btn-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(255, 93, 93, 0.45); }
  50% { box-shadow: 0 6px 24px rgba(255, 93, 93, 0.45), 0 0 0 12px rgba(255, 93, 93, 0.12); }
}

/* =========================================
   APP VIEW
   ========================================= */
.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 6rem;
  animation: app-in 400ms ease both;
}

@keyframes app-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -- Top Bar -- */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.topbar-brand {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.topbar-info {
  min-width: 0;
}

.topbar-info .school-label {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-info .school-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* -- School Switcher -- */
.school-switcher {
  display: block;
  max-width: 100%;
  margin-bottom: 0.75rem;
}

.school-switcher span {
  display: none;
}

.school-switcher select {
  font-size: 0.82rem;
}

/* -- Player Section -- */
.player-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.player-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.player-toggle input[type="checkbox"] {
  position: relative;
  width: 40px;
  height: 22px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-elevated);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.player-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-fast);
}

.player-toggle input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.player-toggle input[type="checkbox"]:checked::after {
  left: 20px;
  background: white;
}

.player-toggle span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Help Button (?) */
.player-help-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--primary-hover);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.player-help-btn:hover {
  background: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
  transform: scale(1.1);
}

/* Help Tooltip */
.player-help-tooltip {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 0.5rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: recording-fade-in 0.3s ease;
}

.player-help-tooltip h4 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.player-help-tooltip p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.player-help-tooltip ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.player-help-tooltip ul li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
}

.player-help-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-help-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* -- Player Master Volume -- */
.player-volume-section {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-sm);
  animation: fade-slide-in 300ms ease both;
}

@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.player-volume-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-volume-icon {
  font-size: 1rem;
  flex-shrink: 0;
  user-select: none;
}

.player-master-slider {
  flex: 1;
  min-width: 0;
}

.player-volume-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-hover);
  min-width: 3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.visual-stage {
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8)),
    radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.08), transparent 50%);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: min-height var(--transition-smooth);
}

.visual-stage.expanded {
  min-height: 320px;
}

.visual-stage img,
.visual-stage video {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  background: #000;
}

.visual-stage p {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.player-audio-status {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-audio-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.player-audio-status.playing .status-dot {
  background: var(--success);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.player-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.player-controls button {
  flex: 1;
  min-width: 100px;
}

/* -- Tab Navigation -- */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.tab-btn .tab-icon {
  font-size: 1rem;
}

.tab-content {
  display: none;
  animation: tab-in 300ms ease both;
}

.tab-content.active {
  display: grid;
  gap: 1rem;
}

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

/* -- Form Grids -- */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.form-row.compact {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.form-row .full-width {
  grid-column: 1 / -1;
}

/* Relé — linhas de configuração de canal */
.relay-channels {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.relay-ch-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.relay-ch-num {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 3rem;
  opacity: 0.85;
}
.relay-ch-row .relay-ch-label {
  flex: 1 1 8rem;
  min-width: 6rem;
}
.relay-ch-row .relay-ch-mode {
  flex: 0 0 auto;
}
.relay-ch-manual {
  display: inline-flex;
  gap: 0.3rem;
}
.relay-ch-manual .relay-on-btn,
.relay-ch-manual .relay-off-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
}
.relay-ch-manual .relay-on-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}
.relay-ch-manual .relay-off-btn {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Aba Liga/Desliga — controle manual (uso diário) */
.relay-device-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.02);
}
.relay-device-head {
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.relay-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}
.relay-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.relay-btn-group.relay-state-on {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35) inset;
}
.relay-btn-group.relay-state-off {
  border-color: rgba(239, 68, 68, 0.4);
}
.relay-btn-num {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.relay-btns {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}
.relay-big {
  flex: 1;
  padding: 0.6rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
}
.relay-big-on {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  color: #d1fae5;
}
.relay-big-on:active {
  background: rgba(16, 185, 129, 0.32);
}
.relay-big-off {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fee2e2;
}
.relay-big-off:active {
  background: rgba(239, 68, 68, 0.3);
}
.relay-btn-desc {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.1em;
  text-align: center;
}

/* Upload file button (mobile-friendly) */
.upload-file-label {
  cursor: pointer;
}

.upload-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.upload-file-btn {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px dashed var(--border-light);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-file-btn:hover,
.upload-file-btn:active {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--primary);
  color: var(--primary-hover);
}

/* Show filename when selected */
.upload-file-label.has-file .upload-file-btn {
  border-style: solid;
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
}

/* -- Days Picker -- */
.days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  grid-column: 1 / -1;
}

.day-chip {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.day-chip:hover {
  border-color: var(--primary-glow);
  color: var(--text-secondary);
}

.day-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* -- Announce Form -- */
.announce-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

/* -- Toast notifications -- */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: grid;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 2rem);
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  pointer-events: auto;
  animation: toast-in 300ms ease both;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.toast.leaving {
  animation: toast-out 250ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px) scale(0.95); }
}

/* -- User Form -- */
.user-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 880px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.5rem 0 2rem;
  }

  .auth-card {
    position: static;
    max-width: 100%;
    justify-self: stretch;
  }

  .features-strip {
    grid-template-columns: 1fr;
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card.tall,
  .feature-card.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .app-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-right {
    justify-content: flex-end;
  }

  .player-controls {
    flex-direction: column;
  }

  .player-controls button {
    min-width: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .announce-row {
    grid-template-columns: 1fr;
  }

  .item-card {
    flex-direction: column;
    align-items: stretch;
  }

  .actions-row {
    justify-content: flex-end;
  }

  .tab-btn .tab-label {
    display: none;
  }

  .tab-btn .tab-icon {
    font-size: 1.2rem;
  }

  .tab-btn {
    padding: 0.65rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .days {
    justify-content: center;
  }
}

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.35);
}

/* =========================================
   WAVE ANIMATION (landing decoration)
   ========================================= */
.wave-decoration {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--gradient-primary);
  animation: wave-bounce 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 60%; animation-delay: 0.4s; }

@keyframes wave-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* =========================================
   EMPTY STATE
   ========================================= */
.empty-state {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
}

.empty-state .empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* =========================================
   INTERCOM — Dual Mode (Audio + Live)
   ========================================= */

/* Mode Switcher */
.intercom-mode-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.mode-tab {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.mode-tab:not(.active):hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.1);
}

/* Mode Panels */
.intercom-mode-panel {
  min-height: 120px;
}

/* Audio States */
.audio-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

/* Mic Button (idle) */
.audio-mic-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 2.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04));
  border: 2px solid rgba(239, 68, 68, 0.25);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.audio-mic-btn .mic-icon {
  width: 36px;
  height: 36px;
  color: var(--danger);
  transition: transform var(--transition-fast);
}

.audio-mic-btn span {
  font-size: 0.9rem;
  font-weight: 600;
}

.audio-mic-btn:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
  color: var(--text-primary);
}

.audio-mic-btn:hover .mic-icon {
  transform: scale(1.1);
}

.audio-mic-btn:active {
  transform: scale(0.97);
}

/* Recording State */
.audio-recording-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-lg);
  animation: recording-fade-in 0.3s ease;
}

@keyframes recording-fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  animation: rec-blink 1s ease-in-out infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.rec-timer {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--danger);
  min-width: 3.5rem;
}

/* Animated Waveform */
.recording-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
}

.recording-wave span {
  width: 3px;
  background: var(--danger);
  border-radius: 2px;
  animation: wave-bar 0.8s ease-in-out infinite;
}

.recording-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.recording-wave span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.recording-wave span:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.recording-wave span:nth-child(4) { height: 60%; animation-delay: 0.45s; }
.recording-wave span:nth-child(5) { height: 30%; animation-delay: 0.6s; }

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Stop Button */
.audio-stop-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  background: var(--danger);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.audio-stop-btn svg {
  width: 16px;
  height: 16px;
}

.audio-stop-btn:hover {
  background: var(--danger-hover);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* Review State */
.audio-review-ui {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  animation: recording-fade-in 0.3s ease;
}

.audio-preview {
  width: 100%;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.audio-preview::-webkit-media-controls-panel {
  background: var(--bg-elevated);
}

.audio-review-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.audio-review-actions button {
  flex: 1;
  min-width: 90px;
}

.save-btn {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #06b6d4;
}

.save-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
}

/* Save Name Dialog */
.audio-save-dialog-ui {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  animation: recording-fade-in 0.3s ease;
}

.audio-save-dialog-ui h4 {
  font-size: 0.95rem;
  margin: 0;
}

/* Saved Recordings List */
.saved-recordings {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.saved-recordings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.saved-recordings-header h4 {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-secondary);
}

.saved-recordings-list {
  display: grid;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
}

.saved-rec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.saved-rec-item:hover {
  border-color: var(--border-light);
  background: rgba(30, 41, 59, 0.75);
}

.saved-rec-info {
  flex: 1;
  min-width: 0;
}

.saved-rec-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-rec-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.saved-rec-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.saved-rec-actions button {
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
}

.saved-rec-empty {
  text-align: center;
  padding: 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Live Mode (Push-to-Talk) — existing styles */
.talk-btn {
  width: 100%;
  min-height: 72px;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--bg-elevated);
  border: 2px solid var(--border-light);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.talk-btn:hover {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
  color: var(--text-primary);
}

.talk-btn:active {
  transform: scale(0.98);
}

.talk-btn.recording {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  color: white;
  animation: talk-pulse 1.2s ease-in-out infinite;
}

@keyframes talk-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0);
  }
}

.talk-btn.recording::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.1), transparent 60%);
  transform: translate(-50%, -50%);
  animation: talk-glow 2s ease-in-out infinite;
}

@keyframes talk-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Microfone de bastão virtual (public/bastao.js) */
.intercom-bastao {
  justify-content: flex-start;
  text-align: left;
  margin: 0.25rem 0.25rem 0.9rem;
}

/* `.switch input { width: auto }` esmaga a chave (appearance: none não tem
   largura própria) — aqui ela volta aos 44px do input[type="checkbox"] global */
.intercom-bastao input {
  width: 44px;
}

.intercom-bastao a {
  color: var(--secondary);
}

.intercom-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Hero Talk Button (prominent for operators) */
.talk-btn-hero {
  min-height: 90px;
  font-size: 1.3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02));
  border: 2px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.08);
}

.talk-btn-hero:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
}

/* =========================================
   COMMUNICATOR HERO — Premium emphasis
   ========================================= */
.intercom-hero {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(139, 92, 246, 0.5), rgba(6, 182, 212, 0.5)) border-box;
  box-shadow:
    0 0 20px rgba(239, 68, 68, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.2);
}

.intercom-hero .card-header h2 {
  font-size: 1.15rem;
  background: linear-gradient(135deg, #ef4444, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intercom-hero .card-icon {
  font-size: 1.3rem;
}

/* TTS Controls */
.tts-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 480px) {
  .tts-controls {
    grid-template-columns: 1fr 1fr;
  }
}

.tts-voice-label select {
  width: 100%;
}

.volume-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vol-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.vol-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 36px;
  text-align: right;
}

/* Custom range slider */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
  transition: background var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(var(--gradient-primary));
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.5);
}

.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(var(--gradient-primary));
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
  cursor: pointer;
  border: none;
}

.volume-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
}

/* Incoming intercom banner on player */
.intercom-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--danger-hover);
  font-size: 0.85rem;
  font-weight: 600;
  animation: intercom-in 300ms ease both;
}

.intercom-banner .rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse-dot 1s ease-in-out infinite;
}

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

/* =========================================
   ADMIN PANEL
   ========================================= */

/* Current school badge (shown when super_admin is managing a specific school) */
.admin-school-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  margin: 0 var(--spacing-md);
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-size: 0.82rem;
}

.admin-school-badge .badge-label {
  color: var(--text-muted);
  font-weight: 500;
}

.admin-school-badge .badge-name {
  color: var(--primary);
  font-weight: 700;
  flex: 1;
}

.admin-school-badge .badge-btn {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-school-badge .badge-btn:hover {
  background: rgba(139, 92, 246, 0.25);
}

/* Search input */
.admin-search {
  margin-bottom: 1rem;
}

.admin-search input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.admin-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-search input::placeholder {
  color: var(--text-muted);
}

/* Schools grid */
.admin-schools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

/* School card */
.school-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  cursor: default;
}

.school-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.04);
}

.school-card.active {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
}

.school-card .school-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.school-card .school-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(var(--gradient-primary));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
}

.school-card .school-card-info {
  flex: 1;
  min-width: 0;
}

.school-card .school-card-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  word-break: break-word;
}

.school-card .school-card-slug {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.school-card .school-card-stats {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.school-card .stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.school-card .stat-icon {
  font-size: 0.7rem;
}

.school-card .enter-school-btn {
  width: 100%;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(var(--gradient-primary));
  border: none;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0.85;
}

.school-card .enter-school-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.admin-no-results {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --- Quick Messages --- */
.quick-msg-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-msg-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  width: 100%;
}

.quick-msg-btn:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
}

.quick-msg-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-msg-item .quick-msg-btn {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-msg-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.quick-msg-action-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
  line-height: 1;
}

.quick-msg-action-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

.quick-msg-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* --- Expositor Mode --- */
body.expositor-mode {
  background: #000;
}

body.expositor-mode .app-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
}

body.expositor-mode .player-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  background: #000;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.expositor-mode .visual-stage {
  flex: 1;
  min-height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.expositor-mode .visual-stage img,
body.expositor-mode .visual-stage video {
  width: 100%;
  height: 100vh;
  max-height: 100vh !important;
  object-fit: contain;
}

body.expositor-mode .player-top,
body.expositor-mode .player-controls,
body.expositor-mode .player-volume-section,
body.expositor-mode .player-audio-status {
  display: none;
}

body.expositor-mode .intercom-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

/* Expositor floating exit button — hidden in fullscreen, visible when ESC exits */
.expositor-exit-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 300ms ease;
  opacity: 0;
  pointer-events: none;
}

/* Show button when NOT in fullscreen */
body.expositor-mode:not(.expositor-fullscreen) .expositor-exit-btn {
  opacity: 1;
  pointer-events: auto;
}

.expositor-exit-btn:hover,
.expositor-exit-btn:active {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--danger-hover);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

/* =========================================
   ONBOARDING OVERLAY — Kid-Friendly Tour
   ========================================= */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: onb-fade-in 400ms ease both;
}

@keyframes onb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.onboarding-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--glass-blur);
  padding: 2rem 1.5rem 1.5rem;
}

/* -- Skip Button -- */
.onboarding-skip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(100, 116, 139, 0.25);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  z-index: 10;
  transition: all var(--transition-fast);
}

.onboarding-skip:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

/* -- Progress Bar -- */
.onboarding-progress {
  height: 4px;
  background: rgba(100, 116, 139, 0.15);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  width: 14.28%;
  background: var(--gradient-aurora);
  border-radius: 2px;
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* -- Slides -- */
.onboarding-slides {
  position: relative;
  min-height: 340px;
}

.onboarding-slide {
  display: none;
  text-align: center;
  animation: onb-slide-in 450ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.onboarding-slide.active {
  display: block;
}

@keyframes onb-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* -- Emoji Animations -- */
.onboarding-emoji-box {
  margin-bottom: 1.25rem;
}

.onboarding-emoji {
  display: inline-block;
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(139, 92, 246, 0.3));
}

.onboarding-emoji.bounce {
  animation: onb-bounce 2s ease-in-out infinite;
}

.onboarding-emoji.pulse-big {
  animation: onb-pulse-big 2s ease-in-out infinite;
}

.onboarding-emoji.wiggle {
  animation: onb-wiggle 2.5s ease-in-out infinite;
}

.onboarding-emoji.swing {
  animation: onb-swing 3s ease-in-out infinite;
  transform-origin: center top;
}

.onboarding-emoji.party {
  animation: onb-party 1.5s ease-in-out infinite;
}

@keyframes onb-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes onb-pulse-big {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

@keyframes onb-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(8deg); }
  75%      { transform: rotate(-8deg); }
}

@keyframes onb-swing {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(12deg); }
  75%      { transform: rotate(-12deg); }
}

@keyframes onb-party {
  0%   { transform: scale(1) rotate(0deg); }
  20%  { transform: scale(1.1) rotate(-5deg); }
  40%  { transform: scale(1.15) rotate(5deg); }
  60%  { transform: scale(1.1) rotate(-3deg); }
  80%  { transform: scale(1.05) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* -- Slide Content -- */
.onboarding-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.onboarding-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.onboarding-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* -- Fun Fact Box -- */
.onboarding-fun-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: left;
}

.onboarding-fun-fact span:first-child {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* -- Tip Box -- */
.onboarding-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: left;
}

.onboarding-tip-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: -2px;
}

.onboarding-tip-box strong {
  color: var(--success);
}

/* -- Warn Box (aviso: PC do som sempre ligado) -- */
.onboarding-warn-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: left;
  margin-bottom: 0.6rem;
}

.onboarding-warn-box strong {
  color: var(--accent);
}

/* -- Roles Grid (slide de perfis da equipe) -- */
.onboarding-roles {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 400px;
  margin: 0 auto;
}

.onboarding-role {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.35;
}

.onboarding-role-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: -1px;
}

.onboarding-role strong {
  color: var(--text-primary);
}

/* -- Steps -- */
.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 320px;
  margin: 0 auto;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: left;
}

.step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* -- Example Box -- */
.onboarding-example {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  max-width: 360px;
  margin: 0 auto;
}

.example-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.example-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
}

/* -- Navigation -- */
.onboarding-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.onboarding-btn-nav {
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  min-width: 110px;
}

.onboarding-btn-nav:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.6);
  color: var(--text-primary);
}

.onboarding-btn-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.onboarding-btn-primary {
  background: var(--gradient-primary) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.onboarding-btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

/* -- Dots -- */
.onboarding-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.onboarding-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--gradient-primary);
}

.onboarding-dot:hover:not(.active) {
  background: rgba(100, 116, 139, 0.5);
}

/* -- Responsive -- */
@media (max-width: 600px) {
  .onboarding-container {
    padding: 1.5rem 1.15rem 1.15rem;
    border-radius: var(--radius-lg);
    max-height: 95vh;
  }

  .onboarding-emoji {
    font-size: 3.5rem;
  }

  .onboarding-title {
    font-size: 1.3rem;
  }

  .onboarding-text {
    font-size: 0.92rem;
  }

  .onboarding-slides {
    min-height: 300px;
  }

  .onboarding-btn-nav {
    min-width: 90px;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* =============================================
   NOW PLAYING BAR — Global audio indicator
   ============================================= */
.now-playing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  margin: 0.5rem 0;
  animation: nowPlayingPulse 2s ease-in-out infinite;
}

.now-playing-bar.hidden {
  display: none;
}

@keyframes nowPlayingPulse {
  0%, 100% { border-color: rgba(139, 92, 246, 0.25); }
  50% { border-color: rgba(139, 92, 246, 0.5); }
}

.now-playing-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 0;
}

.now-playing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: dotPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.4; box-shadow: none; }
}

.global-stop-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.global-stop-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: scale(1.03);
}

/* =============================================
   ANNOUNCE / RECADO FALADO SCHEDULE
   ============================================= */
.announce-form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.announce-form-actions .gradient-btn {
  flex: 1;
  min-width: 140px;
}

.announce-schedule-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.announce-schedule-summary {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  transition: background var(--transition-fast);
}

.announce-schedule-summary:hover {
  background: rgba(139, 92, 246, 0.06);
}

.announce-schedule-body {
  padding: 0.75rem;
}

.announce-days-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.announce-days-row .label-text {
  font-size: 0.8rem;
  margin-right: 0.2rem;
}

.day-check {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.day-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

/* =============================================
   COLLAPSIBLE MEDIA GROUPS
   ============================================= */
.media-group {
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.media-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.media-group-header:hover {
  background: rgba(139, 92, 246, 0.06);
}

.media-group-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary-hover);
}

.media-group-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.media-group-body {
  max-height: 600px;
  overflow-y: auto;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0.5rem 0.5rem;
}

.media-group-body.collapsed {
  max-height: 0;
  overflow: hidden;
  padding: 0;
}

.media-compact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.08);
  transition: background var(--transition-fast);
}

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

.media-compact-row:hover {
  background: rgba(139, 92, 246, 0.04);
}

.media-compact-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.media-compact-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.media-compact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.media-compact-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-compact-actions {
  display: flex;
  gap: 0.2rem;
  flex-shrink: 0;
}

.media-compact-actions button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0;
}

.media-compact-actions button:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--primary-hover);
}

.media-compact-actions .danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

/* =============================================
   SLIDESHOW / APRESENTAÇÃO MODULE
   ============================================= */
.gradient-icon {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slideshow-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -0.5rem 0 0.75rem;
}

.slideshow-section {
  margin-bottom: 0.75rem;
}

/* Selected media thumbnails */
.slideshow-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.slideshow-selected-empty {
  color: var(--text-muted);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.slideshow-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: grab;
  transition: all var(--transition-fast);
}

.slideshow-thumb:hover {
  border-color: var(--primary);
  transform: scale(1.08);
}

.slideshow-thumb img,
.slideshow-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-thumb .thumb-type {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.65);
  font-size: 0.6rem;
  text-align: center;
  padding: 1px 0;
  color: white;
}

.slideshow-thumb .thumb-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  border: none;
  color: white;
  font-size: 0.6rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.slideshow-thumb:hover .thumb-remove {
  display: flex;
}

.slideshow-thumb .thumb-order {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0 4px;
}

/* Add media button */
.slideshow-add-btn {
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px dashed rgba(139, 92, 246, 0.3);
  color: var(--primary-hover);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slideshow-add-btn:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--primary);
}

/* Media picker grid */
.slideshow-picker {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  animation: recording-fade-in 0.25s ease;
}

.slideshow-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 0.5rem;
}

.slideshow-picker-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slideshow-picker-item:hover {
  border-color: var(--primary-hover);
}

.slideshow-picker-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.slideshow-picker-item.selected::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-picker-item img,
.slideshow-picker-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-picker-item .picker-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  font-size: 0.62rem;
  padding: 12px 4px 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slideshow-picker-done {
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  border: none;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Duration row */
.slideshow-duration-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slideshow-duration-val {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-hover);
  min-width: 30px;
}

/* Actions */
.slideshow-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.slideshow-play-btn {
  flex: 1;
  min-height: 48px;
  font-size: 1rem;
}

.slideshow-stop-btn {
  flex: 1;
  min-height: 48px;
  font-size: 1rem;
}

.slideshow-save-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--primary-hover);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.slideshow-save-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
}

/* Saved Presentations */
.saved-presentations-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.saved-pres-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  transition: all var(--transition-fast);
}

.saved-pres-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
}

.saved-pres-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.saved-pres-info strong {
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-pres-info .muted {
  font-size: 0.72rem;
}

.saved-pres-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.saved-pres-actions button {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.saved-pres-actions .load-pres-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #67e8f9;
}

.saved-pres-actions .play-pres-btn {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.saved-pres-actions .play-pres-btn:hover {
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.saved-pres-actions .delete-pres-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

/* =============================================
   SLIDESHOW ENGINE (player-side transitions)
   ============================================= */
.slideshow-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: none;
}

.slideshow-slide.active {
  opacity: 1;
  z-index: 2;
}

.slideshow-slide.exiting {
  z-index: 1;
}

.slideshow-slide img,
.slideshow-slide video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Progress bar */
.slideshow-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #06b6d4);
  z-index: 8001;
  transition: width linear;
}

/* Slide counter */
.slideshow-counter {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 8002;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

/* Floating stop button (over fullscreen slideshow) */
.slideshow-float-stop {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 8003;
  background: rgba(239, 68, 68, 0.85);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
  opacity: 0.6;
}

.slideshow-float-stop:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(239, 68, 68, 0.6);
}

/* TRANSITION: Fade */
.tr-fade .slideshow-slide.active {
  animation: ss-fade-in 0.8s ease forwards;
}
.tr-fade .slideshow-slide.exiting {
  animation: ss-fade-out 0.8s ease forwards;
}

@keyframes ss-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ss-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* TRANSITION: Slide */
.tr-slide .slideshow-slide.active {
  animation: ss-slide-in 0.6s ease forwards;
}
.tr-slide .slideshow-slide.exiting {
  animation: ss-slide-out 0.6s ease forwards;
}

@keyframes ss-slide-in { from { transform: translateX(100%); opacity: 1; } to { transform: translateX(0); opacity: 1; } }
@keyframes ss-slide-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-100%); opacity: 0; } }

/* TRANSITION: Zoom */
.tr-zoom .slideshow-slide.active {
  animation: ss-zoom-in 0.7s ease forwards;
}
.tr-zoom .slideshow-slide.exiting {
  animation: ss-zoom-out 0.7s ease forwards;
}

@keyframes ss-zoom-in { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ss-zoom-out { from { transform: scale(1); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

/* TRANSITION: Flip */
.tr-flip { perspective: 1200px; }
.tr-flip .slideshow-slide.active {
  animation: ss-flip-in 0.8s ease forwards;
}
.tr-flip .slideshow-slide.exiting {
  animation: ss-flip-out 0.8s ease forwards;
}

@keyframes ss-flip-in { from { transform: rotateY(90deg); opacity: 0; } to { transform: rotateY(0); opacity: 1; } }
@keyframes ss-flip-out { from { transform: rotateY(0); opacity: 1; } to { transform: rotateY(-90deg); opacity: 0; } }

/* TRANSITION: Dissolve */
.tr-dissolve .slideshow-slide.active {
  animation: ss-dissolve-in 1.2s ease forwards;
}
.tr-dissolve .slideshow-slide.exiting {
  animation: ss-dissolve-out 1.2s ease forwards;
}

@keyframes ss-dissolve-in { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes ss-dissolve-out { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(8px); } }

/* TRANSITION: Ken Burns */
.tr-kenburns .slideshow-slide.active {
  animation: ss-kenburns 10s ease forwards;
}
.tr-kenburns .slideshow-slide.exiting {
  animation: ss-fade-out 1s ease forwards;
}

@keyframes ss-kenburns {
  0% { transform: scale(1) translate(0, 0); opacity: 1; }
  100% { transform: scale(1.15) translate(-2%, -2%); opacity: 1; }
}

/* =============================================
   SLIDESHOW TUTORIAL
   ============================================= */
.slideshow-tutorial {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
  animation: recording-fade-in 0.3s ease;
}

.slideshow-tutorial-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-tutorial-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.tutorial-step {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tutorial-step:last-of-type {
  margin-bottom: 0.5rem;
}

.tutorial-step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-step-content h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}

.tutorial-step-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 0.2rem;
  line-height: 1.45;
}

.tutorial-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.tutorial-effects span {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary-hover);
  font-weight: 600;
}

.tutorial-tip {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  margin-top: 0.5rem;
}

.tutorial-tip h4 {
  font-size: 0.85rem;
  color: #22c55e;
  margin: 0 0 0.2rem;
}

.tutorial-tip p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

/* =========================================
   RECESS TIMER — Cronômetro do Recreio
   ========================================= */

/* --- Fullscreen Mode --- */
.recess-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0a0f1e 0%, #111827 50%, #0f172a 100%);
  transition: opacity 500ms ease;
}

.recess-content {
  text-align: center;
  padding: 2rem;
  max-width: 90vw;
}

.recess-emoji {
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 24px rgba(139, 92, 246, 0.3));
  animation: recess-float 3s ease-in-out infinite;
}

.recess-emoji-warning {
  animation: recess-shake 0.8s ease-in-out infinite !important;
}

.recess-emoji-urgent {
  animation: recess-pulse 0.5s ease-in-out infinite !important;
  filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.6)) !important;
}

.recess-label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.recess-time {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow:
    0 0 40px rgba(139, 92, 246, 0.4),
    0 0 80px rgba(6, 182, 212, 0.2);
  letter-spacing: 0.05em;
}

.recess-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 500;
}

.recess-progress-bar {
  width: min(80vw, 600px);
  height: 12px;
  border-radius: 6px;
  background: rgba(100, 116, 139, 0.2);
  margin: 0 auto;
  overflow: hidden;
}

.recess-progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981);
  transition: width 1s linear;
}

/* Urgency animations */
.recess-urgent .recess-time {
  color: #ef4444;
  animation: recess-urgent-blink 1s ease-in-out infinite;
  text-shadow:
    0 0 40px rgba(239, 68, 68, 0.5),
    0 0 80px rgba(239, 68, 68, 0.3);
}

.recess-urgent .recess-progress-fill {
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.recess-warning .recess-time {
  color: #f59e0b;
  text-shadow:
    0 0 40px rgba(245, 158, 11, 0.4),
    0 0 80px rgba(245, 158, 11, 0.2);
}

@keyframes recess-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes recess-shake {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(8deg); }
  75%      { transform: rotate(-8deg); }
}

@keyframes recess-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

@keyframes recess-urgent-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* --- Overlay Mode --- */
.recess-overlay.recess-mode-overlay {
  inset: auto;
  bottom: 2rem;
  right: 2rem;
  width: auto;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-radius: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
}

.recess-mode-overlay .recess-emoji {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.recess-mode-overlay .recess-label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.recess-mode-overlay .recess-time {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.25rem;
}

.recess-mode-overlay .recess-subtitle {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.recess-mode-overlay .recess-progress-bar {
  width: 200px;
  height: 6px;
}

/* =========================================
   EXPOSITOR IDLE DISPLAY
   Clock + School Media Carousel
   ========================================= */
.expositor-idle {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #0a0a12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.expositor-idle.hidden {
  display: none;
}

.expositor-idle.fading-out {
  opacity: 0;
  pointer-events: none;
}

.idle-clock-layer {
  position: relative;
  z-index: 2;
  text-align: center;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}

.idle-school {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.idle-clock {
  font-size: 12rem;
  font-weight: 800;
  font-family: 'Space Grotesk', monospace;
  background: linear-gradient(135deg, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: idle-clock-glow 6s ease-in-out infinite alternate;
}

@keyframes idle-clock-glow {
  0% { filter: drop-shadow(0 0 20px rgba(196, 181, 253, 0.3)); }
  100% { filter: drop-shadow(0 0 40px rgba(103, 232, 249, 0.4)); }
}

.idle-date {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
  font-weight: 400;
}

.idle-media-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.idle-media-layer img,
.idle-media-layer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.idle-media-layer .idle-slide-active {
  opacity: 0.3;
}

@media (max-width: 768px) {
  .idle-clock { font-size: 6rem; }
  .idle-date { font-size: 1.2rem; }
  .idle-school { font-size: 1.1rem; }
}

/* ============================================================
   PWA — Botão flutuante de instalar + instruções iOS
   ============================================================ */
.pwa-install-btn {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 9500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem 0.7rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
  animation: pwa-rise 360ms ease both;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.pwa-install-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 14px 38px rgba(139, 92, 246, 0.45);
}
.pwa-install-btn:active { transform: translateX(-50%) translateY(0); }
.pwa-install-btn img { width: 22px; height: 22px; border-radius: 6px; }
.pwa-install-close {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 0.15rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.pwa-install-close:hover { background: rgba(255, 255, 255, 0.28); }

@keyframes pwa-rise {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.pwa-ios-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  animation: onb-fade-in 300ms ease both;
}
.pwa-ios-sheet {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.97));
  border: 1px solid var(--border-light);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(139, 92, 246, 0.08);
  backdrop-filter: var(--glass-blur);
  padding: 1.5rem 1.4rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  animation: pwa-sheet-up 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pwa-sheet-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.pwa-ios-sheet h3 { font-size: 1.15rem; margin: 0 0 0.3rem; color: var(--text-primary); }
.pwa-ios-sheet p { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 1.1rem; }
.pwa-ios-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.pwa-ios-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.pwa-step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: var(--gradient-primary);
}
.pwa-ios-share {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  color: var(--secondary);
}
.pwa-ios-dismiss {
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pwa-ios-dismiss:hover { color: var(--text-primary); border-color: var(--primary); }

/* ========================================
   SELETOR DE MODO DO DISPOSITIVO
   ======================================== */
.modo-container { max-width: 560px; }

.modo-titulo {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  text-align: center;
}

.modo-sub {
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.modo-opcao {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  max-width: 100%;
  text-align: left;
  /* Os cards são <button>, que herda white-space:nowrap do design system —
     sem isto a descrição vira uma linha só e vaza para fora da tela. */
  white-space: normal;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modo-opcao:hover,
.modo-opcao:focus-visible {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-2px);
}

.modo-icone { font-size: 1.5rem; line-height: 1.2; flex: 0 0 auto; }

/* min-width:0 — sem isto o item flex não encolhe abaixo do texto e o modal
   estoura a largura da tela no celular. */
.modo-texto {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  overflow-wrap: break-word;
}
.modo-texto strong { font-size: 1rem; }
.modo-texto small {
  color: var(--text-secondary);
  font-size: 0.83rem;
  line-height: 1.45;
}
.modo-texto small b { color: var(--text-primary); font-weight: 600; }

@media (max-width: 480px) {
  .modo-opcao { padding: 0.85rem; }
  .modo-titulo { font-size: 1.15rem; }
}

/* Botão "Modo deste dispositivo" na topbar: só o ícone em telas estreitas. */
#btn-trocar-modo { white-space: nowrap; }
@media (max-width: 700px) {
  #btn-trocar-modo .rotulo-modo { display: none; }
}

/* Confirmação depois de escolher o modo do dispositivo */
.modo-feito { text-align: center; padding: 0.5rem 0.25rem; }
.modo-feito-icone { font-size: 2.6rem; line-height: 1; margin-bottom: 0.6rem; }
.modo-feito h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.modo-feito p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.modo-feito-extra {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: break-word;
}
.modo-feito-extra a { color: var(--secondary); }

/* Celular: os botões de ação do dispositivo (Atualizar/Link/⚙/Revogar) não cabem
   numa linha só — sem quebra eles empurram o card para fora da tela. */
@media (max-width: 640px) {
  .actions-row { flex-wrap: wrap; justify-content: flex-end; }
}

/* Botões largos com rótulo longo: <button> herda white-space:nowrap. */
#btn-tocador-virtual { white-space: normal; }

/* Aviso de som bloqueado pelo navegador (aparece no aparelho que é tocador).
   Sem ele a falha é silenciosa: o comunicador e as sirenes simplesmente não
   saem, e ninguém entende o motivo. */
.audio-bloqueado {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
  max-width: min(92vw, 26rem);
  padding: 0.9rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4);
  animation: audio-bloqueado-pulso 2s ease-in-out infinite;
}
.audio-bloqueado small { font-size: 0.75rem; opacity: 0.9; font-weight: 400; }

@keyframes audio-bloqueado-pulso {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.03); }
}
