/* ========= Attesta.uz — Design System ========= */
/* Builds on tokens.css, overrides Bootstrap visuals   */

/* ===== Base Reset ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
h1, h2 { letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ===== Bootstrap overrides ===== */
.btn { border-radius: var(--r-sm) !important; font-family: var(--font-body); font-weight: 600; }
.card { border-radius: var(--r-md) !important; border-color: var(--line) !important; background: var(--surface) !important; }
.form-control, .form-select {
  border-color: var(--line-strong) !important;
  border-radius: var(--r-sm) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  font-family: var(--font-body);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent-hex) !important;
  box-shadow: var(--shadow-focus) !important;
}
.badge { border-radius: var(--r-pill) !important; }

/* ===== Public Topbar Nav ===== */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.site-nav .brand-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.12);
  flex-shrink: 0;
}
.site-nav .brand span em {
  font-style: normal;
  color: var(--accent-hex);
}

.site-nav .nav-links {
  display: flex;
  gap: 2px;
  margin-left: 16px;
}
.site-nav .nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.site-nav .nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav .nav-links a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

.site-nav .nav-search {
  flex: 1;
  max-width: 320px;
  margin-left: auto;
}
.site-nav .nav-search form {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  gap: 8px;
}
.site-nav .nav-search input {
  border: none !important;
  background: transparent !important;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  width: 100%;
  box-shadow: none !important;
}
.site-nav .nav-search input::placeholder { color: var(--muted); }
.site-nav .nav-search .search-ico { color: var(--muted); flex-shrink: 0; }

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

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
  font-size: 12px;
  font-weight: 600;
  gap: 2px;
}
.lang-toggle button {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  color: var(--ink-3);
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle button.on { background: var(--ink); color: white; }

/* User avatar dropdown in nav */
.site-nav .user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.site-nav .user-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.site-nav .user-btn .u-avatar {
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 11px;
  display: grid;
  place-items: center;
}

/* Dropdown for user menu */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.1s;
}
.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav-dropdown-menu .sep { height: 1px; background: var(--line); margin: 4px 0; }
.nav-dropdown-menu .danger { color: var(--danger); }

/* Notification badge */
.notif-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-btn:hover { background: var(--surface-2); color: var(--ink); }
.notif-btn .badge-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 99px;
  border: 2px solid var(--surface);
}

/* ===== Sidebar Layout (authenticated pages) ===== */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.app-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.app-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 20px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.app-sidebar .brand-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.12);
  flex-shrink: 0;
}
.app-sidebar .brand em { font-style: normal; color: var(--accent-hex); }

.sidebar-section {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  padding: 16px 10px 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.sidebar-item:hover { background: var(--surface-2); color: var(--ink); }
.sidebar-item.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}
.sidebar-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-item .s-badge {
  margin-left: auto;
  background: var(--accent-2-soft);
  color: oklch(0.4 0.12 65);
  font-weight: 700;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
}

.sidebar-user {
  margin-top: auto;
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent-ink);
  font-size: 13px;
  flex-shrink: 0;
}
.sidebar-avatar img {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  object-fit: cover;
}
.sidebar-user-name { font-weight: 600; font-size: 13px; line-height: 1.2; color: var(--ink); }
.sidebar-user-meta { font-size: 11px; color: var(--muted); }

/* ===== Main page area ===== */
.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page-content {
  padding: 28px 40px;
  flex: 1;
}

/* Page topbar (inside authenticated pages) */
.page-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.page-topbar .page-title { font-size: 24px; font-weight: 700; font-family: var(--font-head); }
.page-topbar .page-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.page-topbar .grow { flex: 1; }

/* ===== Cards ===== */
.a-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.a-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-hex);
  transform: translateY(-2px);
}

