/* Tokoku — minimal modern CSS (tanpa Tailwind, zero deps) */
:root {
  --bg: #0b0f1a; --surface: #141927; --surface2: #1c2338;
  --border: #262e47; --text: #e6e9f2; --muted: #8a93ad;
  --primary: #4f7cff; --primary-hover: #3d6ae8;
  --green: #22c55e; --red: #ef4444; --yellow: #eab308;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Landing */
.landing { max-width: 1080px; margin: 0 auto; padding: 24px; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.nav .brand { font-weight: 700; font-size: 20px; color: var(--text); }
.nav .links a { margin-left: 20px; color: var(--muted); }
.nav .links a:hover { color: var(--text); }
.hero { text-align: center; padding: 80px 0; }
.hero h1 { font-size: 42px; margin-bottom: 16px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 32px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 8px;
  background: var(--primary); color: white; font-weight: 600; border: none; cursor: pointer;
}
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface2); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 40px 0; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 40px 0; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-align: center; }
.price-card.featured { border-color: var(--primary); }
.price-card .amount { font-size: 32px; font-weight: 700; margin: 12px 0; }
.price-card ul { list-style: none; color: var(--muted); margin: 16px 0; }
.price-card li { padding: 6px 0; }

/* Auth & Forms */
.auth-box { max-width: 400px; margin: 80px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.auth-box h2 { margin-bottom: 8px; }
.auth-box .sub { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.error { background: rgba(239,68,68,.12); color: var(--red); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
input, textarea, select {
  width: 100%; padding: 10px 12px; margin-bottom: 16px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 14px;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); }
.btn-block { width: 100%; }
.link-muted { display: block; text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }

/* Dashboard */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: var(--surface); border-right: 1px solid var(--border); padding: 20px 0; }
.sidebar .brand { padding: 0 20px 20px; font-weight: 700; font-size: 18px; }
.sidebar a {
  display: block; padding: 10px 20px; color: var(--muted); font-size: 14px;
  border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a.active { background: var(--surface2); color: var(--text); border-left-color: var(--primary); text-decoration: none; }
.main { flex: 1; padding: 32px; max-width: 1200px; }
.main h1 { font-size: 24px; margin-bottom: 4px; }
.main .sub { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.card .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.card .value { font-size: 26px; font-weight: 700; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
th { background: var(--surface2); color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.green { background: rgba(34,197,94,.15); color: var(--green); }
.badge.red { background: rgba(239,68,68,.15); color: var(--red); }
.badge.yellow { background: rgba(234,179,8,.15); color: var(--yellow); }
.badge.gray { background: rgba(138,147,173,.15); color: var(--muted); }
.inline-form { display: inline; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; border: none; cursor: pointer; }
.btn-danger { background: rgba(239,68,68,.15); color: var(--red); }
.btn-primary { background: var(--primary); color: white; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
details.box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
details.box summary { cursor: pointer; font-weight: 600; }
details.box form { margin-top: 16px; }
