:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --secondary: #0f766e;
  --dark: #172554;
  --light: #f8fafc;
  --text-main: #334155;
  --text-muted: #64748b;
  --border: #dbe3ee;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.07);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f8fafc;
  color: var(--text-main);
  line-height: 1.55;
}

/* Barra de Contacto Superior */
.top-bar {
  background-color: #111c34;
  color: #fff;
  padding: 9px 20px;
  font-size: 0.78rem;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar a {
  color: #bae6fd;
  text-decoration: none;
  white-space: nowrap;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #d1fae5;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wa-link {
  font-weight: 600;
}

.top-bar a:hover {
  color: #fff;
  text-decoration: underline;
}

.top-bar-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.top-bar-socials span {
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
}

.top-bar-socials a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(186, 230, 253, 0.55);
  border-radius: 50%;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.top-bar-socials a:hover {
  background: #e0f2fe;
  border-color: #e0f2fe;
  color: #172554;
  text-decoration: none;
}

.social-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.language-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #cbd5e1;
}

.btn-login-trigger {
  background: transparent;
  border: 1px solid rgba(186, 230, 253, 0.55);
  color: #e0f2fe;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-login-trigger:hover {
  background: #e0f2fe;
  border-color: #e0f2fe;
  color: #172554;
}

.btn-language {
  border-color: #38bdf8;
  color: #7dd3fc;
}

.btn-media {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 10px;
  border-color: rgba(94, 234, 212, 0.9);
  background: linear-gradient(135deg, #0f766e, #0e7490);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.28);
  text-align: left;
}

.btn-media:hover {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #0d5f59, #155e75);
  color: #fff;
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.36);
}

.btn-media-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.btn-media-copy {
  display: grid;
  gap: 2px;
}

.btn-media-subtitle {
  color: #ccfbf1;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

/* Cabeçalho / Navbar */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.logo h2 {
  color: var(--dark);
  font-size: 1.55rem;
  letter-spacing: -0.045em;
}

.logo span {
  color: var(--primary);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  background: var(--surface-muted);
  color: var(--dark);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-bar input:focus {
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.suggestions-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

/* Estilos para o Hint / Sugestões */
.suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.suggestion-item:last-child {
  border-bottom: none;
}

/* Banner Hero */
.hero-banner {
  background:
    radial-gradient(ellipse at 82% 12%, rgba(56, 189, 248, 0.2), transparent 32%),
    linear-gradient(135deg, #172554, #0f172a);
  color: #fff;
  text-align: center;
  padding: clamp(48px, 7vw, 82px) 20px;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.hero-content p {
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions a {
  padding: 11px 18px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  color: #e0f2fe;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.hero-actions a:hover {
  background: #e0f2fe;
  color: #172554;
  transform: translateY(-1px);
}

.hero-actions .hero-action-primary {
  border-color: #38bdf8;
  background: #0284c7;
  color: #fff;
}

.hero-actions .hero-action-primary:hover {
  background: #0369a1;
  color: #fff;
}

.hero-actions a:focus-visible {
  outline-color: #fff;
}

/* Secção Pedir Livro */
.request-book-section {
  background: #eff6ff;
  color: var(--text-main);
  padding: 36px 20px;
  scroll-margin-top: 100px;
}

.request-container {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(22px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.request-container h2 {
  max-width: 720px;
  margin: 0 auto 8px;
  color: var(--dark);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.3;
}

.request-container p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.request-grid input {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
}

.request-grid input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.11);
}

.phone-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.phone-field select {
  flex: 0 0 110px;
  width: 110px !important;
  min-width: 110px;
  max-width: 120px;
  height: 44px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
}

.phone-field input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
}

.request-grid .phone-field input {
  padding: 12px 10px;
  border-radius: 10px;
}

.phone-field select:focus,
.phone-field input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.11);
}

.phone-field .phone-custom-code {
  flex: 0 0 100%;
}

.request-phone-field {
  grid-column: 1 / -1;
}

.request-grid .field-help {
  grid-column: 1 / -1;
  margin-top: -7px;
}

.field-help {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.btn-request {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.btn-request:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.status-pedido {
  margin-top: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.status-pedido a,
.feedback-status a {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(18, 140, 126, 0.22);
}

.status-pedido a:hover,
.feedback-status a:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Secção de Feedback */
.feedback-section {
  padding: 36px 20px;
  background: #f8fafc;
  scroll-margin-top: 100px;
}

.feedback-container {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.feedback-container h2,
.feedback-container > p {
  text-align: center;
}

.feedback-container h2 {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.feedback-container > p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

#formFeedback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#formFeedback input,
#formFeedback textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
}

#formFeedback textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

#formFeedback input:focus,
#formFeedback textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.11);
}

#formFeedback button {
  grid-column: 1 / -1;
}

.feedback-status {
  min-height: 1.55em;
  margin: 12px 0 0 !important;
  text-align: center;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Quiz divertido */
.quiz-trigger {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316 42%, #8b5cf6 100%);
  color: #fff;
  padding: 13px 20px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.quiz-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(168, 85, 247, 0.34);
}

.quiz-header {
  text-align: center;
  margin-bottom: 18px;
}

.quiz-kicker {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(168, 85, 247, 0.18);
  color: #7c2d12;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 10px;
}

.quiz-header h2 {
  color: var(--dark);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
}

.quiz-header .section-help {
  max-width: 480px;
  margin: 10px auto 0;
}

.quiz-progress {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
}

.quiz-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffaf5 0%, #eef6ff 52%, #f8fbff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(168, 85, 247, 0.1), 0 8px 18px rgba(249, 115, 22, 0.08);
  padding: clamp(20px, 4vw, 32px);
}

.quiz-card::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -8%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 70%);
  pointer-events: none;
}

.quiz-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12), transparent 72%);
  pointer-events: none;
}

