/*
  Intenseye Product Academy — brand tokens derived from intenseye.com
  --bg:          #0A0A0A — dominant page background (matches intenseye.com hero)
  --bg-card:     #141414 — primary card surface
  --bg-card-alt: #1C1C1C — alternate card / stripe
  --bg-elevated: #0F0F0F — sticky nav
  --accent:      #FF4A1C — Intenseye brand orange-red (CTAs, emphasis)
  --accent-hover:#FF5E36 — hover
  --accent-2:    #F5C04B — success / completion signal (compliments the warm accent)
  --white:       #F5F5F4 — primary text
  --light:       #B8B8B6 — body copy
  --muted:       #6B6B69 — metadata / labels
  --border:      #262626 — borders / dividers
  Font: Roobert (custom geometric sans)
*/

:root {
  --bg: #0A0A0A;
  --bg-card: #141414;
  --bg-card-alt: #1C1C1C;
  --bg-elevated: rgba(10,10,10,0.88);
  --accent: #FF4A1C;
  --accent-hover: #FF5E36;
  --accent-dim: rgba(255, 74, 28, 0.15);
  /* Warm secondary — amber/sand (earned, success, completion). Replaces prior green. */
  --accent-2: #F5C04B;
  --accent-2-dim: rgba(245, 192, 75, 0.15);
  --white: #F5F5F4;
  --light: #B8B8B6;
  --muted: #6B6B69;
  --border: #262626;
  --divider-subtle: #1a1a1a;
  --border-hover: #2A2A2A;
  --bg-darker: #0D0D0D;
  --tint: rgba(255, 255, 255, 0.04);
  --tint-strong: rgba(255, 255, 255, 0.08);

  --severity-high: #FF4A1C;
  --severity-medium: #F5A524;
  --severity-low: #F5C04B;
  --severity-info: #C9B89B;

  --tier-1: #FF4A1C;
  --tier-2: #F5A524;
  --tier-3: #6B6B69;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
}

[data-theme="light"] {
  --bg: #f4f5ed;
  --bg-card: #FFFFFF;
  --bg-card-alt: #edeee6;
  --bg-elevated: rgba(244, 245, 237, 0.94);
  --accent-dim: rgba(255, 74, 28, 0.1);
  --accent-2-dim: rgba(245, 192, 75, 0.1);
  --white: #1A1A1A;
  --light: #4A4A48;
  --muted: #8E8E8C;
  --border: #dddfd6;
  --divider-subtle: #e4e6dc;
  --border-hover: #cdd0c5;
  --bg-darker: #e8eadf;
  --tint: rgba(0, 0, 0, 0.04);
  --tint-strong: rgba(0, 0, 0, 0.06);
}

:where(html.theme-transitions),
:where(html.theme-transitions) :where(*),
:where(html.theme-transitions) :where(*)::before,
:where(html.theme-transitions) :where(*)::after {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Roobert", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Typography */
.hero {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--white);
  text-wrap: balance;
}

/* Intenseye has no italic anywhere. Emphasis is weight + color contrast. */
em, i, cite, .serif, em.serif {
  font-style: normal;
  font-family: inherit;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.005em;
}
h1 .serif, .display .serif, .hero .serif {
  font-size: 1em;
  line-height: 0.9;
  color: var(--white);
  letter-spacing: -0.02em;
}
.display {
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--white);
  text-wrap: balance;
}
.h1 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
.h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.body-lg { font-size: 18px; line-height: 1.65; color: var(--light); }
.body { font-size: 16px; line-height: 1.6; color: var(--light); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--light); }
.meta { font-size: 13px; line-height: 1.5; color: var(--muted); }
.meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  max-width: 860px;
}
.meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--light);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.meta-tag svg {
  opacity: 0.6;
  flex-shrink: 0;
}
.meta-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.meta-action-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 150ms ease;
}
.meta-action-btn:hover {
  color: var(--white);
  border-color: var(--border-hover);
  background: var(--bg-card);
}
.meta-action-btn.bookmarked {
  color: var(--accent);
  border-color: var(--accent);
}
.label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
}
.pill-mono {
  display: inline;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88em;
  color: var(--white);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
section.slab {
  padding: var(--space-9) 0;
  border-top: 1px solid var(--divider-subtle);
}
@media (max-width: 768px) {
  section.slab { padding: var(--space-7) 0; }
}

/* =================================================================
   TOP NAV — enterprise-grade
   ================================================================= */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-elevated);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  height: 56px;
}
.topnav .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 15px;
  flex-shrink: 0;
  transition: opacity 150ms;
}
.brand:hover { opacity: 0.85; }
.brand-logo {
  height: 20px;
  width: auto;
  display: block;
}
.brand-sep { width: 1px; height: 18px; background: var(--accent); opacity: 0.35; margin: 0 2px; }
.brand-sub {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Primary nav */
.nav-links {
  display: flex;
  gap: 1px;
  margin-left: 4px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  padding: 6px 12px;
  border-radius: 7px;
  transition: color 150ms, background 150ms;
  letter-spacing: -0.003em;
}
.nav-links a:hover {
  color: var(--white);
  background: var(--tint);
}
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 74, 28, 0.09);
}
.nav-links a.active::before {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.85;
}

