/* ==========================================================================
   NusaTube — assets/css/members.css
   Komponen bersama area member, halaman auth (login/daftar), dan landing
   program member (members/members.php). Muat SETELAH nusatube.css.
   Style dashboard ada di dashboard.css.
   ========================================================================== */
[hidden] { display: none !important; }

/* ── Token status (sukses / error / peringatan) — ikut tema ── */
:root,
:root[data-theme="light"] {
  --st-ok: #047857;   --st-ok-bg: rgba(5, 150, 105, .12);   --st-ok-line: rgba(5, 150, 105, .3);   --st-ok-solid: #059669; --st-on-ok: #FFFFFF;
  --st-err: #B91C1C;  --st-err-bg: rgba(220, 38, 38, .09);  --st-err-line: rgba(220, 38, 38, .28);
  --st-warn: #B45309; --st-warn-bg: rgba(245, 158, 11, .14); --st-warn-line: rgba(180, 83, 9, .3);
}
:root[data-theme="dark"] {
  --st-ok: #34D399;   --st-ok-bg: rgba(52, 211, 153, .14);  --st-ok-line: rgba(52, 211, 153, .32);  --st-ok-solid: #34D399; --st-on-ok: #05261B;
  --st-err: var(--warm);  --st-err-bg: rgba(255, 138, 128, .12); --st-err-line: rgba(255, 138, 128, .32);
  --st-warn: var(--amber); --st-warn-bg: rgba(255, 193, 94, .14); --st-warn-line: rgba(255, 193, 94, .32);
}

/* ── Komponen bersama (sama dengan video.css) ─────────────── */
.nt-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; background: var(--tint); color: var(--brand-ink);
  font-weight: 700; font-family: 'Sora', 'Inter', sans-serif; user-select: none;
}
.nt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-avatar--sm { width: 28px; height: 28px; font-size: 12px; }
.nt-avatar--md { width: 40px; height: 40px; font-size: 16px; }
.nt-avatar--lg { width: 48px; height: 48px; font-size: 19px; }
.nt-avatar--xl { width: 68px; height: 68px; font-size: 26px; }
.nt-avatar--letter { background: linear-gradient(135deg, var(--brand), var(--sky)); color: var(--on-brand); }
.nt-verified { width: 18px; height: 18px; color: var(--sky); flex-shrink: 0; }

.nt-link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13px; font-weight: 600;
  color: var(--muted); background: none; border: 0; cursor: pointer;
}
.nt-link-btn:hover { color: var(--brand-ink); }
.nt-btn--sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.nt-btn--block { width: 100%; justify-content: center; }

.nt-sharelink { display: flex; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.nt-sharelink input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font: inherit; font-size: 13.5px; color: var(--text); }
.nt-sharelink .nt-btn { height: 36px; }

.nt-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); transition: opacity .2s, transform .2s;
}
.nt-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ── Halaman auth ─────────────────────────────────────────── */
.nt-auth { min-height: 100vh; }
.nt-auth__wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 16px; }
.nt-auth__logo { font-size: 30px; }
.nt-auth__card {
  width: min(420px, 100%); padding: 32px 30px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.nt-auth__card h1 { font-family: 'Sora', 'Inter', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.nt-auth__lead { margin: 6px 0 22px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.nt-auth__back a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.nt-auth__back a:hover { color: var(--brand-ink); }
.nt-form { display: flex; flex-direction: column; gap: 16px; }
.nt-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; }
.nt-field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 400;
  color: var(--text); background: var(--surface-2); border: 1.5px solid var(--line); outline: none; transition: border-color .2s, box-shadow .2s;
}
.nt-field input:focus { border-color: var(--brand-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.nt-field__pw { position: relative; }
.nt-field__pw input { padding-right: 46px; }
.nt-field__pw button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); }
.nt-field__pw button:hover { color: var(--text); background: var(--surface-3); }
.nt-check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.nt-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.nt-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.nt-alert .nt-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.nt-alert--error { background: var(--st-err-bg);  color: var(--st-err);  border: 1px solid var(--st-err-line); }
.nt-alert--warn  { background: var(--st-warn-bg); color: var(--st-warn); border: 1px solid var(--st-warn-line); }
.nt-alert--ok    { background: var(--st-ok-bg);   color: var(--st-ok);   border: 1px solid var(--st-ok-line); }
.nt-alert--info  { background: var(--tint);       color: var(--brand-ink); border: 1px solid var(--line); }

@media (max-width: 480px) {
  .nt-auth__card { padding: 26px 20px; }
}

/* ── Landing program member (members/members.php) ─────────── */
.mb-wrap{max-width:1100px}
.mb-section{margin:0 0 36px}
.mb-section .nt-section-title{margin-bottom:16px}
.mb-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.mb-step{position:relative;padding:22px 20px;border-radius:20px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm)}
.mb-step__icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;background:var(--tint);color:var(--brand-ink);margin-bottom:14px}
.mb-step__icon .nt-icon{width:22px;height:22px}
.mb-step__no{position:absolute;top:16px;right:18px;font-family:'Sora',sans-serif;font-size:30px;font-weight:700;color:var(--surface-3)}
.mb-step h3{font-family:'Sora','Inter',sans-serif;font-size:16px;margin:0 0 6px;color:var(--text)}
.mb-step p{margin:0;font-size:14px;line-height:1.55;color:var(--muted)}
.mb-benefits{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.mb-benefit{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:18px;background:var(--surface-2);border:1px solid var(--line)}
.mb-benefit>.nt-icon{width:24px;height:24px;flex-shrink:0;color:var(--brand-ink);margin-top:2px}
.mb-benefit strong{display:block;color:var(--text);font-size:15px;margin-bottom:2px}
.mb-benefit span{font-size:14px;color:var(--muted);line-height:1.5}
.mb-faq__item{border:1px solid var(--line);border-radius:16px;background:var(--surface);margin-bottom:10px;overflow:hidden}
.mb-faq__item summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;font-weight:600;color:var(--text)}
.mb-faq__item summary::-webkit-details-marker{display:none}
.mb-faq__item summary .nt-icon{width:18px;height:18px;flex-shrink:0;color:var(--muted);transition:transform .2s}
.mb-faq__item[open] summary .nt-icon{transform:rotate(180deg)}
.mb-faq__item[open] summary{color:var(--brand-ink)}
.mb-faq__body{padding:0 18px 16px;color:var(--muted);font-size:14.5px;line-height:1.65}
.mb-faq__body p{margin:0 0 10px}
.mb-faq__body ul{margin:0 0 10px;padding-left:20px}
.mb-faq__body a{color:var(--brand-ink);font-weight:500}
.mb-faq__body a:hover{text-decoration:underline}
.mb-cta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:26px 28px;border-radius:24px;background:var(--tint);border:1px solid var(--line)}
.mb-cta h2{font-family:'Sora','Inter',sans-serif;font-size:20px;margin:0 0 4px;color:var(--text)}
.mb-cta p{margin:0;color:var(--muted)}
@media(max-width:900px){.mb-steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.mb-steps,.mb-benefits{grid-template-columns:1fr}.mb-cta{padding:20px}.mb-cta .nt-btn{width:100%}}