/* FinPlan · glass theme (ใช้ร่วมกับ Tailwind) */
[hidden] { display: none !important; }
body { overflow-x: hidden; }
a { text-decoration: none; }
.blob { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .6; z-index: 0; pointer-events: none; }
.b1 { width: 520px; height: 520px; background: #93c5fd; top: -160px; left: -120px; }
.b2 { width: 460px; height: 460px; background: #c4b5fd; bottom: -160px; right: -80px; }
.b3 { width: 320px; height: 320px; background: #67e8f9; top: 35%; left: 45%; }

.glass {
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 10px 40px rgba(49,46,129,.10);
}
.logo-i { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg,#6366f1,#06b6d4); display: inline-grid; place-items: center; color: #fff; font-weight: 700; }
.av { border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg,#f472b6,#8b5cf6); flex-shrink: 0; }

.nav-t { font-size: 11px; color: #8b8fb8; padding: 12px 10px 5px; }
.nav-a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: #3b3f6b; }
.nav-a:hover { background: rgba(255,255,255,.6); }
.nav-a.on { background: linear-gradient(135deg,#6366f1,#3b82f6); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.3); }

.inp { width: 100%; padding: 11px 13px; border-radius: 13px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.65); outline: none; transition: .2s; }
.inp:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(129,140,248,.22); background: #fff; }
.inp.err { border-color: #f87171; }
.lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 12px; font-weight: 600; color: #fff; background: linear-gradient(135deg,#6366f1,#3b82f6); box-shadow: 0 8px 20px rgba(79,70,229,.28); white-space: nowrap; cursor: pointer; transition: .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.7); color: #1e1b4b; box-shadow: none; border: 1px solid rgba(255,255,255,.9); }
.btn-danger { background: #fee2e2; color: #dc2626; box-shadow: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-o { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 14px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); font-weight: 600; color: #1e1b4b; }
.btn-o:hover { background: #fff; }

.tag { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(99,102,241,.1); color: #4338ca; white-space: nowrap; }
.bar { flex: 1; height: 7px; border-radius: 99px; background: rgba(99,102,241,.12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,#6366f1,#06b6d4); }

.kcol { border-radius: 18px; padding: 12px; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.6); min-height: 120px; transition: .15s; }
.kcol.over { background: rgba(255,255,255,.7); outline: 2px dashed #818cf8; }
.kcard { display: block; border-radius: 16px; padding: 14px; margin-bottom: 10px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(49,46,129,.06); color: inherit; cursor: grab; transition: .15s; }
.kcard:hover { background: #fff; }
.kcard.dragging { opacity: .5; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: #6366a0; font-weight: 500; padding: 0 10px 10px; border-bottom: 1px solid rgba(99,102,241,.12); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid rgba(99,102,241,.12); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }

.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: rgba(99,102,241,.15); }
.tl-it { position: relative; padding-bottom: 16px; }
.tl-it::before { content: ""; position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #6366f1; }

.otp-inp { letter-spacing: .6em; text-align: center; font-size: 26px; font-weight: 700; padding-left: .6em; }
.scrim { display: none; }

@media (max-width: 767px) {
  #sidebar { position: fixed; left: 0; top: 0; height: 100vh; width: 280px; z-index: 30; border-radius: 0 24px 24px 0; transform: translateX(-105%); transition: .25s; background: rgba(255,255,255,.93); overflow-y: auto; }
  body.drawer #sidebar { transform: none; }
  body.drawer .scrim { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.3); z-index: 20; }
}
@media (min-width: 768px) {
  #sidebar { position: sticky; top: 16px; height: calc(100vh - 32px); overflow-y: auto; }
}

/* ---------- Phase 2 ---------- */
.money { position: relative; }
.money .inp { padding-right: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.money::after { content: "฿"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #6366a0; pointer-events: none; }
.wiz-dot.on { background: #fff; color: #1e1b4b; font-weight: 600; }
.wiz-dot.on b { background: #6366f1; color: #fff; }
.wiz-dot.done b { background: #059669; color: #fff; }
.tab-btn { padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.5); color: #4b4f7a; }
.tab-btn.on { background: #fff; color: #1e1b4b; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.row-card { border-radius: 16px; background: rgba(255,255,255,.5); padding: 10px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(99,102,241,.12); }
.kv:last-child { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; }
.pill-ok { color: #059669; } .pill-warn { color: #b45309; } .pill-bad { color: #dc2626; }
.pyr a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 16px; color: #fff; font-weight: 600; box-shadow: 0 8px 20px rgba(49,46,129,.15); transition: .2s; }
.pyr a:hover { transform: scale(1.02); }
.pyr a.off { filter: grayscale(.7); opacity: .6; }
.pyr small { font-weight: 500; opacity: .92; font-size: 12px; }
input[readonly].inp { opacity: .7; }