/* Right cluster */
.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

/* Global search */
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px 6px 11px;
  min-width: 280px;
  max-width: 340px;
  color: var(--muted);
  transition: border-color 150ms, background 150ms;
}
.nav-search:hover { border-color: var(--border-hover); }
.nav-search:focus-within {
  border-color: rgba(255, 74, 28, 0.5);
  background: var(--bg-elevated);
  color: var(--light);
}
.nav-search i {
  width: 14px; height: 14px;
  color: currentColor;
  flex-shrink: 0;
}
.nav-search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
  font-size: 13px;
  font-family: inherit;
  flex: 1;
  min-width: 0;
  padding: 0;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search .kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-search-wrap {
  position: relative;
}
.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  padding: 6px;
}
.nav-search-empty {
  padding: 16px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.nav-search-group + .nav-search-group {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 4px;
}
.nav-search-group-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 10px 4px;
}
.nav-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--light);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms;
}
.nav-search-item:hover,
.nav-search-item.active {
  background: var(--tint-strong);
  color: var(--white);
}
.nav-search-icon {
  flex-shrink: 0;
  color: var(--muted);
}
.nav-search-item:hover .nav-search-icon,
.nav-search-item.active .nav-search-icon {
  color: var(--accent);
}
.nav-search-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav-search-title {
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-search-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-search-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-search-tag.sev-high {
  color: var(--severity-high);
  background: rgba(255, 74, 28, 0.12);
}
.nav-search-tag.sev-medium {
  color: var(--severity-medium);
  background: rgba(245, 165, 36, 0.12);
}
.nav-search-tag.sev-low {
  color: var(--severity-low);
  background: rgba(245, 192, 75, 0.12);
}
.nav-search-tag.sev-info {
  color: var(--severity-info);
  background: rgba(201, 184, 155, 0.12);
}

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--light);
  border-radius: 8px;
  transition: background 150ms, color 150ms;
  position: relative;
  flex-shrink: 0;
}
.icon-btn i { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--bg-card); color: var(--white); }

/* Notification badge */
.icon-btn.notif .notif-badge {
  position: absolute;
  top: -2px; right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  border: 2px solid var(--bg);
  pointer-events: none;
  box-sizing: border-box;
}

/* Notification dropdown preview */
.notif-dropdown-wrap {
  position: relative;
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  overflow: visible;
}
.notif-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.notif-dropdown-inner {
  border-radius: 12px;
  overflow: hidden;
}
.notif-dropdown-wrap:hover .notif-dropdown {
  display: block;
}
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.notif-dropdown-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.notif-dropdown-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  gap: 4px;
}
.notif-dropdown-list {
  max-height: 320px;
  overflow-y: auto;
}
.notif-dropdown-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.notif-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  transition: background 120ms;
  cursor: pointer;
}
.notif-dropdown-link:hover .notif-dropdown-item,
.notif-dropdown-item:hover {
  background: var(--tint-strong);
}
.notif-dropdown-item.unread {
  background: var(--tint);
}
.notif-dropdown-link:hover .notif-dropdown-item.unread {
  background: var(--tint-strong);
}
.notif-dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-dropdown-icon-milestone {
  background: var(--accent-2-dim);
  color: var(--accent-2);
}
.notif-dropdown-icon-progress_nudge {
  background: rgba(122, 167, 255, 0.12);
  color: #7AA7FF;
}
.notif-dropdown-icon-new_content {
  background: var(--accent-dim);
  color: var(--accent);
}
.notif-dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.notif-dropdown-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-dropdown-item.unread .notif-dropdown-item-title {
  font-weight: 600;
}
.notif-dropdown-item-time {
  font-size: 11px;
  color: var(--muted);
}
.notif-dropdown-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: background 120ms, color 120ms;
}
.notif-dropdown-footer:hover {
  background: var(--tint);
  color: var(--accent-hover);
}

