/* Lock-In Session — website, sign-in and dashboard (dark warm glass) */
:root {
  --bg: #0b0b0c;
  --glass: #141416;
  --glass-strong: #17171a;
  --glass-hover: #1d1d21;
  --stroke: rgba(255, 255, 255, .07);
  --stroke-2: rgba(255, 255, 255, .12);
  --text: #ededef;
  --text-2: #b6b6be;
  --muted: #8b8b94;
  --accent: #ff7a1a;
  --accent-2: #f06a10;
  --accent-3: #d45a0a;
  --on-accent: #1a0b02;
  --warm: #ffd166;
  --red: #f05252;
  --radius: 10px;
  --blur: blur(16px);
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh;
  background: var(--bg);
  
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.ic { flex: none; display: block; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgba(255, 138, 61, .6); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn-primary:hover { background: #ff8c38; }
.btn-secondary { background: var(--glass); border-color: var(--stroke-2); color: var(--text); backdrop-filter: var(--blur); }
.btn-secondary:hover { background: var(--glass-hover); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.btn-danger { background: rgba(240, 82, 82, .12); border-color: rgba(240, 82, 82, .3); color: #ff8a8a; }
.btn-danger:hover { background: rgba(240, 82, 82, .2); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-icon { width: 36px; padding: 0; }
.btn:disabled { opacity: .55; cursor: default; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .field input, .field select, .field textarea {
  height: 46px; padding: 0 16px; border: 1px solid var(--stroke-2); border-radius: 14px; background: rgba(255, 255, 255, .04);
  font: inherit; color: var(--text); width: 100%; outline: none; transition: border-color .15s, background .15s;
}
.field textarea { height: auto; padding: 12px 16px; }
.input:focus, .field input:focus { border-color: var(--accent); background: rgba(255, 138, 61, .05); }
.input::placeholder, .field input::placeholder { color: #86726a; }
.error { color: #ff8a8a; font-size: 13px; min-height: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Brand / nav ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; color: var(--text); text-decoration: none !important; }
.logo-img { width: 34px; height: 34px; display: block; filter: none; }
.wordmark { font-weight: 500; letter-spacing: -.3px; }
.wordmark b { font-weight: 800; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 138, 61, .14); color: var(--accent); display: grid; place-items: center; }
.nav { position: sticky; top: 12px; z-index: 10; max-width: 1180px; margin: 12px auto 0; padding: 0 16px; }
.nav-inner { height: 64px; padding: 0 12px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 8px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--stroke); }
.nav-links { display: flex; align-items: center; gap: 6px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { margin: 16px 0 16px 16px; border-radius: 14px; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #111113; border: 1px solid var(--stroke); }
.auth-side h2 { font-size: 36px; line-height: 1.1; letter-spacing: -1px; margin: 0 0 12px; max-width: 440px; }
.auth-side p { color: var(--text-2); max-width: 420px; margin: 0; }
.auth-main { display: grid; place-items: center; padding: 32px 24px; }
.auth-card { width: 100%; max-width: 410px; display: grid; gap: 18px; padding: 32px; border-radius: 12px; background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.auth-card h1 { margin: 0; font-size: 28px; letter-spacing: -.8px; }

/* ---------- Dashboard ---------- */
.panel { border-radius: 12px; overflow: visible; background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: var(--blur); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--stroke); }
.panel-head h2 { margin: 0; font-size: 16px; }
.room-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--stroke); transition: background .15s; }
.room-row:hover { background: rgba(255, 255, 255, .025); }
.room-row:last-child { border-bottom: 0; border-radius: 0 0 22px 22px; }
.room-row h3 { margin: 0; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.room-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 6px; }
.room-meta span { display: inline-flex; align-items: center; gap: 5px; }
.room-actions { display: flex; gap: 8px; align-items: center; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.pill.live { background: rgba(255, 138, 61, .15); color: var(--accent); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }

.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--stroke-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 230px; z-index: 30; }
.menu-list button, .menu-list a.menu-link { text-decoration: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; text-align: left; }
.menu-list button:hover, .menu-list a.menu-link:hover { background: rgba(255, 255, 255, .07); }
.menu-list button.danger { color: #ff8a8a; }
.menu-list hr { border: 0; border-top: 1px solid var(--stroke); margin: 6px 0; }

.avatar { width: 34px; height: 34px; border-radius: 50%; background: #2b2b31; color: var(--text); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--text); padding: 4px 10px 4px 4px; border-radius: 8px; }
.user-btn:hover { background: rgba(255, 255, 255, .06); }

/* Modal */
dialog.modal { border: 1px solid var(--stroke-2); border-radius: 12px; padding: 0; box-shadow: var(--shadow); width: 480px; max-width: calc(100vw - 32px); color: var(--text); background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
dialog.modal.wide { width: 760px; }
dialog.modal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--stroke); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 22px; display: grid; gap: 16px; max-height: 70vh; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--stroke); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 8px; background: rgba(255, 255, 255, .15); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--accent-2); }
.switch input:checked::after { transform: translateX(18px); }
.hist h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.hist pre { white-space: pre-wrap; font: inherit; background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 12px; margin: 0; }
.hist ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hist li { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; background: rgba(255, 255, 255, .04); border-radius: 10px; font-size: 14px; }
.hist .t { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--glass-strong); backdrop-filter: var(--blur); border: 1px solid var(--stroke-2); color: var(--text); padding: 11px 20px; border-radius: 8px; font-size: 14px; box-shadow: var(--shadow); z-index: 100; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 36px; }
  .features, .steps, .quick { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { margin: 16px 0 16px 16px; border-radius: 14px; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #111113; border: 1px solid var(--stroke); }
  .band { padding: 32px 24px; }
  .room-row { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}

/* Continue with Google */
.btn-google { width: 100%; background: #fff; color: #1f1f1f; border-color: transparent; font-weight: 600; }
.btn-google:hover { background: #f1f1f1; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--stroke-2); }
