/* SideKickr Studio - brand theme */
:root {
  --bg: #0D0F12;            /* matte black */
  --bg-2: #111419;
  --card: #16191F;          /* gunmetal card */
  --card-2: #1c2028;
  --line: rgba(199, 204, 212, .16);   /* thin silver border */
  --line-strong: rgba(199, 204, 212, .32);
  --silver: #c7ccd4;
  --ink: #e9ebee;
  --muted: #8d949e;
  --gold: #F59E0B;          /* Dawn Gold */
  --gold-2: #FF8C00;
  --gold-soft: rgba(245, 158, 11, .14);
  --gold-glow: 0 0 18px rgba(255, 140, 0, .35);
  --ok: #34d399;
  --err: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --tap: 48px;              /* minimum touch target */
  --font: "Leelawadee UI", "Noto Sans Thai", "Sarabun", "Thonburi", Tahoma, system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, rgba(255, 140, 0, .06), transparent 60%), var(--bg);
  color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { margin: 0; font-weight: 600; }
a { color: var(--gold); }
::selection { background: var(--gold-soft); }

/* cards */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .35);
}
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.card-head h2 { font-size: 17px; letter-spacing: .3px; color: var(--silver); text-transform: none; }
.card-head .step { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700;
                   color: #1a1205; background: linear-gradient(135deg, var(--gold), var(--gold-2)); flex: none; }
.card-body { padding: 14px 16px 16px; }
.hl { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; margin: 0; border: 0; }

/* form controls */
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=url], input[type=password], input[type=number], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); font: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border-radius: var(--radius-sm); font-size: 15.5px; border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .08s, box-shadow .15s, border-color .15s, background .15s; user-select: none; text-decoration: none;
}
.btn:hover { border-color: var(--silver); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { border: 0; color: #1a1205; background: linear-gradient(135deg, var(--gold), var(--gold-2)); box-shadow: var(--gold-glow); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* segmented switch */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.seg button { min-height: 46px; font-size: 15px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--card-2); color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }

/* badges, progress */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-size: 13.5px;
         border: 1px solid var(--gold); color: var(--gold); background: var(--gold-soft); white-space: nowrap; }
.badge.muted { border-color: var(--line-strong); color: var(--muted); background: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: var(--gold-glow); }
.progress { height: 8px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .4s ease; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.empty { padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); font-size: 15px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
         background: var(--card-2); border: 1px solid var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 12px;
         box-shadow: var(--gold-glow); transition: .25s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