/* Progress ring */
.progress-ring {
  position: relative;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.progress-ring svg { position: absolute; inset: 0; width: 34px; height: 34px; }
.progress-ring .val {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  font-family: "JetBrains Mono", monospace;
}

/* User chip — avatar + name + org + chev */
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 150ms, background 150ms;
  flex-shrink: 0;
}
.user-chip:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #FF4A1C, #B8341A);
  border: 0;
  display: grid; place-items: center; color: #F5F5F4;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 1px;
  white-space: nowrap;
  min-width: 0;
}
.user-name {
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.user-org {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.user-chip .chev {
  width: 14px; height: 14px;
  color: var(--muted);
  margin-right: 2px;
}

@media (max-width: 1279px) {
  .nav-search { min-width: 200px; }
  .user-meta { display: none; }
  .user-chip { padding: 4px; }
  .user-chip .chev { display: none; }
}
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-search-wrap { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 150ms, color 150ms, border-color 150ms, transform 150ms;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--accent); padding: 8px 0; }
.btn-ghost:hover { color: var(--accent-hover); }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.arrow { transition: transform 150ms; display: inline-block; }
.btn-nav {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
  transition: background 150ms, color 150ms, border-color 150ms;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-nav-primary {
  background: var(--accent);
  color: #F5F5F4;
}
.btn-nav-primary:hover { background: var(--accent-hover); }

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--space-5);
  transition: transform 150ms, border-color 150ms, box-shadow 150ms;
  position: relative;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.card-accent {
  position: relative;
  padding-left: calc(var(--space-5) + 8px);
}
.card-accent::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 4px; border-radius: 2px;
  background: var(--tier);
}

/* Role chip */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-card-alt);
  color: var(--light);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-accent { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(255,74,28,0.3); }
.chip-success { background: var(--accent-2-dim); color: var(--accent-2); border: 1px solid rgba(245,192,75,0.3); }
.chip-warn { background: rgba(245,165,36,0.12); color: var(--severity-medium); border: 1px solid rgba(245,165,36,0.3); }
.chip-info { background: rgba(122,167,255,0.12); color: var(--severity-info); border: 1px solid rgba(122,167,255,0.3); }
.chip-muted { background: var(--bg-card-alt); color: var(--muted); border: 1px solid var(--border); }

/* Badge mini */
.badge-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.badge-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
}

/* SVG icon sizing */
[data-lucide] { width: 20px; height: 20px; stroke-width: 1.5; }

/* View toggle */
.view-switcher {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 50;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  gap: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(16px);
}
.view-switcher button {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--light);
  transition: background 150ms, color 150ms;
  letter-spacing: -0.005em;
}
.view-switcher button:hover { color: var(--white); }
.view-switcher button.active {
  background: var(--accent);
  color: #0A0A0A;
}

/* Hide / show views */
.view { display: none; }
.view.active { display: block; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Subtle section label */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

/* Gradient divider accent line */
.rule-grad {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: 0;
  margin: 0;
}

/* User dropdown menu */
.user-dropdown-wrap { position: relative; }
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  overflow: visible;
}
.user-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.user-dropdown-inner {
  border-radius: 12px;
  overflow: hidden;
}
.user-dropdown-wrap:hover .user-dropdown { display: block; }
.udd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.udd-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #FF4A1C, #B8341A);
  display: grid; place-items: center;
  color: #F5F5F4;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.udd-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.udd-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.udd-email {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.udd-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}
.udd-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}
.udd-theme-label {
  font-size: 0.8125rem;
  color: var(--light);
  font-weight: 500;
}
.udd-theme-pill {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
  cursor: pointer;
}
.udd-pill-opt {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.udd-pill-opt.active {
  background: var(--accent);
  color: #0A0A0A;
}
.udd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--light);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.udd-item:hover {
  background: var(--tint-strong);
  color: var(--white);
}
.udd-signout {
  border-top: 1px solid var(--border);
}

/* Profile page */
.profile-page {
  padding-bottom: 80px;
}

