/* ============================================================
   Create. Board — Internal Agency Dashboard
   Design system: Alexandria font, CSS custom properties,
   mobile-first responsive, light/dark themes.
   ============================================================ */

/* ------------------------------------------------------------
   1. Google Fonts Import
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700&display=swap');

/* ------------------------------------------------------------
   2. CSS Reset + Base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
video,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

/* ------------------------------------------------------------
   3. CSS Custom Properties — Light theme (default)
   ------------------------------------------------------------ */
:root {
  --bg: 255 255 255;
  --bg-elev: 250 250 250;
  --fg: 27 26 25;
  --fg-muted: 27 26 25;
  --fg-muted-opacity: 0.6;
  --tile: 255 255 255;
  --tile-dark: 26 29 28;
  --button-soft: 239 239 239;
  --accent: 255 107 0;
}

/* Dark theme overrides */
html.dark {
  --bg: 10 10 10;
  --bg-elev: 20 20 20;
  --fg: 245 245 245;
  --fg-muted: 245 245 245;
  --fg-muted-opacity: 0.5;
  --tile: 26 29 28;
  --tile-dark: 10 10 10;
  --button-soft: 38 38 38;
}

/* ------------------------------------------------------------
   4. Base html / body
   ------------------------------------------------------------ */
html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(var(--bg));
  color: rgb(var(--fg));
  font-family: 'Alexandria', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 320ms ease, color 320ms ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------
   5. Selection
   ------------------------------------------------------------ */
::selection {
  background: rgb(var(--accent));
  color: white;
}

/* ------------------------------------------------------------
   6. Utility Classes
   ------------------------------------------------------------ */
.text-figma {
  color: rgb(var(--fg));
}

.text-figma-muted {
  color: rgb(var(--fg-muted));
  opacity: var(--fg-muted-opacity);
}

.bg-figma {
  background: rgb(var(--bg));
}

.bg-figma-tile {
  background: rgb(var(--tile));
}

.bg-figma-soft {
  background: rgb(var(--button-soft));
}

.accent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--accent));
  flex-shrink: 0;
  display: inline-block;
}

/* ------------------------------------------------------------
   7. Tile Card Styles
   ------------------------------------------------------------ */
.tile-card {
  background: rgb(var(--tile));
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 320ms ease;
}

html.dark .tile-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.tile-card:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--accent));
  box-shadow:
    0 12px 32px rgba(255, 107, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.tile-bordered {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transition: border-color 320ms ease;
}

html.dark .tile-bordered {
  border-color: rgba(255, 255, 255, 0.08);
}

.tile-bordered:hover {
  border-color: rgb(var(--accent));
}

.tile-bordered-2 {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transition: border-color 320ms ease;
}

html.dark .tile-bordered-2 {
  border-color: rgba(255, 255, 255, 0.08);
}

.tile-bordered-2:hover {
  border-color: rgb(var(--accent));
}

/* ------------------------------------------------------------
   8. Scroll Animation — Fade Up
   ------------------------------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   9. Image Hover Zoom
   ------------------------------------------------------------ */
.img-zoom img {
  transition: transform 700ms ease;
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* ------------------------------------------------------------
   10. Sidebar (fixed left, desktop only)
   ------------------------------------------------------------ */
.sidebar {
  position: fixed;
  top: 0;
  left: 24px;
  z-index: 30;
  height: 100vh;
  width: 56px;
  display: none;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1200px) {
  .sidebar {
    display: flex;
  }
}

@media (min-width: 1536px) {
  .sidebar {
    left: max(40px, calc(50vw - 920px));
    width: 72px;
  }
}

.sidebar-logo {
  margin-top: 42px;
  height: 36px;
  width: 48px;
  flex-shrink: 0;
  display: block;
  color: rgb(var(--fg));
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
  width: 100%;
}

.sidebar-tile {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1536px) {
  .sidebar-tile {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }
}

.sidebar-tile-inner {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    border-color 300ms ease,
    box-shadow 300ms ease;
}

@media (min-width: 1536px) {
  .sidebar-tile-inner {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }
}

html.dark .sidebar-tile-inner {
  background: rgb(26, 29, 28);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-tile:hover .sidebar-tile-inner {
  border-color: rgb(var(--accent));
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.18);
}

.sidebar-tile-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Sidebar tooltip */
.sidebar-tooltip {
  position: absolute;
  left: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(-8px) scale(0.97);
  width: 280px;
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow:
    0 24px 64px -12px rgba(15, 15, 15, 0.18),
    0 2px 8px rgba(15, 15, 15, 0.04);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

@media (min-width: 1536px) {
  .sidebar-tooltip {
    left: 88px;
    width: 320px;
  }
}

html.dark .sidebar-tooltip {
  background: rgb(26, 29, 28);
  box-shadow:
    0 24px 64px -12px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-tile:hover .sidebar-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) scale(1);
}

.sidebar-tooltip h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(var(--fg));
}

.sidebar-tooltip p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  color: rgb(var(--fg));
  opacity: 0.6;
  margin-top: 8px;
}

