: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: #ff5a2a;
  --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(255,90,42,.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="text"], 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, #ff8a4a, #ff5a2a); 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(255,90,42,.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(255, 138, 42, .22), transparent 30%),
    radial-gradient(circle at 78% 24%, rgba(0, 255, 186, .18), transparent 30%),
    radial-gradient(circle at 88% 72%, rgba(255, 90, 42, .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 22px rgba(255,130,40,.5)) drop-shadow(0 0 30px rgba(255,45,45,.26));
}

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

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

.main-download-grid {
  grid-template-columns: repeat(2, 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, #ff6a2a, #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(255,138,42,.28);
  background:
    radial-gradient(circle at 82% 10%, rgba(255,138,42,.18), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(255,90,42,.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(255,138,42,.38)) drop-shadow(0 0 24px rgba(255,90,42,.18));
}

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


/* ==========================================================================
   Página de obrigado — visual HUD / terminal tecnológico
   Escopo: tudo abaixo é prefixado com .tk- / .thankyou-tech
   ========================================================================== */
.tk-mono {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
}
.tk-dim { color: rgba(255, 214, 170, .5); }

/* --- Fundo animado ------------------------------------------------------- */
.tk-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 120, 30, .20), transparent 34%),
    radial-gradient(circle at 12% 84%, rgba(255, 40, 40, .16), transparent 36%),
    radial-gradient(circle at 92% 88%, rgba(255, 150, 60, .10), transparent 40%),
    linear-gradient(150deg, #05060a 0%, #0a0710 46%, #0d0805 100%);
}
.tk-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 150, 70, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 150, 70, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 12%, transparent 78%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 12%, transparent 78%);
  animation: tkGridDrift 18s linear infinite;
}
.tk-glow {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}
.tk-glow-1 { top: -12%; right: -6%; background: rgba(255, 120, 30, .55); animation: tkGlowPulse 7s ease-in-out infinite; }
.tk-glow-2 { bottom: -16%; left: -10%; background: rgba(255, 45, 45, .40); animation: tkGlowPulse 9s ease-in-out infinite reverse; }
.tk-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .035) 0,
    rgba(255, 255, 255, .035) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

@keyframes tkGridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 44px 44px, 44px 44px; }
}
@keyframes tkGlowPulse {
  0%, 100% { transform: scale(1); opacity: .45; }
  50%      { transform: scale(1.14); opacity: .68; }
}

/* --- Layout ------------------------------------------------------------- */
.thankyou-tech {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 30px;
  padding: 48px 0;
}

/* --- Cantos em L (brackets) ------------------------------------------------ */
.tk-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 150, 70, .55);
  pointer-events: none;
}
.tk-corner-tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.tk-corner-tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.tk-corner-bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.tk-corner-br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* --- Card principal (console) ------------------------------------------- */
.tk-console {
  position: relative;
  min-width: 0;
  padding: clamp(26px, 4.4vw, 52px);
  border: 1px solid rgba(255, 150, 60, .22);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(20, 15, 11, .93), rgba(11, 9, 13, .93));
  backdrop-filter: blur(16px);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .03) inset;
  overflow: hidden;
}
.tk-console::after { /* varredura de scanline */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  top: -140px;
  background: linear-gradient(180deg, transparent, rgba(255, 170, 90, .10), transparent);
  animation: tkSweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tkSweep {
  0%   { top: -160px; opacity: 0; }
  12%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.tk-statusline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .16em;
  color: #ffd9a8;
  margin-bottom: 22px;
}
.tk-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4be38b;
  box-shadow: 0 0 0 0 rgba(75, 227, 139, .6);
  animation: tkDot 2.4s ease-out infinite;
}
@keyframes tkDot {
  0%   { box-shadow: 0 0 0 0 rgba(75, 227, 139, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(75, 227, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(75, 227, 139, 0); }
}
.tk-caret {
  width: 8px;
  height: 15px;
  background: #ff8a2a;
  margin-left: 2px;
  animation: tkBlink 1.05s steps(1) infinite;
}
@keyframes tkBlink { 50% { opacity: 0; } }

.tk-brandrow {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  flex-wrap: wrap;
}
.tk-logo-wrap {
  position: relative;
  width: clamp(96px, 14vw, 148px);
  height: clamp(96px, 14vw, 148px);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.tk-logo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 26px;
  background: conic-gradient(from 0deg, transparent 0deg, #ff8a2a 70deg, #ff2d2d 130deg, transparent 210deg, transparent 360deg);
  filter: blur(9px);
  opacity: .55;
  animation: tkSpin 6s linear infinite;
}
@keyframes tkSpin { to { transform: rotate(360deg); } }
.tk-logo {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 22px rgba(255, 130, 40, .5))
    drop-shadow(0 0 30px rgba(255, 45, 45, .28));
}

.tk-brandtext {
  min-width: 0;
}
.tk-brandtext h1 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: .96;
  letter-spacing: -.05em;
}

.tk-copy {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
}

.thankyou-tech .alert { margin: 18px 0 0; }

/* --- Formulário -------------------------------------------------------- */
.tk-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}
.tk-field { position: relative; display: block; }
.tk-field-label {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  color: #ffb877;
  margin-bottom: 9px;
}
.tk-field input {
  width: 100%;
  border: 1px solid rgba(255, 150, 60, .22);
  background: rgba(0, 0, 0, .38);
  color: var(--text);
  border-radius: 12px;
  padding: 15px 14px;
  outline: none;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  letter-spacing: .02em;
  transition: border-color .2s, box-shadow .2s;
}
.tk-field input::placeholder { color: rgba(255, 255, 255, .32); }
.tk-field input:focus {
  border-color: rgba(255, 138, 42, .8);
  box-shadow: 0 0 0 4px rgba(255, 138, 42, .12);
}
.tk-field-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #ff8a2a, #ff2d2d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.tk-field input:focus ~ .tk-field-line { transform: scaleX(1); }