.quiz-question {
  position: relative;
  z-index: 1;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
  line-height: 1.4;
}

.quiz-options {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.quiz-option {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  text-align: left;
  font: inherit;
  font-size: 0.96rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.quiz-option:hover {
  border-color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.08);
}

.quiz-option.selected {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  color: #0f172a;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.quiz-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn-quiz {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-quiz:hover {
  transform: translateY(-1px);
}

.btn-quiz-primary {
  background: linear-gradient(135deg, #f59e0b, #f97316 45%, #8b5cf6);
  color: #fff;
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.18);
}

.btn-quiz-secondary {
  background: #e2e8f0;
  color: var(--dark);
}

.quiz-result {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  border: 1px solid #bfdbfe;
  color: var(--dark);
  line-height: 1.6;
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.08);
}

.quiz-result strong {
  display: inline-block;
  margin-bottom: 6px;
}

.quiz-modal-content {
  width: min(92vw, 620px);
  max-width: 620px;
  padding: 24px 22px 18px;
}

/* Prova Social */
.recent-requests-banner {
  background: #111c34;
  color: #fff;
  padding: 16px 20px;
  font-size: 0.82rem;
}

.recent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.ticker-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.09);
  padding: 5px 10px;
  border-radius: 999px;
  color: #bae6fd;
}

/* Como Funciona */
.how-it-works {
  background: #ffffff;
  padding: 32px 20px;
}

