/* ==========================================================================
   Member area (masuk, daftar, dashboard, profil, admin)
   Built on the homepage design system in aruca.css: same tokens, pill buttons,
   20px cards, Space Grotesk + Silkscreen, navy "space" hero with a light body.
   ========================================================================== */

body.member { background: var(--paper-tint); color: var(--ink); }
.member main { display: block; }

/* ---------- Space hero (same canvas as the homepage hero) ---------- */
.m-space {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--space); color: var(--space-text);
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(3rem, 6vw, 5rem);
}
.m-space::before, .m-space::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none;
}
.m-space::before { width: 520px; height: 520px; background: #12456b; top: -160px; right: -120px; }
.m-space::after { width: 380px; height: 380px; background: rgba(255, 218, 104, .18); bottom: -200px; left: -80px; }
.m-stars {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 14%, #6cc4ef 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 78%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 82% 30%, #ffda68 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 66%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 86%, #6cc4ef 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 42%, #fff 50%, transparent 51%);
}
.m-space h1, .m-space h2 { color: #fff; }
.m-eyebrow { font-family: var(--font-pixel); font-size: .72rem; letter-spacing: .02em; color: var(--yellow); margin-bottom: 1rem; }
.m-eyebrow.on-light { color: var(--blue-text); }
.m-lead { color: var(--space-muted); font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 52ch; }

/* ---------- Character art: always on a light, domain-tinted card ----------
   The characters were cut from white sheets, so their edges carry a light fringe.
   A light frame behind them keeps the edge clean on dark and tinted backgrounds. */
.art-frame {
  --c: var(--blue-glow);
  position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; margin: 0;
  border-radius: var(--r-media); aspect-ratio: 4 / 5;
  background:
    radial-gradient(70% 45% at 50% 100%, color-mix(in srgb, var(--c) 42%, white), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, white), color-mix(in srgb, var(--c) 22%, white));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.art-frame img { width: 88%; height: 88%; object-fit: contain; object-position: bottom; }
.art-frame figcaption {
  position: absolute; top: .9rem; left: .9rem; display: grid; gap: .15rem;
  padding: .55rem .85rem; border-radius: 14px; background: rgba(7, 14, 26, .8); color: #fff;
}
.art-frame figcaption .pixel { font-size: .56rem; color: var(--c); }
.art-frame figcaption strong { font-size: 1.05rem; line-height: 1.2; }

/* ---------- Auth (masuk / daftar) ---------- */
.auth-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.auth-copy h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.04em; margin-bottom: 1rem; }
.auth-copy h1 em { font-style: normal; color: var(--yellow); }
.auth-points { display: grid; gap: .8rem; margin: 1.8rem 0 0; }
.auth-points li { display: flex; gap: .75rem; align-items: flex-start; color: var(--space-text); }
.auth-points svg { flex: none; width: 20px; height: 20px; color: var(--yellow); margin-top: 2px; }
.auth-art { display: flex; gap: 1rem; margin-top: 2.5rem; }
.auth-art .art-frame { width: 112px; border-radius: 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.auth-art .art-frame:nth-child(2) { transform: translateY(-14px); }

.auth-card {
  background: var(--paper); color: var(--ink); border-radius: var(--r-card);
  padding: clamp(1.5rem, 3.5vw, 2.25rem); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 1.5rem;
  background: var(--paper-tint); border: 1px solid var(--line); border-radius: 999px;
}
.auth-tabs a {
  text-align: center; padding: .6rem 1rem; border-radius: 999px; font-weight: 600; color: var(--muted);
  transition: background .2s, color .2s;
}
.auth-tabs a[aria-current="page"] { background: var(--space); color: #fff; }
.auth-tabs a:not([aria-current]):hover { color: var(--ink); }
.m-space .auth-card h2 { font-size: 1.45rem; margin-bottom: .35rem; color: var(--ink); }
.auth-card .hint { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; }

.m-form { display: grid; gap: 1rem; }
.m-field { display: grid; gap: .4rem; font-weight: 600; font-size: .9rem; }
.m-field small { font-weight: 400; color: var(--muted); }
.m-field input, .m-field select {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%; min-width: 0;
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.m-field input:focus, .m-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.m-field input[readonly] { background: var(--paper-tint); color: var(--muted); }
.otp-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 700 !important; }

.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
  font: inherit; font-weight: 600; cursor: pointer; padding: .85rem 1.4rem; border-radius: 999px;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.m-btn:active { transform: translateY(1px) scale(.99); }
.m-btn svg { width: 18px; height: 18px; }
.m-btn-yellow { background: var(--yellow); color: var(--yellow-deep); }
.m-btn-yellow:hover { box-shadow: 0 10px 24px rgba(255, 218, 104, .45); transform: translateY(-1px); }
.m-btn-dark { background: var(--space); color: #fff; }
.m-btn-dark:hover { background: #12263d; }
.m-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.m-btn-ghost:hover { border-color: var(--ink); }
/* Google button follows Google's sign-in branding: white, grey outline, colored G */
.m-btn-google { background: #fff; color: #1f1f1f; border-color: #747775; }
.m-btn-google:hover { background: #f8fafd; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.m-btn-google svg { width: 20px; height: 20px; }
.m-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.m-btn:focus-visible, .m-link:focus-visible, .auth-tabs a:focus-visible, .view-switch a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.m-divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .82rem; margin: .3rem 0; }
.m-divider::before, .m-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.m-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--muted); font-weight: 400; }
.m-check input { margin-top: 4px; accent-color: var(--blue); }
.m-note { font-size: .82rem; color: var(--muted); }
.m-alert {
  display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px;
  background: #fff4d6; color: #5c4705; font-size: .9rem; margin-bottom: 1rem;
}
.m-alert.ok { background: #e3f6ea; color: #1c5a32; }
.m-alert svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.m-more { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.m-more summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--blue-text); list-style: none; }
.m-more summary::-webkit-details-marker { display: none; }
.m-more summary::after { content: " +"; }
.m-more[open] summary::after { content: " −"; }
.m-more .m-form { margin-top: 1rem; }
.m-link { color: var(--blue-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-back { margin-top: 1.25rem; text-align: center; font-size: .9rem; }

/* ---------- Dashboard ---------- */
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.dash-top .m-eyebrow { margin: 0; }
.view-switch {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.view-switch a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--space-text);
}
.view-switch a svg { width: 15px; height: 15px; }
.view-switch a[aria-current="page"] { background: var(--yellow); color: var(--yellow-deep); }
.view-switch a:not([aria-current]):hover { background: rgba(255, 255, 255, .1); color: #fff; }

.dash-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dash-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.04em; margin-bottom: .6rem; }
.dash-profile { font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: #fff; font-weight: 700; margin-top: 1.4rem; }
.dash-profile span { color: var(--space-muted); font-weight: 400; font-size: 1rem; display: block; margin-top: .2rem; }
.top5 { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; }
.top5 li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem .4rem .45rem; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: #fff; font-weight: 600; font-size: .92rem;
}
.top5 li b {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c); color: var(--space); font-size: .78rem;
}
.top5 li small { font-weight: 400; color: var(--space-muted); font-size: .76rem; }
.dash-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.dash-meta { margin-top: 1.25rem; font-size: .82rem; color: var(--space-muted); }
.dash-hero .art-frame { width: 100%; }

.dash-body { padding: clamp(2.5rem, 5vw, 4rem) 0 5rem; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.m-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.25rem, 3vw, 1.75rem); }
.m-card + .m-card { margin-top: 1.5rem; }
.m-card h2 { font-size: 1.25rem; margin-bottom: .3rem; }
.m-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.m-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: 3rem 0 1.25rem; }
.m-section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.m-section-head p { color: var(--muted); font-size: .9rem; }

.domain-bars { display: grid; gap: 1rem; }
.domain-bars li { display: grid; grid-template-columns: 82px 1fr 44px; gap: .9rem; align-items: center; }
.domain-bars .name { font-family: var(--font-pixel); font-size: .7rem; color: var(--ct); }
.domain-bars .track { height: 12px; border-radius: 999px; background: var(--paper-tint); border: 1px solid var(--line); overflow: hidden; }
.domain-bars .fill { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.domain-bars .val { font-weight: 700; font-size: .9rem; text-align: right; }

.prog-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.prog-card {
  display: flex; flex-direction: column; gap: .6rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 1.5rem; transition: transform .35s var(--ease), border-color .2s, box-shadow .35s var(--ease);
}
.prog-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 18px 40px rgba(7, 14, 26, .08); }
.prog-card .bento-icon { background: var(--blue-soft); color: var(--blue-text); }
.prog-card h3 { font-size: 1.1rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.prog-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.prog-card .go { color: var(--blue-text); font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; }
.prog-card .go svg { width: 16px; height: 16px; }
.badge { font-family: var(--font-pixel); font-size: .55rem; padding: .25rem .5rem; border-radius: 999px; background: var(--yellow); color: var(--yellow-deep); }

.checklist { display: grid; gap: .25rem; }
.checklist label { display: flex; gap: .75rem; align-items: center; padding: .6rem .5rem; border-radius: 12px; cursor: pointer; }
.checklist label:hover { background: var(--paper-tint); }
.checklist input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.progress { margin-top: 1rem; display: flex; gap: .8rem; align-items: center; font-size: .85rem; color: var(--muted); }
.progress .track { flex: 1; height: 8px; background: var(--paper-tint); border-radius: 999px; overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .3s var(--ease); }
.quote { background: var(--space); color: var(--space-text); border: 0; }
.quote p { font-size: 1.08rem; color: #fff; line-height: 1.5; }
.quote cite { display: block; margin-top: .75rem; font-style: normal; font-size: .85rem; color: var(--space-muted); }
.profile-nudge { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--blue-soft); border-color: #c9e6f5; margin-bottom: 1.5rem; }
.profile-nudge .m-btn { width: auto; }

/* ---------- Admin view ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-card); padding: 1.25rem; }
.stat .pixel { font-size: .58rem; color: var(--space-muted); }
.stat strong { display: block; font-size: 2rem; color: #fff; margin-top: .4rem; letter-spacing: -.03em; }
.stat.hl strong { color: var(--yellow); }
.m-table-wrap { overflow-x: auto; }
.m-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.m-table th { text-align: left; font-family: var(--font-pixel); font-size: .58rem; font-weight: 400; color: var(--muted); padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.m-table td { padding: .8rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.m-table tr:last-child td { border-bottom: 0; }
.m-table small { color: var(--muted); }
.pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--paper-tint); border: 1px solid var(--line); white-space: nowrap; }
.pill.paid { background: #e3f6ea; border-color: #b9e3c6; color: #1c5a32; }
.pill.pending { background: #fff4d6; border-color: #f2dd9b; color: #5c4705; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: .35rem; }
.empty { color: var(--muted); font-size: .92rem; padding: .5rem 0; }

/* ---------- Profile form ---------- */
.profile-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.m-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.m-form-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; margin-top: .5rem; }
.m-form-actions .m-btn { width: auto; }
.strength-readonly { display: grid; gap: .5rem; margin: 1rem 0 1.25rem; }
.strength-readonly li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.strength-readonly li b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: var(--space); font-size: .75rem; }
.strength-readonly li small { color: var(--ct); font-family: var(--font-pixel); font-size: .55rem; margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth-grid, .dash-hero, .dash-grid, .profile-wrap { grid-template-columns: 1fr; }
  .dash-hero .art-frame { max-width: 160px; justify-self: start; order: -1; }
  .dash-hero .art-frame figcaption { display: none; }
  .auth-art, .auth-points { display: none; }
  .auth-grid { gap: 1.5rem; }
  .auth-copy h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
}
@media (max-width: 560px) {
  .m-grid-2 { grid-template-columns: 1fr; }
  .dash-actions .btn { width: 100%; justify-content: center; }
  .view-switch { width: 100%; }
  .view-switch a { flex: 1; justify-content: center; }
  .domain-bars li { grid-template-columns: 70px 1fr 38px; }
}
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.pw-toggle:hover { color: var(--ink); background: var(--paper-tint); }
.pw-toggle[aria-pressed="true"] { color: var(--blue-text); }
.pw-toggle svg { width: 18px; height: 18px; }
.check-tag { display: inline-flex; align-items: center; gap: .3rem; margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--c) 18%, white); border: 1px solid color-mix(in srgb, var(--c) 45%, white); white-space: nowrap; }
.checklist input:checked + span .check-tag { text-decoration: none; opacity: .6; }
/* ---------- Dashboard: all 30 strengths ---------- */
.all30 { margin-top: 1.5rem; }
.all30-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.all30-head .m-btn { width: auto; }
.all30-note { display: flex; gap: .7rem; align-items: flex-start; flex-wrap: wrap; padding: .85rem 1rem; border-radius: 14px; background: #fff8e1; border: 1px solid #f2dd9b; font-size: .88rem; margin-bottom: 1rem; }
.all30-note svg { flex: none; width: 18px; height: 18px; color: #8a6a00; margin-top: 2px; }
.all30-note span { flex: 1 1 260px; }
.all30-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .9rem; }
.all30-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: 12px; background: color-mix(in srgb, var(--c) 10%, white); border: 1px solid color-mix(in srgb, var(--c) 30%, white); }
.all30-list li b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--space); font-size: .75rem; }
.all30-name { display: grid; font-weight: 600; font-size: .92rem; line-height: 1.2; }
.all30-name small { font-weight: 400; font-size: .72rem; color: var(--ct); }
.all30-list li svg { width: 16px; height: 16px; color: var(--muted); }
.all30-list li.is-locked { background: var(--paper-tint); border-color: var(--line); }
.all30-list li.is-locked b { background: #d6dee6; color: var(--muted); }
.all30-list li.is-locked .all30-name { filter: blur(3px); user-select: none; color: var(--muted); }
.all30-list li.is-locked .all30-name small { color: var(--muted); }
.all30-unlock { grid-column: 1 / -1; display: block !important; background: var(--space) !important; border: 0 !important; padding: 0 !important; }
.all30-unlock a { display: flex; gap: .6rem; align-items: center; justify-content: center; padding: .7rem 1rem; color: var(--yellow); font-weight: 600; font-size: .9rem; }
.all30-unlock a svg { width: 16px; height: 16px; color: var(--yellow) !important; }
@media (max-width: 560px) { .all30-list { grid-template-columns: 1fr; } }
body.member .site-footer{margin-top:0}