.tk-btn {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  padding: 16px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff9a3a, #ff4d2a);
  color: #1c0d04;
  font-weight: 900;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(255, 110, 40, .30);
  transition: transform .15s ease, box-shadow .2s ease;
}
.tk-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  animation: tkSheen 4.6s ease-in-out infinite;
}
@keyframes tkSheen {
  0%, 62%  { left: -60%; }
  86%, 100% { left: 130%; }
}
.tk-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 56px rgba(255, 110, 40, .42); }
.tk-btn-arrow { transition: transform .18s ease; }
.tk-btn:hover .tk-btn-arrow { transform: translateX(4px); }

.tk-support {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  box-shadow: none;
  transition: border-color .2s, background .2s;
}
.tk-support:hover { border-color: rgba(255, 138, 42, .6); background: rgba(255, 138, 42, .08); transform: none; }
.tk-support-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4be38b;
  animation: tkDot 2.4s ease-out infinite;
}

.tk-fine {
  margin: 18px 0 0;
  font-size: 11.5px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .4);
}

/* --- Painel HUD (lateral) --------------------------------------------- */
.tk-hud {
  position: relative;
  align-self: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  border: 1px solid rgba(255, 150, 60, .18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 12, 16, .9), rgba(9, 8, 12, .92));
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.tk-hud-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  letter-spacing: .14em;
  color: #ffb877;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 150, 60, .22);
}
.tk-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 12.5px;
}
.tk-log li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  opacity: 0;
  transform: translateX(-8px);
  animation: tkLogIn .5s ease forwards;
}
.tk-log li:nth-child(1) { animation-delay: .15s; }
.tk-log li:nth-child(2) { animation-delay: .40s; }
.tk-log li:nth-child(3) { animation-delay: .65s; }
.tk-log li:nth-child(4) { animation-delay: .90s; }
@keyframes tkLogIn { to { opacity: 1; transform: translateX(0); } }
.tk-log-k { color: var(--muted); }
.tk-log-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, .2);
  transform: translateY(-3px);
}
.tk-ok { color: #4be38b; font-weight: 700; letter-spacing: .06em; }

.tk-meter {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
}
.tk-meter span {
  flex: 1;
  height: 30%;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffcf6a, #ff5a2a);
  animation: tkMeter 1.1s ease-in-out infinite;
}
.tk-meter span:nth-child(1)  { animation-delay: -.9s;  }
.tk-meter span:nth-child(2)  { animation-delay: -.2s;  }
.tk-meter span:nth-child(3)  { animation-delay: -.6s;  }
.tk-meter span:nth-child(4)  { animation-delay: -.1s;  }
.tk-meter span:nth-child(5)  { animation-delay: -.75s; }
.tk-meter span:nth-child(6)  { animation-delay: -.35s; }
.tk-meter span:nth-child(7)  { animation-delay: -.95s; }
.tk-meter span:nth-child(8)  { animation-delay: -.5s;  }
.tk-meter span:nth-child(9)  { animation-delay: -.15s; }
.tk-meter span:nth-child(10) { animation-delay: -.8s;  }
.tk-meter span:nth-child(11) { animation-delay: -.4s;  }
.tk-meter span:nth-child(12) { animation-delay: -.65s; }
@keyframes tkMeter {
  0%, 100% { height: 24%; }
  50%      { height: 96%; }
}

.tk-platforms {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}
.tk-plat { display: flex; align-items: center; gap: 9px; }
.tk-plat i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4be38b;
  animation: tkDot 2.4s ease-out infinite;
}