/* ── Hero band ── */
.profile-hero-band {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--divider-subtle);
}
.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.profile-back:hover { color: var(--white); }
.profile-hero-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.profile-avatar-xl {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF4A1C, #B8341A);
  color: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 4px rgba(255,74,28,0.18), 0 12px 32px rgba(255,74,28,0.2);
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.profile-avatar-xl:hover {
  box-shadow: 0 0 0 4px rgba(255,74,28,0.3), 0 12px 32px rgba(255,74,28,0.3);
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 50%;
}
.profile-avatar-xl:hover .profile-avatar-overlay {
  opacity: 1;
}
.profile-avatar-xl.uploading .profile-avatar-overlay {
  opacity: 0;
}
.profile-avatar-spinner {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: avatar-spin 0.8s linear infinite;
}
@keyframes avatar-spin {
  to { transform: rotate(360deg); }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.profile-hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.profile-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.profile-heading {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0;
}
.profile-hero-email {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}
.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}
.profile-role-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255,74,28,0.25);
}
.profile-member-since {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Stats band ── */
.profile-stats-band {
  padding: 24px 0;
  border-bottom: 1px solid var(--divider-subtle);
  background: var(--bg-card);
}
.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.profile-j-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-j-big {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  font-feature-settings: "tnum";
}
.profile-j-big .of {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.profile-j-big.accent { color: var(--accent); }
.profile-j-big.accent-2 { color: var(--accent-2); }
.profile-j-lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Profile tabs ── */
.profile-tabs-band {
  border-bottom: 1px solid var(--divider-subtle);
  background: var(--bg);
  position: sticky;
  top: 56px;
  z-index: 10;
}
.profile-tabs {
  display: flex;
  gap: 4px;
}
.profile-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
  white-space: nowrap;
}
.profile-tab:hover {
  color: var(--light);
}
.profile-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.profile-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}
.profile-bookmarks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.profile-bookmarks-empty svg {
  opacity: 0.3;
  margin-bottom: 4px;
}
.profile-bookmarks-empty span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
}
.profile-bookmarks-empty p {
  font-size: 0.875rem;
  margin: 0;
  max-width: 320px;
}
.profile-bookmarks-browse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  transition: background 150ms;
}
.profile-bookmarks-browse:hover {
  background: rgba(255, 74, 28, 0.08);
}

/* ── Body / content area ── */
.profile-body {
  padding-top: 40px;
}

/* 2-column content grid */
.profile-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.profile-grid-2 .profile-section {
  margin-bottom: 24px;
}

.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.profile-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 6px;
}
.profile-section-desc {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 24px;
}
.profile-progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.profile-progress-bar {
  flex: 1;
  height: 10px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.profile-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.6s ease;
  min-width: 0;
}
.profile-progress-pct {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.profile-progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.profile-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.profile-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.profile-next-module {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.profile-next-module:hover {
  border-color: var(--accent);
  background: var(--tint);
}
.profile-next-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profile-next-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.profile-next-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-next-module svg {
  color: var(--muted);
  flex-shrink: 0;
}
.profile-cert-status {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-cert-status-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.profile-cert-status-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.profile-cert-status-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--light);
}
.profile-cert-status-pct {
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.profile-cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s;
}
.profile-cert-link:hover {
  color: var(--accent-hover);
}
.profile-cert-link.earned {
  color: var(--accent-2);
}
.profile-cert-link.earned:hover {
  color: #f7cc6b;
}
.profile-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.profile-field-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 900px) {
  .profile-stats-row { grid-template-columns: repeat(2, 1fr); }
  .profile-grid-2 { grid-template-columns: 1fr; }
  .profile-field-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .profile-hero-band { padding: 36px 0 28px; }
  .profile-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .profile-heading { font-size: 1.75rem; }
  .profile-stats-row { grid-template-columns: 1fr 1fr; }
  .profile-field-grid { grid-template-columns: 1fr; }
  .profile-field-grid-3 { grid-template-columns: 1fr; }
  .profile-body { padding-top: 24px; }
}
.profile-field {
  margin-bottom: 16px;
}
.profile-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.profile-field input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.profile-field input:focus {
  border-color: var(--accent);
}
.profile-field input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.profile-field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
.profile-cert-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.profile-cert-mini {}
.profile-cert-kicker {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.profile-cert-name-preview {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.profile-cert-title-preview {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}
.profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.profile-error {
  color: #ef4444;
  font-size: 0.875rem;
}
.profile-saved {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-2);
  font-size: 0.875rem;
}

.profile-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.profile-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.profile-toggle-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}
.profile-toggle-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}
.profile-toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  border: none;
  background: var(--bg-card-alt);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.profile-toggle-switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.profile-toggle-switch.active {
  background: var(--accent);
}
.profile-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s;
}
.profile-toggle-switch.active .profile-toggle-knob {
  transform: translateX(20px);
}

