/* ==========================================================================
   QYRO PLAYER — PORTAL WEB STYLESHEET
   Design System: Ecossistema Premium de Streaming para Smart TVs
   ========================================================================== */

:root {
  --bg-base: #060913;
  --bg-surface: #0c1220;
  --bg-card: #0f172a;
  --bg-card-hover: #141f38;
  --bg-elevated: #162442;
  --bg-input: #080d18;
  --bg-input-focus: #0c1426;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.25);
  --border-focus: #00d2ff;

  --primary: #1e60ff;
  --primary-hover: #3374ff;
  --primary-active: #1550e0;
  --primary-ring: rgba(0, 210, 255, 0.35);

  --accent-cyan: #00d2ff;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #cbd5e1;

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.25);

  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(245, 158, 11, 0.25);

  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --danger-border: rgba(239, 68, 68, 0.25);

  --header-height: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  --shadow-elevated: 0 24px 55px -12px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(30, 96, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(0, 210, 255, 0.12), transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

::selection {
  background: rgba(0, 210, 255, 0.35);
  color: #ffffff;
}

/* Focus visível apenas para navegação por teclado (a11y WCAG) */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* ==========================================================================
   BACKGROUND LIMPO E PROFISSONAL — gradiente estático, sem orbs/canvas/grain
   ========================================================================== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: #060913;
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(30, 96, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #060913 0%, #04060d 100%);
}

/* ==========================================================================
   HOVER SUTIL EM CARDS (.glow-card) — sem holofote seguindo o mouse
   ========================================================================== */
.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 210, 255, 0.08), transparent 70%);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.glow-card:hover::before {
  opacity: 1;
}

.glow-card > * {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   SCROLL REVEAL CASCATA (.reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.65s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--stagger, 0) * 75ms);
}

