:root {
  --bg-1: #061a2b;
  --bg-2: #0f3a57;
  --card: rgba(7, 13, 25, 0.72);
  --line: rgba(136, 236, 255, 0.24);
  --text: #ecf6ff;
  --muted: #9ec4dd;
  --accent: #ff9f1a;
  --accent-2: #46f0c7;
  --danger: #ff5a5f;
  --input-bg: rgba(4, 8, 16, 0.75);
  --input-border: rgba(156, 213, 240, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(70, 240, 199, 0.12), transparent 38%),
    radial-gradient(circle at 85% 12%, rgba(255, 159, 26, 0.15), transparent 34%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2));
}

.shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 18px 34px;
  display: grid;
  gap: 12px;
}

/* ── Startup loader ── */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(70, 240, 199, 0.12), transparent 38%),
    radial-gradient(circle at 85% 12%, rgba(136, 236, 255, 0.16), transparent 34%),
    linear-gradient(140deg, #061a2b, #0f3a57 55%, #124d73);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.app-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-center {
  text-align: center;
  padding: 24px;
}

.loader-logo {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.loader-title {
  margin: 16px 0 6px;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.loader-subtitle {
  margin: 0 0 14px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.loader-track {
  width: 220px;
  max-width: 75vw;
  height: 7px;
  border-radius: 999px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.loader-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, #46f0c7, #88ecff);
  transition: width 0.18s ease;
}

/* ── Título ── */
.title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0 5px;
  flex-wrap: wrap;
}

.title-row h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 1px;
  color: var(--accent);
}

.title-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Panels/Cards ── */
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--card);
  backdrop-filter: blur(6px);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Inputs & Selects ── */
input[type="text"],
input[type="file"],
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 11px 13px;
  font-size: 0.95rem;
  font-family: inherit;
}

input[type="text"]::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent-2);
}

select {
  cursor: pointer;
}

/* ── Buttons ── */
button {
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
}

.ghost {
  background: rgba(70, 240, 199, 0.1);
}

/* ── Button rows ── */
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
}

/* ── Option rows ── */
.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.option-row select {
  max-width: 320px;
}

.option-label {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Checkboxes ── */
.extras-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Main Download Button ── */
.btn-main-download {
  width: 100%;
  padding: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), #ffbf69);
  color: #17212b;
  border: none;
  border-radius: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.btn-main-download:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-main-download:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ── Toggle buttons ── */
.toggle-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  text-align: center;
}

/* ── Info steps checklist ── */
.info-status-text {
  margin: 8px 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}

.steps-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: default;
}

.steps-list label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-2);
  pointer-events: none;
}