/* ------------------------------------------------------------
   11. Header (absolute top-right, desktop only)
   ------------------------------------------------------------ */
.page-header {
  position: absolute;
  top: 36px;
  right: 80px;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1200px) {
  .page-header {
    display: flex;
  }
}

.header-date {
  font-size: 13px;
  color: rgb(var(--fg));
  opacity: 0.5;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   12. Mobile Top Bar (hidden on desktop)
   ------------------------------------------------------------ */
.mobile-topbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 1200px) {
  .mobile-topbar {
    display: none;
  }
}

.mobile-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mobile-nav-item {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgb(var(--tile));
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 300ms ease;
  cursor: pointer;
}

html.dark .mobile-nav-item {
  border-color: rgba(255, 255, 255, 0.08);
}

.mobile-nav-item:hover {
  border-color: rgb(var(--accent));
}

.mobile-nav-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ------------------------------------------------------------
   13. Main Layout
   ------------------------------------------------------------ */
.page-main {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: rgb(var(--bg));
}

.page-content {
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 16px;
}

@media (min-width: 1200px) {
  .page-content {
    padding-left: 136px;
    padding-right: 80px;
    padding-top: 180px;
  }
}

@media (min-width: 1536px) {
  .page-content {
    padding-left: 212px;
    padding-right: 212px;
    padding-top: 259px;
  }
}

.sections-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

@media (min-width: 1200px) {
  .sections-stack {
    gap: 80px;
  }
}

@media (min-width: 1536px) {
  .sections-stack {
    gap: 120px;
  }
}

/* ------------------------------------------------------------
   14. Section Layout
   ------------------------------------------------------------ */
.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1200px) {
  .section {
    gap: 24px;
  }
}

@media (min-width: 1536px) {
  .section {
    gap: 32px;
  }
}

.section-heading {
  font-size: 18px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgb(var(--fg));
  margin-bottom: 4px;
}

@media (min-width: 1200px) {
  .section-heading {
    font-size: 22px;
  }
}

@media (min-width: 1536px) {
  .section-heading {
    font-size: 26px;
  }
}

/* ------------------------------------------------------------
   15. Card Grids
   ------------------------------------------------------------ */

/* AI Tools grid */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 1200px) {
  .ai-grid {
    grid-template-columns: 1fr 1fr;
    aspect-ratio: 1496 / 429;
    gap: 16px;
  }
}

@media (min-width: 1536px) {
  .ai-grid {
    gap: 20px;
  }
}

.ai-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 1200px) {
  .ai-subgrid {
    gap: 16px;
  }
}

@media (min-width: 1536px) {
  .ai-subgrid {
    gap: 20px;
  }
}

/* Proposals grid */
.proposals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 1200px) {
  .proposals-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 1496 / 429;
    gap: 16px;
  }
}

@media (min-width: 1536px) {
  .proposals-grid {
    gap: 20px;
  }
}

.proposals-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

/* People & Growth grid */
.pg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 1200px) {
  .pg-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1536px) {
  .pg-grid {
    gap: 20px;
  }
}

/* Agency Knowledge grid */
.ak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 1200px) {
  .ak-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 1496 / 429;
    gap: 16px;
  }
}

@media (min-width: 1536px) {
  .ak-grid {
    gap: 20px;
  }
}

/* Agency Knowledge hero cards: full-width on mobile, single col on desktop */
.ak-hero {
  grid-column: span 2;
}

@media (min-width: 1200px) {
  .ak-hero {
    grid-column: span 1;
  }
}

/* Daily Inspiration grid */
.di-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1200px) {
  .di-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1536px) {
  .di-grid {
    gap: 20px;
  }
}

/* ------------------------------------------------------------
   16. Card Types — Image Cards
   ------------------------------------------------------------ */
.img-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: black;
  display: block;
  text-decoration: none;
}

