/* ===== RESET & TOKEN ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #6c63ff;
  --primary-dark: #4f46e5;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --bg-dark: #0a0a1a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0ff;
  --text-secondary: rgba(240, 240, 255, 0.65);
  --text-muted: rgba(240, 240, 255, 0.4);
  --glow: 0 0 40px rgba(108, 99, 255, 0.25);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Inter", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button { font-family: inherit; }

/* ===== BACKGROUND ===== */
.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-canvas::before { content: ""; position: absolute; width: 700px; height: 700px; background: radial-gradient(circle, rgba(108, 99, 255, 0.18) 0%, transparent 70%); top: -200px; left: -200px; animation: floatOrb1 15s ease-in-out infinite; }
.bg-canvas::after { content: ""; position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, transparent 70%); bottom: -150px; right: -150px; animation: floatOrb2 18s ease-in-out infinite; }
.bg-orb3 { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: floatOrb3 22s ease-in-out infinite; }
@keyframes floatOrb1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, 60px) scale(1.15); } }
@keyframes floatOrb2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-70px, -50px) scale(1.1); } }
@keyframes floatOrb3 { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 33% { transform: translate(-40%, -60%) scale(1.2); } 66% { transform: translate(-60%, -40%) scale(0.9); } }
.bg-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 40px 40px; }

.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.particle { position: absolute; border-radius: 50%; animation: floatParticle linear infinite; opacity: 0; }
@keyframes floatParticle { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 0.5; } 100% { transform: translateY(-10vh) scale(1); opacity: 0; } }

/* ===== GATE (TOKEN + IDENTITAS) ===== */
.gate { position: relative; z-index: 5; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.gate-card {
  width: 100%; max-width: 520px;
  background: rgba(22, 22, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: gateIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes gateIn { from { opacity: 0; transform: translateY(28px) scale(0.97); } to { opacity: 1; transform: none; } }
.gate-badge { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1.5rem; }
.gate-logo { width: 74px; height: 74px; margin: 0 auto 1.1rem; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: var(--glow); animation: logoPulse 3s ease-in-out infinite; }
@keyframes logoPulse { 0%, 100% { box-shadow: 0 0 30px rgba(108, 99, 255, 0.3); transform: rotate(0); } 50% { box-shadow: 0 0 50px rgba(6, 182, 212, 0.45); transform: rotate(-4deg); } }
.gate-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); margin-bottom: 0.5rem; }
.gate-title { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; line-height: 1.2; background: linear-gradient(135deg, #fff 30%, var(--primary) 75%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }
.gate-sub { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.8rem; }
.gate-form { text-align: left; }
.gate-hint { font-size: 0.76rem; color: var(--text-muted); text-align: center; margin-top: 1rem; line-height: 1.6; }
.gate-back { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.5rem; font-size: 0.83rem; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.gate-back:hover { color: var(--primary); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.45rem; text-transform: uppercase; letter-spacing: 0.07em; }
.form-group input {
  width: 100%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.8rem 1rem; color: var(--text-primary); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder { color: rgba(240, 240, 255, 0.28); }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.18); }
.form-group input.shake, .form-group.shake input { animation: shake 0.4s; border-color: var(--danger); }
.form-group select {
  width: 100%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.8rem 1rem; color: var(--text-primary); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit; cursor: pointer;
}
.form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.18); }
.form-group select.shake { animation: shake 0.4s; border-color: var(--danger); }
.form-group select option { background: var(--bg-dark); color: var(--text-primary); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0.75rem; }
.field-err { display: none; color: var(--danger); font-size: 0.74rem; margin-top: 0.35rem; }
.field-err.show { display: block; animation: shake 0.4s; }
.token-wrap { position: relative; }
.token-wrap input { padding-right: 3rem; letter-spacing: 0.14em; font-weight: 600; }
.token-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 9px; border: none; background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.token-eye:hover { background: var(--primary); color: #fff; }

/* ===== BUTTONS ===== */
.btn-gradient { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: var(--transition); box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3); }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(108, 99, 255, 0.45); }
.btn-gradient:active { transform: translateY(0); }
.btn-gradient:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gradient.full { width: 100%; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); }
.btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); border-color: var(--primary); }