/* Stat cards */
.stat-card-new {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.stat-card-new .stat-icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-card-new .stat-icon-wrap.green { background: var(--accent-soft); color: var(--accent-ink); }
.stat-card-new .stat-icon-wrap.amber { background: var(--accent-2-soft); color: oklch(0.4 0.12 65); }
.stat-card-new .stat-icon-wrap.blue { background: var(--info-soft); color: var(--info); }
.stat-card-new .stat-icon-wrap.red { background: var(--danger-soft); color: var(--danger); }
.stat-card-new .stat-icon-wrap svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-card-new .stat-num { font-size: 28px; font-weight: 800; font-family: var(--font-head); color: var(--ink); line-height: 1; }
.stat-card-new .stat-lbl { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ===== Buttons ===== */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.16), var(--shadow-sm);
  transition: filter 0.15s, transform 0.06s;
  text-decoration: none;
}
.btn-accent:hover { filter: brightness(1.06); color: white; }
.btn-accent:active { transform: translateY(1px); }
.btn-accent-lg { padding: 14px 24px; font-size: 15px; border-radius: var(--r-md); }

.btn-outline-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.06s;
  text-decoration: none;
}
.btn-outline-new:hover { background: var(--surface-2); color: var(--ink); }
.btn-outline-new:active { transform: translateY(1px); }

.btn-ghost-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 14px;
  font-family: var(--font-body);
  background: none;
  color: var(--ink-2);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-ghost-new:hover { background: var(--surface-2); color: var(--ink); }

/* ===== Badges / Chips ===== */
.chip-new {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.chip-new.green { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip-new.amber { background: var(--accent-2-soft); color: oklch(0.4 0.12 65); border-color: transparent; }
.chip-new.blue { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip-new.red { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

/* ===== Progress bar ===== */
.progress-new {
  height: 8px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-new-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-hex), #5ecf97);
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
}

/* ===== Form controls ===== */
.input-new {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border 0.15s, box-shadow 0.15s;
}
.input-new:focus { outline: none; border-color: var(--accent-hex); box-shadow: var(--shadow-focus); }
.input-new::placeholder { color: var(--muted); }
.label-new { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.04em; }

/* ===== Flash/Alert messages ===== */
.flash-bar {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-bar.success { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid oklch(0.68 0.17 155 / 0.2); }
.flash-bar.danger  { background: var(--danger-soft); color: var(--danger); border: 1px solid oklch(0.62 0.2 25 / 0.2); }
.flash-bar.warning { background: var(--warn-soft); color: oklch(0.4 0.12 65); border: 1px solid oklch(0.74 0.16 65 / 0.2); }
.flash-bar.info    { background: var(--info-soft); color: var(--info); border: 1px solid oklch(0.62 0.14 240 / 0.2); }

/* ===== Course cards ===== */
.course-card-new {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.course-card-new:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-hex);
  transform: translateY(-2px);
}
.course-card-new .course-thumb {
  height: 180px;
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}
.course-card-new .course-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.course-card-new .course-thumb .thumb-ph {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-size: 40px;
}
.course-card-new .course-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.course-card-new .course-cat { font-size: 11px; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); }
.course-card-new .course-title { font-size: 15px; font-weight: 700; font-family: var(--font-head); color: var(--ink); line-height: 1.3; flex: 1; }
.course-card-new .course-teacher { font-size: 13px; color: var(--ink-3); }
.course-card-new .course-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-3); }
.course-card-new .course-price { font-size: 16px; font-weight: 700; color: var(--ink); }
.course-card-new .course-price.free { color: var(--accent-ink); }

/* Star rating */
.star-rating { color: var(--accent-2-hex); font-size: 12px; display: flex; align-items: center; gap: 3px; }

/* ===== Hero Section (Landing) ===== */
.hero-new {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 80px 0 60px;
}
.hero-new .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-new .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.hero-new .hero-title {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero-new .hero-title em { font-style: normal; color: var(--accent-hex); }
.hero-new .hero-sub {
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 500px;
}
.hero-new .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero-stat-item .stat-num { font-size: 32px; font-weight: 800; font-family: var(--font-head); color: var(--ink); }
.hero-stat-item .stat-lbl { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ===== Section heading ===== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-head h2 { font-size: 22px; font-weight: 700; font-family: var(--font-head); }
.section-head .section-sub { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* ===== Category cards ===== */
.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-hex);
  transform: translateY(-2px);
}
.category-card .cat-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--accent-soft);
}
.category-card .cat-name { font-weight: 700; font-size: 15px; font-family: var(--font-head); }
.category-card .cat-count { font-size: 13px; color: var(--ink-3); }

