/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
textarea,
select,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
[role="button"] {
  touch-action: manipulation;
}

@view-transition {
  navigation: auto;
}

@keyframes cb-page-out {
  to { opacity: 0; transform: translateY(-7px) scale(.994); filter: blur(3px); }
}
@keyframes cb-page-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(3px); }
}

::view-transition-old(root) {
  animation: .18s cubic-bezier(.4, 0, 1, 1) both cb-page-out;
}
::view-transition-new(root) {
  animation: .28s cubic-bezier(.16, 1, .3, 1) .06s both cb-page-in;
}

:root {
  --indigo:       #6366f1;
  --indigo-dark:  #4f46e5;
  --indigo-dim:   #eef2ff;
  --text:         #111827;
  --text-sub:     #374151;
  --text-muted:   #6b7280;
  --text-faint:   #9ca3af;
  --border:       #e5e7eb;
  --border-light: #f3f4f6;
  --bg:           #f9fafb;
  --white:        #ffffff;
  --red:          #ef4444;
  --red-bg:       #fef2f2;
  --green:        #22c55e;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 1px 4px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
  --shadow-md:    0 4px 8px rgba(0,0,0,.06), 0 12px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 16px rgba(0,0,0,.08), 0 24px 48px rgba(0,0,0,.12);
}

html {
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Public Home ───────────────────────────────────── */
.home-body {
  position: relative;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    linear-gradient(90deg, rgba(17,24,39,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,24,39,.035) 1px, transparent 1px),
    linear-gradient(135deg, #effbf8 0%, #f8f7ff 44%, #fff7ed 100%);
  background-size: 34px 34px, 34px 34px, auto;
  color: #111827;
  overflow-x: hidden;
}

.home-body::before {
  content: none;
}

.home-body main,
.home-body .home-nav {
  transition: opacity .16s cubic-bezier(.16,1,.3,1), transform .16s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}

.home-body.page-transitioning main,
.home-body.page-transitioning .home-nav {
  opacity: 0;
  transform: translateY(-8px) scale(.992);
}

.home-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  height: 64px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 .7rem 0 1rem;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 999px;
  box-shadow: 0 20px 60px rgba(17,24,39,.12);
  backdrop-filter: blur(18px);
  animation: homeDropIn .7s cubic-bezier(.16,1,.3,1) both;
}

.home-brand,
.home-links,
.home-actions,
.home-hero-actions {
  display: flex;
  align-items: center;
}

.home-brand {
  gap: .55rem;
  text-decoration: none;
  min-width: 190px;
}

.home-brand img:first-child {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(124,58,237,.22);
}

.home-brand-text {
  display: inline-flex;
  align-items: baseline;
  color: #111827;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-brand-text span {
  color: #6d28d9;
}

.home-links {
  gap: .25rem;
  padding: .25rem;
  background: #f3f4f6;
  border-radius: 999px;
}

.home-links a,
.home-link-btn,
.home-primary-btn,
.home-secondary,
.home-cta {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-links a {
  color: #4b5563;
  padding: .55rem .85rem;
  border-radius: 999px;
  font-size: .9rem;
}

.home-links a:hover {
  color: #111827;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17,24,39,.08);
}

.home-actions { gap: .45rem; }

.home-link-btn,
.home-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 1rem;
  font-size: .92rem;
}

.home-link-btn { color: #374151; }
.home-link-btn:hover { background: #f3f4f6; color: #111827; }

.home-primary-btn {
  color: #fff;
  background: #111827;
  box-shadow: 0 12px 28px rgba(17,24,39,.2);
}

.home-primary-btn:hover,
.home-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(17,24,39,.24);
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 132px max(32px, calc((100vw - 1180px) / 2)) 64px;
  background:
    linear-gradient(90deg, rgba(17,24,39,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,24,39,.04) 1px, transparent 1px),
    linear-gradient(122deg, rgba(239,251,248,.96) 0%, rgba(255,255,255,.76) 42%, rgba(246,241,255,.92) 100%);
  background-size: 38px 38px, 38px 38px, auto;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(20,184,166,.22), transparent 44%) left top / 58% 100% no-repeat,
    linear-gradient(315deg, rgba(124,58,237,.18), transparent 48%) right top / 55% 100% no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.72));
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 96px -8vw auto auto;
  width: min(760px, 58vw);
  height: min(560px, 50vw);
  z-index: -1;
  transform: rotate(-7deg);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(17,24,39,.08), rgba(255,255,255,.18)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0 12px, rgba(255,255,255,0) 12px 24px);
  border: 1px solid rgba(17,24,39,.06);
  box-shadow: 0 40px 120px rgba(79,70,229,.12);
  animation: homePanelDrift 12s ease-in-out infinite alternate;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: #0f766e;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #14b8a6;
  box-shadow: 0 0 0 6px rgba(20,184,166,.12);
}

.home-hero h1 {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(3.35rem, 5.6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: #111827;
  margin-bottom: 1.4rem;
  max-width: 100%;
}

.home-hero h1 span {
  display: block;
  line-height: 1.02;
  animation: homeFadeUp .75s cubic-bezier(.16,1,.3,1) both;
}
.home-hero h1 span:nth-child(2) { animation-delay: .08s; }
.home-hero h1 span:nth-child(3) { animation-delay: .16s; }
.home-hero h1 span:nth-child(3) {
  width: fit-content;
  padding-bottom: .08em;
  background: linear-gradient(92deg, #111827 0%, #4f46e5 52%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero-copy { min-width: 0; }
.home-kicker,
.home-lede,
.home-hero-actions {
  animation: homeFadeUp .75s cubic-bezier(.16,1,.3,1) both;
}
.home-kicker { animation-delay: .02s; }
.home-lede { animation-delay: .24s; }
.home-hero-actions { animation-delay: .34s; }

.home-lede {
  max-width: 610px;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.55;
  font-weight: 500;
  color: #4b5563;
}

.home-hero-actions {
  gap: .75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.home-cta,
.home-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 1.25rem;
}

.home-cta {
  gap: .55rem;
  color: #fff;
  background: #111827;
  box-shadow: 0 16px 34px rgba(17,24,39,.18);
}

.home-secondary {
  color: #111827;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(17,24,39,.12);
}

.home-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(17,24,39,.24);
  box-shadow: 0 16px 34px rgba(17,24,39,.1);
}

.home-showcase {
  position: relative;
  min-width: 0;
  animation: homeFadeScale .9s cubic-bezier(.16,1,.3,1) .22s both;
}

.home-product {
  min-width: 0;
  border: 1px solid rgba(17,24,39,.1);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,255,255,.86);
  box-shadow: 0 30px 80px rgba(17,24,39,.18);
  backdrop-filter: blur(10px);
}

.home-showcase::before {
  content: "";
  position: absolute;
  inset: 42px -26px 28px auto;
  width: 42%;
  border-radius: 80px;
  background: linear-gradient(160deg, rgba(124,58,237,.24), rgba(20,184,166,.18));
  z-index: -1;
}

.home-float-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: .15rem;
  min-width: 176px;
  padding: .9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(17,24,39,.1);
  box-shadow: 0 18px 44px rgba(17,24,39,.14);
  backdrop-filter: blur(14px);
}

.home-float-card span {
  color: #0f766e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-float-card strong {
  color: #111827;
  font-size: .95rem;
}

.home-float-card--top {
  top: -32px;
  left: 34px;
}

.home-float-card--bottom {
  right: 24px;
  bottom: -34px;
}

.home-product-top {
  min-height: 62px;
  display: grid;
  grid-template-columns: 12px 12px 12px 1fr;
  align-items: center;
  gap: .55rem;
  padding: 0 1.1rem;
  background: #111827;
}