/* --- Responsivo ------------------------------------------------------- */
@media (max-width: 960px) {
  .thankyou-tech { grid-template-columns: 1fr; gap: 0; padding: 32px 0; }
  .tk-hud { display: none; }
}
@media (max-width: 560px) {
  .tk-console { padding: 22px 18px; border-radius: 16px; }
  .tk-brandrow { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tk-logo-wrap { width: 92px; height: 92px; }
  .tk-brandtext h1 { font-size: 28px; margin-top: 4px; }
  .tk-brandtext h1 br { display: none; }
  .tk-copy { font-size: 15px; }
  .tk-statusline { font-size: 10.5px; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-grid,
  .tk-glow-1,
  .tk-glow-2,
  .tk-console::after,
  .tk-status-dot,
  .tk-caret,
  .tk-logo-ring,
  .tk-btn::after,
  .tk-support-dot,
  .tk-log li,
  .tk-meter span,
  .tk-plat i {
    animation: none !important;
  }
  .tk-log li { opacity: 1; transform: none; }
  .tk-meter span { height: 60%; }
  .tk-caret { opacity: 1; }
}


/* ==========================================================================
   Página de downloads (pós-login) — mesmo visual HUD
   ========================================================================== */
.tk-downloads {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 56px 0 90px;
}

.tk-dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: clamp(20px, 3vw, 32px);
}
.tk-dl-head::after { display: none; } /* sem varredura no cabeçalho */

.tk-dl-head-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.tk-logo-wrap--sm { width: 64px; height: 64px; flex-shrink: 0; }
.tk-logo-wrap--sm .tk-logo-ring { inset: -8px; border-radius: 18px; }

.tk-dl-head-text { min-width: 0; }
.tk-dl-head-text h1 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: .98;
  letter-spacing: -.04em;
}
.tk-dl-session {
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255, 214, 170, .62);
  word-break: break-all;
}
.tk-dl-session strong { color: #ffd9a8; font-weight: 700; }

.tk-dl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tk-dl-actions form { margin: 0; }
.tk-ghost {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.tk-ghost:hover { border-color: rgba(255, 138, 42, .55); background: rgba(255, 138, 42, .08); transform: none; }

.tk-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tk-dl-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
}
.tk-dl-card::after { display: none; }
.tk-dl-card h2 {
  margin: 16px 0 8px;
  font-size: 20px;
  letter-spacing: -.02em;
}
.tk-dl-card p {
  flex: 1;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.tk-dl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tk-plat-glyph {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #ffd9a8;
  background: rgba(255, 138, 42, .12);
  border: 1px solid rgba(255, 138, 42, .28);
}
.tk-dl-tag {
  font-size: 10.5px;
  letter-spacing: .16em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.tk-dl-tag.is-on { color: #4be38b; }
.tk-dl-tag.is-off { color: #ff5b6e; }

.tk-dl-btn {
  width: 100%;
  padding: 14px 18px;
}
.tk-dl-btn.is-disabled {
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .45);
  box-shadow: none;
  cursor: not-allowed;
  font-size: 13px;
}
.tk-dl-btn.is-disabled::after { display: none; }
.tk-dl-btn.is-disabled:hover { transform: none; }

@media (max-width: 860px) {
  .tk-dl-head { justify-content: flex-start; }
  .tk-dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tk-downloads { padding: 30px 0 96px; }
  .tk-dl-head-main { gap: 14px; }
  .tk-logo-wrap--sm { width: 54px; height: 54px; }
  .tk-dl-head-text h1 { font-size: 26px; }
}