/* ==========================================================================
   HEADER NAVBAR
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(6, 8, 13, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}

.header.scrolled {
  background: rgba(6, 9, 19, 0.96);
  border-bottom-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 210, 255, 0.1);
  height: 64px;
}

.header__container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: opacity 0.2s ease;
}

.header__logo:hover {
  opacity: 0.9;
}

.header__logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

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

.header__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.header__link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.header__link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-cta {
  background: rgba(30, 96, 255, 0.14);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #7dd3fc;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  letter-spacing: 0.01em;
}

.btn-header-cta svg {
  color: #7dd3fc;
}

.btn-header-cta:hover {
  background: #1e60ff;
  color: #ffffff;
  border-color: #1e60ff;
}

.btn-header-cta:hover svg {
  color: #ffffff;
}

.btn-header-cta.active {
  background: #1e60ff;
  color: #ffffff;
  border-color: #1e60ff;
}

.btn-header-cta.active svg {
  color: #ffffff;
}

.header__mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px;
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.header__mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   DRAWER MOBILE & BACKDROP
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.aberto {
  opacity: 1;
  pointer-events: auto;
}

.drawer-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  width: min(320px, 86vw);
  background: #070b16 !important;
  border-left: 1px solid rgba(0, 210, 255, 0.25);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: max(20px, env(safe-area-inset-top, 20px)) 20px max(24px, env(safe-area-inset-bottom, 24px));
  display: flex;
  flex-direction: column;
  z-index: 99999;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 210, 255, 0.15);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer-mobile.aberto {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.drawer-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-close:hover,
.drawer-close:active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.drawer-links-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.drawer-link svg {
  color: var(--text-muted);
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.drawer-link:hover,
.drawer-link:active {
  color: #ffffff;
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.2);
}

.drawer-link:hover svg,
.drawer-link:active svg {
  color: #00d2ff;
}

.drawer-link.active {
  color: #ffffff;
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.12);
}

.drawer-link.active svg {
  color: #00d2ff;
}

.drawer-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  flex-shrink: 0;
}

.drawer-btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e60ff 0%, #00d2ff 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

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

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================= */
.page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-height));
  padding: 44px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page__title {
  color: var(--text-main);
  font-size: clamp(23px, 2.7vw, 29px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 0 8px;
}

.page__subtitle {
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 22px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   CONTAINERS & CARDS
   ========================================================================== */
.glass {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: border-color 0.2s ease;
}

.container-sm {
  max-width: 560px;
}

.container-md {
  max-width: 860px;
}

.container-lg {
  max-width: 1160px;
}

/* ==========================================================================
   ABAS SEGMENTADAS DE NAVEGAÇÃO PRO
   ========================================================================== */
.tabs-segmented {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
  width: 100%;
  /* mobile: nunca deixa os botões estourarem a largura */
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-segmented::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab svg {
  flex-shrink: 0;
}

.tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (max-width: 680px) {
  .tab-label-desktop {
    display: none;
  }
  .tab-label-mobile {
    display: inline;
  }
  .tab {
    padding: 8px 6px;
    font-size: 12px;
  }
}

.tab-badge-rec {
  background: #1e3a8a;
  color: #93c5fd;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ==========================================================================
   FORM FIELDS & INPUTS
   ========================================================================== */
.field {
  margin-bottom: 20px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-weight: 500;
}

.field label span.lbl-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.field label .req {
  color: var(--danger);
  font-size: 14px;
}

.field-tag-opcional {
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 400;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px; /* 16px evita zoom automático no iOS */
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input::placeholder {
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.input:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.input-mac-format {
  font-family: var(--font-mono) !important;
  font-size: clamp(15px, 2.2vw, 17px) !important;
  letter-spacing: 0.08em !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  color: #00d2ff !important;
  background: #080d18 !important;
}

.input-mac-format::placeholder {
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--text-dim);
}

.input-with-button {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-button .input {
  padding-right: 48px;
}

.btn-pwd-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.btn-pwd-toggle:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-hint svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.mac-help-guide {
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mac-help-guide__thumb {
  width: 68px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-medium);
  flex-shrink: 0;
}

.mac-help-guide__text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.mac-help-guide__text strong {
  color: #60a5fa;
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

/* ==========================================================================
   MAC VERIFICATION STATUS & HARDWARE PREVIEW
   ========================================================================== */
.mac-status {
  font-size: 13.5px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mac-status--loading {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  align-items: center;
}

.mac-status--bad {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: #fca5a5;
}

.mac-status--ok {
  background: rgba(255, 255, 255, 0.02);
  border: none;
  padding: 0;
  margin-top: 12px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.device-preview-card {
  width: 100%;
  background: #090d15;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.device-preview-card__icon {
  width: 82px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(12, 18, 32, 0.95);
  padding: 6px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(0, 210, 255, 0.35);
}

.device-preview-card__icon img {
  width: 100%;
  height: 100%;
  max-height: 32px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.device-preview-card__details {
  flex: 1;
  min-width: 0;
}

.device-preview-card__title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.device-preview-card__meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.device-preview-card__meta strong {
  color: #e2e8f0;
}

.mac-preview-badge {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.06em;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: inline-block;
}

.status-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-badge-tag.ativo {
  background: var(--success-bg);
  color: #34d399;
  border: 1px solid var(--success-border);
}

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

.status-badge-tag.parceria {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.status-badge-tag.exp {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  border: 1px solid transparent;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: #1e60ff;
  color: #ffffff;
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.btn--primary:hover:not(:disabled) {
  background: #2b6cff;
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 0 2px 8px rgba(30, 96, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 210, 255, 0.5);
  color: #00d2ff;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.2);
}

.btn--block {
  width: 100%;
}

/* BANNER XTREAM AUTO-DETECTION */
.banner-xtream-auto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 13px;
  color: #bfdbfe;
}

.btn-xtream-convert {
  background: #1e3a8a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-xtream-convert:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   RESULT SUCCESS MODAL
   ========================================================================== */
.result-modal {
  text-align: center;
  padding: 10px 0;
}

.result-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.result-modal h2 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.result-modal p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 22px;
}

.success-card-summary {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

/* ==========================================================================
   PAGE 1: HOME (MODERN PRO STREAMING PLAYER LANDING PAGE)
   ========================================================================== */
.page-home {
  padding-top: 10px;
  width: 100%;
}

/* 1. HERO SPLIT (2 COLUNAS MODERNAS NO DESKTOP) */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1180px;
  margin: 10px auto 60px;
  width: 100%;
}

@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-split__text {
    align-items: center;
  }
  .hero__desc {
    max-width: 100%;
  }
}

.hero-split__text {
  display: flex;
  flex-direction: column;
}

@media (max-width: 980px) {
  .hero-split__text {
    align-items: center;
  }
}

.hero-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero__title {
  color: #ffffff;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: #38bdf8;
}

.hero__desc {
  font-size: clamp(14px, 1.2vw, 15.5px);
  color: #94a3b8;
  margin-bottom: 22px;
  max-width: 520px;
  line-height: 1.6;
}

/* PORTAL DE CONEXÃO RÁPIDA (HERO QUICK CONNECT) */
.hero-quick-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-quick-card:focus-within {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-quick-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-quick-input-group {
  margin-bottom: 14px;
}

.hero-quick-input {
  text-align: center;
  background: #080d18 !important;
}

.hero-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .hero-quick-actions {
    grid-template-columns: 1fr;
  }
}

.hero-quick-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
}

/* 2. TV FRAME SHOWCASE (REALISTA 4K OLED + 3D PARALLAX + LIVE HUD) */
.hero-split__visual.device-stage {
  position: relative;
  width: 100%;
  perspective: 1400px;
}

.device-glow {
  position: absolute;
  inset: -35px;
  background: radial-gradient(closest-side, rgba(0, 210, 255, 0.12), transparent 75%);
  z-index: 0;
  filter: blur(25px);
  pointer-events: none;
}

.device-frame {
  position: relative;
  z-index: 1;
  background: #04060a;
  border: 2px solid #1c2536;
  border-radius: 10px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transform: none;
  transition: box-shadow 0.25s ease;
}

.device-frame:hover {
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.9);
}

.tv-bezel-frame {
  position: relative;
  width: 100%;
}

@media (max-width: 980px) {
  .device-frame {
    transform: none !important;
  }
}

.tv-screen-img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 3. PLATFORMS SHOWCASE STRIP */
.platforms-showcase {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto 60px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.platforms-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.platforms-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 14px;
  background: rgba(12, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.platform-badge__svg {
  height: 28px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}

.platform-badge:hover {
  transform: translateY(-2px);
  background: rgba(18, 28, 50, 0.95);
}

.platform-badge--samsung:hover {
  border-color: #0088ff;
  box-shadow: 0 6px 20px rgba(0, 136, 255, 0.35);
}

.platform-badge--lg:hover {
  border-color: #ff4d79;
  box-shadow: 0 6px 20px rgba(255, 77, 121, 0.35);
}

.platform-badge--android:hover {
  border-color: #3ddc84;
  box-shadow: 0 6px 20px rgba(61, 220, 132, 0.35);
}

.platform-badge--firetv:hover {
  border-color: #ff9900;
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.35);
}

.platform-badge--roku:hover {
  border-color: #a855f7;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

/* Compatibilidade caso use .platform-card */
.platform-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.platform-card:hover {
  background: rgba(18, 28, 50, 0.95);
  border-color: #00d2ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 210, 255, 0.25);
}

.platform-card__icon {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.platform-card__icon img {
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

/* 4. SEÇÃO "COMO CONECTAR EM 3 PASSOS" */
.steps-section {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto 70px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(26px, 3.2vw, 36px);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-subheading {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  text-align: left;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.step-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.step-card__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.step-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.step-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 5. GALLERY SCREENSHOTS */
.section-gallery {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto 70px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* 4. SHOWCASE DE TELAS DO APP (SPOTLIGHT DUPLO) */
.showcase-section {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto 70px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
}

.spotlight-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  overflow: hidden;
}

.spotlight-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotlight-card__body {
  padding: 22px 24px;
}

.spotlight-card__body h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.spotlight-card__body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* 5. SPECS COMPACTAS TÉCNICAS */
.specs-section {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto 60px;
}

.specs-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 980px) {
  .specs-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .specs-compact-grid {
    grid-template-columns: 1fr;
  }
}

.spec-row-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease;
}

.spec-row-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.spec-row-item strong {
  font-size: 14.5px;
  color: #ffffff;
  font-weight: 700;
}

.spec-row-item span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PAGE 3: DEVICE HUB & PLAYLIST MANAGEMENT
   ========================================================================== */
.device-hub-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.device-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.device-hub-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.device-hub-avatar {
  width: 84px;
  height: 50px;
  border-radius: 9px;
  background: rgba(12, 18, 32, 0.95);
  border: 1.5px solid rgba(0, 210, 255, 0.4);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 210, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.device-hub-avatar img {
  width: 100%;
  height: 100%;
  max-height: 32px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.device-hub-info-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.device-hub-info-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.device-hub-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BARRA DE SINCRONIZAÇÃO EM TEMPO REAL */
.sync-bar-alert {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #a7f3d0;
}

.btn-sync-now {
  background: #047857;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-sync-now:hover {
  background: #059669;
}

/* GRID DE ESPECIFICAÇÕES DO DISPOSITIVO */
.specs-grid-v2 {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .specs-grid-v2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.spec-card-v2 {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.spec-card-v2--mac {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.22) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.spec-card-v2__lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

.spec-card-v2--mac .spec-card-v2__lbl {
  color: #93c5fd;
  font-weight: 700;
}

.mac-lbl-tag {
  font-size: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-transform: uppercase;
}

.spec-card-v2__val {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.spec-card-v2__val span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#display-situacao {
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.spec-card-v2__val--mac {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#display-mac {
  font-family: var(--font-mono) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #38bdf8 !important;
  line-height: 1.2;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.btn-copy-mac {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-copy-mac:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

/* SEÇÃO DE PLAYLISTS VINCULADAS */
.playlists-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.playlists-section-title h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CARD DA PLAYLIST VINCULADA */
.playlist-hub-card {
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.playlist-hub-card:hover {
  border-color: var(--border-strong);
}

.playlist-hub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.playlist-hub-name-group {
  min-width: 0;
  flex: 1;
}

.playlist-hub-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-stream-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.badge-stream-type.xtream {
  background: rgba(37, 99, 235, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-stream-type.m3u {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-stream-type.codigo {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* BLOCO DE CREDENCIAIS ESTRUTURADAS (HOST, CÓDIGO, USUÁRIO, SENHA) */
.playlist-credentials-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 12px;
}

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

.cred-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  min-width: 130px;
}

.cred-label svg {
  color: var(--accent-cyan);
}

.cred-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.cred-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  letter-spacing: 0.02em;
}

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

.btn-cred-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

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

.playlist-hub-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 10px;
}

.playlist-hub-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 600;
}

.playlist-hub-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ctrl {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--border-medium);
}

.btn-ctrl--danger:hover {
  background: var(--danger-bg);
  color: #f87171;
  border-color: var(--danger-border);
}

/* ==========================================================================
   POLÍTICA DE SLOT: MÁXIMO DE 1 PLAYLIST POR USUÁRIO / DISPOSITIVO
   ========================================================================== */
.slot-policy-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.15) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #bae6fd;
  line-height: 1.4;
}

.slot-policy-banner svg {
  flex-shrink: 0;
  color: #38bdf8;
}

.slot-policy-banner strong {
  color: #ffffff;
}

.badge-tag-slot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-tag-slot.ocupado {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

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

.slot-limit-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #fde68a;
  line-height: 1.45;
}

.slot-limit-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #f59e0b;
}

.slot-preview-notice {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fde68a;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  width: 100%;
}

.slot-preview-notice svg {
  flex-shrink: 0;
  color: #fbbf24;
}

.slot-preview-notice.empty {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.slot-preview-notice.empty svg {
  color: #34d399;
}

.substituir-box {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}

/* AVISO LEGAL PROFISSIONAL (LEGAL DISCLAIMER) */
.disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 30px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.disclaimer-box svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-dim);
}

/* ==========================================================================
   PAGE 4: FAQ ACCORDION
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.aberto {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.faq-q {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  color: #ffffff;
}

.faq-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.faq-item.aberto .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-a {
  padding: 0 20px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.aberto .faq-a {
  display: block;
  animation: fadeIn 0.2s ease;
}

.faq-a code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: #60a5fa;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #0b0f19;
  border: 1px solid var(--border-medium);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14px;
  min-width: 300px;
  max-width: 440px;
  animation: slideToastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
}

.toast.toast-sucesso {
  border-color: var(--success-border);
}

.toast.toast-erro {
  border-color: var(--danger-border);
}

.toast.toast-aviso {
  border-color: rgba(59, 130, 246, 0.4);
}

.toast.saindo {
  opacity: 0;
  transform: translateX(20px);
}

@keyframes slideToastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-icon {
  margin-top: 1px;
  flex-shrink: 0;
}

.toast-conteudo {
  flex: 1;
}

.toast-titulo {
  font-weight: 600;
  font-size: 13.5px;
  color: #ffffff;
}

.toast-mensagem {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  background: #05070a;
  padding: 44px 20px 32px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin-bottom: 20px;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__small {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 6px 0;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 980px) {
  .header__menu {
    display: none;
  }
  .header__mobile-toggle {
    display: flex;
  }
  .page {
    padding: 28px 16px 60px;
  }
  .glass, .device-hub-container {
    padding: 22px 18px;
  }
  .device-hub-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .cred-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .cred-value-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .cred-value {
    text-align: left;
  }
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .toast {
    min-width: auto;
    max-width: 100%;
  }
  .mac-help-guide {
    flex-direction: column;
    align-items: flex-start;
  }
  .playlists-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .platforms-showcase {
    padding: 16px 14px;
    margin-bottom: 36px;
  }
  .platforms-grid {
    gap: 8px;
  }
  .platform-badge {
    height: 42px;
    padding: 0 10px;
  }
  .platform-badge__svg {
    height: 22px;
  }
  .hero-quick-card {
    padding: 18px 16px;
  }
  .input-mac-format {
    font-size: 15px !important;
    letter-spacing: 0.05em !important;
  }
  .steps-section,
  .showcase-section,
  .specs-section {
    margin-bottom: 44px;
  }
}

/* ==========================================================================
   DIRETRIZES DE HOMOLOGAÇÃO DE LOJAS & COMPLIANCE (SAMSUNG, LG, GOOGLE, ROKU)
   ========================================================================== */
.store-compliance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.store-compliance-pill .compliance-dot {
  color: #10b981;
  font-size: 10px;
  animation: pulse 2s infinite;
}

.store-policy-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(14, 25, 45, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 32px 0 20px;
  text-align: left;
  backdrop-filter: blur(12px);
}

.store-policy-alert__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.store-policy-alert__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.store-policy-alert__text strong {
  color: #38bdf8;
}

/* ==========================================================================
   MODAIS LEGAIS (TERMOS, PRIVACIDADE, DMCA)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-legal-card {
  background: #090d16;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 210, 255, 0.1);
  overflow: hidden;
}

.modal-legal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.5);
}

.modal-legal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-legal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: #cbd5e1;
}

.modal-legal-body h3 {
  font-size: 15px;
  color: #ffffff;
  margin: 18px 0 8px;
}

.modal-legal-body h3:first-child {
  margin-top: 0;
}

.modal-legal-body p {
  margin-bottom: 12px;
}

.modal-legal-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.modal-legal-body li {
  margin-bottom: 6px;
}

.modal-legal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.3);
}

/* ==========================================================================
   MODAL DE COMPLIANCE REGULATÓRIO (DMCA & LGPD)
   ========================================================================== */
.compliance-modal-backdrop {
  z-index: 999999;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-compliance-card {
  width: 100%;
  max-width: 680px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 30, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 50px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-compliance-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 70%);
}

.compliance-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

.modal-compliance-banner-text {
  flex: 1;
  padding-right: 28px;
}

.compliance-pill-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.modal-compliance-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.3;
}

.modal-compliance-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.compliance-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.compliance-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.compliance-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.compliance-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.compliance-tab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.modal-compliance-content {
  padding: 22px 28px;
  max-height: 52vh;
  overflow-y: auto;
}

.compliance-feature-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.compliance-feature-box.lgpd-box {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.2);
}

.compliance-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.compliance-feature-icon.lgpd-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.compliance-feature-box strong {
  font-size: 14px;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.compliance-feature-box p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.compliance-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .compliance-grid-2 {
    grid-template-columns: 1fr;
  }
}

.compliance-point-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.compliance-point-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.compliance-point-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.compliance-notice-bar {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compliance-notice-bar span {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 600;
}

.compliance-notice-bar small {
  font-size: 11px;
  color: var(--text-dim);
}

.modal-compliance-footer {
  padding: 18px 28px 22px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compliance-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.compliance-checkbox-wrap input[type="checkbox"] {
  accent-color: var(--primary);
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-compliance-agree {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  padding: 12px 20px;
  font-weight: 700;
}

/* ==========================================================================
   FOOTER CERTIFICATION BADGES
   ========================================================================== */
.footer__cert-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.cert-badge:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & BUG FIXES SUITE (QYRO PRO)
   ========================================================================== */

/* 1. Constrain device glow so it never causes horizontal sway */
@media (max-width: 768px) {
  .hero-split__visual.device-stage {
    overflow: hidden;
  }
  .device-glow {
    inset: 0 !important;
    filter: blur(16px) !important;
  }
}

/* 2. Glass container padding on mobile */
@media (max-width: 600px) {
  .glass {
    padding: 20px 16px;
  }
  .hero-quick-card {
    padding: 18px 16px;
  }
}

/* 3. Header compaction for mobile screens */
@media (max-width: 520px) {
  .header {
    --header-height: 60px;
  }
  .header__container {
    padding: 0 12px;
  }
  .header__logo img {
    height: 28px;
  }
  .header__actions {
    gap: 8px;
  }
  .btn-header-cta {
    padding: 6px 11px;
    font-size: 12px;
    gap: 5px;
  }
  .header__mobile-toggle {
    padding: 6px;
    width: 36px;
    height: 36px;
  }
}

/* 4. PIN fields and smart paste row */
.pin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 440px) {
  .pin-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.smart-paste-input-row {
  display: flex;
  gap: 8px;
}
.smart-paste-input-row .input {
  min-width: 0;
  flex: 1;
}

/* 5. Device Hub mobile layout */
@media (max-width: 600px) {
  .device-hub-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
  }
  .device-hub-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .device-hub-actions .btn-ctrl:last-child {
    grid-column: span 2;
  }
  .device-hub-actions .btn-ctrl {
    justify-content: center;
    padding: 9px 12px;
  }
  .sync-bar-alert {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .sync-bar-alert .btn-sync-now {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
  }
}

@media (max-width: 520px) {
  .cred-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 10px 0;
  }
  .cred-label {
    min-width: unset;
  }
  .cred-value-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .playlist-hub-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .playlist-hub-actions-bar {
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .playlist-hub-actions-bar .btn-ctrl {
    flex: 1;
    justify-content: center;
    padding: 8px 4px;
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  #display-mac {
    font-size: 13.5px !important;
  }
  .btn-copy-mac {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* 6. Inline Sub-Actions (Substituir Playlist) */
.sub-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 520px) {
  .sub-actions {
    flex-direction: column;
    gap: 10px;
  }
  .sub-actions button {
    width: 100% !important;
    flex: none !important;
  }
}

/* 7. Modal Compliance & Legal mobile adjustments */
@media (max-width: 600px) {
  .modal-backdrop {
    padding: 12px 10px;
  }
  .modal-compliance-card {
    border-radius: var(--radius-lg);
    max-height: 88vh;
  }
  .modal-compliance-banner {
    padding: 16px 14px;
    gap: 12px;
  }
  .compliance-badge-icon {
    width: 38px;
    height: 38px;
  }
  .compliance-close-btn {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
  }
  .modal-compliance-title {
    font-size: 15px;
    padding-right: 28px;
    line-height: 1.3;
  }
  .modal-compliance-sub {
    font-size: 11.5px;
  }
  .compliance-tabs {
    padding: 8px 12px;
    gap: 6px;
  }
  .compliance-tab-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .modal-compliance-content {
    padding: 14px 14px;
    max-height: 48vh;
  }
  .modal-compliance-footer {
    padding: 14px 14px;
  }
  .modal-legal-card {
    max-height: 88vh;
  }
  .modal-legal-header {
    padding: 14px 16px;
  }
  .modal-legal-title {
    font-size: 15px;
  }
  .modal-legal-body {
    padding: 14px 16px;
    font-size: 12.5px;
  }
  .modal-legal-footer {
    padding: 12px 16px;
  }
  .modal-legal-footer .btn {
    width: 100%;
  }
}

/* 8. Modal Transferir centering & mobile size */
#modal-transferir .result-modal-content {
  max-width: 520px;
  width: 100%;
  margin: auto;
  text-align: left;
}
@media (max-width: 520px) {
  #modal-transferir .result-modal-content {
    padding: 20px 16px;
  }
}