/* =================================================================
   NOTIFICATIONS PAGE
   ================================================================= */
.notif-page {
  padding-bottom: 80px;
}

.notif-hero-band {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--divider-subtle);
}
.notif-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.notif-hero-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255,74,28,0.18), 0 12px 32px rgba(255,74,28,0.12);
}
.notif-hero-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.notif-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.notif-heading {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0;
}
.notif-hero-sub {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}
.notif-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.notif-page-body {
  padding-top: 32px;
}
.notif-total-badge {
  background: var(--tint-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.notif-mark-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 74, 28, 0.3);
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}
.notif-mark-all-btn:hover {
  background: rgba(255, 74, 28, 0.2);
}
.notif-mark-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Filters */
.notif-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.notif-filter-icon {
  color: var(--muted);
  margin-right: 4px;
  flex-shrink: 0;
}
.notif-filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--tint);
  border: 1px solid var(--border);
  transition: background 150ms, color 150ms, border-color 150ms;
  white-space: nowrap;
}
.notif-filter-btn:hover {
  color: var(--white);
  border-color: var(--border-hover);
}
.notif-filter-btn.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(255, 74, 28, 0.4);
}

/* Notification list */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notif-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.notif-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 150ms, background 150ms;
  position: relative;
}
.notif-card:hover {
  border-color: var(--border-hover);
}
.notif-card.unread {
  background: var(--bg-card);
  border-color: rgba(255, 74, 28, 0.2);
}
.notif-card.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
}
.notif-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.notif-icon-milestone {
  background: var(--accent-2-dim);
  color: var(--accent-2);
}
.notif-icon-progress_nudge {
  background: rgba(122, 167, 255, 0.12);
  color: #7aa7ff;
}
.notif-icon-new_content {
  background: var(--accent-dim);
  color: var(--accent);
}
.notif-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.notif-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-type-chip {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
}
.notif-chip-milestone {
  color: var(--accent-2);
  background: var(--accent-2-dim);
}
.notif-chip-progress_nudge {
  color: #7aa7ff;
  background: rgba(122, 167, 255, 0.12);
}
.notif-chip-new_content {
  color: var(--accent);
  background: var(--accent-dim);
}
.notif-time {
  font-size: 11.5px;
  color: var(--muted);
  margin-left: auto;
  flex-shrink: 0;
}
.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}
.notif-body {
  font-size: 13px;
  color: var(--light);
  line-height: 1.5;
}
.notif-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-self: center;
}
.notif-action-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  transition: background 150ms, color 150ms;
}
.notif-action-btn:hover {
  background: var(--tint-strong);
  color: var(--accent-2);
}
.notif-dismiss-btn:hover {
  color: #ef4444;
}

/* Empty state */
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 24px;
  text-align: center;
}
.notif-empty-icon {
  color: var(--border);
}
.notif-empty-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
.notif-empty-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 360px;
}

/* Pagination */
.notif-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.notif-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--light);
  background: var(--tint);
  border: 1px solid var(--border);
  transition: background 150ms, color 150ms, border-color 150ms;
}
.notif-page-btn:hover:not(:disabled) {
  color: var(--white);
  border-color: var(--border-hover);
  background: var(--tint-strong);
}
.notif-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.notif-page-info {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .notif-hero-band { padding: 36px 0 28px; }
  .notif-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .notif-heading { font-size: 1.75rem; }
  .notif-hero-actions { align-self: stretch; justify-content: space-between; }
  .notif-page-body { padding-top: 24px; }
  .notif-card { padding: 12px; gap: 10px; }
  .notif-icon-wrap { width: 32px; height: 32px; }
}

.profile-bookmarks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-bookmark-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-bookmark-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}
.profile-bookmark-link:hover {
  border-color: var(--accent);
  background: var(--tint);
}
.profile-bookmark-thumb {
  width: 56px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card-alt);
  flex-shrink: 0;
  position: relative;
}
.profile-bookmark-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-bookmark-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profile-bookmark-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-bookmark-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.profile-bookmark-dot { margin: 0 2px; }
.profile-bookmark-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.profile-bookmark-remove:hover {
  color: #ef4444;
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
}
.profile-bookmark-remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-card-alt); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }
