/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --bg:          #07101f;
  --bg2:         #0d1a2e;
  --bg3:         #152338;
  --bg4:         #1e3050;
  --border:      #263a54;
  --text:        #e8eef8;
  --text-muted:  #7a90b0;
  --blue:        #4da6ff;
  --blue-dark:   #2d8fef;
  --green:       #2ed47a;
  --green-dark:  #1db860;
  --purple:      #b06cff;
  --purple-dark: #9441f0;
  --teal:        #0dd9c4;
  --teal-dark:   #09b8a4;
  --red:         #ff4d6a;
  --yellow:      #ffb300;
  --orange:      #ff7043;
  --orange-dark: #e55630;
  --navy:        #1e3a5f;
  --gold:        #f4c430;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 28px rgba(0,0,0,.55);
  --transition:  .2s ease;
  --glass-bg:    rgba(255,255,255,0.04);
  --glass-border:rgba(255,255,255,0.09);
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ─── Typography ────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; }

/* ─── Snowfall Canvas ───────────────────────────────────────────────────── */
#snow-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ─── PUBLIC NAVBAR ─────────────────────────────────────────────────────── */
.pub-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 68px;
  background: rgba(13,13,13,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.pub-nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800;
  color: var(--text);
}

.pub-nav .brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(59,130,246,.3));
  transition: filter .3s;
}
.pub-nav .brand:hover .brand-logo-img {
  filter: drop-shadow(0 0 14px rgba(59,130,246,.6));
}

.pub-nav .brand-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #fff;
}

.pub-nav .nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}

.pub-nav .nav-links a {
  position: relative;
  padding: 7px 14px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .9rem;
  transition: color .3s;
}

.pub-nav .nav-links a::after {
  content: '';
  position: absolute; bottom: 2px; left: 14px;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width 300ms ease;
}

.pub-nav .nav-links a:hover { color: var(--text); }
.pub-nav .nav-links a:hover::after { width: calc(100% - 28px); }

.pub-nav .btn-nav {
  padding: 9px 22px; border-radius: 50px;
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: .9rem;
  transition: background .2s, transform .2s;
}
.pub-nav .btn-nav:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm);
  transition: background .2s;
}
.hamburger:hover { background: var(--bg3); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: transform .3s, opacity .3s, background .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(13,13,13,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px;
  z-index: 99;
  flex-direction: column; gap: 4px;
  animation: slideDown .25s ease;
}
.mobile-menu.open { display: flex; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

.mobile-menu a {
  display: block; padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .95rem;
  transition: background .2s, color .2s;
  min-height: 48px; display: flex; align-items: center;
}
.mobile-menu a:hover { background: var(--bg3); color: var(--text); }
.mobile-menu .btn-nav-mobile {
  margin-top: 8px; text-align: center; justify-content: center;
  background: var(--blue); color: #fff; border-radius: 50px;
  font-weight: 600;
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  position: relative; z-index: 1;
}

.hero-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 60px;
  max-width: 1080px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  box-shadow: 0 8px 48px rgba(59,130,246,.1);
  backdrop-filter: blur(12px);
}

.hero-text h1 {
  font-size: 3rem; line-height: 1.1;
  color: #e2e8f0;
}
.hero-text h1 span { color: var(--blue); }
.hero-text p {
  margin: 20px 0 36px;
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-logo-box {
  display: flex; align-items: center; justify-content: center;
  background: rgba(30,58,95,.3);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 20px; padding: 40px;
  box-shadow: 0 8px 40px rgba(59,130,246,.15);
}
.hero-logo-box img {
  max-height: 220px; width: auto;
  filter: drop-shadow(0 8px 32px rgba(59,130,246,.3));
}

/* ─── AI CHAT (Ana Sayfa — entegre) ────────────────────────────────────── */
.ai-section {
  max-width: 800px; margin: 0 auto; padding: 0 20px 60px;
  position: relative; z-index: 1;
}

.ai-section-title {
  text-align: center; margin-bottom: 24px;
}
.ai-section-title h2 { font-size: 1.6rem; }
.ai-section-title p { color: var(--text-muted); font-size: .95rem; margin-top: 8px; }

.ai-chat-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px; overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(59,130,246,.08);
}

.ai-chat-messages {
  height: 320px; overflow-y: auto;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}

.ai-msg {
  max-width: 80%; padding: 12px 16px;
  border-radius: 14px; font-size: .9rem; line-height: 1.6;
  animation: msgIn .2s ease;
}
@keyframes msgIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

.ai-msg.user {
  align-self: flex-end;
  background: var(--blue); color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg.bot {
  align-self: flex-start;
  background: var(--bg4); color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.ai-msg.typing { opacity: .6; font-style: italic; }

.ai-chat-input {
  display: flex; gap: 10px; padding: 16px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,.2);
}
.ai-chat-input input {
  flex: 1; padding: 11px 16px;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 50px; color: var(--text);
  font-size: .9rem; outline: none; transition: border-color .2s;
}
.ai-chat-input input:focus { border-color: var(--blue); }
.ai-chat-input button {
  padding: 11px 20px; border-radius: 50px;
  background: var(--blue); color: #fff;
  border: none; cursor: pointer; font-weight: 600;
  font-size: .88rem; transition: background .2s, transform .15s;
  white-space: nowrap;
}
.ai-chat-input button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.ai-chat-input button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ─── Floating AI Widget (tüm sayfalar) ────────────────────────────────── */
.ai-float-btn {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none; cursor: pointer; color: #fff;
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(59,130,246,.5);
  z-index: 999; transition: transform .2s, box-shadow .2s;
}
.ai-float-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(59,130,246,.6); }

.ai-float-panel {
  position: fixed; bottom: 96px; right: 28px;
  width: 360px; max-height: 500px;
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  z-index: 998;
  display: none; flex-direction: column;
}
.ai-float-panel.open { display: flex; animation: panelIn .25s ease; }
@keyframes panelIn { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:none; } }

.ai-float-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(168,85,247,.1));
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 10px;
}
.ai-float-header span:first-child { font-size: 1.3rem; }
.ai-float-header .ai-title { font-weight: 600; font-size: .92rem; }
.ai-float-header .ai-sub { font-size: .75rem; color: var(--text-muted); }
.ai-float-close {
  margin-left: auto; background: none; border: none; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; transition: color .2s; padding: 2px;
}
.ai-float-close:hover { color: var(--text); }

.ai-float-messages {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-float-input {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--glass-border);
}
.ai-float-input input {
  flex: 1; padding: 9px 14px;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 50px; color: var(--text);
  font-size: .85rem; outline: none; transition: border-color .2s;
}
.ai-float-input input:focus { border-color: var(--blue); }
.ai-float-input button {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); border: none; cursor: pointer;
  color: #fff; font-size: 1rem; display: flex; align-items: center;
  justify-content: center; transition: background .2s;
}
.ai-float-input button:hover { background: var(--blue-dark); }

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 50px;
  font-weight: 600; font-size: .9rem; cursor: pointer;
  border: none; transition: var(--transition);
}

.btn-blue   { background: var(--blue);   color: #fff; }
.btn-green  { background: var(--green);  color: #fff; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
}

.btn-blue:hover   { background: var(--blue-dark);   transform: translateY(-2px); box-shadow: 0 4px 16px rgba(59,130,246,.4); }
.btn-green:hover  { background: var(--green-dark);  transform: translateY(-2px); box-shadow: 0 4px 16px rgba(34,197,94,.4); }
.btn-purple:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(168,85,247,.4); }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }

