:root {
  --bg: #090a12;
  --bg2: #11142a;
  --card: rgba(255, 255, 255, 0.08);
  --card2: rgba(255, 255, 255, 0.12);
  --text: #f6f7fb;
  --muted: #b9bed4;
  --line: rgba(255,255,255,.14);
  --accent: #f6c45c;
  --accent2: #7c4dff;
  --danger: #ff5b6e;
  --success: #4be38b;
  --shadow: 0 30px 90px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(124,77,255,.35), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(246,196,92,.22), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  color: var(--text);
}

a { color: inherit; }
button, input, textarea { font: inherit; }

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 36px;
  padding: 44px 0;
}

.hero-card, .download-card, .panel-card, .preview-window {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.07));
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: clamp(28px, 5vw, 58px);
  position: relative;
  overflow: hidden;
}

.hero-card:before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(246,196,92,.14);
  right: -90px;
  top: -80px;
}

.hero-card.narrow { max-width: 560px; width: 100%; margin: 0 auto; }
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(246,196,92,.42);
  border-radius: 999px;
  color: #ffe2a4;
  background: rgba(246,196,92,.10);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}
.brand-pill.small { font-size: 12px; padding: 7px 11px; }

h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: .95;
  letter-spacing: -.06em;
}

h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.03em; }
p { color: var(--muted); line-height: 1.65; }
.hero-copy { font-size: 18px; max-width: 620px; }
.fineprint { font-size: 13px; margin: 16px 0 0; }
.muted { color: var(--muted); font-size: 14px; }

.login-form, .stack-form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

label { color: #e8ebff; font-weight: 700; font-size: 14px; }
input[type="email"], input[type="password"], input[type="url"], input[type="file"], .inline-form input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.24);
  color: var(--text);
  border-radius: 16px;
  padding: 16px 16px;
  outline: none;
}
textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.45;
}
input:focus, textarea:focus { border-color: rgba(246,196,92,.65); box-shadow: 0 0 0 4px rgba(246,196,92,.12); }

button, .main-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #ffd271, #f2a92a);
  color: #171008;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(246,196,92,.2);
}
button:hover, .main-btn:hover { transform: translateY(-1px); }
.secondary { background: linear-gradient(135deg, #9a7cff, #704dff); color: white; }
.ghost-btn {
  background: rgba(255,255,255,.10);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.danger-btn {
  background: rgba(255,91,110,.12);
  border: 1px solid rgba(255,91,110,.45);
  color: #ffd8dd;
  box-shadow: none;
  padding: 9px 12px;
  border-radius: 12px;
}

.alert {
  border-radius: 16px;
  padding: 14px 16px;
  margin: 18px 0;
  border: 1px solid var(--line);
  font-weight: 700;
}
.alert.error { background: rgba(255,91,110,.12); color: #ffd8dd; border-color: rgba(255,91,110,.35); }
.alert.success { background: rgba(75,227,139,.12); color: #d8ffe7; border-color: rgba(75,227,139,.35); }
.legacy-warning {
  background: rgba(255,91,110,.13);
  color: #ffd8dd;
  border-color: rgba(255,91,110,.42);
  margin-bottom: 22px;
}


.side-preview { display: flex; justify-content: center; }
.preview-window {
  width: min(420px, 100%);
  padding: 24px;
  transform: rotate(2deg);
}
.dot-row { display: flex; gap: 8px; margin-bottom: 26px; }
.dot-row span { width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.35); }
.preview-title { font-size: 28px; font-weight: 900; letter-spacing: -.05em; margin-bottom: 22px; }
.download-preview {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px;
  margin-top: 14px;
  font-weight: 900;
}
.download-preview.enabled { border-color: rgba(246,196,92,.42); }
.download-preview.video { border-color: rgba(124,77,255,.55); }
.download-preview.legacy { border-color: rgba(255,91,110,.55); color: #ffd8dd; }

.downloads-shell { padding: 38px 0 70px; }
.topbar, .admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.topbar h1, .admin-header h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 8px; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.download-card { padding: 28px; min-height: 310px; display: flex; flex-direction: column; }
.download-card p { flex: 1; }
.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(246,196,92,.14);
  color: #ffe2a4;
  font-weight: 900;
  margin-bottom: 24px;
}

.admin-page { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 80px; }
.admin-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-bottom: 28px; }
.panel-card { padding: 24px; }
.bulk-card { grid-column: 1 / -1; }
.stack-form.compact { margin-top: 14px; }
.asset-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.16);
  border-radius: 18px;
  padding: 18px;
  margin-top: 16px;
}
.asset-row span { display: block; color: var(--muted); margin-top: 6px; font-size: 14px; }
.asset-note { display: block; color: #ffd8dd; margin-top: 8px; font-size: 13px; line-height: 1.45; }
.asset-row form { display: grid; gap: 10px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.url-card code, .copy-line code {
  display: block;
  white-space: normal;
  word-break: break-word;
  background: rgba(0,0,0,.32);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 12px;
  color: #fff3ce;
}
.copy-line { display: grid; gap: 8px; margin: 16px 0; }
.copy-line span { color: var(--muted); font-weight: 800; }

.table-section {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  border-radius: 24px;
  padding: 20px;
  margin-top: 22px;
  overflow: hidden;
}
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-title span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.10); color: #eef0ff; }
th { color: #b9bed4; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
td { font-size: 14px; }

@media (max-width: 900px) {
  .hero-shell, .download-grid, .admin-grid { grid-template-columns: 1fr; }
  .side-preview { display: none; }
  .topbar, .admin-header { align-items: flex-start; flex-direction: column; }
  .inline-form { grid-template-columns: 1fr; }
}


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

.support-inside {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.support-btn {
  background: linear-gradient(135deg, #4be38b, #18c76a);
  color: #06150c;
}

.floating-support {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4be38b, #18c76a);
  color: #06150c;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(24,199,106,.28), 0 0 0 1px rgba(255,255,255,.16) inset;
}

.floating-support:hover {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .top-actions {
    justify-content: flex-start;
  }

  .floating-support {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }

  body {
    padding-bottom: 78px;
  }
}


button.main-btn, button.floating-support, button.ghost-btn {
  border: none;
  cursor: pointer;
  font: inherit;
}

body.modal-open {
  overflow: hidden;
}

.support-qr-modal.hidden {
  display: none;
}

.support-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.support-qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, .78);
  backdrop-filter: blur(6px);
}

.support-qr-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  margin: min(8vh, 56px) auto;
  padding: 26px 24px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(10, 15, 28, .98));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
  text-align: center;
}

.support-qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #f5f7ff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.support-qr-copy {
  color: var(--muted);
  margin: 10px 0 18px;
}

