/* KOBIRAJ Core CSS — Dark Professional Theme */
:root {
  --bg: #0d0f14;
  --bg2: #13161d;
  --bg3: #1a1e28;
  --border: #252a38;
  --border2: #2e3448;
  --text: #e2e8f0;
  --text2: #8892a4;
  --text3: #525d70;
  --accent: #6366f1;
  --accent2: #818cf8;
  --accent-glow: rgba(99,102,241,0.25);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.15);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.15);
  --yellow: #f59e0b;
  --yellow-dim: rgba(245,158,11,0.15);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.15);
  --sidebar-w: 240px;
  --topbar-h: 56px;
  --radius: 8px;
  --radius2: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.18s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--text); }

/* ── Public / Auth ─────────────────────────────────────────────────── */

.public-body {
  min-height: 100vh;
  background: var(--bg);
}

/* Auth */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 70%), var(--bg);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-icon { font-size: 24px; }
.auth-brand { font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--text); }
.auth-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  background: var(--accent); color: #fff;
  padding: 2px 8px; border-radius: 20px;
}

.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.auth-subtitle { color: var(--text2); margin-bottom: 28px; }

.auth-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 12px;
}

/* ── Panel Layout ──────────────────────────────────────────────────── */

.panel-body { overflow: hidden; }

.panel-layout {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  transition: transform var(--transition);
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}

.brand-icon { font-size: 20px; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 2px; flex: 1; }
.brand-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  background: var(--accent); color: #fff;
  padding: 2px 6px; border-radius: 20px;
}

.sidebar-nav { flex: 1; padding: 12px 8px; }

.nav-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--text3); text-transform: uppercase;
  padding: 12px 8px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 13.5px;
  transition: all var(--transition);
  position: relative;
}

.nav-item:hover { background: var(--bg3); color: var(--text); }

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent2);
  font-weight: 600;
}

.nav-icon { font-size: 14px; width: 16px; text-align: center; }

.badge-count {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }

.user-avatar {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: var(--text3); }

.btn-logout {
  font-size: 16px; color: var(--text3);
  padding: 4px;
  transition: color var(--transition);
}
.btn-logout:hover { color: var(--red); }

/* Panel main */
.panel-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-topbar {
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-toggle {
  background: none; border: none; color: var(--text2);
  font-size: 18px; cursor: pointer; padding: 4px 8px;
  border-radius: var(--radius);
  display: none;
}

.topbar-title { font-size: 15px; font-weight: 600; flex: 1; }
.topbar-actions { display: flex; gap: 8px; }

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ── Cards & Stats ─────────────────────────────────────────────────── */

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 20px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title { font-size: 14px; font-weight: 600; }
.card-subtitle { font-size: 12px; color: var(--text2); margin-top: 2px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 18px 20px;
}

.stat-value { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 11px; color: var(--text2); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-icon { font-size: 20px; float: right; opacity: 0.5; }

.stat-card.accent { border-color: var(--accent); }
.stat-card.green { border-color: var(--green); }
.stat-card.red { border-color: var(--red); }
.stat-card.yellow { border-color: var(--yellow); }

/* ── Tables ────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text2); text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg3); color: var(--text); }
td strong { color: var(--text); }

/* ── Forms ─────────────────────────────────────────────────────────── */

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.form-hint { font-size: 11px; color: var(--text3); margin-top: 4px; }

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
}

.form-check input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; accent-color: var(--accent); }

.input-with-toggle { position: relative; }
.input-with-toggle .form-input { padding-right: 40px; }
.eye-toggle {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--text3);
  padding: 0;
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); color: #fff; }

.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { opacity: 0.85; color: #fff; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.85; color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--border2);
  color: var(--text2);
}
.btn-outline:hover { border-color: var(--text2); color: var(--text); }

.btn-ghost { background: var(--bg3); color: var(--text2); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-block { width: 100%; justify-content: center; padding: 11px 16px; }

/* ── Badges / Pills ────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-pass, .badge-approved, .badge-done, .badge-active { background: var(--green-dim); color: var(--green); }
.badge-fail, .badge-revoked, .badge-error, .badge-inactive { background: var(--red-dim); color: var(--red); }
.badge-pending, .badge-scheduled, .badge-draft { background: var(--yellow-dim); color: var(--yellow); }
.badge-running { background: var(--blue-dim); color: var(--blue); }
.badge-paused, .badge-cancelled { background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }
.badge-admin { background: var(--accent-glow); color: var(--accent2); }
.badge-user { background: var(--bg3); color: var(--text2); }

/* ── Alerts ────────────────────────────────────────────────────────── */

.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 14px;
}