.btn-sm { padding: 7px 16px; font-size: .82rem; border-radius: 8px; }
.btn-xs { padding: 4px 10px; font-size: .78rem; border-radius: 6px; }
.btn-red    { background: var(--red);    color: #fff; }
.btn-yellow { background: var(--yellow); color: #000; }
.btn-gray   { background: var(--bg4);   color: var(--text); }
.btn-red:hover    { background: #e5243a; transform: translateY(-1px); }
.btn-yellow:hover { background: #d99200; transform: translateY(-1px); }
.btn-gray:hover   { background: #1e3050; transform: translateY(-1px); }
.btn-teal   { background: var(--teal);   color: #000; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-teal:hover   { background: var(--teal-dark);   transform: translateY(-2px); box-shadow: 0 4px 16px rgba(13,217,196,.35); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,112,67,.35); }
.select-btn.teal  { background: var(--teal); color: #000; }

/* ─── AI SCORE CARD ─────────────────────────────────────────────────────── */
.ai-score-card {
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(168,85,247,.06));
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--radius); padding: 20px;
  margin-top: 16px;
}
.ai-score-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,.15); color: var(--blue);
  padding: 6px 16px; border-radius: 50px;
  font-size: 1.1rem; font-weight: 800; margin-bottom: 12px;
}
.ai-score-label { font-size: .78rem; color: var(--text-muted); margin-bottom: 16px; }
.ai-feedback-box {
  background: var(--bg4); border-radius: var(--radius-sm);
  padding: 14px; margin-top: 10px; font-size: .88rem;
  color: var(--text-muted); line-height: 1.7;
}
.ai-feedback-box strong { color: var(--text); display: block; margin-bottom: 6px; }

/* ─── PASSWORD GEN BUTTON ────────────────────────────────────────────────── */
.pass-gen-btn {
  font-size: .75rem; padding: 4px 10px; border-radius: 6px;
  background: rgba(59,130,246,.15); color: var(--blue);
  border: 1px solid rgba(59,130,246,.3); cursor: pointer;
  transition: background .2s; white-space: nowrap;
  margin-top: 6px; display: inline-block;
}
.pass-gen-btn:hover { background: rgba(59,130,246,.25); }

.pass-view-btn {
  font-size: .75rem; padding: 4px 10px; border-radius: 6px;
  background: rgba(245,158,11,.1); color: var(--yellow);
  border: 1px solid rgba(245,158,11,.3); cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.pass-view-btn:hover { background: rgba(245,158,11,.2); }

/* ─── FEATURES SECTION ──────────────────────────────────────────────────── */
.section { padding: 80px 20px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; }
.section-title p  { color: var(--text-muted); margin-top: 10px; font-size: 1rem; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  backdrop-filter: blur(8px);
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(59,130,246,.3); box-shadow: 0 8px 32px rgba(59,130,246,.1); }

.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature-icon.blue   { background: rgba(59,130,246,.15); color: var(--blue); }
.feature-icon.green  { background: rgba(34,197,94,.15);  color: var(--green); }
.feature-icon.purple { background: rgba(168,85,247,.15); color: var(--purple); }
.feature-icon.yellow { background: rgba(245,158,11,.15); color: var(--yellow); }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p  { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ─── ROLES SECTION ─────────────────────────────────────────────────────── */
.roles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.role-card {
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform .25s, box-shadow .25s;
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }

.role-card.manager { background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(59,130,246,.03)); border-color: rgba(59,130,246,.25); }
.role-card.teacher { background: linear-gradient(135deg, rgba(34,197,94,.08),  rgba(34,197,94,.03));  border-color: rgba(34,197,94,.25); }
.role-card.student { background: linear-gradient(135deg, rgba(168,85,247,.08), rgba(168,85,247,.03)); border-color: rgba(168,85,247,.25); }

.role-card .role-icon { font-size: 2.5rem; margin-bottom: 16px; }
.role-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.role-card ul { list-style: none; text-align: left; }
.role-card ul li { color: var(--text-muted); font-size: .88rem; padding: 4px 0; }
.role-card ul li::before { content: "✓ "; color: var(--green); }

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { max-width: 750px; margin: 0 auto; }

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  overflow: hidden; backdrop-filter: blur(8px);
}

.faq-question {
  padding: 18px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; user-select: none; transition: background .2s;
}
.faq-question:hover { background: rgba(255,255,255,.03); }
.faq-question .icon { transition: transform .3s; font-size: .8rem; color: var(--text-muted); }
.faq-question.open .icon { transform: rotate(180deg); }

.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-answer.open { max-height: 200px; padding: 0 24px 18px; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; }

/* ─── CONTACT ───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}
.contact-info p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.contact-info .info-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); margin-bottom: 14px; font-size: .9rem;
}
.contact-info .info-item span:first-child { font-size: 1.1rem; }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.pub-footer {
  border-top: 1px solid var(--glass-border);
  padding: 32px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; z-index: 1;
}
.pub-footer .footer-brand {
  font-size: 1.1rem; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pub-footer .footer-copy {
  font-size: .82rem; color: var(--text-muted);
  font-family: 'Georgia', 'Times New Roman', serif;
  letter-spacing: .02em;
}

/* ─── AUTH PAGES ────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at center top, #0d1a2e 0%, #0d0d0d 60%);
}

.auth-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 48px 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-card h1 { font-size: 1.8rem; text-align: center; margin-bottom: 6px; }
.auth-card .subtitle {
  text-align: center; color: var(--text-muted);
  font-size: .9rem; margin-bottom: 32px;
}

.select-btns { display: flex; flex-direction: column; gap: 14px; }

.select-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; border-radius: var(--radius); border: none;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); color: #fff; text-decoration: none;
}
.select-btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.select-btn.blue   { background: var(--blue); }
.select-btn.green  { background: var(--green); }
.select-btn.purple { background: var(--purple); }
.select-btn .icon  { font-size: 1.4rem; width: 32px; text-align: center; }

/* ─── FORM ELEMENTS ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .87rem; font-weight: 500; margin-bottom: 7px; color: #ccc; }

.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: .95rem; transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }

.input-wrap { position: relative; }
.input-wrap .form-control { padding-right: 44px; }
.input-wrap .toggle-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1rem; padding: 4px;
  transition: color .2s;
}
.input-wrap .toggle-pass:hover { color: var(--text); }

.forgot-link { display: block; text-align: right; font-size: .83rem; color: var(--text-muted); margin-bottom: 24px; }

.btn-submit {
  width: 100%; padding: 14px; border-radius: 50px;
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-submit.blue   { background: var(--blue);   color: #fff; }
.btn-submit.green  { background: var(--green);  color: #fff; }
.btn-submit.purple { background: var(--purple); color: #fff; }
.btn-submit.teal   { background: var(--teal);   color: #000; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3); filter: brightness(1.1); }

.back-link {
  text-align: center; display: block; margin-top: 20px;
  color: var(--text-muted); font-size: .87rem; transition: color .2s;
}
.back-link:hover { color: var(--text); }

/* ─── ALERTS / FLASH ────────────────────────────────────────────────────── */
.alert {
  padding: 12px 18px; border-radius: var(--radius-sm);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
  font-size: .9rem;
}
.alert-success { background: rgba(34,197,94,.15);  border: 1px solid rgba(34,197,94,.3);  color: #86efac; }
.alert-danger  { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }
.alert-info    { background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }
.alert .close-btn { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; font-size: 1.1rem; opacity: .7; }
.alert .close-btn:hover { opacity: 1; }

/* ─── DASHBOARD LAYOUT ──────────────────────────────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand .brand-logo {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #fff; overflow: hidden;
}
.sidebar-brand .brand-logo img {
  width: 100%; height: 100%; object-fit: contain;
}
.sidebar-brand .brand-text { font-weight: 700; font-size: 1rem; }
.sidebar-brand .brand-sub  { font-size: .75rem; color: var(--text-muted); }

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-user .user-name  { font-weight: 600; font-size: .92rem; }
.sidebar-user .user-role  { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.sidebar-user .user-school { font-size: .76rem; color: var(--text-muted); margin-top: 1px; }

.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-section-label {
  padding: 10px 20px 4px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text-muted); text-transform: uppercase;
}

.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 0;
  color: var(--text-muted); font-size: .9rem;
  transition: background .15s, color .15s; position: relative;
}
.sidebar-nav a:hover { background: var(--bg3); color: var(--text); }
.sidebar-nav a.active { background: var(--bg4); color: var(--text); font-weight: 600; }
.sidebar-nav a .icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; border-radius: 0 2px 2px 0;
}

.sidebar-blue   a.active::before  { background: var(--blue); }
.sidebar-green  a.active::before  { background: var(--green); }
.sidebar-purple a.active::before  { background: var(--purple); }
.sidebar-teal   a.active::before  { background: var(--teal); }

.sidebar-nav a.active.blue   { color: var(--blue); }
.sidebar-nav a.active.green  { color: var(--green); }
.sidebar-nav a.active.purple { color: var(--purple); }
.sidebar-nav a.active.teal   { color: var(--teal); }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.sidebar-footer a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: .87rem;
  transition: color .2s;
}
.sidebar-footer a:hover { color: var(--red); }

.sidebar-toggle-btn { display: none; }

/* ─── MAIN CONTENT ──────────────────────────────────────────────────────── */
.main-content { flex: 1; min-width: 0; }

.topbar {
  height: 60px; padding: 0 28px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 1rem; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.page-body { padding: 28px; }

/* ─── CARDS ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.card-header {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 1rem; font-weight: 600; }
.card-body { padding: 22px; }

/* ─── STAT CARDS ────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
  backdrop-filter: blur(8px);
}
.stat-card .stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; }
.stat-card .stat-sub   { font-size: .78rem; color: var(--text-muted); }
.stat-card.blue   .stat-value { color: var(--blue); }
.stat-card.green  .stat-value { color: var(--green); }
.stat-card.purple .stat-value { color: var(--purple); }
.stat-card.yellow .stat-value { color: var(--yellow); }
.stat-card.red    .stat-value { color: var(--red); }

.robot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.robot-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.robot-card .robot-title {
  font-weight: 700;
  font-size: 1rem;
}
.robot-card .robot-meta,
.robot-card .robot-detail {
  font-size: .84rem;
  color: var(--text-muted);
}

/* ─── TABLES ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
thead th {
  padding: 12px 16px; text-align: left;
  background: var(--bg4); color: var(--text-muted);
  font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg4); }
tbody td { padding: 13px 16px; vertical-align: middle; }

/* ─── DB TABLE ──────────────────────────────────────────────────────────── */
.db-table-tab {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.db-tab-btn {
  padding: 6px 14px; border-radius: 50px;
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .82rem; cursor: pointer;
  transition: .2s;
}
.db-tab-btn:hover, .db-tab-btn.active { background: rgba(59,130,246,.15); border-color: var(--blue); color: var(--blue); }

/* ─── BADGES ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 50px;
  font-size: .75rem; font-weight: 600;
}
.badge-blue   { background: rgba(59,130,246,.2);  color: var(--blue); }
.badge-green  { background: rgba(34,197,94,.2);   color: var(--green); }
.badge-purple { background: rgba(168,85,247,.2);  color: var(--purple); }
.badge-red    { background: rgba(239,68,68,.2);   color: var(--red); }
.badge-yellow { background: rgba(245,158,11,.2);  color: var(--yellow); }
.badge-gray   { background: var(--bg4);           color: var(--text-muted); }

/* ─── MODALS ─────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg3); border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 32px; width: 100%; max-width: 480px;
  box-shadow: var(--shadow); transform: translateY(20px); transition: transform .25s;
  backdrop-filter: blur(12px);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ─── ATTENDANCE CALENDAR ───────────────────────────────────────────────── */
.calendar-wrap { overflow-x: auto; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.calendar-nav h3 { font-size: 1.3rem; font-weight: 700; }

.cal-table { width: 100%; border-collapse: separate; border-spacing: 4px; }
.cal-table th { padding: 10px; text-align: center; color: var(--text-muted); font-size: .8rem; font-weight: 600; }
.cal-table td { vertical-align: top; }

.cal-day {
  min-height: 80px; padding: 8px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); cursor: default; transition: var(--transition);
}
.cal-day.has-att { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.3); cursor: pointer; }
.cal-day.has-att:hover { background: rgba(59,130,246,.15); transform: translateY(-2px); }
.cal-day.today { border-color: var(--blue); }
.cal-day.empty { background: transparent; border-color: transparent; }
.cal-day-num { font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.cal-day.today .cal-day-num {
  background: var(--blue); color: #fff;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-top: 4px; }

/* ─── ASSIGNMENT CARD ───────────────────────────────────────────────────── */
.hw-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, box-shadow .2s;
  backdrop-filter: blur(8px);
}
.hw-card:hover { border-color: rgba(59,130,246,.2); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.hw-card.overdue { border-color: rgba(239,68,68,.3); }
.hw-card.submitted { border-color: rgba(34,197,94,.2); }
.hw-card-title { font-size: 1rem; font-weight: 600; }
.hw-card-meta  { font-size: .82rem; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hw-card-desc  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.hw-card-footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ─── ANNOUNCEMENT CARD ─────────────────────────────────────────────────── */
.ann-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 20px; transition: var(--transition);
  backdrop-filter: blur(8px);
}
.ann-card:hover { border-color: rgba(59,130,246,.3); }
.ann-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.ann-card-meta  { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.ann-card-body  { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ─── ATTENDANCE STATUS ─────────────────────────────────────────────────── */
.att-present { color: var(--green); }
.att-absent  { color: var(--red); }
.att-late    { color: var(--yellow); }

/* ─── EMPTY STATE ───────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.empty-state p { font-size: .95rem; }

/* ─── GRID UTILITIES ────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap { display: flex; gap: 10px; flex-wrap: wrap; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .85rem; }
.w-full { width: 100%; }

/* ─── CLASS CHIP ─────────────────────────────────────────────────────────── */
.class-chip {
  padding: 6px 14px;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 20px; cursor: pointer; font-size: .85rem;
  user-select: none; transition: var(--transition);
}
.class-chip:hover { border-color: var(--text-muted); }
.class-chip.selected { background: rgba(59,130,246,.2); border-color: var(--blue); color: var(--blue); font-weight: 600; }

/* ─── SPINNER ────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
  vertical-align: -2px; margin-right: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }
button[disabled] { opacity: .65; cursor: not-allowed; }

/* ─── FILE INPUT ────────────────────────────────────────────────────────── */
.file-input-wrap {
  background: var(--bg4); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 14px; transition: var(--transition);
}
.file-input-wrap:hover { border-color: var(--blue); }
.file-input-wrap input[type=file] {
  width: 100%; background: transparent; border: none;
  color: var(--text); font-size: .87rem; cursor: pointer;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .roles-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .pub-nav { padding: 0 16px; }
  .pub-nav .nav-links { display: none; }
  .pub-nav .btn-nav { display: none; }
  .hamburger { display: flex; }

  .pub-nav .brand-logo-img { height: 36px; }

  .hero-card { grid-template-columns: 1fr; gap: 32px; padding: 36px 24px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-logo-box { padding: 24px; }
  .hero-logo-box img { max-height: 140px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .ai-float-panel { width: calc(100vw - 32px); right: 16px; }

  /* Dashboard mobile: collapsible sidebar */
  .dash-layout { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto;
    position: sticky; top: 0; z-index: 60;
    flex-direction: column;
    border-right: none; border-bottom: 1px solid var(--border);
    overflow: visible; padding: 0;
  }
  .sidebar-brand {
    padding: 10px 14px; border-bottom: none;
    display: flex; align-items: center;
    justify-content: space-between; flex-direction: row; width: 100%;
  }
  .sidebar-brand .brand-text { font-size: .92rem; }
  .sidebar-brand .brand-sub { font-size: .7rem; }
  .sidebar-brand .brand-logo { width: 30px; height: 30px; font-size: .9rem; }
  .sidebar-toggle-btn {
    display: flex; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer;
    padding: 6px; border-radius: 6px; transition: background .2s;
  }
  .sidebar-toggle-btn:hover { background: var(--bg3); }
  .sidebar-toggle-btn span {
    display: block; width: 20px; height: 2px;
    background: var(--text-muted); border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }
  .sidebar.expanded .sidebar-toggle-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .sidebar.expanded .sidebar-toggle-btn span:nth-child(2) { opacity: 0; }
  .sidebar.expanded .sidebar-toggle-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .sidebar-user { display: none; }
  .sidebar.expanded .sidebar-user {
    display: block; padding: 10px 14px; border-bottom: 1px solid var(--border);
  }
  .sidebar-nav {
    display: none; flex-direction: column;
    padding: 8px 0; gap: 0; width: 100%;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    max-height: 60vh; overflow-y: auto;
  }
  .sidebar.expanded .sidebar-nav { display: flex; }
  .sidebar-nav .nav-section-label { display: block; padding: 8px 14px 2px; }
  .sidebar-nav a {
    padding: 13px 18px; border-radius: 0; font-size: .92rem;
    white-space: normal; min-height: 48px;
    display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  .sidebar-nav a.active::before { display: none; }
  .sidebar-footer {
    display: none; padding: 10px 14px;
    background: var(--bg2); border-bottom: 1px solid var(--border);
  }
  .sidebar.expanded .sidebar-footer { display: flex; }

  .topbar { padding: 0 14px; height: 50px; }
  .topbar-title { font-size: .92rem; }
  .page-body { padding: 14px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .stat-card .stat-label { font-size: .72rem; }

  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; }
  thead th { padding: 10px 12px; font-size: .72rem; }
  tbody td { padding: 10px 12px; }

  .modal { max-width: 100% !important; margin: 0; border-radius: 16px 16px 0 0; padding: 24px 18px; max-height: 92vh; overflow-y: auto; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-footer { flex-wrap: wrap; }
  .modal .grid-2 { grid-template-columns: 1fr; }
  .card-header { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
  .card-body { padding: 16px; }
  .cal-day { min-height: 56px; padding: 4px; }
  .cal-day-num { font-size: .78rem; }
  .cal-table th { font-size: .7rem; padding: 6px 4px; }
  .hw-card > div:first-child { flex-direction: column; gap: 10px; }
  .hw-card-meta { gap: 8px; font-size: .78rem; }
  .card-body form > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .auth-card { padding: 28px 18px; max-width: 100%; }
  .select-btn { padding: 14px 18px; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .flex-between { flex-direction: column; gap: 10px; align-items: flex-start; }
  .flex-between .btn, .flex-between button { align-self: flex-start; }
  .pub-footer { flex-direction: column; gap: 6px; text-align: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .topbar-right .text-muted { display: none; }
  .ai-section { padding: 0 16px 40px; }
  .ai-chat-messages { height: 240px; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .modal { padding: 20px 14px; }
  .btn { padding: 9px 18px; font-size: .85rem; }
  .btn-sm { padding: 6px 12px; font-size: .78rem; }
}

/* ─── LOGIN UPDATE POPUP ─────────────────────────────────────────────────── */
.update-popup-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.update-popup-backdrop.open { opacity: 1; pointer-events: all; }

.update-popup {
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 32px;
  width: 100%; max-width: 520px;
  box-shadow: 0 16px 60px rgba(0,0,0,.6);
  transform: translateY(24px) scale(.97);
  transition: transform .3s;
  max-height: 82vh; overflow-y: auto;
}
.update-popup-backdrop.open .update-popup { transform: translateY(0) scale(1); }

.update-popup-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.update-popup-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(77,166,255,.2), rgba(176,108,255,.15));
  border: 1px solid rgba(77,166,255,.3);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.update-popup-header h3 { font-size: 1.15rem; font-weight: 700; }
.update-popup-header p  { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.update-popup-close {
  margin-left: auto; background: none; border: none;
  color: var(--text-muted); font-size: 1.2rem; cursor: pointer; transition: color .2s;
}
.update-popup-close:hover { color: var(--text); }

.update-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  margin-bottom: 8px; transition: border-color .2s;
}
.update-item:hover { border-color: rgba(77,166,255,.25); }
.update-item-icon {
  font-size: 1.2rem; flex-shrink: 0; margin-top: 1px;
}
.update-item-body { flex: 1; min-width: 0; }
.update-item-title { font-size: .9rem; font-weight: 600; line-height: 1.4; }
.update-item-meta  { font-size: .78rem; color: var(--text-muted); margin-top: 3px; }
.update-type-badge {
  font-size: .7rem; font-weight: 700; padding: 2px 8px;
  border-radius: 50px; margin-left: 6px;
  vertical-align: middle;
}
.update-type-announcement { background: rgba(77,166,255,.15); color: var(--blue); }
.update-type-assignment    { background: rgba(176,108,255,.15); color: var(--purple); }

.update-popup-footer {
  margin-top: 20px; display: flex; justify-content: flex-end;
}

/* ─── STAT CARD teal ─────────────────────────────────────────────────────── */
.stat-card.teal .stat-value { color: var(--teal); }

/* ─── BADGE teal ─────────────────────────────────────────────────────────── */
.badge-teal { background: rgba(13,217,196,.18); color: var(--teal); }