/* ── Cortar section ── */
.cortar-times {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.time-input {
  width: 110px !important;
  text-align: center;
}

.hint-inline {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Progress bar ── */
.bar-wrap {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bar-wrap.bar-big {
  height: 20px;
  border-radius: 10px;
}

.bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), #a5ffe8);
  transition: width 0.35s ease;
}

.bar.bar-accent {
  background: linear-gradient(90deg, var(--accent), #ffbf69);
}

/* ── Status / details text ── */
.status-text {
  margin: 8px 0 2px;
  font-size: 0.9rem;
  color: var(--muted);
}

.detalhes-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
}

/* ── Download link ── */
.download-link {
  display: inline-block;
  margin-top: 10px;
  color: #05213b;
  background: #90ffd9;
  border-radius: 10px;
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.download-link:hover {
  opacity: 0.85;
}

/* ── Error ── */
.error {
  margin-top: 10px;
  color: var(--danger);
  white-space: pre-wrap;
  font-size: 0.85rem;
}

/* ── Hints ── */
.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  word-break: break-all;
}

.hint code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.info-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Info grid (thumb + details) ── */
.info-grid {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-thumb {
  max-width: 220px;
  border-radius: 10px;
  flex-shrink: 0;
}

.info-details p {
  margin: 3px 0;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

/* ── Video search ── */
.search-results {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.platform-picker {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-chip {
  border-radius: 999px;
  border: 1px solid var(--input-border);
  background: rgba(4, 12, 24, 0.7);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.platform-chip.active {
  color: var(--text);
  border-color: var(--accent-2);
  background: rgba(70, 240, 199, 0.08);
}

.platform-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.platform-mark.youtube { background: #ff0033; }
.platform-mark.facebook { background: #1877f2; }
.platform-mark.instagram { background: linear-gradient(120deg, #f58529, #dd2a7b, #8134af); }
.platform-mark.vimeo { background: #19b7ea; }
.platform-mark.dailymotion { background: #1b6ed6; }
.platform-mark.tiktok { background: #111; }
.platform-mark.twitter { background: #111; }

.search-item {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: rgba(4, 12, 24, 0.7);
  padding: 8px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  text-align: left;
}

.search-item:hover {
  border-color: var(--accent-2);
}

.search-thumb {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: #0c0f17;
}

.search-meta-wrap {
  min-width: 0;
}

.search-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--text);
}

.search-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.search-action {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--accent-2);
}

.video-preview {
  margin-top: 10px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(4, 8, 16, 0.8);
}

.video-preview iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .row {
    grid-template-columns: 1fr;
  }

  .option-row select {
    max-width: 100%;
  }

  .cortar-times {
    flex-direction: column;
    align-items: flex-start;
  }

  .extras-row {
    flex-direction: column;
    gap: 10px;
  }

  .title-row {
    flex-direction: column;
    gap: 4px;
  }

  .navbar {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
  }

  .planos-grid {
    grid-template-columns: 1fr;
    padding: 0;
    max-width: 100%;
  }

  .plano-card {
    padding: 20px 14px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
  }

  .planos-shell {
    padding: 24px 8px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .plano-preco {
    font-size: 2rem;
  }

  .plano-preco-wrap {
    flex-wrap: wrap;
  }

  .plano-header {
    gap: 6px;
  }

  .plano-badge {
    padding: 2px 7px;
    font-size: 0.66rem;
  }

  .plano-nome {
    font-size: 0.98rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .compare-table {
    font-size: 0.8rem;
  }

  .conta-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 20px 10px;
    padding: 24px 18px;
  }

  .search-item {
    grid-template-columns: 1fr;
  }

  .platform-picker {
    gap: 6px;
  }

  .platform-chip {
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  .search-thumb {
    width: 100%;
    height: 170px;
  }

  .video-preview iframe {
    height: 190px;
  }

  .loader-title {
    font-size: 1.7rem;
  }
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(4, 12, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-platforms {
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.7;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .nav-platforms { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-btn-link {
  color: #17212b;
  background: linear-gradient(120deg, var(--accent), #ffbf69);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  transition: transform 0.15s;
}

.nav-btn-link:hover {
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   USER BAR
   ══════════════════════════════════════════ */
.user-bar {
  padding: 8px 24px;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(4, 12, 24, 0.6);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.user-bar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.user-bar a:hover {
  text-decoration: underline;
}

.user-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}

.user-badge.pro {
  background: linear-gradient(120deg, var(--accent), #ffbf69);
  color: #17212b;
}

.user-badge.free {
  background: rgba(255,255,255,0.12);
  color: var(--muted);
}

.upgrade-inline {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.pro-tag {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent), #ffbf69);
  color: #17212b;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ══════════════════════════════════════════
   AUTH PAGES (login, register)
   ══════════════════════════════════════════ */
.auth-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  background: var(--card);
  backdrop-filter: blur(6px);
  width: 100%;
  max-width: 420px;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 22px;
}

.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin: 14px 0 5px;
}

.auth-card form input[type="text"],
.auth-card form input[type="email"],
.auth-card form input[type="password"] {
  width: 100%;
}

.auth-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn-google:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.auth-divider span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════
   PRICING PAGE
   ══════════════════════════════════════════ */
.planos-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 18px;
}

.planos-hero {
  text-align: center;
  margin-bottom: 36px;
}

.planos-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--accent);
  margin: 0 0 8px;
  letter-spacing: 1px;
}

.planos-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.planos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  max-width: 100%;
}

.plano-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  background: var(--card);
  backdrop-filter: blur(6px);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.plano-card.pro-card {
  border: 2px solid var(--accent);
  background: rgba(255, 159, 26, 0.06);
}

.plano-destaque {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, var(--accent), #ffbf69);
  color: #17212b;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.plano-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  margin-top: 6px;
}

.plano-badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.free-badge {
  background: rgba(255,255,255,0.1);
  color: var(--muted);
}

.pro-badge {
  background: linear-gradient(120deg, var(--accent), #ffbf69);
  color: #17212b;
}

.plano-nome {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.plano-preco-wrap {
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plano-preco-antigo {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.plano-preco-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.plano-preco {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.4rem;
  color: var(--text);
  letter-spacing: 1px;
}

.preco-cents {
  font-size: 1.2rem;
  vertical-align: super;
}

.plano-periodo {
  font-size: 1rem;
  color: var(--muted);
}

.plano-mensal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.plano-mensal-valor {
  font-size: 0.9rem;
  color: var(--accent-2);
  font-weight: 700;
}

.plano-economia {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.plano-desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 16px;
  line-height: 1.5;
}

.plano-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.plano-features li {
  font-size: 0.88rem;
  line-height: 1.4;
}

.feat-yes {
  color: var(--text);
}

.feat-no {
  color: var(--muted);
  opacity: 0.6;
}

.plano-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s;
  cursor: pointer;
  border: none;
}

.plano-btn:hover {
  transform: translateY(-2px);
}

.free-btn {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border: 1px solid var(--line);
}

.pro-btn {
  background: linear-gradient(120deg, var(--accent), #ffbf69);
  color: #17212b;
}

.plano-atual {
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  background: rgba(70,240,199,0.1);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.9rem;
}

.plano-atual.pro-atual {
  background: rgba(255,159,26,0.15);
  color: var(--accent);
}

.plano-atual.muted {
  background: transparent;
  color: var(--muted);
  opacity: 0.4;
}

/* Comparison table */
.planos-compare {
  margin-bottom: 48px;
}

.compare-title {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 20px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  background: rgba(255,255,255,0.05);
  font-weight: 700;
  color: var(--text);
}

.compare-table td {
  color: var(--muted);
}

.compare-table .col-pro {
  color: var(--accent);
  font-weight: 600;
}

/* FAQ */
.faq-section {
  margin-bottom: 48px;
}

.faq-title {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 20px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--card);
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item summary::before {
  content: "▸";
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 18px 16px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* CTA Final */
.planos-cta-final {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 159, 26, 0.06);
}

.planos-cta-final h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: var(--text);
}

.planos-cta-final p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}

.site-footer a:hover {
  text-decoration: underline;
}

.planos-cta-final .plano-btn {
  display: inline-block;
  padding: 14px 32px;
}

/* ══════════════════════════════════════════
   PAYMENT PAGE
   ══════════════════════════════════════════ */
.pay-summary {
  width: 100%;
  max-width: 520px;
}

.pay-resume-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--card);
  margin-top: 12px;
}

.pay-resume-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--text);
}

.pay-resume-sub {
  margin-top: 6px;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
}

.pay-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  width: 100%;
  max-width: 520px;
}

.pay-tab {
  flex: 1;
  padding: 12px;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}

.pay-tab.active {
  background: rgba(255, 159, 26, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

.pay-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.pay-section-title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--text);
}

.pix-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  background: #0a1929;
  border-radius: 12px;
  padding: 16px;
}

.pix-qr-wrap svg {
  max-width: 260px;
  width: 100%;
  height: auto;
}

.pix-copiacola {
  display: flex;
  gap: 8px;
}

.pix-copiacola input {
  flex: 1;
  font-size: 0.8rem;
}

.pix-instrucoes {
  margin-top: 18px;
  padding: 14px;
  background: rgba(70, 240, 199, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(70, 240, 199, 0.15);
}

.pix-instrucoes h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--accent-2);
}

.pix-instrucoes ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.pix-ref {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.pix-ref code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.cartao-info {
  padding: 10px 0;
}

.cartao-icon-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cartao-bandeira {
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cartao-vantagens {
  margin-top: 16px;
  text-align: left;
}

.cartao-vantagens p {
  color: var(--accent-2);
  font-size: 0.9rem;
  margin: 6px 0;
}

.pay-tab-note {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 2px;
  font-weight: 400;
}

.pay-garantias {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.garantia-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.garantia-icon {
  font-size: 1.2rem;
}

/* Payment polling / success */
.pix-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-top: 16px;
  background: rgba(255, 199, 0, 0.1);
  border: 1px solid rgba(255, 199, 0, 0.3);
  border-radius: 12px;
  color: var(--accent-2);
  font-weight: 500;
  font-size: 0.9rem;
}

.pix-status-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 199, 0, 0.3);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pay-success {
  text-align: center;
  padding: 40px 20px;
}

.pay-success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.pay-success h2 {
  color: #4ade80;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.pay-success p {
  color: var(--text);
  line-height: 1.6;
}

.pay-success-sub {
  color: var(--muted) !important;
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════
   CONTA (ACCOUNT) PAGE
   ══════════════════════════════════════════ */
.conta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 720px;
}

.conta-grid .auth-card {
  max-width: 100%;
}

.conta-grid .auth-card:first-child {
  grid-column: 1 / -1;
}

.conta-info {
  margin-top: 12px;
}

.conta-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.conta-label {
  font-weight: 700;
  color: var(--muted);
  min-width: 60px;
}

.conta-plano-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.pro-badge-big {
  background: linear-gradient(120deg, var(--accent), #ffbf69);
  color: #17212b;
}

.free-badge-big {
  background: rgba(255,255,255,0.1);
  color: var(--muted);
}

.conta-expira {
  color: var(--muted);
  font-size: 0.85rem;
}

.conta-features-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent-2);
}

.conta-uso {
  margin-top: 12px;
}

.conta-uso-bar-wrap {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.conta-uso-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ffbf69);
  border-radius: 999px;
  transition: width 0.3s;
}

.conta-uso-text {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.conta-stat {
  text-align: center;
  padding: 10px 0;
}

.conta-stat-num {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.conta-stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   MODAL (upgrade / login prompt)
   ══════════════════════════════════════════ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
  transform: none;
}

.modal-title {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--text);
}

.modal-content p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 6px 0;
  line-height: 1.5;
}

.modal-features {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.modal-features li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 3px 0;
}

.modal-preco {
  text-align: center;
  margin: 16px 0 2px;
}

.modal-preco-valor {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: var(--accent);
}

.modal-preco-periodo {
  font-size: 1rem;
  color: var(--muted);
}

.modal-preco-mensal {
  text-align: center;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 4px;
}

/* ══════════════════════════════════════════
   VIDEO MODAL (search preview)
   ══════════════════════════════════════════ */
body.no-scroll {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
}

.video-modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #020814;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-frame,
#video-modal-frame {
  width: 100%;
  height: min(68vh, 520px);
  display: block;
  border: 0;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
}

.video-modal-close:hover {
  transform: none;
  border-color: var(--accent-2);
}

.video-modal-fullscreen {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
}

.video-modal-fullscreen:hover {
  transform: none;
  border-color: var(--accent-2);
}

.video-modal-fullscreen.active {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.video-modal-card:fullscreen,
.video-modal-card:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: 0;
}

.video-modal-card:fullscreen #video-modal-frame,
.video-modal-card:-webkit-full-screen #video-modal-frame {
  width: 100%;
  height: 100%;
}

.video-modal.landscape-fallback {
  align-items: stretch;
  justify-content: stretch;
}

.video-modal.landscape-fallback .video-modal-card {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
  border: 0;
}

.video-modal.landscape-fallback #video-modal-frame {
  width: 100%;
  height: 100%;
}

.video-modal-fab {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(120deg, var(--accent), #ffbf69);
  color: #17212b;
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}

.video-modal-download-panel {
  position: absolute;
  right: 14px;
  bottom: 82px;
  z-index: 3;
  width: min(320px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(4, 12, 24, 0.96);
  backdrop-filter: blur(6px);
  display: grid;
  gap: 8px;
}

.video-modal-panel-title {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .video-modal-card {
    width: calc(100% - 10px);
    border-radius: 12px;
  }

  .video-modal-frame,
  #video-modal-frame {
    height: min(52vh, 320px);
  }

  .video-modal-fab {
    right: 10px;
    bottom: 10px;
    width: 52px;
    height: 52px;
  }

  .video-modal-download-panel {
    right: 10px;
    bottom: 70px;
  }
}
