: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;
}

.admin-login-actions {
  margin-top: 16px;
  display: grid;
}
.admin-user-link {
  width: 100%;
  text-align: center;
}
.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; }
.upload-all-form {
  border: 1px solid rgba(246,196,92,.35);
  background: rgba(246,196,92,.08);
  border-radius: 18px;
  padding: 18px;
  margin-top: 18px;
}
.upload-all-form h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
}
.upload-all-form .muted {
  margin: 0 0 4px;
}
.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(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.main-download-grid .download-card {
  position: relative;
  min-height: 252px;
  padding: 22px;
  border: 2px solid transparent;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(31, 33, 48, .98), rgba(20, 22, 36, .98)) padding-box,
    linear-gradient(90deg, #ff244f, #ffdf24, #30ff90, #25c8ff, #865cff, #ff3ddd, #ff244f) border-box;
  background-size: 100% 100%, 300% 100%;
  animation:
    downloadCardDomino 2.4s ease-in-out infinite,
    downloadCardRgbBorder 2.8s linear infinite;
  will-change: transform, background-position;
}

.main-download-grid .download-card:nth-child(1) {
  animation-delay: 0s, 0s;
}

.main-download-grid .download-card:nth-child(2) {
  animation-delay: .18s, 0s;
}

.main-download-grid .download-card:nth-child(3) {
  animation-delay: .36s, 0s;
}

@keyframes downloadCardDomino {
  0%, 34%, 100% { transform: translateY(0); }
  10% { transform: translateY(-12px); }
  18% { transform: translateY(-4px); }
  24% { transform: translateY(0); }
}

@keyframes downloadCardRgbBorder {
  from { background-position: 0 0, 0% 50%; }
  to { background-position: 0 0, 100% 50%; }
}

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

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

@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;
  }

}


/* 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));
}

/* Botão RGB de instalação dentro do topo da página de downloads */
.installation-guide-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 320px;
  padding: 13px 20px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #ff1744,
    #ff9100,
    #ffee00,
    #00e676,
    #00b0ff,
    #651fff,
    #f500f5,
    #ff1744
  );
  background-size: 320% 100%;
  color: #fff;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  letter-spacing: .01em;
  text-shadow: 0 2px 4px rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.5);
  box-shadow:
    0 16px 42px rgba(255,23,68,.42),
    0 0 22px rgba(0,176,255,.55),
    0 0 0 1px rgba(255,255,255,.28) inset;
  animation:
    installationButtonRgb .9s linear infinite,
    installationButtonJump 1.35s cubic-bezier(.2,.8,.25,1) infinite,
    installationButtonFlash .56s ease-in-out infinite alternate;
  will-change: transform, background-position, filter, box-shadow;
}

.installation-guide-btn::before {
  content: "";
  position: absolute;
  inset: -55%;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    transparent 0 24%,
    rgba(255,255,255,.9) 30%,
    transparent 36% 100%
  );
  animation: installationButtonSweep 1.15s linear infinite;
}

.installation-guide-btn::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(0,0,0,.14), rgba(255,255,255,.10));
  pointer-events: none;
}

.installation-guide-btn:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.04) rotate(-1deg);
}

.installation-guide-btn.is-disabled {
  cursor: not-allowed;
  opacity: .6;
  filter: grayscale(.7);
}

@keyframes installationButtonRgb {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes installationButtonJump {
  0%, 42%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  10% { transform: translateY(-12px) rotate(-2deg) scale(1.035); }
  19% { transform: translateY(-3px) rotate(1.5deg) scale(1.01); }
  27% { transform: translateY(-8px) rotate(-1deg) scale(1.025); }
  35% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes installationButtonFlash {
  from {
    filter: saturate(1.1) brightness(1);
    box-shadow: 0 14px 36px rgba(255,23,68,.36), 0 0 16px rgba(0,176,255,.42);
  }
  to {
    filter: saturate(1.55) brightness(1.3);
    box-shadow: 0 20px 54px rgba(245,0,245,.62), 0 0 34px rgba(0,230,118,.72);
  }
}

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

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

  .installation-guide-btn {
    max-width: min(100%, 320px);
    min-height: 50px;
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .installation-guide-btn,
  .installation-guide-btn::before {
    animation: none;
  }
}

