/* ==========================================================================
   JekInteract — gate.css
   Halaman aktivasi lisensi browser (app.jekinteract.my.id/gate).
   ========================================================================== */

body.gate {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 560px at 8% -10%, rgba(41, 243, 255, .12), transparent 60%),
    radial-gradient(820px 620px at 104% 106%, rgba(255, 45, 143, .11), transparent 62%),
    linear-gradient(160deg, #0a0718 0%, #07050f 58%, #0b071c 100%);
}

.gate-scan {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px);
  opacity: .55;
  mix-blend-mode: overlay;
}
.gate-grid {
  position: fixed;
  inset: -20% -10% auto;
  height: 85vh;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(139, 92, 255, .08) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(139, 92, 255, .08) 1px, transparent 1px) 0 0 / 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 78%);
  transform: perspective(620px) rotateX(58deg);
  transform-origin: 50% 0;
}

.gate-wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------------------------------- Kiri --------------------------------- */
.gate-copy { min-width: 0; }
.gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--txt);
  margin-bottom: clamp(26px, 5vh, 52px);
}
.gate-brand img { filter: drop-shadow(0 0 16px rgba(41, 243, 255, .35)); }
.gate-brand b {
  display: block;
  font: 800 17px/1.05 var(--f-display);
  letter-spacing: .12em;
}
.gate-brand small {
  display: block;
  margin-top: 5px;
  color: var(--txt-3);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(41, 243, 255, .28);
  background: rgba(41, 243, 255, .055);
  color: var(--cyan);
  font: 700 11px/1 var(--f-ui);
  letter-spacing: .16em;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.gate-eyebrow i {
  width: 7px; height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: gate-blink 1.8s ease-in-out infinite;
}
@keyframes gate-blink { 50% { opacity: .25; } }

.gate-title {
  margin-top: 20px;
  font: 900 clamp(42px, 7vw, 76px)/.94 var(--f-display);
  letter-spacing: -.015em;
  text-shadow: 0 0 34px rgba(41, 243, 255, .16);
}
.gate-title span {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gate-sub {
  max-width: 54ch;
  margin-top: 20px;
  color: var(--txt-2);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.62;
}

.gate-points {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  max-width: 540px;
}
.gate-points li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(61, 51, 128, .55);
  background: linear-gradient(100deg, rgba(23, 18, 58, .55), rgba(10, 8, 24, .25));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.gate-points svg {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 1px;
  color: var(--mint);
  filter: drop-shadow(0 0 8px rgba(57, 255, 154, .35));
}
.gate-points b {
  display: block;
  font-size: 14px;
  letter-spacing: .01em;
}
.gate-points span {
  display: block;
  margin-top: 2px;
  color: var(--txt-3);
  font-size: 12.5px;
  line-height: 1.45;
}

.gate-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(61, 51, 128, .45);
  max-width: 540px;
}
.gate-link {
  color: var(--txt-3);
  font-size: 13px;
  transition: color .16s;
}
.gate-link:hover { color: var(--cyan); }

/* --------------------------------- Panel --------------------------------- */
.gate-panel {
  --c: 20px;
  --bd: linear-gradient(135deg, rgba(41, 243, 255, .72), var(--line) 24%, var(--line) 72%, rgba(255, 45, 143, .62));
  --bg: linear-gradient(180deg, rgba(15, 11, 34, .96), rgba(8, 6, 22, .98));
  width: 100%;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(41, 243, 255, .06);
}

.gate-panel-head { margin-bottom: 22px; }
.gate-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--txt-3);
  font: 700 10.5px/1 var(--f-ui);
  letter-spacing: .14em;
}
.gate-status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--txt-3);
  box-shadow: 0 0 0 3px rgba(125, 120, 171, .12);
}
.gate-status.on { color: var(--mint); }
.gate-status.on i { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.gate-status.err { color: var(--red); }
.gate-status.err i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.gate-panel-head h2 {
  margin-top: 12px;
  font: 800 clamp(22px, 3vw, 28px)/1.1 var(--f-display);
  letter-spacing: .04em;
}
.gate-panel-head p {
  margin-top: 7px;
  color: var(--txt-3);
  font-size: 13px;
}
.gate-panel-head code,
.gate-device code {
  color: var(--violet-t);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .95em;
  letter-spacing: .04em;
}

#gate-alert { margin-bottom: 16px; }
#gate-alert:empty { display: none; }
#gate-alert .alert { font-size: 13.5px; }

.gate-label {
  display: block;
  margin-bottom: 8px;
  color: var(--txt-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gate-keyfield { min-height: 54px; }
.gate-keyfield > input {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gate-keyfield > input::placeholder { letter-spacing: .06em; }
.gate-keyfield > i svg { width: 19px; height: 19px; }

.gate-device {
  margin: 12px 1px 20px;
  color: var(--txt-3);
  font-size: 12px;
  line-height: 1.5;
}
.gate-device code {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid rgba(139, 92, 255, .3);
  background: rgba(139, 92, 255, .08);
  word-break: break-all;
}
.gate-device span { display: block; margin-top: 4px; }

.gate-submit {
  min-height: 52px;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.gate-submit.busy { pointer-events: none; opacity: .72; }
.gate-submit.busy #gate-submit-text::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: 10px;
  vertical-align: -1px;
  border: 2px solid rgba(6, 4, 15, .35);
  border-top-color: #06040f;
  border-radius: 50%;
  animation: gate-spin .7s linear infinite;
}
@keyframes gate-spin { to { transform: rotate(360deg); } }

.gate-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--txt-3);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gate-or::before, .gate-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.gate-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(61, 51, 128, .45);
  color: var(--txt-3);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gate-panel-foot span { display: inline-flex; align-items: center; gap: 7px; }
.gate-panel-foot .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

/* Sukses */
.gate-success {
  padding: 22px 18px;
  text-align: center;
  border: 1px solid rgba(57, 255, 154, .4);
  background: rgba(57, 255, 154, .055);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.gate-success svg {
  width: 42px; height: 42px;
  margin: 0 auto 12px;
  color: var(--mint);
  filter: drop-shadow(0 0 14px rgba(57, 255, 154, .5));
}
.gate-success b {
  display: block;
  font: 800 19px/1.2 var(--f-display);
  letter-spacing: .05em;
}
.gate-success p {
  margin-top: 8px;
  color: var(--txt-2);
  font-size: 13px;
}
.gate-success code {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(41, 243, 255, .35);
  background: rgba(41, 243, 255, .07);
  color: var(--cyan);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px;
  letter-spacing: .16em;
}

/* ------------------------------- Responsif ------------------------------- */
@media (max-width: 900px) {
  .gate-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 28px;
  }
  .gate-copy { order: 2; }
  .gate-panel { order: 1; }
  .gate-brand { margin-bottom: 22px; }
  .gate-title { font-size: clamp(38px, 11vw, 58px); }
  .gate-points { max-width: none; }
}

@media (max-width: 520px) {
  .gate-wrap { width: calc(100% - 24px); padding-bottom: 28px; }
  .gate-panel { --c: 14px; padding: 18px 16px; }
  .gate-title { font-size: 38px; }
  .gate-sub { font-size: 14px; }
  .gate-points li { padding: 10px 12px; }
  .gate-panel-foot { font-size: 10px; }
}