/* ===== How-it-works steps ===== */
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
}
.step-card .step-num {
  width: 36px; height: 36px;
  background: var(--accent);
  color: white;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.step-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--ink-3); }

/* ===== Auth page layout ===== */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: linear-gradient(135deg, oklch(0.22 0.012 90) 0%, oklch(0.28 0.016 155) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: white;
}
.auth-left .auth-brand { font-family: var(--font-head); font-weight: 800; font-size: 28px; margin-bottom: 48px; }
.auth-left .auth-brand em { font-style: normal; color: var(--accent-hex); }
.auth-left blockquote { font-size: 22px; font-weight: 600; font-family: var(--font-head); line-height: 1.4; color: rgba(255,255,255,0.9); }
.auth-left .auth-sub { font-size: 15px; color: rgba(255,255,255,0.55); margin-top: 16px; }
.auth-right {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.auth-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}
.auth-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.auth-box .auth-box-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }

/* Auth tabs */
.auth-tabs {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 3px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: calc(var(--r-sm) - 2px);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ===== Footer (public) ===== */
.site-footer {
  background: var(--ink);
  color: var(--surface);
  padding: 56px 0 32px;
  margin-top: auto;
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.site-footer .footer-brand em { font-style: normal; color: var(--accent-hex); }
.site-footer .footer-desc { font-size: 14px; color: oklch(0.65 0.01 90); line-height: 1.6; }
.site-footer .footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(0.5 0.01 90); font-family: var(--font-mono); margin-bottom: 14px; }
.site-footer .footer-links { display: flex; flex-direction: column; gap: 8px; }
.site-footer .footer-links a { font-size: 14px; color: oklch(0.65 0.01 90); transition: color 0.15s; }
.site-footer .footer-links a:hover { color: white; }
.site-footer .footer-divider { border: none; border-top: 1px solid oklch(0.3 0.008 90); margin: 32px 0 24px; }
.site-footer .footer-bottom { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.site-footer .footer-bottom p { font-size: 13px; color: oklch(0.5 0.01 90); }
.site-footer .social-links { display: flex; gap: 12px; }
.site-footer .social-links a { color: oklch(0.5 0.01 90); font-size: 18px; transition: color 0.15s; }
.site-footer .social-links a:hover { color: white; }

/* ===== Activity feed ===== */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent-ink);
}
.activity-dot svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.activity-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.activity-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-track { background: transparent; }

/* ===== Focus ring ===== */
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 4px; }

/* ===== Utilities ===== */
.text-accent { color: var(--accent-hex); }
.text-muted-new { color: var(--ink-3); }
.text-ink { color: var(--ink); }
.text-ink2 { color: var(--ink-2); }
.font-head { font-family: var(--font-head); }
.font-mono { font-family: var(--font-mono); }
.bg-surface { background: var(--surface); }
.bg-surface2 { background: var(--surface-2); }
.sep-line { height: 1px; background: var(--line); }

/* ===== Streak banner ===== */
.streak-banner {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
  border: 1px solid oklch(0.68 0.17 155 / 0.2);
  border-radius: var(--r-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.streak-banner .streak-icon { font-size: 24px; }
.streak-banner .streak-text { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.streak-banner .streak-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-3);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 15px; margin-bottom: 16px; }

/* ===== Breadcrumb ===== */
.breadcrumb-new {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.breadcrumb-new a { color: var(--ink-3); transition: color 0.15s; }
.breadcrumb-new a:hover { color: var(--ink); }
.breadcrumb-new .bc-sep { color: var(--muted); }
.breadcrumb-new .bc-cur { color: var(--ink); font-weight: 500; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .page-content { padding: 20px 16px; }
  .hero-new .hero-inner { grid-template-columns: 1fr; }
  .site-footer .footer-inner { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}
@media (max-width: 768px) {
  .site-nav .nav-links { display: none; }
  .site-nav .nav-search { max-width: 200px; }
  .hero-new .hero-title { font-size: 32px; }
  .site-footer .footer-inner { grid-template-columns: 1fr; }
}