.steps-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--surface);
  padding: 22px 20px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.step-num {
  display: inline-block;
  width: 34px;
  height: 34px;
  background: #dbeafe;
  color: var(--primary);
  font-weight: 700;
  border-radius: 50%;
  line-height: 34px;
  text-align: center;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Navegação por Categorias com Scroll Suave */
.categories-nav {
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  position: sticky;
  top: 66px;
  z-index: 80;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.cat-btn,
.media-category-button {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
}

.cat-btn.active,
.cat-btn:hover,
.media-category-button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cat-btn:focus-visible,
.media-category-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.media-category-button[aria-selected="true"] {
  border-color: var(--media-accent);
  background: var(--media-accent);
  color: #fff;
}

/* Catálogo e Grelha */
.container {
  max-width: 1240px;
  margin: 36px auto;
  padding: 0 24px;
}

.section-title {
  margin-bottom: 22px;
  color: var(--dark);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
}

.section-help {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

[hidden] {
  display: none !important;
}

.media-section {
  --media-accent: #0f766e;
  padding-top: 44px;
  padding-bottom: 52px;
}

.media-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.media-eyebrow {
  display: inline-block;
  color: var(--media-accent, #0f766e);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.media-heading h1 {
  margin: 10px 0 12px;
  color: var(--dark);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.media-heading .section-help {
  max-width: 610px;
  font-size: 1rem;
}

.media-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.media-section-heading h2,
.media-audio-content h2 {
  margin-top: 4px;
  color: var(--dark);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.035em;
}

.media-count {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.media-categories {
  display: flex;
  gap: 9px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scrollbar-width: thin;
}

.media-category-button:hover {
  border-color: #99f6e4;
  transform: translateY(-1px);
}

.media-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.media-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-muted);
  text-align: center;
}

.media-video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.media-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(45, 212, 191, 0.2), transparent 45%),
    #10253b;
}

.media-video-frame img,
.media-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.media-video-frame iframe {
  display: block;
}

.media-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.94);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.media-play-button:hover {
  background: #0d5f59;
  transform: translate(-50%, -50%) scale(1.06);
}

.media-play-button svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.media-video-copy {
  padding: 17px 18px 19px;
}

.media-video-creator {
  color: var(--media-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-video-copy h3 {
  margin: 7px 0;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.4;
}

.media-video-copy p {
  min-height: 3.1em;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.media-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}

.media-source-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.media-audio-section {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: 44px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #ccebe5;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(20, 184, 166, 0.12), transparent 45%),
    linear-gradient(130deg, #f0fdfa, #ffffff 70%);
}

.media-audio-art {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background:
    radial-gradient(circle at 70% 30%, rgba(153, 246, 228, 0.8), transparent 32%),
    linear-gradient(145deg, #0f766e, #10253b);
  color: #fff;
}

.media-audio-art span {
  font-family: Georgia, serif;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.media-audio-content {
  min-width: 0;
}

.media-audio-content h2 {
  margin: 5px 0 7px;
}

.media-audio-content .section-help {
  max-width: 620px;
}

.media-audio-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 13px 0 9px;
  color: var(--dark);
  font-size: 0.85rem;
}

.media-audio-meta span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.media-audio-player {
  display: block;
  width: 100%;
  height: 42px;
  accent-color: var(--media-accent);
}

.media-audio-content > .media-source-link {
  margin-top: 10px;
}

.media-credits {
  margin-top: 17px;
  color: var(--text-muted);
  font-size: 0.76rem;
  text-align: center;
}

.media-section .media-back-button {
  display: block;
  min-width: min(100%, 260px);
  margin: 28px auto 0;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #0e7490);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
  font-size: 1rem;
  font-weight: 700;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.media-section .media-back-button::before {
  content: "←";
  margin-right: 9px;
  font-size: 1.15em;
}

.media-section .media-back-button:hover {
  background: linear-gradient(135deg, #0d5f59, #155e75);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.34);
  transform: translateY(-2px);
}

.cart-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cart-section h3 {
  margin: 0 0 12px;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto 76px auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-price {
  color: var(--secondary);
  font-weight: 600;
}

.cart-item input {
  width: 76px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.cart-remove {
  padding: 7px 10px;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.cart-total {
  margin: 14px 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-section .account-status:empty {
  display: none;
}

.activity-section {
  margin: 16px auto;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.activity-disclosure > summary {
  position: relative;
  padding: 12px 28px 12px 4px;
  color: var(--dark);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  list-style: none;
}

.activity-disclosure > summary::-webkit-details-marker {
  display: none;
}

.activity-disclosure > summary::after {
  position: absolute;
  right: 5px;
  content: "+";
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
}

.activity-disclosure[open] > summary::after {
  content: "−";
}

.activity-disclosure > summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.activity-content {
  padding: 0 4px 12px;
}

.activity-content .section-help {
  margin-bottom: 8px;
}

.activity-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.activity-toolbar .section-help {
  flex: 1;
}

.activity-clear-button,
.activity-delete-button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.activity-clear-button {
  padding: 6px 11px;
}

.activity-delete-button {
  padding: 5px 10px;
}

.activity-clear-button:hover,
.activity-delete-button:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.activity-log {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.activity-entry:last-child {
  border-bottom: 0;
}

.activity-description {
  margin: 0;
}

.activity-timestamp {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr));
  gap: 18px;
}

.catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-muted);
  text-align: center;
}

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #bfdbfe;
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--surface-muted);
}

.type-tag {
  font-size: 0.75rem;
  color: #1e40af;
  background: #eff6ff;
  padding: 4px 9px;
  border-radius: 999px;
}

.card h3 {
  font-size: 0.98rem;
  line-height: 1.4;
  margin: 10px 0;
  color: var(--dark);
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 10px;
}

.card-purchase {
  min-width: 0;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.card-actions button {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding: 7px 5px;
  overflow-wrap: break-word;
  white-space: normal;
  font-size: clamp(0.68rem, 3vw, 0.8rem);
  line-height: 1.3;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn-synopsis {
  grid-column: 1 / -1;
  background: #eef2f7;
  color: #334155;
}

.btn-cart-add {
  background: #dbeafe;
  color: #1e40af;
}

.btn-cart-add:hover {
  background: #bfdbfe;
}

.btn-synopsis:hover {
  background: #dbe3ee;
}

.btn-buy {
  display: block;
  text-align: center;
  background: var(--secondary);
  color: #fff;
  transition: 0.2s;
}

.btn-buy:hover {
  background: #059669;
}

/* Modais e Formas de Autenticação */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.62);
  padding: 20px;
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-in-out;
}

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

.modal-content {
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  width: 90%;
  max-width: 420px;
  position: relative;
  max-height: min(90vh, 820px);
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.close-btn:hover {
  background: var(--surface-muted);
  color: var(--dark);
}

.checkout-price-highlight {
  color: var(--secondary);
  font-weight: bold;
  margin: 8px 0 18px;
  font-size: 1.1rem;
}

.instructions-box {
  background: #eff6ff;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  border: 1px solid #dbeafe;
  border-left: 4px solid var(--primary);
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--dark);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.11);
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 3px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--surface-muted);
  color: var(--dark);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 14px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-success {
  background: var(--secondary);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.payment-status {
  margin-top: 15px;
  display: none;
  text-align: center;
  font-size: 0.9rem;
}

.account-section {
  min-height: 260px;
  padding-bottom: 48px;
}

.admin-view-active .main-header,
.admin-view-active .top-bar-contact,
.admin-view-active .top-bar-socials,
.admin-view-active #btnMedia,
.admin-view-active #txtBtnLogin,
.admin-view-active #btnBiblioteca,
.admin-view-active #btnVendas,
.admin-view-active #btnLixeira,
.admin-view-active #btnAdmin,
.admin-view-active #pwaInstallBanner,
.admin-view-active footer {
  display: none;
}

.admin-view-active .top-bar-container,
.admin-view-active .top-bar-actions {
  justify-content: flex-end;
}

.admin-workspace-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  margin-bottom: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.035);
}

.admin-workspace-nav button {
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.admin-workspace-nav button:hover {
  background: var(--surface-muted);
  color: var(--dark);
}

.admin-workspace-nav button[aria-current="page"] {
  background: #eaf0ff;
  color: var(--primary);
}

.admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 22px;
  padding: 28px;
  border: 1px solid #dbe5f5;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top right, rgba(96, 165, 250, 0.14), transparent 45%),
    linear-gradient(135deg, #fff, #f5f8ff);
}

.admin-eyebrow {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.admin-page-header h1 {
  margin-bottom: 6px;
  color: var(--dark);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.045em;
}

.admin-page-header .section-help {
  margin-bottom: 0;
}

.admin-page-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-last-updated {
  color: var(--text-muted);
  font-size: 0.76rem;
  text-align: right;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.admin-stat-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.035);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

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

.admin-stat-card[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12);
}

.admin-stat-card span {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.admin-stat-card strong {
  color: var(--dark);
  font-size: 1.85rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.admin-stat-card small {
  color: var(--text-muted);
  font-size: 0.73rem;
}

.admin-stat-pending {
  border-top: 3px solid #f59e0b;
}

.admin-stat-approved {
  border-top: 3px solid #10b981;
}

.admin-stat-rejected {
  border-top: 3px solid #ef4444;
}

.admin-orders-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.admin-order-search,
.admin-order-filter {
  display: grid;
  gap: 6px;
}

.admin-order-search {
  flex: 1 1 320px;
}

.admin-order-filter {
  flex: 0 1 210px;
}

.admin-order-search label,
.admin-order-filter label {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.admin-order-search input,
.admin-order-filter select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--dark);
  font-size: 0.86rem;
}

.admin-order-search input:focus,
.admin-order-filter select:focus {
  outline: 3px solid rgba(29, 78, 216, 0.14);
  border-color: #7394e6;
}

.admin-export-button {
  min-height: 42px;
  white-space: nowrap;
}

.admin-order-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 3px solid #94a3b8;
}

.admin-order-card-pending {
  border-top-color: #f59e0b;
}

.admin-order-card-approved {
  border-top-color: #10b981;
}

.admin-order-card-rejected {
  border-top-color: #ef4444;
}

.admin-order-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-order-heading h3 {
  margin: 2px 0 0;
}

.admin-order-reference {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.admin-order-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-order-status-pending {
  background: #fff7ed;
  color: #b45309;
}

.admin-order-status-approved {
  background: #ecfdf5;
  color: #047857;
}

.admin-order-status-rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-order-details {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
}

.admin-order-details p {
  line-height: 1.5;
}

.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.account-heading h2 {
  color: var(--dark);
}

.account-status {
  margin: 10px 0;
  color: var(--text-muted);
}

.account-status.error {
  color: #b91c1c;
}

.account-status.success {
  color: #047857;
}

.account-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.sales-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
}

.sales-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sales-card h3 {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sales-card p {
  margin: 0;
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sales-updated {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.account-card {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-wrap: anywhere;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

.account-card h3 {
  margin-bottom: 8px;
  color: var(--dark);
}

.account-card p {
  margin: 6px 0;
  color: var(--text-muted);
}

.account-card button {
  width: auto;
  margin: 10px 8px 0 0;
}

.btn-secondary {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: #334155;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-danger {
  padding: 9px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.modal-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 12px 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h3 {
  color: var(--dark);
  margin-bottom: 18px;
}

.auth-link {
  display: block;
  margin: 0 0 12px auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
}

.auth-link:hover {
  color: var(--primary-hover);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.preview-content {
  max-width: 520px;
  padding: 30px;
}

.preview-close {
  top: 14px;
  right: 14px;
}

.preview-title {
  margin: 0 42px 4px 0;
  color: var(--dark);
  font-size: 1.45rem;
  line-height: 1.3;
}

.preview-author {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.preview-synopsis {
  background: var(--surface-muted);
  border-left: 4px solid var(--primary);
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 0 10px 10px 0;
}

.preview-synopsis h4 {
  margin-bottom: 8px;
  color: var(--dark);
}

.preview-text {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.7;
}

.preview-notice {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
}

.preview-actions {
  display: flex;
  gap: 10px;
}

.preview-actions button {
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
}

.btn-preview-close {
  flex: 1;
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-preview-buy {
  flex: 1.5;
  background: var(--primary);
  color: #fff;
}

.btn-preview-buy:hover {
  background: var(--primary-hover);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.75);
  outline-offset: 2px;
}

/* Rodapé */
footer {
  background: #111c34;
  color: #fff;
  text-align: center;
  padding: 34px 20px;
}

.footer-contacts {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials p {
  flex-basis: 100%;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-socials a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(186, 230, 253, 0.55);
  border-radius: 50%;
  color: #bae6fd;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.footer-socials a:hover {
  background: #e0f2fe;
  border-color: #e0f2fe;
  color: #172554;
}

/* Responsividade */
@media (max-width: 768px) {
  .admin-page-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .admin-page-actions {
    align-items: flex-start;
    justify-items: start;
  }

  .admin-last-updated {
    text-align: left;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-orders-toolbar {
    flex-wrap: wrap;
  }

  .admin-order-search {
    flex-basis: 100%;
  }

  .top-bar-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .top-bar-actions {
    justify-content: center;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    text-align: center;
  }

  .search-bar {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-actions a {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .categories-nav {
    top: 0;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 12px;
  }

  .account-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-section {
    padding-top: 32px;
  }

  .media-heading {
    margin-bottom: 28px;
  }

  .media-video-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }

  .card-actions {
    gap: 6px;
  }

  .card-actions button {
    padding: 8px 3px;
    font-size: 0.75rem;
  }
}

@media (max-width: 560px) {
  .admin-workspace-nav {
    gap: 4px;
    overflow-x: auto;
    padding: 6px;
  }

  .admin-workspace-nav button {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .admin-page-header {
    margin-top: 20px;
    padding: 18px;
  }

  .admin-page-actions,
  .admin-page-actions .btn-secondary {
    width: 100%;
  }

  .admin-stats-grid {
    gap: 9px;
  }

  .admin-stat-card {
    gap: 6px;
    padding: 14px 12px;
  }

  .admin-stat-card strong {
    font-size: 1.55rem;
  }

  .admin-stat-card span {
    font-size: 0.76rem;
  }

  .admin-stat-card small {
    font-size: 0.68rem;
  }

  .admin-orders-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-order-filter,
  .admin-export-button {
    width: 100%;
    flex-basis: auto;
  }

  .admin-order-heading {
    flex-direction: column;
  }

  .top-bar {
    padding: 12px 14px;
  }

  .top-bar-container > span {
    line-height: 1.9;
  }

  .top-bar-actions {
    gap: 7px;
  }

  .btn-login-trigger {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .btn-media {
    padding: 6px 10px;
  }

  .btn-media-subtitle {
    font-size: 0.52rem;
  }

  .language-label {
    width: 100%;
    justify-content: center;
  }

  .main-header {
    padding: 12px 16px;
  }

  .logo h2 {
    font-size: 1.4rem;
  }

  .hero-banner {
    padding: 48px 18px;
  }

  .hero-content p {
    font-size: 0.92rem;
  }

  .request-book-section {
    padding: 22px 14px;
  }

  .request-container {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .request-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-section {
    padding: 22px 14px;
  }

  .feedback-container {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .request-book-section,
  .feedback-section {
    scroll-margin-top: 20px;
  }

  #formFeedback {
    grid-template-columns: minmax(0, 1fr);
  }

  .recent-container {
    align-items: flex-start;
    flex-direction: column;
  }

  .steps-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-card {
    padding: 18px;
  }

  .container {
    margin: 28px auto;
    padding: 0 16px;
  }

  .cart-section {
    padding: 16px;
  }

  .media-section {
    padding: 25px 16px 38px;
  }

  .media-audio-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .media-audio-art {
    width: min(100%, 150px);
  }

  .media-video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-section {
    padding: 0 12px;
  }

  .activity-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
  }

  .activity-clear-button {
    align-self: flex-end;
  }

  .activity-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .activity-delete-button {
    justify-self: start;
  }

  .activity-timestamp {
    white-space: normal;
  }

  .cart-item {
    grid-template-columns: minmax(0, 1fr) 84px;
  }

  .cart-item strong,
  .cart-item-price {
    grid-column: 1 / -1;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card {
    padding: 10px;
    border-radius: 12px;
  }

  .card img {
    height: clamp(150px, 50vw, 210px);
  }

  .card h3 {
    font-size: 0.9rem;
  }

  .price {
    font-size: 1.05rem;
  }

  .modal {
    padding: 12px;
  }

  .modal-content,
  .preview-content {
    width: 100%;
    padding: 24px 18px;
    border-radius: 16px;
  }
}

@media (max-width: 360px) {
  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

[hidden] {
  display: none !important;
}

.pwa-install-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(440px, calc(100vw - 32px));
  padding: 16px 48px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: #0b2545;
  color: #f4f6f9;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.28);
  animation: pwa-install-enter 0.25s ease-out;
}

.pwa-install-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.5rem;
}

.pwa-install-copy {
  flex: 1;
  min-width: 0;
}

.pwa-install-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.92rem;
}

.pwa-install-copy p {
  color: #dbeafe;
  font-size: 0.78rem;
  line-height: 1.4;
}

.pwa-install-action {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #0b2545;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.pwa-install-action:hover {
  background: #e2e8f0;
}

.pwa-install-dismiss {
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #dbeafe;
  font-size: 1.35rem;
  cursor: pointer;
}

.pwa-install-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pwa-install-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #172554;
  overflow-y: auto;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.28);
}

.pwa-install-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.pwa-install-dialog h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.pwa-install-dialog p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.pwa-install-dialog .pwa-install-action {
  background: #0b2545;
  color: #fff;
}

@keyframes pwa-install-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .pwa-install-banner {
    right: 12px;
    bottom: 12px;
    gap: 9px;
    padding: 14px 42px 14px 12px;
  }

  .pwa-install-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .pwa-install-action {
    padding: 8px 9px;
    font-size: 0.74rem;
  }
}
