/* ── POLARIS Design System ───────────────────────── */
:root {
  /* Brand */
  --gold:           #c9a84c;
  --gold-light:     #f0d98a;
  --gold-dim:       rgba(201,168,76,.15);
  --gold-dim2:      rgba(201,168,76,.08);

  /* Navy scale */
  --navy-900:       #090d1a;
  --navy-800:       #0d1529;
  --navy-700:       #121e38;
  --navy-600:       #1a2a4a;
  --navy-500:       #243558;
  --navy-400:       #2e4170;
  --navy-300:       #3d5a8a;

  /* Surface */
  --bg:             #f4f6fb;
  --surface:        #ffffff;
  --surface-2:      #f8f9fc;

  /* Text */
  --text-primary:   #0d1529;
  --text-secondary: #5a6a8a;
  --text-muted:     #8a9ab8;
  --text-inverse:   #e8edf8;

  /* Semantic */
  --success:        #2e9e6e;
  --warning:        #d4a017;
  --danger:         #c94040;
  --info:           #3178c6;

  /* Border */
  --border:         #dde3f0;
  --border-light:   #eef1f8;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(9,13,26,.08), 0 1px 2px rgba(9,13,26,.05);
  --shadow-md:  0 4px 12px rgba(9,13,26,.10), 0 2px 6px rgba(9,13,26,.06);
  --shadow-lg:  0 12px 28px rgba(9,13,26,.12), 0 4px 10px rgba(9,13,26,.07);
  --shadow-gold: 0 4px 20px rgba(201,168,76,.25);

  /* Layout */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --header-h:   62px;
  --sidebar-w:  240px;
  --footer-h:   52px;

  /* Typography */
  --font-sans:  'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-primary); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ═══════════════════════════════════════════════════ */
/*  LANDING PAGE (public/main — no auth required)      */
/* ═══════════════════════════════════════════════════ */


/* ── Landing layout fix ──────────────────────────── */
.landing-body {
  min-height: 100vh;
  background: var(--navy-900);
  color: var(--text-inverse);
}

/* ── Landing Header ──────────────────────────────── */
.landing-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(9,13,26,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  position: relative;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.landing-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-nav a {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  color: rgba(232,237,248,.65);
  font-weight: 500;
  transition: all .2s;
}

.landing-nav a:hover {
  color: var(--text-inverse);
  background: rgba(255,255,255,.07);
}

.landing-nav .btn-signin {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.3);
  font-weight: 600;
}

.landing-nav .btn-signin:hover {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}

/* ── Hero ─────────────────────────────────────────── */
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 80px) 40px 90px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201,168,76,.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(49,120,198,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,.3);
  background: var(--gold-dim2);
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  color: var(--text-inverse);
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(232,237,248,.65);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  padding: 14px 34px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: linear-gradient(135deg, var(--gold), #a87a2a);
  color: var(--navy-900);
  transition: all .25s;
  box-shadow: 0 4px 18px rgba(201,168,76,.35);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.5);
}

.btn-hero-outline {
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-inverse);
  border: 1.5px solid rgba(232,237,248,.2);
  transition: all .25s;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(232,237,248,.4);
  transform: translateY(-1px);
}

/* ── Features section ────────────────────────────── */
.landing-features {
  background: var(--navy-800);
  border-top: 1px solid rgba(201,168,76,.08);
  border-bottom: 1px solid rgba(201,168,76,.08);
  padding: 80px 40px;
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--navy-700);
  border: 1px solid rgba(201,168,76,.1);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}

.feature-card:hover {
  border-color: rgba(201,168,76,.3);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: .85rem;
  color: rgba(232,237,248,.5);
  line-height: 1.65;
}

/* ── Landing Footer ──────────────────────────────── */
.landing-footer {
  padding: 32px 40px;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(232,237,248,.3);
}

.landing-footer .lf-brand {
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(201,168,76,.5);
}

