:root {
  --navy: #0B1426;
  --navy2: #111E35;
  --navy3: #1A2B45;
  --blue: #1B6EF3;
  --blue-pale: #EBF1FE;
  --teal: #0EC6B0;
  --border: #E3E8F0;
  --text: #0B1426;
  --text2: #4A5568;
  --text3: #8898AA;
  --radius: 14px;
  --sidebar-w: 250px;
}

body {
  font-family: 'Epilogue', system-ui, sans-serif;
  background: #F0F4FB;
  color: var(--text);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, .brand, .page-title { font-family: 'Syne', sans-serif; }

a { color: var(--blue); }

.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: #1558D0; border-color: #1558D0; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: #fff; }
.brand .logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--blue), var(--teal)); display: grid; place-items: center; }
.brand .logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.brand span span { color: var(--teal); }

/* ---------- panel layout ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--navy); color: #c9d4e5; padding: 1.25rem .9rem; overflow-y: auto; z-index: 1030;
  transition: transform .2s;
}
.sidebar .nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7c96; margin: 1.3rem .6rem .4rem; }
.sidebar .nav-link { color: #c9d4e5; border-radius: 9px; padding: .55rem .75rem; display: flex; gap: .65rem; align-items: center; font-size: .9rem; }
.sidebar .nav-link:hover { background: var(--navy3); color: #fff; }
.sidebar .nav-link.active { background: var(--blue); color: #fff; }
.sidebar .nav-link .badge { margin-left: auto; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); height: 62px; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1020; }
.content { padding: 1.75rem 1.5rem 3rem; max-width: 1400px; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: none; }
  .main { margin-left: 0; }
}

.page-title { font-size: 1.45rem; font-weight: 700; margin: 0; }
.page-sub { color: var(--text2); font-size: .9rem; }

/* ---------- cards ---------- */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(11, 20, 38, .04); }
.card-header { background: #fff; border-bottom: 1px solid var(--border); font-weight: 600; border-radius: var(--radius) var(--radius) 0 0 !important; }
.stat-card .label { color: var(--text3); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .value { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 700; }

.table { font-size: .88rem; }
.table thead th { color: var(--text3); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; background: #F7F9FC; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
code { color: #c0306e; }

.secret-box { background: var(--navy); color: #7CF2DF; padding: .9rem 1rem; border-radius: 10px; word-break: break-all; font-family: ui-monospace, Consolas, monospace; }

/* ---------- auth + hosted pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(circle at 20% 20%, #1A2B45, var(--navy) 60%); color: #c9d4e5; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-weight: 800; font-size: 2.1rem; line-height: 1.2; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 440px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

.hosted-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.hosted-card { max-width: 480px; width: 100%; }
.dl-btn { background: #5a2d91; border: none; color: #fff; font-weight: 600; padding: .85rem 1rem; border-radius: 10px; }
.dl-btn:hover { background: #4a2479; color: #fff; }

.timeline-item { border-left: 2px solid var(--border); padding: 0 0 1rem 1rem; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