.home-product-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.home-product-top span:nth-child(1) { background: #f97316; }
.home-product-top span:nth-child(2) { background: #facc15; }
.home-product-top span:nth-child(3) { background: #22c55e; }

.home-product-search {
  justify-self: end;
  width: min(320px, 100%);
  padding: .7rem 1rem;
  border-radius: 999px;
  color: #9ca3af;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.home-product-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 430px;
  min-width: 0;
}

.home-product-side {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1.35rem;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  min-width: 0;
}

.home-product-side b {
  font-size: .8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-product-side span {
  padding: .7rem .8rem;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.home-product-side .active {
  color: #0f766e;
  background: #ccfbf1;
}

.home-product-list {
  display: grid;
  gap: 1rem;
  align-content: center;
  padding: 1.35rem;
}

.home-product-list article {
  padding: 1.1rem;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17,24,39,.07);
}

.home-product-list article:hover {
  transform: translateY(-3px);
  border-color: #99f6e4;
  box-shadow: 0 18px 38px rgba(15,118,110,.12);
}

.home-product-list article {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-product-list small {
  color: #7c3aed;
  font-weight: 800;
}

.home-product-list strong {
  display: block;
  margin: .3rem 0;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: #111827;
}

.home-product-list p { color: #6b7280; }

.home-discover,
.home-university,
.home-band,
.home-flow,
.home-community {
  padding: 76px max(32px, calc((100vw - 1180px) / 2));
}

.home-discover {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 2rem;
  align-items: center;
  background:
    radial-gradient(circle at 86% 18%, rgba(124,58,237,.12), transparent 24%),
    radial-gradient(circle at 12% 70%, rgba(20,184,166,.12), transparent 26%),
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(236,254,255,.88));
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.home-discover h2 {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
}

.home-marquee span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: 999px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(17,24,39,.06);
}

.home-marquee span:nth-child(2n) { background: #ecfeff; color: #0f766e; }
.home-marquee span:nth-child(3n) { background: #f5f3ff; color: #7c3aed; }
.home-marquee span:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 18px 36px rgba(17,24,39,.1);
}

.home-university {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .72fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: center;
  border-bottom: 1px solid rgba(17,24,39,.08);
  background:
    linear-gradient(90deg, rgba(17,24,39,.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,24,39,.055) 1px, transparent 1px),
    radial-gradient(circle at 14% 18%, rgba(20,184,166,.18), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(124,58,237,.22), transparent 32%),
    radial-gradient(circle at 86% 82%, rgba(59,130,246,.14), transparent 34%),
    linear-gradient(135deg, #eefdfb 0%, #f4efff 48%, #eef6ff 100%);
  background-size: 34px 34px, 34px 34px, auto;
  color: #111827;
}

.home-university-copy {
  max-width: 720px;
}

.home-university .home-kicker {
  color: #6d28d9;
}

.home-university-copy h2 {
  margin: 0;
  max-width: 680px;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.65rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.home-university-copy p:not(.home-kicker) {
  max-width: 650px;
  margin-top: 1rem;
  color: #5b6472;
  font-size: clamp(1rem, 1.65vw, 1.18rem);
  font-weight: 750;
  line-height: 1.7;
}

.home-university-copy strong {
  color: #111827;
  white-space: nowrap;
}

.home-university-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: clamp(1rem, 3vw, 2rem);
}

.home-university-logo {
  width: min(260px, 48vw);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 22px 42px rgba(17,24,39,.16));
  transition: transform .24s ease, filter .24s ease;
}

.home-university-mark:hover .home-university-logo {
  transform: translateY(-5px) scale(1.025);
  filter: drop-shadow(0 30px 54px rgba(17,24,39,.2));
}

.home-band {
  background:
    linear-gradient(90deg, rgba(17,24,39,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,24,39,.035) 1px, transparent 1px),
    linear-gradient(135deg, #fbfdff 0%, #f4fbff 54%, #fff7ed 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.home-section-heading p {
  color: #7c3aed;
  font-weight: 800;
}

.home-section-heading h2,
.home-flow h2,
.home-community h2 {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-feature-grid article {
  padding: 1.35rem;
  min-height: 210px;
  border-radius: 22px;
  border: 1px solid rgba(17,24,39,.08);
  background: #fff;
  box-shadow: 0 16px 40px rgba(17,24,39,.08);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.home-feature-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(20,184,166,.45);
}

.home-feature-grid span {
  color: #f97316;
  font-weight: 900;
}

.home-feature-grid h3 {
  margin: 2.2rem 0 .7rem;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.home-feature-grid p,
.home-community p {
  color: #5b6472;
  font-size: 1rem;
}

.home-flow {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items: start;
  background:
    radial-gradient(circle at 80% 20%, rgba(124,58,237,.28), transparent 32%),
    radial-gradient(circle at 12% 80%, rgba(20,184,166,.2), transparent 28%),
    #111827;
  color: #fff;
}

.home-flow::before {
  content: "";
  position: absolute;
  inset: auto -8% -42% 44%;
  height: 260px;
  transform: rotate(-6deg);
  border-radius: 40px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 10px, transparent 10px 20px);
}

.home-flow ol {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .85rem;
  list-style: none;
}

.home-flow li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  font-weight: 800;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.home-flow li:hover {
  transform: translateX(8px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.2);
}

.home-flow li span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: #a7f3d0;
}

.home-community {
  display: grid;
  grid-template-columns: 1fr .8fr auto;
  gap: 2rem;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17,24,39,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,24,39,.04) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(20,184,166,.2), transparent 28%),
    radial-gradient(circle at 88% 60%, rgba(124,58,237,.14), transparent 30%),
    #ecfeff;
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.home-cta-dark { white-space: nowrap; }

.home-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  filter: blur(10px);
  transition:
    opacity .78s cubic-bezier(.16,1,.3,1),
    transform .78s cubic-bezier(.16,1,.3,1),
    filter .78s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.home-reveal[data-reveal="left"] {
  transform: translate3d(-38px, 18px, 0) scale(.985);
}

.home-reveal[data-reveal="right"] {
  transform: translate3d(38px, 18px, 0) scale(.985);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@keyframes homeDropIn {
  from { opacity: 0; transform: translate(-50%, -18px) scale(.98); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes homeFadeUp {
  from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(8px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@keyframes homeFadeScale {
  from { opacity: 0; transform: translate3d(24px, 28px, 0) scale(.94); filter: blur(10px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes homePanelDrift {
  from { transform: rotate(-7deg) translate3d(0, 0, 0); }
  to { transform: rotate(-4deg) translate3d(-18px, 18px, 0); }
}

@keyframes homeMobileDropIn {
  from { opacity: 0; transform: translateY(-18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-nav,
  .home-hero::after,
  .home-hero h1 span,
  .home-kicker,
  .home-lede,
  .home-hero-actions,
  .home-showcase,
  .home-product,
  .home-float-card,
  .home-reveal {
    animation: none !important;
    transition: none !important;
  }

  .home-reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 980px) {
  .home-nav {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 24px;
  }
  .home-links { display: none; }
  .home-brand { min-width: 0; }
  .home-brand-text { font-size: 1.1rem; }
  .home-actions { margin-left: auto; }
  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 112px;
    min-height: auto;
  }
  .home-product-grid { grid-template-columns: 1fr; }
  .home-float-card { display: none; }
  .home-product-side {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .home-feature-grid,
  .home-discover,
  .home-university,
  .home-flow,
  .home-community {
    grid-template-columns: 1fr;
  }
  .home-marquee { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .home-nav {
    left: 10px;
    right: 10px;
    transform: none;
    width: auto;
    height: auto;
    min-height: 52px;
    padding: .5rem .5rem .5rem .65rem;
    animation-name: homeMobileDropIn;
  }
  .home-brand { gap: .35rem; }
  .home-brand img:first-child { width: 28px; height: 28px; }
  .home-brand-text { font-size: .9rem; }
  .home-actions { gap: .25rem; flex-shrink: 0; }
  .home-link-btn,
  .home-primary-btn {
    min-height: 36px;
    padding: 0 .6rem;
    font-size: .78rem;
  }
  .home-nav .home-primary-btn {
    display: inline-flex !important;
    position: static;
  }
  .home-hero {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100vw;
    overflow: hidden;
  }
  .home-hero-copy { max-width: calc(100vw - 40px); }
  .home-lede { max-width: min(330px, calc(100vw - 40px)); }
  .home-product,
  .home-product-list,
  .home-product-list article {
    max-width: 100%;
    min-width: 0;
  }
  .home-product { width: calc(100vw - 40px); }
  .home-product-grid,
  .home-product-side { width: 100%; min-width: 0; }
  .home-product-side span { flex: 0 0 auto; white-space: nowrap; }
  .home-product-side span:nth-of-type(n+4) { display: none; }
  .home-hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
    line-height: 1.06;
  }
  .home-lede { font-size: 1rem; line-height: 1.5; }
  .home-cta,
  .home-secondary { min-height: 44px; padding: 0 1rem; }
  .home-hero-actions { margin-top: 1.25rem; gap: .5rem; }
  .home-section-heading h2,
  .home-flow h2,
  .home-community h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .home-feature-grid h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
  .home-feature-grid article { min-height: auto; padding: 1rem; }
  .home-product-top { grid-template-columns: 10px 10px 10px; }
  .home-product-search { display: none; }
  .home-section-heading {
    display: block;
  }
  .home-band,
  .home-flow,
  .home-discover,
  .home-university,
  .home-community {
    padding-left: 20px;
    padding-right: 20px;
  }
  .home-feature-grid article {
    min-height: auto;
    padding: 1rem 1rem 1.2rem;
  }
  .home-category-grid article {
    min-height: auto;
    padding: 1rem;
  }
  .home-community { gap: 1.25rem; }
  .home-cta-dark {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .home-workflow { padding-left: 20px; padding-right: 20px; }
  .home-footer-tagline { padding-left: 0; }
}

/* ── Landing Footer ───────────────────────────────── */
.home-footer {
  background:
    linear-gradient(90deg, rgba(17,24,39,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,24,39,.05) 1px, transparent 1px),
    linear-gradient(180deg, #ecfeff 0%, #dde8f2 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.home-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.home-footer-brand {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.home-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: #111827;
  letter-spacing: -.01em;
}
.home-footer-logo span span { color: #7c3aed; }
.home-footer-logo img { border-radius: 6px; opacity: .9; }

.home-footer-tagline {
  font-size: .73rem;
  color: #9ca3af;
  margin: 0;
  padding-left: 34px;
}

.home-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}

.home-footer-security {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  color: #6b7280;
  margin: 0;
}
.home-footer-security svg { color: #0d9488; flex-shrink: 0; }

.home-footer-copy {
  font-size: .7rem;
  color: #6b7280;
  margin: 0;
}

@media (max-width: 640px) {
  .home-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 20px;
  }
  .home-footer-right { align-items: flex-start; }
}

/* ── Header ───────────────────────────────────────── */
.header {
  background: #1e1b4b;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -.02em;
  flex-shrink: 0;
  text-decoration: none;
}
.logo svg { flex-shrink: 0; }
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: none;
  justify-content: flex-end;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
  padding-left: .75rem;
  border-left: 1px solid rgba(255,255,255,.15);
}
.user-name {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── User menu dropdown ───────────────────────────── */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.user-menu-trigger:hover { background: rgba(255,255,255,.08); }
.user-menu-trigger:focus-visible { outline: 2px solid rgba(255,255,255,.4); }
.user-menu-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,.5);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}
.user-menu-trigger.open .user-menu-chevron {
  transform: rotate(180deg);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 188px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 300;
  padding: .25rem 0;
  overflow: hidden;
}
.user-dropdown.open { display: block; }
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 100%;
  padding: .5rem .875rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  text-align: left;
  transition: background .1s, color .1s;
}
.user-dropdown-item:hover { background: #f5f3ff; color: #7c3aed; }
.user-dropdown-item.danger:hover { background: #fef2f2; color: var(--red); }
.user-dropdown-divider { height: 1px; background: var(--border-light); margin: .25rem 0; }

/* ── Avatar ───────────────────────────────────────── */
.avatar { display: inline-block; flex-shrink: 0; }
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.02em;
}

/* ── Card author avatar ───────────────────────────── */
.card-author::before { display: none; }

/* ── Profile Modal ────────────────────────────────── */
.modal-profile {
  max-width: 520px;
  padding: 0;
}

/* Header */
.pmodal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.pmodal-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: .25rem;
}
.pmodal-subtitle {
  font-size: .78rem;
  color: var(--text-faint);
  font-weight: 400;
}
.pmodal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.pmodal-close:hover { background: #fef2f2; border-color: #fca5a5; color: var(--red); }
.pmodal-close:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }

/* Avatar row */
.pmodal-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.375rem 1.75rem;
}
.pmodal-avatar-ring {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ddd6fe;
}
.pmodal-avatar-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #ede9fe;
  display: flex; align-items: center; justify-content: center;
}
.pmodal-avatar-img img { width: 100%; height: 100%; object-fit: cover; }
.pmodal-avatar-img .avatar-initials {
  width: 80px !important; height: 80px !important;
  font-size: 1.625rem !important;
  border-radius: 50% !important;
}
.pmodal-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: opacity .18s;
}
.pmodal-avatar-ring:hover .pmodal-avatar-overlay { opacity: 1; }
.pmodal-avatar-name {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.pmodal-avatar-btns { display: flex; gap: .5rem; align-items: center; margin-bottom: .375rem; }
.pmodal-avatar-hint { font-size: .7rem; color: var(--text-faint); }

/* Shared action buttons (light/ghost for inside profile modal) */
.pfield-btn-secondary {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 .75rem;
  font-size: .75rem; font-weight: 600; font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-sub);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.pfield-btn-secondary:hover { background: var(--bg); border-color: #d1d5db; }
.pfield-btn-ghost {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 .75rem;
  font-size: .75rem; font-weight: 600; font-family: inherit;
  border: 1.5px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pfield-btn-ghost:hover { background: var(--bg); color: var(--text-sub); }

.pmodal-divider { height: 1px; background: var(--border-light); margin: 0 1.75rem; }

/* Form */
.pmodal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.375rem 1.75rem 1.5rem;
}
.pfield-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
}
.pfield {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.pfield-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: .01em;
}
.pfield-required { color: var(--red); margin-left: 2px; }

/* Input wrap */
.pfield-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pfield-icon {
  position: absolute;
  left: .75rem;
  color: #9ca3af;
  flex-shrink: 0;
  pointer-events: none;
}
.pfield-input {
  width: 100%;
  height: 40px !important;
  border: 1.5px solid #e2e4e9;
  border-radius: 8px;
  padding: 0 .875rem 0 2.375rem !important;
  font-size: .8375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pfield-input::placeholder { color: #b0b7c3; }
.pfield-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
  background: #fdfcff;
}
.pfield-input:focus-visible { outline: none; }
.pfield-input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.08); }

/* Readonly / disabled email */
.pfield-input-wrap--readonly { background: #f9fafb; border-radius: 8px; }
.pfield-input--readonly {
  background: #f4f5f7;
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: #e8eaed;
}
.pfield-input--readonly:focus { border-color: #e8eaed; box-shadow: none; }
.pfield-readonly-badge {
  position: absolute;
  right: .75rem;
  font-size: .67rem;
  font-weight: 600;
  color: #9ca3af;
  background: #eef0f3;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Select */
.pfield-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pfield-select {
  width: 100%;
  height: 40px !important;
  border: 1.5px solid #e2e4e9;
  border-radius: 8px;
  padding: 0 2.25rem 0 2.375rem !important;
  font-size: .8375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.pfield-select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.pfield-chevron {
  position: absolute;
  right: .75rem;
  color: #9ca3af;
  pointer-events: none;
}

/* ── Profile faculty custom dropdown (pfacet) ─── */
.pfacet {
  position: relative;
}
.pfacet-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
  transition: color .15s;
}
.pfacet-trigger {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 .875rem 0 2.375rem;
  border: 1.5px solid #e2e4e9;
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: .8375rem;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.pfacet-trigger:hover { border-color: #c4c8d4; }
.pfacet-trigger.open,
.pfacet-trigger:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.pfacet-trigger.open ~ .pfacet-icon,
.pfacet:focus-within .pfacet-icon { color: #7c3aed; }
.pfacet-value { flex: 1; text-align: left; }
.pfacet-chevron {
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform .2s;
}
.pfacet-trigger.open .pfacet-chevron { transform: rotate(180deg); }
.pfacet-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 300;
  overflow: hidden;
}
.pfacet-dropdown.open { display: block; }
.pfacet-scroll {
  overflow-y: auto;
  max-height: 220px;
  padding: .25rem 0;
}
.pfacet-scroll::-webkit-scrollbar { width: 4px; }
.pfacet-scroll::-webkit-scrollbar-track { background: transparent; }
.pfacet-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.pfacet-option {
  padding: .5rem .875rem;
  font-size: .8375rem;
  cursor: pointer;
  transition: background .1s, color .1s;
  color: var(--text);
}
.pfacet-option:hover { background: #f5f3ff; color: #7c3aed; }
.pfacet-option.selected { color: #111827; font-weight: 800; background: #f8fafc; }

/* Phone prefix — wrapper owns the border + focus ring */
.pfield-phone-wrap {
  gap: 0;
  border: 1.5px solid #e2e4e9;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.pfield-phone-wrap:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.pfield-phone-prefix {
  display: flex; align-items: center;
  height: 40px;
  padding: 0 .625rem 0 .875rem;
  background: #f4f5f7;
  border: none;
  border-right: 1.5px solid #e2e4e9;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  user-select: none;
  transition: border-color .15s;
}
.pfield-phone-wrap:focus-within .pfield-phone-prefix {
  border-right-color: #7c3aed;
}
.pfield-input--phone {
  padding-left: .75rem !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.pfield-input--phone:focus {
  border-color: transparent !important;
  box-shadow: none !important;
  background: #fdfcff;
}

/* Error text */
.pfield-error {
  font-size: .72rem;
  color: var(--red);
  font-weight: 500;
  min-height: .875rem;
}

/* Footer */
.pmodal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .625rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--border-light);
  margin-top: .25rem;
}
.pmodal-save-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 38px; padding: 0 1.25rem;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .8375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.pmodal-save-btn:hover { background: #6d28d9; box-shadow: 0 4px 12px rgba(124,58,237,.35); }
.pmodal-save-btn:active { transform: scale(.98); }
.pmodal-save-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Search ───────────────────────────────────────── */
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 600px;
}
.search-icon {
  position: absolute;
  left: .875rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-faint);
  width: 16px;
  height: 16px;
}
.search-input,
input[type=text].search-input {
  width: 100%;
  height: 38px !important;
  border: 1.5px solid rgba(255,255,255,.15) !important;
  border-radius: var(--radius-sm);
  padding: 0 1rem 0 2.75rem !important;
  font-size: .8125rem;
  font-family: inherit;
  outline: none;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-input::placeholder { color: rgba(255,255,255,.4) !important; }
.search-input:focus {
  border-color: #a78bfa !important;
  box-shadow: 0 0 0 3px rgba(167,139,250,.2) !important;
  background: rgba(255,255,255,.12) !important;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: 38px;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
  white-space: nowrap;
  letter-spacing: -.01em;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.btn-primary:hover { background: var(--indigo-dark); box-shadow: 0 4px 12px rgba(99,102,241,.35); }

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg); border-color: #d1d5db; }

.btn-ghost {
  background: #0d9488;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(13,148,136,.3);
}
.btn-ghost:hover { background: #0f766e; box-shadow: 0 4px 12px rgba(13,148,136,.4); }

.btn-danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239,68,68,.25);
}
.btn-danger:hover { background: #dc2626; }

.btn-sm { height: 32px; padding: 0 .75rem; font-size: .8125rem; }

/* ── Filters bar ──────────────────────────────────── */
/* ── Filter Bar ───────────────────────────────────── */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 90;
}
.filters-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: .875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Category chips */
.filter-chips-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.filter-section-label {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.category-pills {
  display: flex;
  gap: .3rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
  scroll-behavior: smooth;
  background: none;
}
.category-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  height: 32px;
  padding: 0 .875rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
  letter-spacing: -.01em;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none;
}
.pill:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #f5f3ff;
}
.pill:focus-visible {
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
  border-color: #7c3aed;
}
.pill.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,.3);
}

/* Faceted filters */
.facet-filters {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}
.facet {
  position: relative;
}
.facet-label {
  display: block;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: .25rem;
  padding-left: .125rem;
}
.facet-trigger {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 34px;
  padding: 0 .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
  min-width: 140px;
  outline: none;
}
.facet-trigger:hover {
  border-color: #7c3aed;
  background: #fafaff;
}
.facet-trigger:focus-visible {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.facet-trigger.open {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.facet-value {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.facet-chevron {
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform .2s;
}
.facet-trigger.open .facet-chevron { transform: rotate(180deg); }

.facet-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 200;
  padding: .25rem 0;
  overflow: hidden;
}
.facet-dropdown.open { display: block; }

.facet-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .875rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  transition: background .1s, color .1s;
  white-space: nowrap;
}
.facet-option:hover { background: #f5f3ff; color: #7c3aed; }
.facet-option.selected { color: #111827; font-weight: 800; background: #f8fafc; }


/* hidden native selects — kept for JS compat */
.select-filter-hidden { display: none; }

/* legacy class kept in case JS references it */
.select-filter {
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 .75rem;
  font-size: .8125rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
.select-filter:focus { border-color: #7c3aed; }

/* ── Main / Grid ──────────────────────────────────── */
.main {
  max-width: 100%;
  margin: 0 auto;
  padding: 2.5rem 3rem;
}
.results-bar { margin-bottom: 1.125rem; }
.results-count { font-size: .8125rem; font-weight: 600; color: var(--text-muted); }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

/* ── Card ─────────────────────────────────────────── */
/* Card image */
.card-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/7;
  background: #f3f4f6;
  border: 1px solid rgba(17, 24, 39, .07);
  flex-shrink: 0;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}
.card:hover .card-img img { transform: scale(1.04); }

/* Detail modal image */
.detail-image-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f4f6;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(17, 24, 39, .08);
  box-shadow: 0 4px 18px rgba(17, 24, 39, .09);
}
.detail-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image upload area */
.img-upload-area {
  border: 1.5px dashed #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: #fafafa;
}
.img-upload-area:hover,
.img-upload-area.drag-over { border-color: #6366f1; background: #f5f3ff; }
.img-upload-input { display: none; }
.img-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 1.6rem 1rem;
  color: #9ca3af;
}
.img-upload-placeholder svg { color: #c4b5fd; }
.img-upload-placeholder span { font-size: .82rem; font-weight: 600; color: #6b7280; }
.img-upload-placeholder small { font-size: .72rem; }
.img-upload-preview {
  position: relative;
  aspect-ratio: 16/9;
}
.img-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-remove-btn {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.img-remove-btn:hover { background: rgba(0,0,0,.8); }

.card {
  background: var(--white);
  border: 1px solid #ececf0;
  border-radius: var(--radius-lg);
  padding: 1.375rem 1.5rem 1.25rem;
  cursor: pointer;
  /* All three properties animate together for a cohesive feel */
  transition: transform    220ms cubic-bezier(.25,.46,.45,.94),
              box-shadow   220ms cubic-bezier(.25,.46,.45,.94),
              border-color 180ms ease;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  position: relative;
  outline: none;
  /* Promote to its own compositor layer to prevent layout shift */
  will-change: transform;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 220ms ease;
  /* Richer shadow fades in on hover instead of abruptly appearing */
  box-shadow: 0 8px 28px rgba(124,58,237,.13), 0 4px 12px rgba(0,0,0,.07);
  pointer-events: none;
}

/* ── Hover: gently scale up + lift ───────────────── */
.card:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: #ddd6fe;
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07);
}
.card:hover::before { opacity: 1; }

/* ── Active/tap: subtle press-down ───────────────── */
.card:active {
  transform: translateY(0) scale(0.995);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition-duration: 80ms;
}

.card:focus-visible {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}
.card.kapandi {
  opacity: .6;
  filter: saturate(.6);
}

/* ── Respect reduced-motion preference ───────────── */
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: border-color 180ms ease, box-shadow 180ms ease;
    will-change: auto;
  }
  .card:hover  { transform: none; }
  .card:active { transform: none; }
  .card::before { transition: none; }
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}
.card-badges { display: flex; gap: .3rem; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 .5rem;
  border-radius: 6px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  text-transform: uppercase;
}
.badge-ders-notu     { background: #dbeafe; color: #1e40af; }
.badge-etkinlik      { background: #ccfbf1; color: #0f766e; }
.badge-staj          { background: #dcfce7; color: #166534; }
.badge-ikinci-el     { background: #ffedd5; color: #9a3412; }
.badge-kayip-bulundu { background: #fee2e2; color: #991b1b; }
.badge-genel         { background: #f3f4f6; color: #374151; }
.badge-faculty       { background: #f5f3ff; color: #6d28d9; }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .35rem;
}
.status-dot--aktif {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.status-dot--kapandi {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

/* Status dots inside Durum dropdown */
.facet-status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: .5rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.facet-status-dot--aktif  { background: #22c55e; }
.facet-status-dot--kapandi { background: #ef4444; }

.card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.card:hover .card-title { color: #5b21b6; }

.card-desc {
  font-size: .8125rem;
  color: #52586a;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Expiry inline metadata ──────────────────────── */
/* No background, no border, no box — pure text color */
.card-expiry {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .74rem;
  font-weight: 500;
  line-height: 1;
  /* ok / far deadline default */
  color: #16a34a;
  opacity: .85;
  transition: opacity .18s, color .18s;
}
.card:hover .card-expiry { opacity: 1; }

.card-expiry--ok     { color: #16a34a; }
.card-expiry--warn   { color: #d97706; }
.card-expiry--urgent { color: #dc2626; }
.card-expiry--muted  { color: #9ca3af; }

/* Hover: slightly deepen each urgency tone */
.card:hover .card-expiry--ok     { color: #15803d; }
.card:hover .card-expiry--warn   { color: #b45309; }
.card:hover .card-expiry--urgent { color: #b91c1c; }
.card:hover .card-expiry--muted  { color: #6b7280; }


/* Form hint text & label annotation */
.form-label-hint {
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-faint);
  margin-left: .25rem;
}
.field-hint {
  font-size: .72rem;
  color: var(--text-faint);
  line-height: 1.5;
  margin-top: .125rem;
}

/* Date input styling */
input[type=date] {
  height: 44px;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 .875rem;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}
input[type=date]:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: var(--white);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  margin-top: auto;
  border-top: 1.5px solid #ededf0;
  gap: .5rem;
}

/* Author — feels like metadata */
.card-author {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}
.card-author-avatar {
  flex-shrink: 0;
  opacity: .85;
}
.card-author-name {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

/* Date — always right-aligned */
.card-date {
  display: flex;
  align-items: center;
  gap: .275rem;
  font-size: .71rem;
  font-weight: 500;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.card-date-icon {
  opacity: .55;
  flex-shrink: 0;
}

/* ── Empty state ──────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  padding: 5rem 1rem;
  color: var(--text-muted);
  text-align: center;
}
.empty-icon {
  width: 64px; height: 64px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
}
.empty-state p { font-size: 1rem; font-weight: 700; color: var(--text-sub); }
.empty-sub { font-size: .875rem; color: var(--text-faint); }
.hidden { display: none !important; }

/* ── Modal overlay ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  animation: slideUp .2s cubic-bezier(.16,1,.3,1);
}
/* Scroll wrapper for modals that split header + scrollable body */
.modal-scroll-body {
  overflow-y: auto;
  flex: 1;
  padding: 1.75rem;
  min-height: 0;
}
.modal-scroll-body::-webkit-scrollbar { width: 5px; }
.modal-scroll-body::-webkit-scrollbar-track { background: transparent; }
.modal-scroll-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
/* Profile modal: override cascade — .modal comes before .modal-profile so specificity fix needed */
.modal.modal-profile {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pmodal-scroll-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.pmodal-scroll-body::-webkit-scrollbar { width: 5px; }
.pmodal-scroll-body::-webkit-scrollbar-track { background: transparent; }
.pmodal-scroll-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* Form modal panel: flex column so header is sticky and body scrolls */
.modal-form-panel {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-form-panel .form-modal-header {
  margin: 0;
  flex-shrink: 0;
}
/* Detail modal */
.modal-not-found {
  max-width: 340px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
}
.not-found-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.not-found-title { font-size: 1.05rem; font-weight: 700; color: #111827; margin: 0; }
.not-found-desc  { font-size: .85rem; color: #6b7280; margin: 0; line-height: 1.5; }
.not-found-close { margin-top: .25rem; align-self: stretch; }

.modal-detail { max-width: 620px; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.modal-detail .modal-scroll-body { padding: 2rem; }
.modal-detail .modal-header { margin-bottom: .5rem; }

/* Form actions bar: lives outside scroll body as a flex sibling */
.modal-form-panel > .form-actions {
  flex-shrink: 0;
  margin: 0;
  padding: 1rem 1.75rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light);
  background: #fafafd;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.375rem;
}
.modal-header h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all .15s;
  line-height: 1;
}
.modal-close:hover { background: #fee2e2; border-color: #fca5a5; color: var(--red); }

/* ── Form modal header ────────────────────────────── */
.form-modal-header {
  margin: -1.75rem -1.75rem 1.625rem;
  padding: 1.125rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #fafafd;
  align-items: center !important;
}

.form-modal-heading { flex: 1; min-width: 0; }

.form-modal-title-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .2rem;
}

.form-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--indigo-dim);
  color: var(--indigo);
  flex-shrink: 0;
}

.form-modal-subtitle {
  font-size: .775rem;
  color: var(--text-faint);
  font-weight: 400;
  line-height: 1.4;
}

/* ── Form ─────────────────────────────────────────── */
#listing-form { display: flex; flex-direction: column; gap: 1.125rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; flex: 1; }

/* Date picker */
.date-picker-wrap { position: relative; }
.dp-display {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .62rem .85rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #9ca3af;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.dp-display svg { flex-shrink: 0; color: #9ca3af; }
.dp-display:hover { border-color: #6366f1; }
.dp-display:focus-visible { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.dp-display.dp-has-value { color: #111827; }
.dp-display.dp-has-value svg { color: #6366f1; }

.dp-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(17,24,39,.13);
  padding: .85rem;
  min-width: 280px;
  user-select: none;
}
.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}
.dp-nav {
  width: 28px; height: 28px;
  border: none; background: transparent;
  border-radius: 6px;
  color: #6b7280;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.dp-nav:hover { background: #f3f4f6; color: #111827; }
.dp-month-year { font-size: .85rem; font-weight: 700; color: #111827; }
.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: .3rem;
}
.dp-weekdays span {
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  color: #9ca3af;
  padding: .2rem 0;
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dp-cell { aspect-ratio: 1; }
.dp-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s, color .1s;
}
.dp-day:hover:not(.dp-past) { background: #eef2ff; color: #4338ca; }
.dp-day.dp-past { color: #d1d5db; cursor: not-allowed; }
.dp-day.dp-today { font-weight: 700; color: #6366f1; }
.dp-day.dp-sel {
  background: #6366f1;
  color: #fff !important;
  font-weight: 700;
}
.dp-footer {
  margin-top: .6rem;
  padding-top: .55rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: flex-end;
}
.dp-clear {
  border: none; background: transparent;
  font-size: .78rem; font-weight: 600;
  color: #9ca3af; cursor: pointer;
  padding: .25rem .5rem; border-radius: 6px;
  transition: color .12s, background .12s;
}
.dp-clear:hover { color: #ef4444; background: #fef2f2; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: -.01em;
}
.required { color: var(--red); margin-left: 2px; }

input[type=text], select, textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .625rem .875rem;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input[type=text]::placeholder,
textarea::placeholder { color: var(--text-faint); }

input[type=text]:focus, select:focus, textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: var(--white);
}
input.error, select.error, textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}
/* Give form inputs proper height */
input[type=text], select { height: 44px; }
textarea { resize: vertical; min-height: 110px; }

.field-error {
  font-size: .75rem;
  color: var(--red);
  font-weight: 500;
  min-height: 1rem;
}

/* White inputs inside the listing form (modal bg is already white) */
#listing-form input[type=text],
#listing-form select,
#listing-form textarea,
#listing-form input[type=date] {
  background: var(--white);
}

/* ── Form custom select (fsel) ───────────────────────── */
.fsel-hidden { display: none !important; }
.fsel-wrap { position: relative; }
.fsel-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 44px;
  padding: 0 .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.fsel-trigger:hover { border-color: #c4c8d4; }
.fsel-trigger.open,
.fsel-trigger:focus-visible {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.fsel-trigger.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.08); }
.fsel-value { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel-value--placeholder { color: var(--text-faint); }
.fsel-chevron { color: var(--text-muted); flex-shrink: 0; transition: transform .15s; }
.fsel-trigger.open .fsel-chevron { transform: rotate(180deg); }
.fsel-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
  z-index: 500;
  padding: .25rem 0;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}
.fsel-dropdown.open { display: block; }
.fsel-option {
  padding: .5rem .875rem;
  font-size: .875rem;
  color: var(--text);
  cursor: pointer;
  transition: background .1s;
}
.fsel-option:hover { background: #f5f3ff; color: #7c3aed; }
.fsel-option.selected { color: #111827; font-weight: 800; background: #f8fafc; }
.fsel-option[data-value=""]:not(.selected) { color: var(--text-faint); }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .625rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--border-light);
  margin-top: .25rem;
}

/* ── Detail modal ─────────────────────────────────── */
.modal-detail-badges { display: flex; gap: .375rem; flex-wrap: wrap; }

.detail-header {
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f1f5;
}
.detail-overline {
  font-size: .695rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--indigo);
  opacity: .7;
  margin: 0 0 .5rem;
  line-height: 1;
}
#detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}
.detail-meta {
  font-size: .8rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* ── Detail metadata grid ─────────────────────────── */
.dmeta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 0;
}
.dmeta-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .625rem .875rem;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
}
.dmeta-item:nth-child(even):not(.dmeta-item--full) { border-right: none; }
.dmeta-item--full { grid-column: 1 / -1; border-right: none; }
.dmeta-item:last-child { border-bottom: none; }
.dmeta-item:nth-last-child(2):not(.dmeta-item--full) { border-bottom: none; }

.dmeta-label {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-faint);
  line-height: 1;
}
.dmeta-value {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.dmeta-status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dmeta-dot--aktif   { background: #16a34a; }
.dmeta-dot--kapandi { background: #9ca3af; }
.dmeta-status--aktif   { color: #16a34a; }
.dmeta-status--kapandi { color: var(--text-muted); }
.dmeta-remaining--ok     { color: #16a34a; }
.dmeta-remaining--warn   { color: #d97706; }
.dmeta-remaining--urgent { color: #dc2626; }
.dmeta-remaining--muted  { color: var(--text-faint); }
.detail-desc-section {
  margin: 0 0 1.75rem;
  padding-top: 1.375rem;
  border-top: 1px solid #f0f1f5;
}

.detail-description {
  font-size: .9375rem;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  padding-left: 1rem;
  border-left: 3px solid #e0d7fe;
  border-radius: 1px;
}
/* ── Detail views row (outside grid) ─────────────── */
.dmeta-views-row {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .5rem;
  margin-bottom: 1.375rem;
  padding: .375rem .5rem;
  color: var(--text-faint);
  font-size: .75rem;
  font-weight: 600;
}

/* ── Detail Contact Panel (dc-*) ─────────────────── */
#detail-contact-box { margin-bottom: 1.375rem; }
.dc-panel {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
}
.dc-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem .875rem;
  background: #fafbff;
  border-bottom: 1px solid #f0f1f5;
}
.dc-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #eef2ff;
  color: var(--indigo);
  flex-shrink: 0;
}
.dc-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dc-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .75rem .875rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background .12s;
}
.dc-row:last-child { border-bottom: none; }
.dc-row:hover { background: #fafbff; }
.dc-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #eef2ff;
  color: var(--indigo);
  flex-shrink: 0;
}
.dc-row-body {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  flex: 1;
  min-width: 0;
}
.dc-row-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dc-row-value {
  font-size: .925rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-row-actions {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
}
.dc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-muted);
  font-size: .725rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .12s, color .12s, background .12s;
  line-height: 1;
}
.dc-action-btn:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: #f5f7ff;
}
.dc-action-primary {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}
.dc-action-primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
.dc-copy-btn.copied {
  border-color: var(--green);
  color: var(--green);
  background: #f0fdf4;
}

/* ── Toast ────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: .75rem 1.375rem;
  border-radius: 99px;
  font-size: .875rem;
  font-weight: 600;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  animation: slideUp .2s cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.toast.success { background: #166534; }
.toast.error   { background: #991b1b; }

/* ── Detail delete warning banner ────────────────── */
.detail-delete-warning {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .625rem .875rem;
  margin-bottom: 1.125rem;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.5;
}
.detail-delete-warning--info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
}
.detail-delete-warning--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}
.detail-delete-warning--urgent {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

/* ── MLD deletion countdown ───────────────────────── */
.mld-delete-cd {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .7rem;
  font-weight: 600;
}
.mld-delete-cd--muted  { color: var(--text-faint); }
.mld-delete-cd--warn   { color: #b45309; }
.mld-delete-cd--urgent { color: #dc2626; }

/* ── Scrollbar ────────────────────────────────────── */
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {

  /* ════════════════════════════════════════
     GLOBAL
  ════════════════════════════════════════ */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* ════════════════════════════════════════
     HEADER — iki satır flex
     Satır 1: logo (sol) + aksiyonlar (sağ)
     Satır 2: arama (tam genişlik)
  ════════════════════════════════════════ */
  .header-inner {
    flex-wrap: wrap;
    padding: .625rem 1rem;
    height: auto;
    gap: .375rem .5rem;
    align-items: center;
  }

  .logo {
    flex: 1 1 auto;
    gap: .375rem;
    min-width: 0;
  }
  .logo img:first-child { width: 28px; height: 28px; }
  .logo img:last-child  { height: 26px; display: block; }

  .header-actions {
    flex: 0 0 auto;
    gap: .3rem;
  }

  /* Arama — satır 2, tam genişlik */
  .search-wrap {
    order: 10;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Kullanıcı adını gizle */
  .user-name { display: none; }

  /* Butonlar — sadece ikon */
  #btn-favorites, #btn-my-listings, #btn-new {
    font-size: 0;
    padding: 0;
    width: 34px;
    height: 34px;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
  }
  #btn-favorites svg,
  #btn-my-listings svg,
  #btn-new svg { flex-shrink: 0; }

  /* User menu — kompakt */
  .user-menu {
    padding-left: .375rem;
    border-left: 1px solid rgba(255,255,255,.15);
  }
  .user-menu-trigger { padding: .2rem .3rem; }

  /* Search input */
  .search-input,
  input[type=text].search-input {
    height: 36px !important;
    font-size: .8125rem;
  }

  /* ════════════════════════════════════════
     FILTERS BAR
  ════════════════════════════════════════ */
  .filters-bar {
    position: relative; /* header yüksekliği değişken, sticky yerine normal akış */
  }

  .filters-inner {
    padding: .625rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: .625rem;
  }

  /* Kategori satırı */
  .filter-chips-wrap {
    flex-direction: column;
    gap: .3rem;
    width: 100%;
  }
  .filter-section-label {
    font-size: .6rem;
  }
  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 9px;
    gap: .3rem;
    width: 100%;
    background:
      linear-gradient(90deg, rgba(20, 184, 166, .75), rgba(124, 58, 237, .75)) var(--scroll-thumb-x, 0px) bottom / var(--scroll-thumb-w, 72px) 3px no-repeat,
      linear-gradient(90deg, rgba(15, 23, 42, .09), rgba(15, 23, 42, .05)) left bottom / var(--scroll-track-w, 100%) 3px no-repeat;
  }
  .category-pills::-webkit-scrollbar {
    display: none;
  }

  .pill {
    height: 30px;
    padding: 0 .75rem;
    font-size: .75rem;
  }

  /* Fakülte + Durum — yan yana, tam genişlik */
  .facet-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    width: 100%;
  }
  .facet { width: 100%; }
  .facet-trigger {
    width: 100%;
    min-width: 0;
    height: 32px;
    font-size: .75rem;
    padding: 0 .5rem;
  }
  .facet-label { font-size: .58rem; }

  /* Dropdown'lar mobilde taşmasın */
  .facet-dropdown {
    left: 0;
    right: auto;
    min-width: 100%;
    max-width: calc(100vw - 2rem);
  }

  /* ════════════════════════════════════════
     CONTENT / LİSTİNGS
  ════════════════════════════════════════ */
  .main { padding: .875rem 1rem 5rem; }
  .results-bar { margin-bottom: .75rem; }
  .listings-grid { grid-template-columns: 1fr; gap: .75rem; }

  /* Kart */
  .card {
    padding: 1rem 1rem .875rem;
    border-radius: 12px;
  }
  .card:hover { transform: none; }
  .card:active { transform: scale(.98); }

  .card-title { font-size: .9rem; }
  .card-desc  { font-size: .8rem; -webkit-line-clamp: 2; }

  .card-footer {
    padding-top: .625rem;
    flex-wrap: wrap;
    gap: .375rem;
  }
  .card-author-name { font-size: .68rem; max-width: 100px; }
  .card-date        { font-size: .68rem; }

  /* Badge'ler */
  .badge { font-size: .64rem; height: 20px; padding: 0 .4rem; }

  /* ════════════════════════════════════════
     MODALLER
  ════════════════════════════════════════ */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: 92vh;
    padding: 1.25rem;
  }
  .modal-detail .modal-scroll-body { padding: 1.25rem; }

  /* Formlar */
  .form-row   { grid-template-columns: 1fr; }
  .pfield-row { grid-template-columns: 1fr; }
  .modal-footer       { flex-direction: column; gap: .75rem; align-items: stretch; }
  .modal-footer-right { justify-content: flex-end; }

  /* Profil modalı */
  .pmodal-header, .pmodal-form { padding-left: 1.25rem; padding-right: 1.25rem; }
  .pmodal-avatar-row  { padding: 1.125rem 1.25rem; }
  .pmodal-divider     { margin: 0 1.25rem; }

  /* Detail metadata grid */
  .dmeta-grid { grid-template-columns: 1fr 1fr; }

  /* My Listings drawer */
  .mld-drawer { width: 100% !important; }
}

/* ══════════════════════════════════════════════════
   My Listings Modal (mld-*)
══════════════════════════════════════════════════ */

.mld-modal {
  max-width: 580px;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  overflow: hidden;
}

/* ── Header ───────────────────────────────────────── */
.mld-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  background: #1e1b4b;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mld-header-left { display: flex; align-items: center; gap: .75rem; }
.mld-header-icon { color: #a5b4fc; flex-shrink: 0; }
.mld-title { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.mld-subtitle { font-size: .72rem; color: rgba(165,180,252,.85); font-weight: 500; margin-top: .1rem; }
.mld-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  color: rgba(255,255,255,.75);
  font-size: 1.125rem; line-height: 1;
  cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.mld-close:hover { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.3); }
.mld-close:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: 2px; }

/* ── Toolbar ──────────────────────────────────────── */
.mld-toolbar {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1.125rem;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  background: var(--white);
}
.mld-search-wrap { position: relative; flex: 1 1 0%; min-width: 0; }
.mld-search-icon {
  position: absolute;
  left: .75rem; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
}
/* ID seçici — global input[type=text] specificity'sini geçer */
#mld-search {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 .875rem 0 2.375rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#mld-search::placeholder { color: #9ca3af; }
#mld-search:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.mld-filter-wrap {
  position: relative;
  flex-shrink: 0;
}
.mld-filter-trigger {
  display: flex;
  align-items: center;
  gap: .375rem;
  height: 40px;
  padding: 0 .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .8125rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  min-width: 100px;
  transition: border-color .15s, box-shadow .15s;
}
.mld-filter-trigger:hover { border-color: #c4c8d4; }
.mld-filter-trigger.open,
.mld-filter-trigger:focus-visible {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.mld-filter-value { flex: 1; text-align: left; }
.mld-filter-chevron {
  color: var(--text-muted);
  transition: transform .15s;
  flex-shrink: 0;
}
.mld-filter-trigger.open .mld-filter-chevron { transform: rotate(180deg); }
.mld-filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
  z-index: 1000;
  padding: .25rem 0;
  overflow: hidden;
}
.mld-filter-dropdown.open { display: block; }
.mld-filter-option {
  padding: .5rem .875rem;
  font-size: .8125rem;
  color: var(--text);
  cursor: pointer;
  transition: background .1s;
}
.mld-filter-option:hover { background: #f5f3ff; color: #7c3aed; }
.mld-filter-option.selected { color: #111827; font-weight: 800; background: #f8fafc; }

/* ── Scrollable body ──────────────────────────────── */
.mld-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .75rem;
  background: var(--bg);
}
.mld-body::-webkit-scrollbar { width: 5px; }
.mld-body::-webkit-scrollbar-track { background: transparent; }
.mld-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── List ─────────────────────────────────────────── */
.mld-list { display: flex; flex-direction: column; gap: .375rem; }

/* ── Item ─────────────────────────────────────────── */
.mld-item {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1.5px solid #eceaf8;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.mld-item:hover {
  border-color: #c4b5fd;
  box-shadow: 0 4px 16px rgba(124,58,237,.1);
  transform: translateY(-1px);
}
.mld-item--kapandi { background: #fafafa; }
.mld-item--kapandi:hover { opacity: 1; }

.mld-item-indicator {
  width: 5px;
  flex-shrink: 0;
  align-self: stretch;
}
.mld-item-indicator--aktif   { background: linear-gradient(180deg, #22c55e, #16a34a); }
.mld-item-indicator--kapandi { background: linear-gradient(180deg, #9ca3af, #6b7280); }

.mld-item-body {
  flex: 1;
  min-width: 0;
  padding: .875rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
}
.mld-item-title {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.mld-item--kapandi .mld-item-title { color: var(--text-muted); }

.mld-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .72rem;
  color: var(--text-faint);
  font-weight: 500;
}
.mld-item-cat {
  background: #ede9fe;
  color: #6d28d9;
  padding: .15rem .45rem;
  border-radius: 5px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.mld-item--kapandi .mld-item-cat { background: #f3f4f6; color: #9ca3af; }
.mld-item-sep { opacity: .3; }
.mld-item-date { color: var(--text-faint); }

/* ── Action buttons ───────────────────────────────── */
.mld-item-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: .625rem .625rem;
  flex-shrink: 0;
}
.mld-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #f9f9fb;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .13s, border-color .13s, color .13s;
}
.mld-action-btn:hover         { background: #f5f3ff; border-color: #c4b5fd; color: #7c3aed; }
.mld-action-btn:focus-visible { outline: 2px solid rgba(124,58,237,.3); outline-offset: 1px; }
.mld-action-btn--close:hover  { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.mld-action-btn--reopen:hover { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.mld-action-btn--danger:hover { background: #fff1f2; border-color: #fca5a5; color: #dc2626; }

/* ── Loading ──────────────────────────────────────── */
.mld-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 3rem 1rem;
  color: var(--text-faint);
  font-size: .8125rem;
  font-weight: 500;
}
.mld-spinner {
  width: 28px; height: 28px;
  border: 2.5px solid #e9d5ff;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: mldSpin .7s linear infinite;
}
@keyframes mldSpin { to { transform: rotate(360deg); } }

/* ── Empty state ──────────────────────────────────── */
.mld-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 3.5rem 1rem;
  text-align: center;
}
.mld-empty-title { font-size: .9375rem; font-weight: 700; color: var(--text-sub); }
.mld-empty-sub   { font-size: .8125rem; color: var(--text-faint); line-height: 1.6; }

/* ── MLD contact reveal ───────────────────────────── */
.mld-item-body { cursor: pointer; user-select: none; }
.mld-item-contact {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  overflow: hidden;
  max-height: 6rem;
  opacity: 1;
  margin-top: .3rem;
  transition: max-height .25s ease, opacity .2s ease, margin-top .2s ease;
}
.mld-item-contact.mld-contact--closed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}
.mld-contact-entry {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: var(--indigo);
  font-weight: 500;
}

/* ── Contact Method Block (form) ─────────────────── */
/* ── Contact Group (form) ────────────────────────── */
.contact-method-block { display: flex; flex-direction: column; gap: 0; }
.contact-method-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}
.contact-method-label .required { color: var(--red); }

.contact-fields {
  border: 1px solid #e4e6ed;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  transition: border-color .15s;
}
.contact-fields:focus-within { border-color: #a5b4fc; }

.contact-field-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  transition: background .12s;
}
.contact-field-row:last-child { border-bottom: none; }
.contact-field-row:focus-within { background: #fafbff; }
.contact-field-row:focus-within::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%; bottom: 22%;
  width: 2px;
  background: var(--indigo);
  border-radius: 1px;
}

.contact-field-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #c4c9d8;
  transition: color .12s;
}
.contact-field-row:focus-within .contact-field-icon { color: var(--indigo); }

.contact-field-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: .2rem;
}
.contact-field-label {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #b8bec9;
  line-height: 1;
  cursor: text;
  transition: color .12s;
  user-select: none;
}
.contact-field-row:focus-within .contact-field-label { color: var(--indigo); }

.contact-fields .contact-field-input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  height: auto !important;
  font-size: .875rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  width: 100%;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.contact-fields .contact-field-input:focus {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.contact-fields .contact-field-input::placeholder { color: #c8cdd8; }

.contact-hint {
  font-size: .72rem;
  color: var(--text-faint);
  margin-top: .35rem;
  line-height: 1.5;
  padding-left: .125rem;
}

/* ── Custom Confirm Dialog ────────────────────────── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17,24,39,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.confirm-overlay.confirm-open {
  opacity: 1;
  pointer-events: all;
}
.confirm-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.1);
  width: 100%;
  max-width: 400px;
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(12px) scale(.97);
  transition: transform .22s cubic-bezier(.16,1,.3,1), opacity .22s ease;
  opacity: 0;
}
.confirm-overlay.confirm-open .confirm-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.confirm-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.confirm-icon-wrap--danger  { background: #fee2e2; color: #dc2626; }
.confirm-icon-wrap--warning { background: #fef3c7; color: #d97706; }
.confirm-icon-wrap--success { background: #dcfce7; color: #16a34a; }
.confirm-body { display: flex; flex-direction: column; gap: .35rem; }
.confirm-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.confirm-message {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: .625rem;
  padding-top: .25rem;
}
.confirm-btn {
  height: 36px;
  padding: 0 1.125rem;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
}
.confirm-btn--cancel {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-muted);
}
.confirm-btn--cancel:hover { background: #f3f4f6; border-color: #d1d5db; }
.confirm-btn--ok {
  background: var(--red);
  color: #fff;
}
.confirm-btn--ok:hover { background: #b91c1c; }
.confirm-btn--ok--warning {
  background: #d97706;
  color: #fff;
}
.confirm-btn--ok--warning:hover { background: #b45309; }
.confirm-btn--ok--success {
  background: #16a34a;
  color: #fff;
}
.confirm-btn--ok--success:hover { background: #15803d; }


/* ── Card favorite button ───────────────────────────── */
.card-top-right {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
.card-fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  color: #d1d5db;
  padding: 0;
  transition: color .15s, background .15s;
}
.card-fav-btn:hover { color: #6366f1; background: #eef2ff; }
.card-fav-btn--active { color: #6366f1; }
.card-fav-btn--active:hover { color: #4338ca; }

/* ── Detail modal favorite button ──────────────────── */
.detail-header-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.detail-fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  border-radius: 8px;
  color: #9ca3af;
  padding: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.detail-fav-btn:hover { color: #6366f1; border-color: #c7d2fe; background: #eef2ff; }
.detail-fav-btn--active { color: #6366f1; border-color: #c7d2fe; }
.detail-fav-btn--active:hover { color: #4338ca; }

.detail-share-wrap { position: relative; }
.detail-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  border-radius: 8px;
  color: #6b7280;
  padding: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.detail-share-btn:hover { color: #6366f1; border-color: #c7d2fe; background: #eef2ff; }

.share-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17,24,39,.12);
  padding: .35rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 160px;
  z-index: 50;
}
.share-popover-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.share-popover-btn:hover { background: #f3f4f6; color: #111827; }
.share-popover-wa { color: #16a34a; }
.share-popover-wa:hover { background: #f0fdf4; color: #15803d; }

/* ── Favorites button ───────────────────────────────── */
.btn-fav {
  background: #db2777;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(219,39,119,.3);
}
.btn-fav:hover { background: #be185d; box-shadow: 0 4px 12px rgba(219,39,119,.4); }

/* ── Favorites search input (icon padding) ──────────── */
#fav-search {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 .875rem 0 2.375rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#fav-search::placeholder { color: #9ca3af; }
#fav-search:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

/* ── Pagination ─────────────────────────────────────── */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
}
.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.pagination-btn:hover:not(:disabled) { border-color: #6366f1; color: #6366f1; background: #f0f1ff; }
.pagination-btn:disabled { opacity: .35; cursor: not-allowed; }
.pagination-info {
  font-size: .82rem;
  color: #6b7280;
  min-width: 10rem;
  text-align: center;
}

/* ── Card view count ────────────────────────────────── */
.card-views {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .72rem;
  color: #9ca3af;
  margin-left: auto;
}

/* ── Dashboard refresh ────────────────────────────── */
.dashboard-body {
  min-height: 100vh;
  font-family: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background:
    linear-gradient(rgba(20, 184, 166, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, .055) 1px, transparent 1px),
    radial-gradient(circle at 9% 10%, rgba(20, 184, 166, .2), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(124, 58, 237, .18), transparent 34%),
    radial-gradient(circle at 84% 86%, rgba(255, 122, 89, .14), transparent 26%),
    linear-gradient(135deg, #eefcf8 0%, #f8f7ff 48%, #fffaf3 100%);
  background-size: 38px 38px, 38px 38px, auto, auto, auto, auto;
  background-attachment: fixed;
}

.dashboard-body .header {
  top: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 184, 166, .28), transparent 34%),
    linear-gradient(135deg, #101827 0%, #151d2e 56%, #251849 100%);
  box-shadow: 0 28px 70px rgba(17, 24, 39, .2);
  overflow: visible;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dashboard-body .header-inner {
  height: 72px;
  padding: 0 1rem 0 1.2rem;
  gap: .95rem;
}

.dashboard-body .logo {
  gap: .65rem;
}

.dashboard-body .logo img:first-child {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(124, 58, 237, .28);
}

.dashboard-body .logo img:last-child {
  height: 48px;
  max-width: 188px;
  object-fit: contain;
}

.dashboard-body .search-wrap {
  max-width: 390px;
  margin-left: auto;
}

.dashboard-body .search-input,
.dashboard-body input[type=text].search-input {
  height: 44px !important;
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, .14) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.dashboard-body .search-input::placeholder {
  color: rgba(255, 255, 255, .5) !important;
}

.dashboard-body .search-input:focus {
  border-color: rgba(45, 212, 191, .72) !important;
  background: rgba(255, 255, 255, .12) !important;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .14), inset 0 1px 0 rgba(255, 255, 255, .1) !important;
}

.dashboard-body .btn {
  height: 42px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.dashboard-body .btn:hover {
  transform: translateY(-1px);
}

.dashboard-body .btn-primary {
  background: linear-gradient(135deg, #14b8a6 0%, #4f46e5 100%);
  box-shadow: 0 14px 30px rgba(79, 70, 229, .28);
}

.dashboard-body .btn-primary:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #4f46e5 100%);
  box-shadow: 0 18px 36px rgba(79, 70, 229, .34);
}

.dashboard-body .btn-ghost {
  background: linear-gradient(135deg, rgba(8,145,178,.22) 0%, rgba(20,184,166,.22) 100%);
  border-color: rgba(45, 212, 191, .28);
  color: #fff;
  box-shadow: none;
}

.dashboard-body .btn-ghost:hover {
  background: linear-gradient(135deg, rgba(8,145,178,.34) 0%, rgba(20,184,166,.34) 100%);
  border-color: rgba(45, 212, 191, .5);
  box-shadow: 0 12px 28px rgba(20, 184, 166, .18);
}

.dashboard-body .btn-fav {
  background: linear-gradient(135deg, rgba(124,58,237,.24) 0%, rgba(236,72,153,.2) 100%);
  border-color: rgba(196, 181, 253, .28);
  color: #fff;
  box-shadow: none;
}

.dashboard-body .btn-fav:hover {
  background: linear-gradient(135deg, rgba(124,58,237,.36) 0%, rgba(236,72,153,.32) 100%);
  border-color: rgba(196, 181, 253, .5);
  box-shadow: 0 12px 28px rgba(124, 58, 237, .2);
}

.dashboard-body .user-menu {
  border-left-color: rgba(255, 255, 255, .12);
}

.dashboard-body .user-menu-trigger {
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
}

.dashboard-body .user-menu-trigger:hover {
  background: rgba(255, 255, 255, .14);
}

.dashboard-body .user-dropdown,
.dashboard-body .facet-dropdown {
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(17, 24, 39, .16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.campus-header-card {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 46px rgba(17, 24, 39, .1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.campus-header-inner {
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Quick-access links */
.campus-quick-links {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}
.campus-ql-btn {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .44rem .86rem;
  border-radius: 10px;
  border: 1.5px solid rgba(99, 102, 241, .25);
  background: rgba(238, 242, 255, .9);
  color: #4338ca;
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.campus-ql-btn svg { color: #6366f1; flex-shrink: 0; }
.campus-ql-btn:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #3730a3;
  box-shadow: 0 4px 14px rgba(99, 102, 241, .18);
}
.campus-ql-btn:hover svg { color: #4338ca; }

.campus-tabs-bar {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 0;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  display: flex;
  gap: .1rem;
}
.campus-tab {
  padding: .55rem 1.1rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  letter-spacing: -.01em;
  transition: color .15s;
}
.campus-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #4f46e5;
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transition: opacity .15s;
}
.campus-tab:hover { color: #374151; }
.campus-tab.active { color: #4338ca; }
.campus-tab.active::after { opacity: 1; }

.campus-tab-panel {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(3px);
  transition:
    opacity .24s cubic-bezier(.16, 1, .3, 1),
    transform .24s cubic-bezier(.16, 1, .3, 1),
    filter .24s ease;
}

.campus-tab-panel--active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.campus-tab-panel[hidden] {
  display: none !important;
}

.dashboard-body .filters-bar {
  position: relative;
  top: auto;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto 0;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 46px rgba(17, 24, 39, .1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dashboard-body .filters-inner {
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .95rem;
  flex-wrap: wrap;
  min-width: 0;
}
.dashboard-body .filter-chips-wrap {
  flex: 1;
  min-width: 0;
}
.dashboard-body .facet-filters {
  flex-shrink: 0;
}

.dashboard-body .filter-section-label,
.dashboard-body .facet-label {
  color: #768095;
}

.dashboard-body .filter-chips-wrap,
.dashboard-body .category-pills {
  min-width: 0;
}

.dashboard-body .filter-chips-wrap {
  grid-area: chips;
  position: relative;
}

.dashboard-body .filter-chips-wrap::after {
  content: none;
}

.dashboard-body .category-pills {
  max-width: 100%;
  padding: 2px 0;
  scroll-behavior: smooth;
}

.dashboard-body .facet-filters {
  grid-area: facets;
  justify-content: flex-end;
}

.dashboard-body .pill {
  height: 34px;
  padding: 0 .82rem;
  border-color: rgba(17, 24, 39, .08);
  background: rgba(255, 255, 255, .72);
  color: #4b5563;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.dashboard-body .pill:hover {
  border-color: rgba(20, 184, 166, .38);
  color: #0f766e;
  background: rgba(204, 251, 241, .72);
  box-shadow: 0 10px 24px rgba(20, 184, 166, .14);
}

.dashboard-body .pill.active {
  border-color: transparent;
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, .22);
}

.dashboard-body .facet-trigger {
  height: 36px;
  min-width: 142px;
  border-radius: 14px;
  border-color: rgba(17, 24, 39, .08);
  background: rgba(255, 255, 255, .78);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58);
}

.dashboard-body .facet-trigger:hover,
.dashboard-body .facet-trigger.open,
.dashboard-body .facet-trigger:focus-visible {
  border-color: rgba(124, 58, 237, .34);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .08);
}

.dashboard-body .facet-option:hover {
  background: rgba(204, 251, 241, .62);
  color: #0f766e;
}

.dashboard-body .facet-option.selected {
  background: #f8fafc;
  color: #111827;
  font-weight: 800;
}

.dashboard-body .main {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  padding: 1.6rem 0 5rem;
}

.dashboard-body .results-bar {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 1rem;
}

.dashboard-body .results-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .8rem;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: #4b5563;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
}

.dashboard-body .listings-grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.1rem;
}

.dashboard-body .card {
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 22px;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .84)),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .09), transparent 36%);
  box-shadow: 0 18px 42px rgba(17, 24, 39, .08);
  gap: .72rem;
}

.dashboard-body .card::before {
  box-shadow: 0 24px 54px rgba(17, 24, 39, .13), 0 10px 26px rgba(20, 184, 166, .09);
}

.dashboard-body .card:hover {
  border-color: rgba(20, 184, 166, .36);
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(17, 24, 39, .12);
}

.dashboard-body .card:focus-visible {
  border-color: rgba(20, 184, 166, .55);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .12), 0 22px 58px rgba(17, 24, 39, .12);
}

.dashboard-body .card.kapandi {
  opacity: .72;
}

.dashboard-body .badge {
  height: 24px;
  border-radius: 999px;
  padding: 0 .62rem;
  letter-spacing: .03em;
}

.dashboard-body .badge-ders-notu     { background: #e0f2fe; color: #075985; }
.dashboard-body .badge-etkinlik      { background: #ccfbf1; color: #0f766e; }
.dashboard-body .badge-staj          { background: #ede9fe; color: #6d28d9; }
.dashboard-body .badge-ikinci-el     { background: #ffedd5; color: #9a3412; }
.dashboard-body .badge-kayip-bulundu { background: #ffe4e6; color: #be123c; }
.dashboard-body .badge-genel         { background: #f1f5f9; color: #334155; }
.dashboard-body .badge-faculty       { background: #dcfce7; color: #166534; }

.dashboard-body .card-title {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  color: #111827;
}

.dashboard-body .card:hover .card-title {
  color: #0f766e;
}

.dashboard-body .card-desc {
  color: #5d6678;
}

.dashboard-body .card-footer {
  border-top-color: rgba(17, 24, 39, .08);
}

.dashboard-body .card-author-name,
.dashboard-body .card-date,
.dashboard-body .card-views {
  color: #7b8495;
}

.dashboard-body .card-fav-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.dashboard-body .card-fav-btn:hover,
.dashboard-body .card-fav-btn--active {
  color: #6366f1;
  background: #eef2ff;
}

.dashboard-body .empty-state {
  margin: 1rem auto 0;
  padding: 4rem 1.5rem;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 24px 60px rgba(17, 24, 39, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dashboard-body .empty-icon {
  border-radius: 20px;
  background: linear-gradient(135deg, #ccfbf1, #ede9fe);
  border-color: rgba(17, 24, 39, .06);
}

.dashboard-body .empty-state p {
  font-family: "Sora", "Manrope", sans-serif;
  color: #111827;
}

.dashboard-body .empty-sub {
  color: #6b7280;
}

.dashboard-body .pagination-btn {
  border-radius: 14px;
  border-color: rgba(17, 24, 39, .08);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 12px 28px rgba(17, 24, 39, .08);
}

.dashboard-body .pagination-btn:hover:not(:disabled) {
  border-color: rgba(20, 184, 166, .4);
  color: #0f766e;
  background: rgba(204, 251, 241, .68);
}

@media (max-width: 768px) {
  .dashboard-body {
    background-size: 32px 32px, 32px 32px, auto, auto, auto, auto;
  }

  .dashboard-body .header {
    top: 0;
    width: 100%;
    margin: 0;
    border-radius: 0 0 22px 22px;
    border-left: 0;
    border-right: 0;
  }

  .dashboard-body .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    padding: .65rem .9rem;
    gap: .4rem;
  }

  .dashboard-body .logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    overflow: hidden;
    gap: .28rem;
  }

  .dashboard-body .logo img:first-child {
    width: 30px;
    height: 30px;
  }

  .dashboard-body .logo img:last-child {
    height: 28px;
    max-width: 110px;
  }

  .dashboard-body .btn {
    border-radius: 12px;
  }

  .dashboard-body .header-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    flex-shrink: 0;
  }

  .dashboard-body .user-menu {
    padding-left: .2rem;
  }

  .dashboard-body .user-menu-trigger {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }

  .dashboard-body .user-menu-trigger > svg {
    display: none;
  }

  .dashboard-body .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
    margin-left: 0;
  }

  .dashboard-body .search-input,
  .dashboard-body input[type=text].search-input {
    height: 38px !important;
  }

  .campus-header-card {
    width: calc(100% - 20px);
    margin: 10px auto 0;
    border-radius: 20px;
  }
  .dashboard-body .filters-bar {
    position: relative;
    top: auto;
    width: calc(100% - 20px);
    margin: 10px auto 0;
    border-radius: 20px;
  }

  .dashboard-body .filters-inner {
    padding: .8rem;
    flex-direction: column;
    align-items: stretch;
    gap: .7rem;
  }

  .dashboard-body .facet-trigger {
    min-width: 0;
    height: 36px;
  }

  .dashboard-body .main {
    width: calc(100% - 20px);
    padding: 1rem 0 5rem;
  }

  .dashboard-body .listings-grid {
    gap: .85rem;
  }

  .dashboard-body .card {
    border-radius: 18px;
    padding: 1rem;
  }

  .dashboard-body .card:hover {
    transform: none;
  }
}

/* ── Dashboard professional polish ────────────────── */
@keyframes dashboardEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.992);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.dashboard-body {
  background:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, rgba(20, 184, 166, .13), transparent 31%),
    radial-gradient(circle at 94% 4%, rgba(99, 102, 241, .1), transparent 34%),
    linear-gradient(180deg, #f7fafc 0%, #f5f7fb 48%, #fbfbf8 100%);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
}

.dashboard-body .header,
.dashboard-body .campus-header-card,
.dashboard-body .filters-bar,
.dashboard-body .dashboard-insights,
.dashboard-body .main {
  animation: dashboardEnter .52s cubic-bezier(.16, 1, .3, 1) both;
}

.dashboard-body .campus-header-card { animation-delay: .03s; }
.dashboard-body .filters-bar { animation-delay: .07s; }
.dashboard-body .dashboard-insights { animation-delay: .12s; }
.dashboard-body .main { animation-delay: .17s; }

.dashboard-body .header {
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .1);
}

.dashboard-body .header-inner {
  height: 70px;
}

.dashboard-body .logo {
  gap: .7rem;
}

.dashboard-body .logo img:first-child {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(124, 58, 237, .16);
}

.dashboard-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: #111827;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.dashboard-wordmark span {
  color: #6d28d9;
}

.dashboard-body .search-wrap {
  max-width: 420px;
}

.dashboard-body .search-icon circle,
.dashboard-body .search-icon path {
  stroke: #94a3b8;
}

.dashboard-body .search-input,
.dashboard-body input[type=text].search-input {
  height: 42px !important;
  border: 1px solid rgba(15, 23, 42, .1) !important;
  background: #f8fafc !important;
  color: #111827 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

.dashboard-body .search-input::placeholder {
  color: #94a3b8 !important;
}

.dashboard-body .search-input:focus {
  border-color: rgba(20, 184, 166, .55) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .12) !important;
}

.dashboard-body .btn {
  height: 40px;
  border-radius: 13px;
  font-size: .82rem;
  font-weight: 800;
}

.dashboard-body .btn-fav {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(124, 58, 237, .22);
}

.dashboard-body .btn-fav:hover {
  color: #fff;
  background: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(124, 58, 237, .32);
}

.dashboard-body .btn-ghost {
  color: #fff;
  background: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(8, 145, 178, .22);
}

.dashboard-body .btn-ghost:hover {
  color: #fff;
  background: linear-gradient(135deg, #0e7490 0%, #0f9f92 100%);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(8, 145, 178, .32);
}

.dashboard-body .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(79, 70, 229, .25);
}

.dashboard-body .btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(79, 70, 229, .35);
}

.dashboard-body .user-menu {
  border-left-color: rgba(15, 23, 42, .1);
}

.dashboard-body .user-name {
  color: #334155;
}

.dashboard-body .user-menu-trigger {
  color: #334155;
  background: #fff;
  border-color: rgba(15, 23, 42, .1);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.dashboard-body .user-menu-trigger:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, .18);
}

.dashboard-body .user-menu-chevron {
  color: #64748b !important;
}

.dashboard-body .user-menu-trigger.open .user-menu-chevron {
  color: #0f766e !important;
}

.campus-strip {
  grid-area: campus;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .78rem;
  min-width: 0;
}

.campus-strip-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.campus-strip-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.campus-strip-copy {
  min-width: 0;
}

.campus-strip-copy strong {
  display: block;
  color: #111827;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.12;
}

.dashboard-body #header-avatar,
.dashboard-body .avatar {
  box-shadow: none;
}

.dashboard-body .campus-header-card,
.dashboard-body .filters-bar {
  position: relative;
  top: auto;
  z-index: 1;
  border-color: rgba(15, 23, 42, .12);
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 184, 166, .08), transparent 25%),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .1), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .99) 0%, rgba(247, 250, 252, .97) 47%, rgba(245, 241, 255, .96) 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .92);
}

.dashboard-body .pill {
  color: #475569;
  background: #fff;
  border-color: rgba(15, 23, 42, .09);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.dashboard-body .pill:hover {
  color: #0f766e;
  background: #f0fdfa;
  border-color: rgba(20, 184, 166, .34);
  box-shadow: 0 10px 22px rgba(20, 184, 166, .09);
}

.dashboard-body .pill.active {
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .15);
}

.dashboard-body .facet-trigger {
  background: #fff;
  border-color: rgba(15, 23, 42, .09);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.dashboard-body .facet-trigger:hover,
.dashboard-body .facet-trigger.open,
.dashboard-body .facet-trigger:focus-visible {
  border-color: rgba(20, 184, 166, .38);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .1);
}

.dashboard-body .results-count {
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.dashboard-body .card,
.dashboard-body .empty-state {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(15, 23, 42, .08);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
}

.dashboard-body .card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
}

.dashboard-body .card:hover {
  border-color: rgba(20, 184, 166, .28);
  box-shadow: 0 20px 48px rgba(15, 23, 42, .1);
}

.dashboard-body .empty-icon {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, .08);
}

@media (max-width: 768px) {
  .dashboard-body .header {
    background: rgba(255, 255, 255, .9);
  }

  .dashboard-body .header-inner {
    height: auto;
  }

  .dashboard-body .filters-bar {
    top: auto;
  }

  .dashboard-body .dashboard-wordmark {
    font-size: 1.1rem;
  }

  .dashboard-body .logo {
    gap: .28rem;
  }

  .dashboard-body .logo img:first-child {
    width: 30px;
    height: 30px;
  }

  .dashboard-body .dashboard-wordmark {
    font-size: .9rem;
  }

  .dashboard-body #btn-favorites,
  .dashboard-body #btn-my-listings,
  .dashboard-body #btn-new {
    flex-direction: row;
    height: 28px;
    padding: 0 6px;
    gap: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .01em;
    border-radius: 50px;
    width: auto;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }

  .dashboard-body #btn-favorites svg,
  .dashboard-body #btn-my-listings svg,
  .dashboard-body #btn-new svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .dashboard-body .header-actions .btn-label {
    font-size: 0;
  }

  .dashboard-body .header-actions .btn-label::after {
    content: attr(data-mobile);
    font-size: 9px;
  }
}

/* ── Final dashboard refinements ──────────────────── */
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 590px;
  margin-top: 1.35rem;
}

.home-stats article {
  padding: .85rem .95rem;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-stats article:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, .28);
  box-shadow: 0 18px 38px rgba(17, 24, 39, .09);
}

.home-stats strong {
  display: block;
  color: #111827;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.home-stats span {
  display: block;
  margin-top: .35rem;
  color: #64748b;
  font-size: .82rem;
  font-weight: 800;
}

.dashboard-insights {
  width: min(1180px, calc(100% - 32px));
  margin: 1.35rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: .8rem;
  align-items: stretch;
}

.dashboard-stat,
.dashboard-insight-note {
  border: 1px solid rgba(15, 23, 42, .11);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .09);
}

.dashboard-stat {
  min-height: 92px;
  padding: .95rem 1rem;
}

.dashboard-stat-label {
  display: block;
  color: #59677c;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-stat strong {
  display: block;
  margin-top: .3rem;
  color: #111827;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}

.dashboard-stat small {
  display: inline-flex;
  width: fit-content;
  margin-top: .42rem;
  padding: .22rem .48rem;
  border-radius: 999px;
  color: #334155;
  background: rgba(248, 250, 252, .98);
  border: 1px solid rgba(148, 163, 184, .2);
  font-size: .72rem;
  font-weight: 900;
}

.dashboard-insight-note {
  display: flex;
  align-items: center;
  padding: 1rem 1.1rem;
  color: #334155;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(204, 251, 241, .58), rgba(255, 255, 255, .72) 56%, rgba(237, 233, 254, .46));
}

.dashboard-body .results-bar {
  justify-content: space-between;
  gap: 1rem;
}

.results-copy {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.results-context {
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 38px;
  padding: .25rem .3rem .25rem .75rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.sort-control span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sort-control select {
  height: 30px;
  min-width: 142px;
  border: 0;
  border-radius: 999px;
  padding: 0 2rem 0 .8rem;
  color: #111827;
  background: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}

.sort-control:focus-within {
  border-color: rgba(20, 184, 166, .38);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .1);
}

.dashboard-body .modal-overlay {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dashboard-body .modal-detail,
.dashboard-body .mld-modal,
.dashboard-body .modal-profile,
.dashboard-body .modal-form-panel {
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .2);
}

.dashboard-body .mld-header {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.dashboard-body .mld-header-icon {
  color: #0f766e;
}

.dashboard-body .mld-title {
  color: #111827;
}

.dashboard-body .mld-subtitle {
  color: #64748b;
}

.dashboard-body .mld-close {
  color: #64748b;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, .08);
}

.dashboard-body .mld-close:hover {
  color: #111827;
  background: #fff;
  border-color: rgba(15, 23, 42, .16);
}

.dashboard-body .mld-toolbar {
  background: rgba(248, 250, 252, .9);
}

.dashboard-body .mld-item {
  border-color: rgba(15, 23, 42, .08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.dashboard-body .mld-item:hover {
  border-color: rgba(124, 58, 237, .3);
  box-shadow: 0 4px 16px rgba(124, 58, 237, .1);
}

.dashboard-body .detail-overline {
  color: #0f766e;
}

.dashboard-body #detail-title {
  font-family: "Sora", "Manrope", sans-serif;
}

.dashboard-body .detail-meta {
  border-color: rgba(15, 23, 42, .08);
}

.dashboard-body .detail-description {
  border-left-color: rgba(20, 184, 166, .35);
}

@media (max-width: 980px) {
  .dashboard-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-insight-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .home-stats {
    grid-template-columns: 1fr;
    max-width: calc(100vw - 40px);
  }

  .dashboard-insights {
    width: calc(100% - 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    margin-top: .9rem;
  }

  .dashboard-stat {
    min-height: 82px;
    padding: .8rem;
  }

  .dashboard-stat strong {
    font-size: 1.35rem;
  }

  .dashboard-insight-note {
    padding: .85rem;
    font-size: .82rem;
  }

  .dashboard-body .results-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .sort-control {
    justify-content: space-between;
    border-radius: 16px;
  }

  .sort-control select {
    min-width: 0;
    flex: 1;
  }
}

/* ── Product copy cleanup ─────────────────────────── */
.home-category-grid article {
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-category-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, .3);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .085);
}

.home-category-grid span {
  display: block;
  color: #111827;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.15;
}

.home-category-grid p {
  display: block;
  margin-top: .42rem;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin: 0 0 1.05rem;
}

.home-category-grid article {
  min-height: 150px;
  padding: 1.15rem;
  border-radius: 20px;
}

.home-category-grid span {
  color: #0f766e;
  font-size: 1rem;
}

.home-workflow {
  padding: 76px max(32px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(17,24,39,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,24,39,.035) 1px, transparent 1px),
    linear-gradient(135deg, #fbfdff 0%, #fff 48%, #fff7ed 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.home-workflow .home-feature-grid {
  margin-top: 0;
}

.dashboard-insights {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.dashboard-insight-note {
  display: none;
}

.sort-control {
  position: relative;
  padding-right: .35rem;
}

.dashboard-body .sort-control > span {
  display: none;
}

.sort-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  height: 32px;
  min-width: 166px;
  padding: 0 .7rem 0 .9rem;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.sort-trigger span {
  color: #111827;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.sort-chevron {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}

.sort-trigger.open .sort-chevron {
  color: #0f766e;
  transform: rotate(180deg);
}

.sort-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 220;
  min-width: 210px;
  padding: .35rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(15, 23, 42, .16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform-origin: top right;
  animation: dropdownIn .16s cubic-bezier(.16, 1, .3, 1);
}

.sort-dropdown.open {
  display: block;
}

.sort-option {
  padding: .62rem .75rem;
  border-radius: 12px;
  color: #475569;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}

.sort-option:hover {
  color: #0f766e;
  background: #f0fdfa;
}

.sort-option.selected {
  color: #111827;
  font-weight: 800;
  background: #f8fafc;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.listings-grid {
  transition:
    opacity .32s cubic-bezier(.16, 1, .3, 1),
    transform .32s cubic-bezier(.16, 1, .3, 1),
    filter .32s ease;
  will-change: opacity, transform, filter;
}

.listings-grid.listings-grid--transitioning {
  opacity: .18;
  transform: translateY(14px) scale(.992);
  filter: blur(5px);
  pointer-events: none;
}

.dashboard-body .pagination-btn:not(:disabled):active {
  transform: translateY(1px) scale(.98);
}

@media (max-width: 980px) {
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-body .filters-inner {
    flex-direction: column;
    align-items: stretch;
    gap: .7rem;
  }

  .dashboard-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-category-grid {
    grid-template-columns: 1fr;
  }
  .home-category-grid article {
    min-height: auto;
    padding: 1rem;
  }

  .campus-header-inner {
    align-items: flex-start;
  }

  .campus-quick-links {
    width: 100%;
    justify-content: flex-end;
    gap: .32rem;
    margin-top: .15rem;
  }

  .campus-ql-btn {
    gap: .26rem;
    min-height: 34px;
    padding: .36rem .48rem;
    border-radius: 12px;
    font-size: .62rem;
    font-weight: 800;
  }

  .campus-ql-btn span {
    display: inline;
  }

  .campus-ql-btn svg {
    width: 13px;
    height: 13px;
  }

  .campus-strip {
    min-width: 0;
    gap: .75rem;
  }

  .campus-strip-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .campus-strip-mark img {
    width: 42px;
    height: 42px;
  }

  .home-workflow {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sort-trigger {
    flex: 1;
    min-width: 0;
  }

  .sort-control > span {
    display: none;
  }

  .sort-icon {
    color: #0d9488;
    flex-shrink: 0;
  }

  .sort-trigger span {
    color: #0d9488;
    font-weight: 700;
  }

  .sort-dropdown {
    left: 0;
    right: 0;
    min-width: 0;
  }
}

/* Desktop guardrails: keep mobile-only affordances from leaking into the app layout. */
@media (min-width: 769px) {
  .dashboard-body .campus-header-card,
  .dashboard-body .filters-bar {
    margin-top: 24px;
  }
  .dashboard-body .filters-bar {
    margin-top: 12px;
  }

  .dashboard-body .header-actions .btn-label {
    font-size: inherit;
  }

  .dashboard-body .header-actions .btn-label::after {
    content: none;
  }

  .dashboard-body .category-pills {
    background: none;
    padding-bottom: 2px;
  }

  .dashboard-body .filter-chips-wrap::after {
    content: none;
  }

  .dashboard-body .modal-form-panel .modal-scroll-body,
  .dashboard-body .modal-detail .modal-scroll-body,
  .dashboard-body .pmodal-scroll-body,
  .dashboard-body .mld-body {
    background-image: none;
  }
}

/* ── Mobile modal cleanup ─────────────────────────── */
@media (max-width: 640px) {
  /* Default: all overlays centered with padding */
  .dashboard-body .modal-overlay {
    align-items: center;
    padding: 1rem;
  }

  /* Form modal is also a centered card on mobile */
  .dashboard-body #modal-form {
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  /* ── Detail modal overlay: always centered on mobile ── */
  .dashboard-body #modal-detail {
    align-items: center !important;
    justify-content: center;
    padding: 1rem;
  }

  /* ── Detail modal: centered card (like İlanlarım) ── */
  .dashboard-body .modal-detail {
    width: 100%;
    max-width: 100%;
    max-height: min(82dvh, 600px);
    border-radius: 22px;
    animation: slideUp .2s cubic-bezier(.16, 1, .3, 1);
  }

  .dashboard-body .modal-detail .modal-scroll-body {
    padding: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  /* ── Form modal: centered card ── */
  .dashboard-body .modal-form-panel {
    width: 100%;
    max-width: 430px;
    max-height: min(84dvh, 680px);
    border-radius: 22px;
    animation: slideUp .2s cubic-bezier(.16, 1, .3, 1);
  }

  /* Favorites & My Listings: centered */
  .dashboard-body #modal-favorites,
  .dashboard-body #modal-my-listings {
    align-items: center !important;
    justify-content: center;
    padding: 1rem;
  }

  .dashboard-body .mld-modal {
    width: 100%;
    max-width: 100%;
    max-height: 72dvh;
    border-radius: 22px 22px 0 0;
  }

  .dashboard-body #modal-favorites .mld-modal,
  .dashboard-body #modal-my-listings .mld-modal {
    max-height: min(72dvh, 560px);
    border-radius: 22px;
    animation: slideUp .2s cubic-bezier(.16, 1, .3, 1);
  }

  .dashboard-body #modal-my-listings .mld-modal {
    overflow: visible;
  }

  .dashboard-body #modal-my-listings .mld-toolbar {
    position: relative;
    z-index: 4;
  }

  .dashboard-body #modal-my-listings .mld-body {
    border-radius: 0 0 22px 22px;
  }

  .dashboard-body .mld-header {
    padding: .9rem 1.05rem .8rem;
  }

  .dashboard-body .mld-header-left {
    gap: .65rem;
  }

  .dashboard-body .mld-header-icon {
    width: 18px;
    height: 18px;
  }

  .dashboard-body .mld-title {
    font-size: .98rem;
  }

  .dashboard-body .mld-subtitle {
    font-size: .72rem;
    margin-top: .05rem;
  }

  .dashboard-body .mld-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.15rem;
  }

  .dashboard-body .mld-toolbar {
    padding: .65rem .85rem;
    gap: .5rem;
  }

  .dashboard-body #mld-search,
  .dashboard-body #fav-search {
    height: 40px !important;
    border-radius: 13px;
    font-size: .9rem;
    padding-left: 2.2rem !important;
  }

  .dashboard-body .mld-filter-trigger {
    height: 40px;
    min-width: 96px;
    border-radius: 13px;
    font-size: .86rem;
  }

  .dashboard-body .mld-body {
    flex: 0 1 auto;
    max-height: 44dvh;
    min-height: 0;
    padding: .65rem .85rem 1rem;
  }

  .dashboard-body .mld-empty {
    min-height: 0;
    padding: 2.1rem .7rem 2.25rem;
    gap: .4rem;
  }

  .dashboard-body .mld-empty svg {
    width: 52px;
    height: 52px;
  }

  .dashboard-body .mld-empty-title {
    font-size: .98rem;
  }

  .dashboard-body .mld-empty-sub {
    max-width: 300px;
    font-size: .82rem;
    line-height: 1.45;
  }

  .dashboard-body .mld-list {
    gap: .45rem;
  }

  .dashboard-body .mld-item-body {
    padding: .62rem .72rem;
  }

  .dashboard-body .mld-item-actions {
    padding: 0 .45rem;
  }

  .dashboard-body .mld-action-btn {
    width: 32px;
    height: 32px;
  }

  .dashboard-body .modal-form-panel .form-modal-header {
    padding: .85rem 1rem;
  }

  .dashboard-body .form-modal-title-row {
    gap: .55rem;
    margin-bottom: 0;
  }

  .dashboard-body .form-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .dashboard-body .modal-header h2 {
    font-size: 1.1rem;
  }

  .dashboard-body .form-modal-subtitle {
    display: none;
  }

  .dashboard-body .modal-form-panel .modal-close {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  /* Form scroll body: scroll freely, buttons are outside */
  .dashboard-body .modal-form-panel .modal-scroll-body {
    padding: .85rem 1rem 1rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-image:
      linear-gradient(180deg, rgba(20, 184, 166, .58), rgba(124, 58, 237, .58)),
      linear-gradient(180deg, rgba(15, 23, 42, .07), rgba(15, 23, 42, .04));
    background-size: 3px var(--scroll-thumb-h, 64px), 3px var(--scroll-track-h, calc(100% - 28px));
    background-position: right 10px top var(--scroll-thumb-y, 14px), right 10px top 14px;
    background-repeat: no-repeat;
  }

  .dashboard-body .modal-form-panel .modal-scroll-body::-webkit-scrollbar,
  .dashboard-body .modal-detail .modal-scroll-body::-webkit-scrollbar,
  .dashboard-body .pmodal-scroll-body::-webkit-scrollbar,
  .dashboard-body .mld-body::-webkit-scrollbar {
    display: none;
  }

  .dashboard-body #listing-form {
    gap: .5rem;
  }

  .dashboard-body .form-group {
    gap: .22rem;
  }

  .dashboard-body .modal-form-panel .form-row {
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }

  .dashboard-body #listing-form label,
  .dashboard-body .contact-method-label {
    font-size: .72rem;
    margin-bottom: .2rem;
  }

  .dashboard-body #listing-form input[type=text],
  .dashboard-body #form-expires-at,
  .dashboard-body #listing-form textarea,
  .dashboard-body .fsel-trigger {
    min-height: 0;
    height: 36px;
    border-radius: 12px;
    font-size: .8rem;
  }

  .dashboard-body #listing-form input[type=text],
  .dashboard-body #form-expires-at {
    padding: 0 .78rem !important;
  }

  .dashboard-body .fsel-trigger {
    padding: 0 .78rem;
  }

  .dashboard-body #listing-form textarea {
    height: auto;
    min-height: 72px;
    padding: .58rem .72rem !important;
    line-height: 1.35;
  }

  .dashboard-body .field-error {
    min-height: .55rem;
    font-size: .68rem;
  }

  .dashboard-body .contact-field-row {
    gap: .48rem;
    padding: .38rem .62rem;
  }

  .dashboard-body .contact-field-icon svg {
    width: 13px;
    height: 13px;
  }

  .dashboard-body .contact-field-label {
    font-size: .56rem;
  }

  .dashboard-body .contact-fields .contact-field-input {
    font-size: .78rem;
    line-height: 1.25;
  }

  .dashboard-body .contact-hint,
  .dashboard-body .field-hint,
  .dashboard-body .form-label-hint {
    display: none;
  }

  /* Form actions: inside the centered card, not pinned to viewport bottom */
  .dashboard-body .modal-form-panel > .form-actions {
    flex-shrink: 0;
    justify-content: stretch;
    margin: 0;
    padding: .75rem 1rem;
    padding-bottom: max(.75rem, env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, .08);
    border-radius: 0 0 22px 22px;
  }

  .dashboard-body .form-actions .btn {
    flex: 1;
    height: 44px;
    border-radius: 13px;
    font-size: .84rem;
  }

  .dashboard-body .filter-chips-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: calc(100% - 8px);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(250, 250, 253, .95));
    border-radius: 0 18px 18px 0;
  }

  .dashboard-body .category-pills {
    padding: 2px 0 9px;
    background:
      linear-gradient(90deg, rgba(20, 184, 166, .75), rgba(124, 58, 237, .75)) var(--scroll-thumb-x, 0px) bottom / var(--scroll-thumb-w, 72px) 3px no-repeat,
      linear-gradient(90deg, rgba(15, 23, 42, .09), rgba(15, 23, 42, .05)) left bottom / var(--scroll-track-w, 100%) 3px no-repeat;
  }

  .dashboard-body .modal-detail .modal-scroll-body,
  .dashboard-body .pmodal-scroll-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-image:
      linear-gradient(180deg, rgba(20, 184, 166, .58), rgba(124, 58, 237, .58)),
      linear-gradient(180deg, rgba(15, 23, 42, .07), rgba(15, 23, 42, .04));
    background-size: 3px var(--scroll-thumb-h, 64px), 3px var(--scroll-track-h, calc(100% - 28px));
    background-position: right 10px top var(--scroll-thumb-y, 14px), right 10px top 14px;
    background-repeat: no-repeat;
  }

  .dashboard-body .mld-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    background:
      linear-gradient(180deg, rgba(20, 184, 166, .58), rgba(124, 58, 237, .58)) right 10px top var(--scroll-thumb-y, 14px) / 3px var(--scroll-thumb-h, 64px) no-repeat,
      linear-gradient(180deg, rgba(15, 23, 42, .07), rgba(15, 23, 42, .04)) right 10px top 14px / 3px var(--scroll-track-h, calc(100% - 28px)) no-repeat,
      var(--bg);
  }
}

/* ── Üniversite Haberleri ──────────────────────────────── */
.uni-news-section {
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  padding-bottom: .5rem;
}

.uni-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}
.uni-news-head-left {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #111827;
}
.uni-news-all {
  font-size: .8rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color .15s;
}
.uni-news-all:hover { color: #111827; }

/* viewport + nav buttons */
.uni-news-viewport {
  position: relative;
  display: block;
  overflow: visible;
}

.uni-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.uni-nav-prev { left: clamp(-52px, -4vw, -34px); }
.uni-nav-next { right: clamp(-52px, -4vw, -34px); }
.uni-nav-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124,58,237,.15);
}
.uni-nav-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* scrollable track */
.uni-news-track-outer {
  width: 100%;
  overflow: hidden;
  min-width: 0;
  container-type: inline-size;
}
.uni-news-track {
  display: flex;
  gap: .75rem;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* individual card */
.uni-news-card {
  flex: 0 0 calc((100cqi - 1.5rem) / 3);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ede9fe;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.uni-news-card:hover {
  box-shadow: 0 6px 20px rgba(124,58,237,.13);
  border-color: #c4b5fd;
  transform: translateY(-2px);
}

/* image area 16:9 */
.uni-news-card-img {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  flex-shrink: 0;
}
.uni-news-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.uni-news-card:hover .uni-news-card-img img { transform: scale(1.05); }

/* fallback gradient */
.uni-news-card-img-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 60%, #a78bfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.uni-news-card-img-fallback svg { opacity: .4; }

/* card body */
.uni-news-card-body {
  padding: .7rem .75rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.uni-news-card-title {
  font-size: .8rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uni-news-card-date {
  font-size: .68rem;
  color: #9ca3af;
  margin-top: auto;
}

/* skeleton cards */
.uni-news-skeleton-card {
  pointer-events: none;
}
.uni-sk-img {
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(90deg, #f3f0ff 25%, #ede9fe 50%, #f3f0ff 75%);
  background-size: 400% 100%;
  animation: uniShimmer 1.4s ease infinite;
}
.uni-sk-lines {
  padding: .7rem .75rem .75rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uni-sk-lines span {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #f3f0ff 25%, #ede9fe 50%, #f3f0ff 75%);
  background-size: 400% 100%;
  animation: uniShimmer 1.4s ease infinite;
}
.uni-sk-lines span:first-child { width: 90%; }
.uni-sk-lines span:last-child  { width: 55%; }

@keyframes uniShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 900px) {
  .uni-news-card { flex: 0 0 calc((100cqi - .75rem) / 2); }
}

@media (max-width: 768px) {
  .uni-news-section { width: calc(100% - 24px); margin: 1rem auto 0; }
  .uni-news-card { flex: 0 0 72vw; }
  .uni-nav-btn { display: none; }
  .uni-news-track-outer { overflow-x: auto; scrollbar-width: none; }
  .uni-news-track-outer::-webkit-scrollbar { display: none; }
  .uni-news-track { transition: none; }
}

/* ── Comments Section ──────────────────────────────────────────────────────── */

.detail-comments-section {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.comments-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.comments-heading {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-secondary);
}

.comments-count {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted, #9ca3af);
}

/* List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1rem;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,.18) transparent;
}
.comments-list::-webkit-scrollbar { width: 4px; }
.comments-list::-webkit-scrollbar-track { background: transparent; }
.comments-list::-webkit-scrollbar-thumb { background: rgba(124,58,237,.2); border-radius: 2px; }

/* Loading */
.comments-loading {
  display: flex;
  justify-content: center;
  padding: 1.25rem 0;
}
.comments-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(124,58,237,.15);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* Empty */
.comments-empty {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  padding: 1.25rem 0;
  font-size: .8125rem;
  color: var(--text-muted, #9ca3af);
}

/* Individual comment */
.comment-item {
  display: flex;
  gap: .625rem;
  animation: fadeInUp .18s ease;
}
.comment-item--new {
  animation: fadeInUp .22s cubic-bezier(.16,1,.3,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.comment-avatar {
  flex-shrink: 0;
  padding-top: 1px;
}

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

.comment-meta {
  display: flex;
  align-items: center;
  gap: .375rem;
  margin-bottom: .25rem;
  flex-wrap: wrap;
}

.comment-author {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-primary, #1e1b4b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.comment-time {
  font-size: .75rem;
  color: var(--text-muted, #9ca3af);
  flex-shrink: 0;
}

.comment-meta .comment-delete-btn {
  margin-left: auto;
}
.comment-delete-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted, #9ca3af);
  border-radius: 5px;
  transition: color .15s, background .15s;
  padding: 0;
}
.comment-delete-btn:hover {
  color: #ef4444;
  background: rgba(239,68,68,.08);
}

.comment-content {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text-primary, #1e1b4b);
  word-break: break-word;
  white-space: pre-wrap;
}

/* Input area */
.comments-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.comments-input-wrap:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}

/* Reply bar */
.comment-reply-bar {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .75rem;
  background: rgba(124,58,237,.06);
  border-bottom: 1px solid rgba(124,58,237,.12);
  font-size: .75rem;
  color: #7c3aed;
  font-weight: 500;
}
.comment-reply-bar.hidden { display: none; }
.comment-reply-cancel-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  background: none;
  cursor: pointer;
  color: #7c3aed;
  border-radius: 4px;
  padding: 0;
  opacity: .7;
}
.comment-reply-cancel-btn:hover { opacity: 1; }

.comment-textarea {
  width: 100%;
  min-height: 60px;
  max-height: 140px;
  padding: .625rem .875rem;
  border: none;
  outline: none;
  background: var(--surface, #fff);
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text-primary, #1e1b4b);
  resize: none;
  overflow-y: auto;
  box-sizing: border-box;
}
.comment-textarea::placeholder {
  color: var(--text-muted, #9ca3af);
}

.comments-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .375rem .625rem .375rem .875rem;
  border-top: 1px solid var(--border);
  background: var(--surface, #fff);
}

.comment-char-count {
  font-size: .73rem;
  color: var(--text-muted, #9ca3af);
  font-variant-numeric: tabular-nums;
  visibility: hidden;
  transition: color .15s;
}
.comment-char-count.visible { visibility: visible; }

.comment-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .85rem;
  border: none;
  border-radius: 7px;
  background: #7c3aed;
  color: #fff;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s, transform .1s;
  white-space: nowrap;
  line-height: 1;
}
.comment-submit-btn:disabled {
  background: rgba(124,58,237,.18);
  color: rgba(255,255,255,.5);
  cursor: not-allowed;
}
.comment-submit-btn:not(:disabled):hover  { background: #6d28d9; }
.comment-submit-btn:not(:disabled):active { transform: scale(.95); }
.comment-submit-btn--sending { opacity: .65; pointer-events: none; }

/* Reply indented comments */
.comment-reply {
  margin-left: 2.125rem;
  padding-left: .875rem;
  border-left: 2px solid rgba(124,58,237,.18);
}

/* Owner badge */
.comment-owner-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 5px;
  background: rgba(124,58,237,.1);
  color: #7c3aed;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* Reply button — below comment content */
.comment-footer-row {
  margin-top: .3rem;
}
.comment-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  color: #7c3aed;
  padding: .2rem .5rem .2rem 0;
  border-radius: 5px;
  transition: color .15s, opacity .15s;
  opacity: .7;
}
.comment-reply-btn:hover { opacity: 1; }

@media (max-width: 640px) {
  .comment-author { max-width: 100px; }
  .comment-reply  { margin-left: 1.5rem; padding-left: .625rem; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN PANEL — Data-Dense Dashboard (UI/UX Pro Max)
   Brand: CampusBoard purple · Clean · Professional
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Overlay wrapper ──────────────────────────────────────────────────────── */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #f5f4fb;
  display: flex;
  flex-direction: column;
  font-family: 'Manrope', sans-serif;
}
.admin-overlay.hidden { display: none; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.admin-overlay .admin-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.admin-sidebar {
  width: 228px;
  flex-shrink: 0;
  background: #1e1b4b;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: 1.125rem 1.125rem .875rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar-brand span {
  font-size: .875rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.admin-sidebar-brand small {
  font-size: .65rem;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(124,58,237,.25);
  padding: .1rem .4rem;
  border-radius: 4px;
  margin-left: .25rem;
}

/* Nav */
.admin-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: .75rem .625rem;
  gap: .15rem;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .575rem .75rem;
  border-radius: 8px;
  border: none;
  background: none;
  color: #a5b4fc;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.admin-nav-item svg { flex-shrink: 0; opacity: .8; }
.admin-nav-item:hover  { background: rgba(255,255,255,.07); color: #e0d9ff; }
.admin-nav-item.active { background: #7c3aed; color: #fff; }
.admin-nav-item.active svg { opacity: 1; }

/* Sidebar footer */
.admin-sidebar-footer {
  padding: .875rem .625rem 1rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.admin-back-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .5rem .75rem;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,.05);
  color: #a5b4fc;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}
.admin-back-link:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Main content ─────────────────────────────────────────────────────────── */
.admin-overlay .admin-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.admin-page-header {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-wrap: wrap;
}
.admin-page-header h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0;
  letter-spacing: -.02em;
}
.admin-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7c3aed;
  background: #ede9fe;
  padding: .2rem .55rem;
  border-radius: 99px;
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.admin-tab { display: none; }
.admin-tab.active { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Stat cards ───────────────────────────────────────────────────────────── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .875rem;
}
.admin-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.125rem 1.25rem 1rem;
  border: 1px solid #ede9fe;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: box-shadow .2s, transform .2s;
}
.admin-stat-card:hover { box-shadow: 0 4px 16px rgba(124,58,237,.1); transform: translateY(-1px); }
.admin-stat-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #ede9fe;
}
.admin-stat-icon svg { color: #7c3aed; }
.admin-stat-label {
  font-size: .72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1;
  letter-spacing: -.03em;
}
.admin-stat-card--warn .admin-stat-icon { background: #fff7ed; }
.admin-stat-card--warn .admin-stat-icon svg { color: #d97706; }
.admin-stat-card--warn .admin-stat-value { color: #b45309; }

/* ── Filters bar ──────────────────────────────────────────────────────────── */
.admin-filters-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.admin-search {
  height: 36px;
  padding: 0 .75rem 0 2rem;
  border: 1.5px solid #e5e0ff;
  border-radius: 8px;
  font-family: inherit;
  font-size: .82rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' stroke='%239ca3af' stroke-width='1.6'/%3E%3Cpath d='M14 14l3 3' stroke='%239ca3af' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") .65rem center no-repeat;
  color: #1e1b4b;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  flex: 1 1 160px;
  max-width: 240px;
  width: auto;
  min-width: 0;
}
.admin-search:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.admin-select {
  height: 36px;
  padding: 0 2rem 0 .75rem;
  border: 1.5px solid #e5e0ff;
  border-radius: 8px;
  font-family: inherit;
  font-size: .82rem;
  background: #fff;
  color: #1e1b4b;
  outline: none;
  cursor: pointer;
  appearance: none;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .625rem center;
  transition: border-color .15s, box-shadow .15s;
}
.admin-select:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }

/* ── User Picker Dropdown ─────────────────────────────────────────────────── */
.admin-user-picker {
  position: relative;
  flex-shrink: 0;
}
.admin-user-picker-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 36px;
  padding: 0 .625rem 0 .75rem;
  border: 1.5px solid #e5e0ff;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: .82rem;
  color: #1e1b4b;
  cursor: pointer;
  white-space: nowrap;
  min-width: 148px;
  max-width: 200px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.admin-user-picker-btn:hover { border-color: #c4b5fd; }
.admin-user-picker-btn.open  { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.admin-user-picker-label { flex: 1; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.admin-user-picker-chevron { color: #9ca3af; flex-shrink: 0; transition: transform .15s; }
.admin-user-picker-btn.open .admin-user-picker-chevron { transform: rotate(180deg); }

.admin-user-picker-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #e5e0ff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(30,27,75,.15);
  z-index: 400;
  overflow: hidden;
}
.admin-user-picker-panel.open { display: flex; flex-direction: column; }
.admin-user-picker-search {
  margin: .5rem;
  height: 32px;
  padding: 0 .625rem 0 1.75rem;
  border: 1.5px solid #e5e0ff;
  border-radius: 7px;
  font-family: inherit;
  font-size: .8rem;
  background: #f8f7ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' stroke='%239ca3af' stroke-width='1.6'/%3E%3Cpath d='M14 14l3 3' stroke='%239ca3af' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") .5rem center no-repeat;
  outline: none;
  color: #1e1b4b;
  transition: border-color .15s;
  flex-shrink: 0;
}
.admin-user-picker-search:focus { border-color: #7c3aed; }
.admin-user-picker-list {
  overflow-y: auto;
  max-height: 220px;
  padding: .25rem 0;
}
.admin-user-picker-list::-webkit-scrollbar { width: 4px; }
.admin-user-picker-list::-webkit-scrollbar-thumb { background: #e5e0ff; border-radius: 4px; }
.admin-user-picker-item {
  display: flex;
  flex-direction: column;
  padding: .45rem .875rem;
  cursor: pointer;
  transition: background .1s;
}
.admin-user-picker-item:hover { background: #f5f3ff; }
.admin-user-picker-item.selected { background: #ede9fe; }
.admin-user-picker-item-name  { font-size: .82rem; font-weight: 700; color: #1e1b4b; }
.admin-user-picker-item-email { font-size: .72rem; color: #9ca3af; }
.admin-user-picker-item--all  { font-size: .82rem; font-weight: 600; color: #7c3aed; padding: .45rem .875rem; cursor: pointer; border-bottom: 1px solid #f5f3ff; }
.admin-user-picker-item--all:hover { background: #f5f3ff; }
.admin-user-picker-empty { padding: .75rem; text-align: center; font-size: .8rem; color: #9ca3af; }

/* ── Detail row fix ──────────────────────────────────────────────────────────*/
.admin-detail-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.admin-detail-label {
  font-size: .65rem;
  font-weight: 800;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: .07em;
  display: block;
}
.admin-detail-val {
  font-size: .83rem;
  color: #374151;
  line-height: 1.55;
  word-break: break-word;
}
.admin-detail-desc { grid-column: 1 / -1; }
.admin-detail-desc .admin-detail-val {
  color: #4b5563;
  white-space: pre-wrap;
  max-height: 100px;
  overflow-y: auto;
  background: #fff;
  border-radius: 6px;
  padding: .5rem .75rem;
  border: 1px solid #e5e0ff;
  font-size: .8rem;
}

/* ── Table ────────────────────────────────────────────────────────────────── */
.admin-table-wrap {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ede9fe;
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 640px;
}
.admin-table-scroll { overflow-x: auto; }
.admin-table thead { background: #faf8ff; }
.admin-table th {
  padding: .75rem 1rem;
  text-align: left;
  font-size: .69rem;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #ede9fe;
  white-space: nowrap;
}
.admin-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #f5f3ff;
  vertical-align: middle;
  color: #374151;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background .12s; }
.admin-table tbody tr:hover { background: #faf8ff; }
.admin-table tbody tr.admin-row--banned { opacity: .6; }
.admin-table-empty {
  text-align: center;
  color: #9ca3af;
  padding: 3rem !important;
  font-size: .85rem;
}

/* Cell types */
.admin-td-id       { color: #c4b5fd; font-size: .75rem; font-weight: 600; width: 48px; }
.admin-td-name     { font-weight: 700; color: #1e1b4b; }
.admin-td-email    { color: #6b7280; font-size: .78rem; }
.admin-td-title    { font-weight: 600; color: #1e1b4b; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-td-content  { color: #6b7280; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-td-actions  { display: flex; gap: .375rem; align-items: center; white-space: nowrap; }
.admin-td-protected { color: #e5e7eb; font-size: .8rem; }
.admin-td-expand   { width: 36px; text-align: center; cursor: pointer; color: #a78bfa; }
.admin-td-expand svg { transition: transform .2s; }
.admin-tr-expanded .admin-td-expand svg { transform: rotate(180deg); }

/* Expand detail row */
.admin-detail-row { background: #faf8ff !important; }
.admin-detail-row td { padding: 0 !important; border-bottom: 1px solid #ede9fe !important; }
.admin-detail-inner {
  padding: 1rem 1.25rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
}
.admin-detail-field { display: flex; flex-direction: column; gap: .2rem; }
.admin-detail-label { font-size: .67rem; font-weight: 700; color: #a78bfa; text-transform: uppercase; letter-spacing: .06em; }
.admin-detail-val   { font-size: .82rem; color: #374151; line-height: 1.5; }
.admin-detail-desc  { grid-column: 1 / -1; }
.admin-detail-desc .admin-detail-val { color: #4b5563; white-space: pre-wrap; max-height: 80px; overflow-y: auto; }

/* ── Chips / badges ───────────────────────────────────────────────────────── */
.admin-chip {
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border-radius: 99px;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.admin-chip--admin  { background: #ede9fe; color: #6d28d9; }
.admin-chip--banned { background: #fee2e2; color: #dc2626; }
.admin-chip--ok     { background: #d1fae5; color: #065f46; }
.admin-chip--off    { background: #f3f4f6; color: #6b7280; }
.admin-chip--cat    { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.admin-chip--warn   { background: #fef3c7; color: #92400e; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .45rem 1rem;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: opacity .15s, background .15s, transform .1s;
  white-space: nowrap;
}
.admin-btn:active { transform: scale(.97); }
.admin-btn:disabled { opacity: .5; cursor: not-allowed; }
.admin-btn--sm { padding: .28rem .6rem; font-size: .75rem; border-radius: 6px; }
.admin-btn--danger { background: #fee2e2; color: #dc2626; }
.admin-btn--danger:hover:not(:disabled) { background: #fecaca; }
.admin-btn--warn   { background: #fef3c7; color: #b45309; }
.admin-btn--warn:hover:not(:disabled) { background: #fde68a; }
.admin-btn--ok     { background: #d1fae5; color: #065f46; }
.admin-btn--ok:hover:not(:disabled) { background: #a7f3d0; }
.admin-btn--ghost  { background: #f5f3ff; color: #6d28d9; border: 1.5px solid #ede9fe; }
.admin-btn--ghost:hover:not(:disabled) { background: #ede9fe; }
.admin-btn--primary { background: #7c3aed; color: #fff; }
.admin-btn--primary:hover:not(:disabled) { background: #6d28d9; }

/* Loading spinner on btn */
.admin-btn.loading { pointer-events: none; opacity: .75; }
.admin-btn.loading::before {
  content: '';
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: admin-spin .6s linear infinite;
}
@keyframes admin-spin { to { transform: rotate(360deg); } }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: .75rem 1rem;
  border-top: 1px solid #f5f3ff;
}
.admin-page-btn {
  height: 32px;
  padding: 0 .875rem;
  border-radius: 8px;
  border: 1.5px solid #ede9fe;
  background: #fff;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  color: #7c3aed;
  cursor: pointer;
  transition: background .15s;
}
.admin-page-btn:hover { background: #ede9fe; }
.admin-page-info { font-size: .78rem; color: #9ca3af; font-weight: 600; min-width: 60px; text-align: center; }

/* ── Confirm modal ────────────────────────────────────────────────────────── */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(15, 14, 40, .55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-modal-overlay.hidden { display: none; }
.admin-modal {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 2rem 1.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: admin-modal-in .18s ease-out;
}
@keyframes admin-modal-in {
  from { opacity: 0; transform: scale(.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.admin-modal-title {
  font-size: .9rem;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 .5rem;
}
.admin-modal p {
  margin: 0 0 1.5rem;
  font-size: .85rem;
  line-height: 1.6;
  color: #4b5563;
}
.admin-modal-actions { display: flex; gap: .625rem; justify-content: flex-end; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.admin-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 700;
  background: #1e1b4b;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  padding: .625rem 1.125rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  animation: admin-toast-in .25s ease-out;
  white-space: nowrap;
}
.admin-toast--ok  { background: #065f46; }
.admin-toast--err { background: #dc2626; }
@keyframes admin-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar { width: 56px; }
  .admin-sidebar-brand span,
  .admin-sidebar-brand small,
  .admin-nav-item span,
  .admin-back-link span { display: none; }
  .admin-nav-item { justify-content: center; padding: .625rem; }
  .admin-back-link { justify-content: center; }
  .admin-overlay .admin-main { padding: 1rem; }
  .admin-detail-inner { grid-template-columns: 1fr; }
}

/* ── Ban screen ───────────────────────────────────────────────────────────── */
.cb-ban-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
}
.cb-ban-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.cb-ban-msg {
  font-size: .95rem;
  color: #374151;
  margin: 0;
  line-height: 1.6;
}
.cb-ban-sub {
  font-size: .85rem;
  color: #9ca3af;
  margin: 0;
}