.support-qr-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 252px;
  margin-bottom: 18px;
}

.support-qr-image {
  width: min(100%, 248px);
  height: auto;
  display: block;
  background: #fff;
  padding: 12px;
  border-radius: 22px;
  box-shadow: 0 10px 36px rgba(0,0,0,.22);
}

.support-qr-fallback {
  min-height: 220px;
  display: grid;
  place-items: center;
  width: 100%;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  color: #fff3ce;
  padding: 20px;
}

.support-qr-direct {
  width: 100%;
}

@media (max-width: 640px) {
  .support-qr-card {
    width: calc(100vw - 24px);
    margin: 12px auto;
    padding: 24px 18px 18px;
    border-radius: 22px;
  }
}


/* Página de downloads - padrão visual Hook */
.hook-download-page {
  position: relative;
  padding-top: 18px;
  overflow: visible;
}

.hook-download-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 28%, rgba(196, 255, 0, .22), transparent 30%),
    radial-gradient(circle at 78% 24%, rgba(0, 255, 186, .18), transparent 30%),
    radial-gradient(circle at 88% 72%, rgba(255, 67, 236, .22), transparent 34%),
    linear-gradient(135deg, #030608 0%, #07130d 42%, #080715 100%);
}

.downloads-topbar {
  margin-bottom: 12px;
}

.topbar-brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-logo {
  width: clamp(74px, 9vw, 118px);
  height: clamp(74px, 9vw, 118px);
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(180,255,0,.42)) drop-shadow(0 0 28px rgba(255,67,236,.22));
}

.downloads-topbar h1 {
  margin-top: 6px;
}

.hook-download-page .legacy-warning {
  margin-bottom: 14px;
}

.main-download-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.main-download-grid .download-card {
  min-height: 252px;
  padding: 22px;
  border-radius: 26px;
}

.main-download-grid .download-card h2 {
  font-size: 20px;
}

.main-download-grid .download-card p {
  font-size: 14px;
}