/* ═══════════════════════════════════════════════════ */
/*  LOGIN PAGE                                         */
/* ═══════════════════════════════════════════════════ */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(201,168,76,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(49,120,198,.06) 0%, transparent 60%);
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--navy-800);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(201,168,76,.06);
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--gold-dim);
  border: 1.5px solid rgba(201,168,76,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(201,168,76,.2);
}

.login-logo svg {
  width: 28px;
  height: 28px;
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.login-header p {
  color: rgba(232,237,248,.45);
  font-size: .87rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  color: rgba(232,237,248,.5);
  margin-bottom: 7px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  color: var(--text-inverse);
  background: rgba(255,255,255,.04);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus {
  border-color: rgba(201,168,76,.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,.1);
  background: rgba(255,255,255,.06);
}

.form-group input::placeholder { color: rgba(232,237,248,.2); }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a87a2a);
  color: var(--navy-900);
  font-weight: 700;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-full { width: 100%; padding: 13px; margin-top: 8px; font-size: .97rem; }

/* ── Alerts ─────────────────────────────────────── */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error  { background: rgba(201,64,64,.12); color: #f08080; border: 1px solid rgba(201,64,64,.25); }
.alert-success{ background: rgba(46,158,110,.12); color: #70d4a0; border: 1px solid rgba(46,158,110,.25); }

/* ═══════════════════════════════════════════════════ */
/*  APP LAYOUT (authenticated pages)                   */
/* ═══════════════════════════════════════════════════ */

.app-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--navy-800);
  border-bottom: 1px solid rgba(201,168,76,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(9,13,26,.35);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}

.sidebar-toggle:hover { background: rgba(255,255,255,.07); }

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(232,237,248,.5);
  border-radius: 2px;
  transition: all .3s;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-name {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .15em;
  color: var(--gold);
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  color: rgba(232,237,248,.55);
  transition: all .2s;
  font-weight: 500;
}

.nav-link:hover  { background: rgba(255,255,255,.07); color: var(--text-inverse); }
.nav-link.active { background: var(--gold-dim); color: var(--gold); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── User menu ───────────────────────────────────── */
.user-menu { position: relative; }

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: rgba(232,237,248,.65);
  font-size: .87rem;
  transition: all .2s;
}

.user-btn:hover { background: rgba(255,255,255,.07); color: var(--text-inverse); }

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1.5px solid rgba(201,168,76,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  color: var(--gold);
}

.dropdown-arrow {
  font-size: .55rem;
  transition: transform .2s;
  color: rgba(232,237,248,.35);
}

.user-menu.open .dropdown-arrow { transform: rotate(180deg); }

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--navy-700);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  overflow: hidden;
  z-index: 100;
}

.user-menu.open .user-dropdown { display: block; }

.dropdown-header {
  padding: 12px 16px;
  background: rgba(201,168,76,.06);
  border-bottom: 1px solid rgba(201,168,76,.1);
}

.dropdown-header span:first-child {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-inverse);
}

.user-role {
  font-size: .73rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .04em;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: .87rem;
  color: rgba(232,237,248,.7);
  text-align: left;
  transition: background .15s;
}

.dropdown-item:hover { background: rgba(255,255,255,.05); color: var(--text-inverse); }
.dropdown-item-danger { color: #f08080; }
.dropdown-item-danger:hover { background: rgba(201,64,64,.1); }
.dropdown-divider { border: none; border-top: 1px solid rgba(255,255,255,.06); margin: 4px 0; }

/* ── Sidebar ──────────────────────────────────────── */
.app-layout {
  display: flex;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--navy-800);
  border-right: 1px solid rgba(201,168,76,.08);
  flex-shrink: 0;
  overflow-y: auto;
  transition: width .3s, transform .3s;
}

.sidebar.collapsed { width: 0; overflow: hidden; }

.sidebar-nav { padding: 16px 0; }

.nav-section { margin-bottom: 8px; }

