/* ===== OVERLAY ===== */
.onboard-bg{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

/* ===== CARD ===== */
.onboard-card{
  width:420px;
  max-width:92vw;
  background:linear-gradient(145deg,#1a1d21,#22262b);
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px 20px 18px;
  box-shadow:0 30px 80px rgba(0,0,0,.65);
  animation:fadeIn .2s ease;
}
/* =========================================
   ONBOARD OVERLAY
========================================= */

.onboard-bg{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(2px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

/* =========================================
   CARD
========================================= */

.onboard-card{
  width:350px;
  max-width:92vw;
  background:linear-gradient(145deg,#1a1d21,#22262b);
  border-radius:18px;
  padding:20px 20px 18px;
  box-shadow:0 30px 80px rgba(0,0,0,.65);
  animation:fadeIn .2s ease;

  display:flex;
  flex-direction:column;
}
/* =========================================
   TELEGRAM CTA (ONBOARD)
========================================= */

.onboard-telegram-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-top:16px;
  padding:10px 18px;

  border-radius:10px;
  border:1px solid rgba(44,255,154,.35);

  background:linear-gradient(
    90deg,
    var(--green-500),
    var(--green-400)
  );

  color:#041a12;                 /* dark green text */
  font-weight:700;
  font-size:13px;

  text-decoration:none;          /* ❗ no underline */
  cursor:pointer;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .2s ease;
}
.onboard-telegram-btn:hover{
  transform:translateY(-2px);
  box-shadow:
    0 10px 24px rgba(44,255,154,.35);
}

.onboard-telegram-btn:active{
  transform:translateY(0);
  box-shadow:none;
}
/* =========================================
   HEADER
========================================= */

.onboard-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

.onboard-header span{
  font-weight:700;
  font-size:15px;
}

.onboard-header button{
  background:none;
  border:none;
  color:var(--muted);
  font-size:13px;
  cursor:pointer;
  transition:.15s ease;
}

.onboard-header button:hover{
  color:#fff;
}

/* =========================================
   STEP CONTENT
========================================= */

.onboard-step{
  display:none;
  animation:fadeIn .2s ease;
}

.onboard-step.active{
  display:block;
}

/* =========================================
   IMAGE CONTROL (CONSISTENT)
========================================= */

.onboard-step img{
  display:block;
  width:100%;
  max-width:320px;   /* tetap proporsional */
  height:auto;

  margin:0 auto 18px;
  border-radius:12px;

  object-fit:contain;
}

/* =========================================
   TYPOGRAPHY
========================================= */

.onboard-step h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:600;
}

.onboard-step p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
}

/* =========================================
   FOOTER
========================================= */

.onboard-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:22px;
}

.onboard-logo{
  max-width:100px;      /* ⬅️ kecilkan */
  margin:10px auto 22px;
}
/* Step container */
.onboard-step{
  display:none;
  animation:fadeIn .2s ease;
  min-height:380px;      /* ⬅️ penting supaya tinggi card stabil */
}

.onboard-step.active{
  display:block;
}
.onboard-preview{
  display:block;
  width:100%;
  max-width:320px;
  height:auto;

  margin:0 auto 18px;
  border-radius:12px;
  object-fit:contain;
}
.onboard-logo{
  display:block;
  width:150px;           /* kecil & clean */
  height:auto;

  margin:10px auto 22px;
  opacity:.95;
}
.onboard-telegram-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-top:18px;
  padding:10px 18px;

  border-radius:10px;
  border:1px solid rgba(44,255,154,.35);

  background:linear-gradient(
    90deg,
    var(--green-500),
    var(--green-400)
  );

  color:#041a12;
  font-weight:700;
  font-size:13px;

  text-decoration:none;
  cursor:pointer;

  transition:transform .15s ease, box-shadow .15s ease;
}

.onboard-telegram-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(44,255,154,.35);
}
.onboard-step h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:600;
}

.onboard-step p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
}
/* =========================================
   IMAGE FRAME (SEMUA STEP)
========================================= */

.onboard-preview{
  display:block;

  width:100%;
  max-width:320px;
  height:260px;           /* ⬅️ paksa semua sama tinggi */

  margin:0 auto 18px;
  border-radius:12px;

  object-fit:contain;     /* biar nggak kepotong */
  background:#0f1114;     /* biar ada frame kalau kosong */
}
/* =========================================
   ANIMATION
========================================= */

@keyframes fadeIn{
  from{ opacity:0; transform:translateY(6px); }
  to{ opacity:1; transform:none; }
}
/* dots */
.dots{
  display:flex;
  gap:6px;
}
.dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(255,255,255,.25);
}
.dot.active{
  background:var(--orange);
}

/* buttons */
.btn{
  border:none;
  border-radius:10px;
  padding:8px 14px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
}
.btn.secondary{
  background:rgba(255,255,255,.08);
  color:#fff;
}
.btn.primary{
  background:var(--orange);
  color:#111;
}
.btn.primary:hover{ background:#ff9f4d }

/* ===== ANIM ===== */
@keyframes fadeIn{
  from{ opacity:0; transform:translateY(6px) }
  to{ opacity:1; transform:none }
}