.alert-error { background: var(--red-dim); border: 1px solid var(--red); color: var(--red); }
.alert-success { background: var(--green-dim); border: 1px solid var(--green); color: var(--green); }
.alert-info { background: var(--blue-dim); border: 1px solid var(--blue); color: var(--blue); }
.alert-warning { background: var(--yellow-dim); border: 1px solid var(--yellow); color: var(--yellow); }

.flash-container { padding: 0 24px; margin-bottom: -8px; }
.flash { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 8px; }

/* ── Live Terminal ──────────────────────────────────────────────────── */

.terminal {
  background: #090b0f;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  height: 420px;
  overflow-y: auto;
  padding: 12px;
  font-family: 'Consolas', 'Cascadia Code', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  position: relative;
}

.terminal:empty::after {
  content: 'Waiting for results...';
  color: var(--text3);
}

.log-line { display: block; padding: 1px 0; }
.log-pass { color: var(--green); }
.log-fail { color: var(--red); }
.log-info { color: var(--blue); }
.log-warn { color: var(--yellow); }

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius2) var(--radius2) 0 0;
  font-size: 12px;
  color: var(--text2);
}

.terminal-dots { display: flex; gap: 5px; }
.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca41; }

/* ── Progress bars ─────────────────────────────────────────────────── */

.progress-bar-wrap {
  background: var(--bg3);
  border-radius: 20px;
  height: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.progress-bar-fill.green { background: var(--green); }

/* ── Meter (plan usage) ────────────────────────────────────────────── */

.meter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.meter-label { font-size: 12px; color: var(--text2); width: 160px; flex-shrink: 0; }
.meter-wrap { flex: 1; }
.meter-value { font-size: 12px; color: var(--text2); width: 80px; text-align: right; flex-shrink: 0; }

/* ── Page header ───────────────────────────────────────────────────── */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-heading { font-size: 22px; font-weight: 700; }
.page-desc { font-size: 13px; color: var(--text2); margin-top: 2px; }

/* ── Tabs ──────────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--accent2); border-bottom-color: var(--accent); }

/* ── Quill editor ──────────────────────────────────────────────────── */

#editor-container {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  min-height: 280px;
}

.ql-toolbar {
  background: var(--bg2) !important;
  border: 1px solid var(--border2) !important;
  border-bottom: none !important;
  border-radius: var(--radius) var(--radius) 0 0;
}

.ql-container {
  border: 1px solid var(--border2) !important;
  border-radius: 0 0 var(--radius) var(--radius);
}

.ql-toolbar .ql-stroke { stroke: var(--text2) !important; }
.ql-toolbar .ql-fill { fill: var(--text2) !important; }
.ql-toolbar button:hover .ql-stroke { stroke: var(--accent2) !important; }
.ql-editor { color: var(--text); min-height: 280px; }

/* ── Landing Page ──────────────────────────────────────────────────── */

.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(13,15,20,0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 16px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; letter-spacing: 2px;
}

.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-link { font-size: 13px; color: var(--text2); transition: color var(--transition); }
.nav-link:hover { color: var(--text); }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(99,102,241,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(34,197,94,0.08) 0%, transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}

.hero-inner { position: relative; max-width: 700px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent2);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius2);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-hero-primary:hover {
  background: var(--accent2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 40px var(--accent-glow);
}

.btn-hero-secondary {
  background: var(--bg2);
  color: var(--text);
  padding: 14px 32px;
  border-radius: var(--radius2);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-hero-secondary:hover {
  border-color: var(--text2);
  color: #fff;
  transform: translateY(-2px);
}

.hero-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--text3);
  font-size: 13px;
}

.hero-tg a { color: var(--blue); }

.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text2);
  font-size: 16px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 28px;
  transition: border-color var(--transition);
}

.feature-card:hover { border-color: var(--accent); }

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 32px 28px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, var(--bg2) 100%);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.pricing-name { font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.pricing-price { font-size: 40px; font-weight: 800; margin-bottom: 4px; }
.pricing-price span { font-size: 14px; font-weight: 400; color: var(--text2); }
.pricing-desc { font-size: 13px; color: var(--text2); margin-bottom: 20px; }

.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  font-size: 13px;
  color: var(--text2);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; }

.landing-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text3);
}

/* ── Pagination ────────────────────────────────────────────────────── */

.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 20px;
}

.page-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover, .page-btn.active { border-color: var(--accent); color: var(--accent2); }

/* ── Misc ──────────────────────────────────────────────────────────── */

.link-muted { color: var(--text3); font-size: 12px; }
.link-muted:hover { color: var(--text2); }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text3);
}

.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state-text { font-size: 14px; }

.divider { height: 1px; background: var(--border); margin: 20px 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }

  .panel-content { padding: 16px; }

  .two-col, .three-col { grid-template-columns: 1fr; }

  .section { padding: 50px 20px; }
  .landing-nav { padding: 0 20px; }
  .landing-footer { justify-content: center; }
}