.nav-section-title {
  display: block;
  padding: 8px 18px 5px;
  font-size: .67rem;
  font-weight: 700;
  color: rgba(201,168,76,.45);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: rgba(232,237,248,.5);
  font-size: .87rem;
  font-weight: 500;
  transition: all .18s;
  border-left: 2px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255,255,255,.04);
  color: var(--text-inverse);
  border-left-color: rgba(201,168,76,.25);
}

.sidebar-link.active {
  background: var(--gold-dim);
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 600;
}

.link-icon { font-size: .95rem; width: 18px; text-align: center; }

/* ── Main Content ─────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 28px;
  overflow-x: hidden;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: .88rem;
}

/* ── Stats Grid ───────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow .2s, transform .2s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon-gold   { background: rgba(201,168,76,.1); }
.stat-icon-blue   { background: #e8f0fe; }
.stat-icon-green  { background: #e6f4ea; }
.stat-icon-purple { background: #f3e8fd; }
.stat-icon-orange { background: #fff3e0; }

.stat-info { display: flex; flex-direction: column; gap: 2px; }

.stat-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stat-value {
  font-size: .93rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Content Grid & Cards ─────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.content-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-2);
}

.card-title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body { padding: 20px; }

/* ── Tech List ───────────────────────────────────── */
.tech-list { display: flex; flex-direction: column; gap: 11px; }

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}

.tech-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  min-width: 76px;
  text-align: center;
}

.badge-gold   { background: rgba(201,168,76,.12); color: #a87a2a; }
.badge-blue   { background: #e8f0fe; color: #1a73e8; }
.badge-green  { background: #e6f4ea; color: #188038; }
.badge-orange { background: #fff3e0; color: #e65100; }
.badge-red    { background: #fde8e8; color: #c0392b; }
.badge-purple { background: #f3e8fd; color: #7b1fa2; }
.badge-teal   { background: #e0f2f1; color: #00695c; }

/* ── Command List ────────────────────────────────── */
.command-list { display: flex; flex-direction: column; gap: 8px; }

/* ── Code Blocks ─────────────────────────────────── */
code, .code-block {
  font-family: var(--font-mono);
  font-size: .82rem;
  background: var(--navy-700);
  color: var(--gold-light);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.code-pre {
  font-family: var(--font-mono);
  font-size: .83rem;
  background: var(--navy-800);
  color: #cdd3de;
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  line-height: 1.7;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,.06);
}

/* ── Table ───────────────────────────────────────── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.info-table th {
  background: var(--surface-2);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: .76rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
}

.info-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.info-table tr:last-child td { border-bottom: none; }
.info-table tr:hover td { background: #f8f9fc; }

.link { color: var(--info); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────── */
.app-footer {
  height: var(--footer-h);
  background: var(--navy-800);
  border-top: 1px solid rgba(201,168,76,.08);
  display: flex;
  align-items: center;
}

.footer-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: .78rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(232,237,248,.3);
}

.footer-brand-text {
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(201,168,76,.4);
}

.footer-divider { color: rgba(255,255,255,.1); }

.footer-right {
  color: rgba(232,237,248,.2);
  font-size: .75rem;
}

/* ── Form extras ─────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

.form-select {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6a8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

.field-error {
  display: block;
  font-size: .77rem;
  color: var(--danger);
  margin-top: 4px;
}

/* ── Error Pages ──────────────────────────────────── */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.error-code {
  font-size: 7rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -4px;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.error-desc {
  font-size: .95rem;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.error-path {
  font-size: .82rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  margin: 0 0 28px;
  font-family: monospace;
}

/* ── Info box ────────────────────────────────────── */
.info-box {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border-light);
  margin-top: 20px;
}

.info-box h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0; bottom: 0;
    z-index: 900;
    transform: translateX(-100%);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .header-nav { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .main-content { padding: 16px; }
  .landing-header { padding: 0 20px; }
  .landing-hero { padding: calc(var(--header-h) + 40px) 20px 60px; }
  .landing-features { padding: 60px 20px; }
  .landing-footer { padding: 24px 20px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
  .user-name { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
}