.img-card.as-button {
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
}

.img-card .card-label {
  position: relative;
  color: white;
  font-size: 16px;
  line-height: 1.2;
  z-index: 1;
}

@media (min-width: 1200px) {
  .img-card .card-label {
    font-size: 18px;
  }
}

@media (min-width: 1536px) {
  .img-card .card-label {
    font-size: 24px;
  }
}

.img-card img.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.img-card:hover img.card-bg {
  transform: scale(1.05);
}

/* Gradient overlay for image cards */
.img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  height: 100%;
  min-height: 220px;
}

@media (min-width: 1200px) {
  .card-content {
    min-height: auto;
  }
}

.card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  margin-bottom: auto;
  flex-shrink: 0;
}

@media (min-width: 1536px) {
  .card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
}

/* ------------------------------------------------------------
   17. Proposal Non-Clickable Tiles
   ------------------------------------------------------------ */
.proposal-tile {
  background: rgb(var(--tile));
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

html.dark .proposal-tile {
  border-color: rgba(255, 255, 255, 0.08);
}

.proposal-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(var(--button-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proposal-icon-box img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

html.dark .proposal-icon-box img {
  filter: invert(1);
}

/* ------------------------------------------------------------
   18. RFP Pill Buttons
   ------------------------------------------------------------ */
.rfp-btn {
  display: flex;
  height: 48px;
  width: 100%;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 6px 8px 16px;
  text-decoration: none;
  transition: background 300ms ease;
  cursor: pointer;
  flex-shrink: 0;
}

.rfp-btn-soft {
  background: rgb(239, 239, 239);
  color: #1b1a19;
}

html.dark .rfp-btn-soft {
  background: rgb(38, 38, 38);
  color: white;
}

.rfp-btn-dark {
  background: #1a1d1c;
  color: white;
}

.rfp-btn-soft:hover {
  background: #e6e6e6;
}

html.dark .rfp-btn-soft:hover {
  background: rgb(50, 50, 50);
}

.rfp-btn-dark:hover {
  background: black;
}

.rfp-btn-label {
  flex: 1;
  text-align: left;
  font-size: 13px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.rfp-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: #1b1a19;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rfp-btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------
   19. Icon Cards (People / Agency)
   ------------------------------------------------------------ */
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 16 / 10;
}

.icon-card h3 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

@media (min-width: 1200px) {
  .icon-card h3 {
    font-size: 18px;
  }
}

@media (min-width: 1536px) {
  .icon-card h3 {
    font-size: 24px;
  }
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(var(--button-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

html.dark .icon-box img.white-on-dark {
  filter: brightness(0) invert(1);
}

/* ------------------------------------------------------------
   20. Daily Inspiration Cards
   ------------------------------------------------------------ */
.di-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

@media (min-width: 1200px) {
  .di-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.di-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 128px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  background: black;
}

@media (min-width: 1200px) {
  .di-thumb {
    width: 100%;
    border-radius: 12px;
  }
}

.di-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.di-card:hover .di-thumb img {
  transform: scale(1.05);
}

.di-body {
  flex: 1;
  min-width: 0;
}

.di-body h3 {
  font-size: 16px;
  line-height: 1.25;
  color: rgb(var(--fg));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .di-body h3 {
    font-size: 18px;
  }
}

@media (min-width: 1536px) {
  .di-body h3 {
    font-size: 24px;
  }
}

.di-body p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: rgb(var(--fg));
  opacity: 0.6;
  margin-top: 6px;
  display: none;
}

@media (min-width: 1200px) {
  .di-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ------------------------------------------------------------
   21. Brand Footer / Marquee
   ------------------------------------------------------------ */
.brand-footer {
  background: #1b1a19;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  animation: marquee 40s linear infinite;
  will-change: transform;
  align-items: center;
  gap: 64px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* 330×104 canvas at 45% mobile, 70% desktop */
  width: 149px;
  height: 47px;
}

@media (min-width: 1200px) {
  .brand-slot {
    width: 231px;
    height: 73px;
  }
}

.brand-slot img {
  filter: brightness(0) invert(1);
  width: 100%;
  height: 100%;
  object-fit: contain;
  select-none: none;
}

/* ------------------------------------------------------------
   22. Theme Toggle
   ------------------------------------------------------------ */
.theme-toggle {
  position: relative;
  width: 88px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgb(var(--tile));
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: border-color 300ms ease, background 320ms ease;
  flex-shrink: 0;
}

html.dark .theme-toggle {
  border-color: rgba(255, 255, 255, 0.1);
}

.toggle-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgb(var(--bg));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), background 320ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

html.dark .toggle-knob {
  transform: translateX(40px);
}

.toggle-knob svg {
  width: 18px;
  height: 18px;
  color: rgb(var(--fg));
}

.toggle-icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.toggle-icons svg {
  width: 16px;
  height: 16px;
  color: rgb(var(--fg));
  opacity: 0.4;
}

/* ------------------------------------------------------------
   23. Notification Button
   ------------------------------------------------------------ */
.notif-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 300ms ease, background 300ms ease;
  flex-shrink: 0;
}

html.dark .notif-btn {
  border-color: rgba(255, 255, 255, 0.1);
}

.notif-btn:hover {
  border-color: rgb(var(--accent));
  background: rgba(255, 107, 0, 0.05);
}

.notif-btn svg {
  width: 20px;
  height: 20px;
  color: rgb(var(--fg));
}

.notif-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--accent));
  display: none;
}

.notif-dot.visible {
  display: block;
}

.notif-panel {
  position: absolute;
  right: -96px;
  top: calc(100% + 8px);
  width: 280px;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 50;
  overflow: hidden;
  display: none;
  transform-origin: top right;
}

@media (min-width: 640px) {
  .notif-panel {
    width: 360px;
  }
}

html.dark .notif-panel {
  background: rgb(26, 29, 28);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.notif-panel.open {
  display: block;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark .notif-header {
  border-color: rgba(255, 255, 255, 0.05);
}

.notif-header h3 {
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--fg));
}

.notif-list {
  max-height: 60vh;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark .notif-item {
  border-color: rgba(255, 255, 255, 0.05);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: rgb(var(--fg));
}

.notif-item-body {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.45;
  color: rgb(var(--fg));
  opacity: 0.7;
}

.notif-item-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(var(--fg));
  opacity: 0.4;
  margin-top: 4px;
}

/* ------------------------------------------------------------
   24. Login Page
   ------------------------------------------------------------ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(var(--bg));
}

.login-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.login-logo {
  height: 40px;
  width: auto;
  color: rgb(var(--fg));
}

.login-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: rgb(var(--fg));
}

.login-sub {
  font-size: 13px;
  font-weight: 300;
  color: rgb(var(--fg));
  opacity: 0.6;
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-input {
  height: 48px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 300ms ease;
  color: #1b1a19;
}

html.dark .login-input {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgb(26, 29, 28);
  color: rgb(245, 245, 245);
}

.login-input:focus {
  border-color: rgb(var(--accent));
}

.login-input::placeholder {
  opacity: 0.4;
}

.login-error {
  font-size: 12px;
  color: #e25c3e;
  min-height: 16px;
}

html.dark .login-error {
  color: #ff8a6a;
}

.login-btn {
  height: 48px;
  width: 100%;
  border-radius: 10px;
  background: #1b1a19;
  color: white;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 300ms ease;
}

html.dark .login-btn {
  background: white;
  color: #1b1a19;
}

.login-btn:hover:not(:disabled) {
  background: black;
}

html.dark .login-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ------------------------------------------------------------
   25. Grid Column / Row Span Helpers
   ------------------------------------------------------------ */
@media (min-width: 1200px) {
  .lg-col-span-1 {
    grid-column: span 1;
  }
  .lg-col-span-2 {
    grid-column: span 2;
  }
  .lg-row-span-2 {
    grid-row: span 2;
  }
}

/* ------------------------------------------------------------
   26. Aspect Ratio + Height Helpers
   ------------------------------------------------------------ */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-card {
  aspect-ratio: 16 / 10;
}

.h-card-mobile {
  height: 220px;
}

@media (min-width: 1200px) {
  .h-card-mobile {
    height: auto;
  }
}

/* ------------------------------------------------------------
   27. Misc Layout Helpers
   ------------------------------------------------------------ */
.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.text-sm {
  font-size: 13px;
}

.text-xs {
  font-size: 11px;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.06em;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-60 {
  opacity: 0.6;
}

.shrink-0 {
  flex-shrink: 0;
}

/* Mobile logo in topbar */
.mobile-logo {
  height: 28px;
  width: auto;
  color: rgb(var(--fg));
  display: block;
}

/* Mobile controls row (theme + notif) */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ------------------------------------------------------------
   28. Prefers Reduced Motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