.download-card.video-card.install-use-card {
  background:
    radial-gradient(circle at 20% 5%, rgba(255,255,255,.92), transparent 20%),
    linear-gradient(145deg, #fff46b 0%, #d8ff00 38%, #ffe045 68%, #ffb326 100%);
  border-color: rgba(255, 244, 107, .9);
  color: #101305;
  box-shadow: 0 22px 55px rgba(216,255,0,.28), 0 0 0 1px rgba(255,255,255,.35) inset;
}

.download-card.video-card.install-use-card h2,
.download-card.video-card.install-use-card p {
  color: #101305;
}

.download-card.video-card.install-use-card .icon-badge {
  background: rgba(10, 13, 5, .9);
  color: #d8ff00;
  box-shadow: 0 0 26px rgba(0,255,186,.32);
}

.install-btn {
  background: linear-gradient(135deg, #08120b, #182010);
  color: #f6ff6a;
  box-shadow: 0 16px 38px rgba(0,0,0,.28), 0 0 22px rgba(0,255,186,.24);
}

.bounce-card {
  animation: hookBounce 1.55s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes hookBounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-10px); }
  62% { transform: translateY(-4px); }
}

.tutorial-arrow {
  display: grid;
  place-items: center;
  gap: 0;
  margin: 18px 0 12px;
  color: #d8ff00;
  text-align: center;
  filter: drop-shadow(0 0 18px rgba(216,255,0,.62));
}

.tutorial-arrow span {
  display: block;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  color: #dfffe8;
}

.tutorial-arrow strong {
  font-size: 58px;
  line-height: .9;
}

.bounce-arrow {
  animation: arrowPulse 1.1s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateY(0); opacity: .84; }
  50% { transform: translateY(10px); opacity: 1; }
}

.project-tutorial-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(216,255,0,.38);
  background:
    linear-gradient(135deg, rgba(216,255,0,.12), rgba(0,255,186,.09) 42%, rgba(255,67,236,.16)),
    rgba(5, 8, 11, .88);
  box-shadow: 0 30px 90px rgba(0,0,0,.46), 0 0 40px rgba(0,255,186,.12), 0 0 38px rgba(255,67,236,.12);
}

.project-tutorial-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(216,255,0,.36), rgba(0,255,186,.18), transparent 68%);
  pointer-events: none;
}

.project-tutorial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(216,255,0,.22), transparent 30%, rgba(255,67,236,.18)),
    radial-gradient(circle at 78% 72%, rgba(255,67,236,.25), transparent 34%);
  opacity: .9;
  pointer-events: none;
}

.project-tutorial-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(130px, 220px) 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 42px);
  padding: clamp(24px, 4.8vw, 50px);
}

.project-logo-wrap {
  display: grid;
  place-items: center;
}

.project-logo-wrap img {
  width: min(100%, 220px);
  filter: drop-shadow(0 0 30px rgba(216,255,0,.38)) drop-shadow(0 0 30px rgba(255,67,236,.24));
}

.project-tutorial-card h2 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(90deg, #d8ff00, #30ffbd 45%, #ff43ec 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(48,255,189,.10);
}

.project-tutorial-card p {
  max-width: 700px;
  color: #dfffe8;
  margin-bottom: 22px;
}

.hook-pill {
  border-color: rgba(48,255,189,.5);
  background: rgba(48,255,189,.10);
  color: #dfffe8;
}

.project-btn {
  background: linear-gradient(135deg, #d8ff00, #30ffbd 48%, #ff43ec 120%);
  color: #071008;
  box-shadow: 0 18px 48px rgba(48,255,189,.20), 0 0 26px rgba(216,255,0,.18);
}

@media (max-width: 1100px) {
  .main-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar-brand-block {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hook-download-page {
    padding-top: 12px;
  }

  .topbar-brand-block {
    gap: 12px;
  }

  .page-logo {
    width: 70px;
    height: 70px;
  }

  .main-download-grid {
    grid-template-columns: 1fr;
  }

  .main-download-grid .download-card {
    min-height: auto;
  }

  .project-tutorial-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .project-logo-wrap img {
    width: 150px;
  }
}


/* Logo da página de obrigado */
.hook-hero-card {
  border-color: rgba(216,255,0,.28);
  background:
    radial-gradient(circle at 82% 10%, rgba(216,255,0,.18), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(255,67,236,.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
}

.hero-logo {
  width: clamp(96px, 16vw, 164px);
  height: auto;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 26px rgba(216,255,0,.38)) drop-shadow(0 0 24px rgba(255,67,236,.18));
}