/* ===== TOPBAR ===== */
.app { position: relative; z-index: 5; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem clamp(1rem, 4vw, 2rem); background: rgba(10, 10, 26, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text-primary); }
.brand-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 6px 18px rgba(108, 99, 255, 0.4); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: "Space Grotesk", sans-serif; font-size: 0.95rem; }
.brand-text small { font-size: 0.72rem; color: var(--text-muted); }
.identity { display: flex; align-items: center; gap: 0.6rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; padding: 0.35rem 0.4rem 0.35rem 0.35rem; }
.identity-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--primary)); text-transform: uppercase; }
.identity-info { display: flex; flex-direction: column; line-height: 1.2; padding-right: 0.3rem; }
.identity-info strong { font-size: 0.82rem; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity-info small { font-size: 0.7rem; color: var(--secondary); font-weight: 600; }
.identity-out { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.identity-out:hover { background: rgba(239, 68, 68, 0.18); color: var(--danger); }

/* ===== HERO STRIP ===== */
.hero-strip { padding: clamp(2rem, 6vw, 3.2rem) clamp(1rem, 4vw, 2rem) 1rem; text-align: center; }
.strip-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); margin-bottom: 0.6rem; }
.strip-title { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; background: linear-gradient(135deg, #fff 30%, var(--primary) 75%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.6rem; }
.strip-desc { font-size: 0.92rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto 1.4rem; line-height: 1.6; }
.strip-progress { display: flex; align-items: center; gap: 0.8rem; max-width: 420px; margin: 0 auto; }
.strip-progress-bar { flex: 1; height: 8px; border-radius: 100px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.strip-progress-bar span { display: block; height: 100%; width: 0%; border-radius: 100px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.strip-progress-label { font-size: 0.76rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

/* ===== STEPPER ===== */
.stepper { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; padding: 1.2rem clamp(1rem, 4vw, 2rem) 0; }
.step { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.95rem; border-radius: 100px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.step .step-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 800; background: rgba(255, 255, 255, 0.1); }
.step:hover { border-color: var(--primary); color: var(--text-primary); }
.step.active { background: linear-gradient(135deg, rgba(108, 99, 255, 0.25), rgba(6, 182, 212, 0.18)); border-color: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(108, 99, 255, 0.25); }
.step.active .step-dot { background: var(--primary); color: #fff; }
.step.done { border-color: rgba(16, 185, 129, 0.5); color: var(--success); }
.step.done .step-dot { background: var(--success); color: #06281d; }
.step:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== CONTENT / PANEL ===== */
.content { max-width: 900px; margin: 1.5rem auto 0; padding: 0 clamp(1rem, 4vw, 2rem); }
.panel { animation: panelIn 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.panel-num { font-family: "Space Grotesk", sans-serif; width: 52px; height: 52px; flex-shrink: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 8px 22px rgba(108, 99, 255, 0.35); }
.panel-head h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; font-weight: 700; }
.panel-head p { font-size: 0.84rem; color: var(--text-muted); margin-top: 0.15rem; }
.chip { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; font-weight: 700; padding: 0.4rem 0.85rem; border-radius: 100px; background: rgba(108, 99, 255, 0.15); border: 1px solid rgba(108, 99, 255, 0.4); color: #b9b4ff; }
.chip-warn { background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.4); color: var(--accent); }
.chip-ok { background: rgba(16, 185, 129, 0.13); border-color: rgba(16, 185, 129, 0.4); color: var(--success); }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ===== CARD ===== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: clamp(1.2rem, 4vw, 1.7rem); margin-bottom: 1.2rem; transition: var(--transition); position: relative; overflow: hidden; }
.card:hover { border-color: rgba(108, 99, 255, 0.4); }
.card-accent { background: linear-gradient(135deg, rgba(245, 158, 11, 0.07), rgba(108, 99, 255, 0.07)); border-color: rgba(245, 158, 11, 0.3); }
.card-title { display: flex; align-items: center; gap: 0.6rem; font-family: "Space Grotesk", sans-serif; font-size: 1.02rem; font-weight: 700; margin-bottom: 1rem; }
.card-title i { color: var(--secondary); }
.card p { font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary); }
.card p strong, .card li strong { color: var(--text-primary); }

.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin: 1.1rem 0; }
.goal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; padding: 1rem 0.6rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); transition: var(--transition); }
.goal:hover { transform: translateY(-4px); border-color: var(--primary); background: rgba(108, 99, 255, 0.12); box-shadow: 0 10px 26px rgba(108, 99, 255, 0.2); }
.goal i { font-size: 1.3rem; color: var(--accent); }
.goal strong { font-size: 0.86rem; }
.goal span { font-size: 0.72rem; color: var(--text-muted); }

.prompt-list { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.75rem; }
.prompt-list li { font-size: 0.93rem; line-height: 1.7; color: var(--text-secondary); }
.prompt-list li::marker { color: var(--accent); font-weight: 800; }
.prompt-note { margin-top: 1.1rem; padding: 0.8rem 1rem; border-radius: 12px; background: rgba(6, 182, 212, 0.1); border: 1px dashed rgba(6, 182, 212, 0.4); font-size: 0.84rem !important; }
.prompt-note i { color: var(--secondary); margin-right: 0.35rem; }

/* ===== QUIZ ===== */
.quiz { display: flex; flex-direction: column; gap: 1rem; }
.q-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: clamp(1.1rem, 4vw, 1.5rem); animation: panelIn 0.4s ease both; }
.q-card.answered { border-color: rgba(16, 185, 129, 0.45); }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.q-num { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); }
.q-badge { display: none; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 100px; }
.q-card.answered .q-badge { display: inline-flex; }
.q-badge.ok { background: rgba(16, 185, 129, 0.18); color: var(--success); }
.q-badge.no { background: rgba(239, 68, 68, 0.18); color: var(--danger); }
.q-text { font-size: 0.97rem; font-weight: 600; line-height: 1.65; margin-bottom: 1rem; }
.q-opts { display: flex; flex-direction: column; gap: 0.55rem; }
.q-opt { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.8rem 0.95rem; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); cursor: pointer; font-size: 0.9rem; line-height: 1.55; color: var(--text-secondary); transition: var(--transition); }
.q-opt:hover { border-color: var(--primary); background: rgba(108, 99, 255, 0.1); color: var(--text-primary); transform: translateX(4px); }
.q-opt .kunci { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; background: rgba(255, 255, 255, 0.1); }
.q-opt.selected { border-color: var(--primary); background: rgba(108, 99, 255, 0.16); color: #fff; }
.q-opt.selected .kunci { background: var(--primary); color: #fff; }
.q-opt.correct { border-color: var(--success); background: rgba(16, 185, 129, 0.14); color: #d7fff1; }
.q-opt.correct .kunci { background: var(--success); color: #06281d; }
.q-opt.wrong { border-color: var(--danger); background: rgba(239, 68, 68, 0.14); color: #ffe0e0; }
.q-opt.wrong .kunci { background: var(--danger); color: #fff; }
.q-opt.locked { cursor: default; }
.q-opt.locked:hover { transform: none; }
.q-explain { display: none; margin-top: 0.9rem; padding: 0.8rem 1rem; border-radius: 12px; background: rgba(6, 182, 212, 0.09); border-left: 3px solid var(--secondary); font-size: 0.85rem; line-height: 1.65; color: var(--text-secondary); }
.q-card.answered .q-explain { display: block; animation: panelIn 0.35s ease; }
.q-explain strong { color: var(--secondary); }

/* ===== RESULT BOX ===== */
.result-box { margin-top: 1.4rem; background: linear-gradient(135deg, rgba(108, 99, 255, 0.14), rgba(6, 182, 212, 0.1)); border: 1px solid rgba(108, 99, 255, 0.45); border-radius: 18px; padding: 1.5rem; text-align: center; animation: panelIn 0.5s ease; box-shadow: var(--glow); }
.result-box h4 { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; margin-bottom: 0.5rem; }
.result-score { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; }
.result-detail { font-size: 0.87rem; color: var(--text-secondary); margin: 0.4rem 0 1.1rem; }
.result-box .btn-gradient { margin: 0.2rem; }

/* ===== PILLARS (ULASAN MATERI) ===== */
.pillar-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.2rem; }
.pillar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: var(--transition); }
.pillar:hover { border-color: rgba(108, 99, 255, 0.45); }
.pillar-head { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.3rem; cursor: pointer; user-select: none; }
.pillar-idx { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk", sans-serif; font-weight: 800; font-size: 1.05rem; color: #fff; }
.pillar:nth-child(1) .pillar-idx { background: linear-gradient(135deg, #6c63ff, #4f46e5); }
.pillar:nth-child(2) .pillar-idx { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.pillar:nth-child(3) .pillar-idx { background: linear-gradient(135deg, #f59e0b, #d97706); }
.pillar:nth-child(4) .pillar-idx { background: linear-gradient(135deg, #10b981, #059669); }
.pillar-title { flex: 1; }
.pillar-title strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.pillar-title span { font-size: 0.78rem; color: var(--text-muted); }
.pillar-arrow { color: var(--text-muted); transition: transform 0.35s; }
.pillar.open .pillar-arrow { transform: rotate(180deg); color: var(--primary); }
.pillar-body { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.pillar.open .pillar-body { max-height: 700px; }
.pillar-inner { padding: 0 1.3rem 1.3rem; border-top: 1px dashed var(--border); padding-top: 1.1rem; }
.pillar-inner p { font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 0.9rem; }
.pillar-example { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1.1rem; }
.pillar-example strong { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem; }
.pillar-example p { margin: 0; font-size: 0.88rem; }

/* ===== ALGORITHM TABS ===== */
.algo-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.algo-tab { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1rem; border-radius: 100px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text-muted); font-size: 0.83rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.algo-tab:hover { color: var(--text-primary); border-color: var(--primary); }
.algo-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(108, 99, 255, 0.35); }
.algo-body { animation: panelIn 0.4s ease; }
.algo-body p { margin-bottom: 0.9rem; }
.algo-code { background: #0d0d20; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.2rem; font-family: "Consolas", "Courier New", monospace; font-size: 0.85rem; line-height: 1.75; color: #a5f3fc; white-space: pre-wrap; overflow-x: auto; }
.algo-code .kw { color: #c4b5fd; font-weight: 700; }
.algo-code .cm { color: rgba(240, 240, 255, 0.4); font-style: italic; }

/* Flowchart SVG */
.flow-wrap { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; overflow-x: auto; }
.flow-wrap svg { display: block; margin: 0 auto; min-width: 300px; }
.flow-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.7rem; }

/* ===== GAME: TEBAK PILAR ===== */
.game-card { border-color: rgba(6, 182, 212, 0.35); background: linear-gradient(160deg, rgba(6, 182, 212, 0.07), rgba(108, 99, 255, 0.05)); }
.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.game-desc { font-size: 0.86rem !important; }
.game-score { flex-shrink: 0; background: rgba(10, 10, 26, 0.6); border: 1px solid var(--border); border-radius: 100px; padding: 0.45rem 1rem; font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }
.game-score strong { color: var(--accent); font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.game-body { display: flex; flex-direction: column; gap: 1.1rem; }
.g-item { background: rgba(10, 10, 26, 0.5); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; }
.g-stmt { font-size: 0.9rem; line-height: 1.6; color: var(--text-primary); margin-bottom: 0.8rem; }
.g-stmt .g-idx { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: var(--secondary); color: #04222a; font-size: 0.72rem; font-weight: 800; margin-right: 0.5rem; }
.g-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.g-opt { padding: 0.5rem 0.95rem; border-radius: 100px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.g-opt:hover { border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.g-opt.picked { background: rgba(108, 99, 255, 0.25); border-color: var(--primary); color: #fff; }
.g-item.right { border-color: rgba(16, 185, 129, 0.55); }
.g-item.right .g-opt.picked { background: rgba(16, 185, 129, 0.25); border-color: var(--success); }
.g-item.wrong { border-color: rgba(239, 68, 68, 0.55); }
.g-item.wrong .g-opt.picked { background: rgba(239, 68, 68, 0.25); border-color: var(--danger); }
.g-locked .g-opt { cursor: default; opacity: 0.75; }
.g-locked .g-opt.picked { opacity: 1; }
.g-item .g-feedback { display: none; font-size: 0.78rem; margin-top: 0.6rem; }
.g-item.right .g-feedback, .g-item.wrong .g-feedback { display: block; }
.g-item.right .g-feedback { color: var(--success); }
.g-item.wrong .g-feedback { color: #fca5a5; }
.game-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px dashed var(--border); }
.game-foot > span { font-size: 0.82rem; color: var(--text-muted); }
.game-actions { display: inline-flex; gap: 0.6rem; flex-wrap: wrap; }

/* ===== GAME: SUSUN URUTAN ===== */
.order-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; counter-reset: ord; }
.order-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; border-radius: 13px; background: rgba(10, 10, 26, 0.55); border: 1px solid var(--border); cursor: pointer; transition: var(--transition); animation: panelIn 0.35s ease both; }
.order-item:hover { border-color: var(--primary); transform: translateX(4px); }
.order-item .ord-num { width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }
.order-item .ord-text { font-size: 0.89rem; line-height: 1.5; }
.order-item.selected { border-color: var(--accent); background: rgba(245, 158, 11, 0.12); box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25); }
.order-item.ok { border-color: var(--success); background: rgba(16, 185, 129, 0.1); }
.order-item.ok .ord-num { background: var(--success); color: #06281d; }
.order-item.no { border-color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.order-item.no .ord-num { background: var(--danger); color: #fff; }

/* ===== GAME: SIMBOL FLOWCHART ===== */
.sym-row { background: rgba(10, 10, 26, 0.5); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; }
.sym-q { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; line-height: 1.55; }
.sym-q .sym-tag { display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-right: 0.4rem; }
.sym-opts { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.sym-opt { padding: 0.55rem 1rem; border-radius: 11px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.sym-opt:hover { border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.sym-opt.picked { background: rgba(108, 99, 255, 0.25); border-color: var(--primary); color: #fff; }
.sym-row.right { border-color: rgba(16, 185, 129, 0.55); }
.sym-row.right .sym-opt.picked { background: rgba(16, 185, 129, 0.25); border-color: var(--success); }
.sym-row.wrong { border-color: rgba(239, 68, 68, 0.55); }
.sym-row.wrong .sym-opt.picked { background: rgba(239, 68, 68, 0.25); border-color: var(--danger); }

/* ===== SUMMARY ===== */
.summary-list { display: flex; flex-direction: column; gap: 0.9rem; }
.summary-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.sum-idx { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk", sans-serif; font-weight: 800; font-size: 0.9rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.summary-item strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 0.97rem; margin-bottom: 0.2rem; }
.summary-item p { font-size: 0.87rem !important; line-height: 1.65 !important; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); }
.check-list i { color: var(--success); margin-top: 0.15rem; }

/* ===== HASIL ===== */
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin-bottom: 1.2rem; }
.score-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1rem; text-align: center; transition: var(--transition); }
.score-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 10px 28px rgba(108, 99, 255, 0.2); }
.score-card i { font-size: 1.15rem; color: var(--secondary); margin-bottom: 0.4rem; display: block; }
.score-card .sc-val { font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.score-card .sc-lab { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.2rem; }
.score-card .sc-w { font-size: 0.66rem; color: var(--text-muted); opacity: 0.7; }

.card-final { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; justify-content: center; background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(108, 99, 255, 0.1)); border-color: rgba(245, 158, 11, 0.4); }
.final-ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.final-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 11; }
.ring-fill { fill: none; stroke: url(#gradRing); stroke: var(--accent); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1); }
.final-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk", sans-serif; font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.final-info { text-align: center; }
.final-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.final-verdict { font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; font-weight: 700; margin: 0.3rem 0; }
.final-formula { font-size: 0.75rem; color: var(--text-muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.rekap { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 640px; }
.rekap th, .rekap td { padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid var(--border); }
.rekap th { background: rgba(255, 255, 255, 0.06); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.rekap tbody tr { transition: background 0.2s; }
.rekap tbody tr:hover { background: rgba(108, 99, 255, 0.08); }
.rekap tbody tr.me { background: rgba(245, 158, 11, 0.1); }
.rekap tbody tr.me td:first-child { font-weight: 800; color: var(--accent); }
.rekap td:last-child { font-weight: 800; color: var(--accent); font-family: "Space Grotesk", sans-serif; }
.rekap tr:last-child td { border-bottom: none; }
.rekap-note { font-size: 0.78rem !important; margin-top: 0.8rem; color: var(--text-muted) !important; }
.rekap-note i { color: var(--secondary); margin-right: 0.3rem; }

/* ===== FOOTER & TOAST ===== */
.footer { text-align: center; margin-top: 3rem; padding: 2rem 1rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.8rem; }
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--success); color: #fff; padding: 0.7rem 1.5rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; z-index: 3000; opacity: 0; transition: all 0.3s; white-space: nowrap; box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35); }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .identity-info { display: none; }
  .step .step-name { display: none; }
  .step { padding: 0.45rem 0.6rem; }
  .card-final { flex-direction: column; text-align: center; }
  .game-head { flex-direction: column; }
}
@media (max-width: 420px) {
  .gate-card { padding: 2rem 1.2rem; }
  .brand-text small { display: none; }
}
