/* "Neon Flux" design system (2026-07-22, per user spec) — dark, glassy,
   neon-green-on-black. Replaces the earlier light theme entirely. Self-hosted
   fonts only (Poppins for headings, Inter for body — see /static/fonts),
   no Google Fonts CDN at runtime. Background art in /static/img/bg-neon-flux.webp. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1EFF, U+2020, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1EFF, U+2020, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/poppins-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/poppins-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1EFF, U+2020, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1EFF, U+2020, U+A720-A7FF;
}

:root {
  --color-primary: #76ff00;
  --color-primary-text: #06120a;
  --color-accent-2: #00ffd1;
  --color-bg-start: #0a0f1e;
  --color-bg-end: #000000;
  --color-surface: rgba(26, 34, 56, 0.88);
  --color-surface-solid: #1a2238;
  --color-text: #ffffff;
  --color-text-muted: #b0b8c4;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-accent: rgba(118, 255, 0, 0.3);
  --color-success: #2ecc71;
  --color-warning: #f2b705;
  --color-danger: #ff6b6b;
  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.35);
  --glow-primary: 0 4px 15px rgba(118, 255, 0, 0.35);
  --glow-primary-soft: 0 0 10px rgba(118, 255, 0, 0.45);
  --blur-glass: blur(14px);
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--color-bg-end); }

body {
  position: relative;
  z-index: 0;
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-bg-start) 0%, var(--color-bg-end) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  min-height: 100vh;
  padding: 20px 16px 96px;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

h1 {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
h2 { font-family: var(--font-family); font-size: 17px; font-weight: 500; margin: 0 0 8px; }
h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
p { color: var(--color-text-muted); line-height: 1.5; font-size: 15px; }
.text-accent { color: var(--color-primary); font-style: italic; }

/* Floating pill nav bar — icon-only (2026-07-23, matched to reference: a
   floating rounded-full bar with side margins, not a full-width bottom bar).
   Active tab gets a small glowing dot above the icon instead of a text label. */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.tabbar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.tabbar__icon { width: 24px; height: 24px; position: relative; }
.tabbar__icon svg { width: 100%; height: 100%; stroke: currentColor; }
.tabbar__item--active { color: var(--color-primary); }
.tabbar__item--active .tabbar__icon::after {
  content: "";
  position: absolute;
  top: -3px; right: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

/* Top bar */
/* Matches .dashboard-header__brand exactly (2026-07-23 consistency pass) —
   previously a big centered bold uppercase banner, visually unrelated to the
   small left-aligned wordmark used on the redesigned home screen. Every page
   now shares one small brand mark. */
.appbar {
  display: flex;
  align-items: center;
  padding: 4px 0 20px;
}
.appbar__brand {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
}
.appbar__brand-accent { color: var(--color-primary); }

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-btn);
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
  box-shadow: var(--glow-primary);
}
.btn--primary:active { box-shadow: 0 4px 24px rgba(118, 255, 0, 0.65); }
.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-accent);
}
.btn--small {
  width: auto;
  padding: 8px 16px;
  font-size: 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-primary-text);
  box-shadow: var(--glow-primary);
}

/* Onboarding */
.onboarding { padding-top: 8px; }
.onboarding--center { text-align: center; }
.onboarding__icon {
  display: block;
  width: 64px; height: 64px;
  border-radius: 18px;
  margin: 8px auto 24px;
  box-shadow: var(--glow-primary);
}
.onboarding__dots {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.onboarding__dot {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
}
.onboarding__dot--active { background: var(--color-primary); box-shadow: var(--glow-primary-soft); }
.onboarding__image {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  margin: 20px 0;
}
.onboarding__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: cover;
  object-position: top;
}
.onboarding__image--inset {
  padding: 18px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.onboarding__image--inset img { border-radius: 12px; }
.onboarding__feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.onboarding__feature-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(118, 255, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.onboarding__feature-title { font-weight: 700; font-size: 14px; }
.onboarding__footer-link { text-align: center; margin-top: 20px; color: var(--color-text-muted); font-size: 14px; }
.onboarding__footer-link a { color: var(--color-primary); font-weight: 700; text-decoration: none; }

.intro-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.intro-bullets li { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
.intro-bullets__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(118, 255, 0, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-bullets__icon svg { width: 18px; height: 18px; stroke: currentColor; }

/* Login */
.login { text-align: center; padding-top: 40px; }
.dev-link-card { text-align: left; }
.dev-link-card p { margin-top: 0; }

.emoji-hero { font-size: 48px; margin-bottom: 16px; text-align: center; filter: drop-shadow(0 0 12px rgba(118, 255, 0, 0.4)); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.form label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form input, .form select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-btn);
  padding: 13px 14px;
  font-family: var(--font-family);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus, .form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(118, 255, 0, 0.15);
}
.form select option { background: var(--color-surface-solid); color: var(--color-text); }
.form button { margin-top: 16px; }

.form__datetime { display: flex; gap: 10px; }
.form__datetime > div { flex: 1; min-width: 0; }
.form__datetime label { margin-top: 8px; }
.form input[type="date"], .form input[type="time"] { color-scheme: dark; }

.alert { padding: 12px 14px; border-radius: var(--radius-btn); font-size: 14px; }
.alert--error { background: rgba(255, 107, 107, 0.12); color: #ff8a8a; border: 1px solid rgba(255, 107, 107, 0.3); }
.alert--success { background: rgba(46, 204, 113, 0.12); color: #6fe3a0; border: 1px solid rgba(46, 204, 113, 0.3); }

/* Cards / lists */
.student-list, .exam-list, .payment-list { list-style: none; padding: 0; margin: 0; }
.student-list > li { margin-bottom: 12px; }
.payment-card {
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.payment-card__top { display: flex; justify-content: space-between; align-items: baseline; }
.payment-card__student { font-weight: 700; }
.payment-card__amount { font-weight: 800; color: var(--color-primary); }
.payment-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.payment-list__empty, .student-list__empty, .exam-list__empty, .today-list__empty {
  color: var(--color-text-muted);
  text-align: center;
  padding: 24px;
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-card);
  list-style: none;
  font-size: 14px;
}
.student-card {
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.student-card:active { transform: scale(0.98); }
.student-card__name { font-weight: 600; }
.badge { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: 0.03em; }
.badge--danger { background: rgba(255, 107, 107, 0.15); color: #ff8a8a; }

.info-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1;
  padding: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.info-btn:hover { color: var(--color-text); }

.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.info-modal[hidden] { display: none; }
.info-modal__box {
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  max-width: 360px;
  box-shadow: var(--shadow-card);
}
.info-modal__header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.info-modal__header h3 { margin: 0; font-size: 16px; }
.info-modal__close { background: transparent; border: none; color: var(--color-text-muted); font-size: 16px; cursor: pointer; padding: 4px; }
.info-modal__box p { font-size: 14px; color: var(--color-text-muted); margin: 0 0 10px; }
.info-modal__box ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--color-text); display: flex; flex-direction: column; gap: 6px; }

.sheet {
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-top: 16px;
  box-shadow: var(--shadow-card);
}
.sheet__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sheet__header h2 { margin: 0; }
.sheet-close {
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.sheet__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.detail-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 14px; }
.detail-list dt { color: var(--color-text-muted); }
.detail-list dd { margin: 0; font-weight: 600; }
.detail-list dd a[href^="tel"], .detail-list dd a[href^="mailto"] {
  color: inherit;
  text-decoration: none;
}

.lesson-note-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.lesson-note-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px 12px;
}
.lesson-note-item__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.lesson-note-item__status { color: var(--color-text-muted); }

.app-version { text-align: center; font-size: 12px; color: var(--color-text-muted); margin-top: 24px; }

.profile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

.section-title {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 28px 0 12px 4px;
}
.profile-card {
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.empty-note { color: var(--color-text-muted); font-size: 14px; margin: 0; }

.rating-headline { display: flex; align-items: baseline; gap: 6px; }
.rating-headline__score { font-size: 32px; font-weight: 800; color: var(--color-primary); }
.rating-headline__max { font-size: 14px; color: var(--color-text-muted); }
.rating-headline__count { font-size: 13px; color: var(--color-text-muted); margin-left: 4px; }
.review-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.review-item { border-top: 1px solid var(--color-border); padding-top: 12px; }
.review-item__text { margin: 0; font-size: 14px; font-style: italic; }
.review-item__meta { font-size: 12px; color: var(--color-text-muted); }

.year-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 12px;
}
.year-switch a { color: var(--color-text-muted); text-decoration: none; font-size: 14px; }
.year-switch a:hover { color: var(--color-primary); }
.year-switch span { font-size: 16px; color: var(--color-text); }

.stat-card {
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-card);
}
.stat-card__value { font-size: 28px; font-weight: 800; color: var(--color-primary); }
.stat-card__label { font-size: 12px; color: var(--color-text-muted); text-align: center; }

.stat-details { margin-top: 12px; font-size: 13px; color: var(--color-text-muted); }
.stat-details summary { cursor: pointer; padding: 4px; }
.plain-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }

.prospect-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.prospect-card {
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.prospect-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prospect-card__name { font-weight: 700; }
.prospect-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.prospect-card__availability { margin: 8px 0 0; font-size: 13px; color: var(--color-text-muted); }
.badge--muted { background: rgba(255, 255, 255, 0.06); color: var(--color-text-muted); white-space: nowrap; }

.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.link-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.link-list__hint {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-left: 12px;
}

.qr-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.qr-box img { width: 100%; max-width: 220px; height: auto; display: block; }

.bank-accounts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(rgba(118, 255, 0, 0.08), rgba(118, 255, 0, 0.08)), var(--color-surface);
  border: 1px solid rgba(118, 255, 0, 0.25);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.bank-account { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bank-account__label { display: block; font-size: 12px; color: var(--color-text-muted); }
.bank-account__number { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.copy-btn {
  background: rgba(118, 255, 0, 0.1);
  border: 1px solid rgba(118, 255, 0, 0.3);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.copy-btn:active { background: rgba(118, 255, 0, 0.2); }

/* Home dashboard (Naptár) — 2026-07-23 redesign matched to a user-supplied
   reference (Tailwind/Iconify mockup), reimplemented in our own hand-authored
   CSS + self-hosted line icons instead of adding those CDN dependencies. */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 20px;
}
.dashboard-header__left { display: flex; flex-direction: column; }
.dashboard-header__brand {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}
.dashboard-header__date { color: var(--color-text-muted); font-size: 14px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.span-2 { grid-column: span 2; }

.card {
  border-radius: var(--radius-card);
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Animated gradient-glow border ("bento box" cards). Reimplements the visual
   effect of Aceternity UI's <BackgroundGradient> (React + Framer Motion) in
   plain CSS. Wraps .card rather than living on .card itself, because .card
   has overflow:hidden (needed for its own internal decorative blob) which
   would clip a glow that needs to bleed outside the box.

   2026-07-23: scaled down hard per user feedback ("gradient still too big,
   get rid of 90% of it") — halo inset went from -24px to -6px and blur from
   20px to 8px, so it's a tight, subtle rim-light instead of a room-filling
   wash. Also scoped to *one* card per context instead of every card in a
   grid — currently just the Naptár home screen's "Következő óra" highlight
   card and the Tanulóim student-detail panel when expanded. Don't add it to
   every card again; ask which single element should get it. */
.bento-glow { position: relative; border-radius: var(--radius-card); }
.bento-glow::before,
.bento-glow::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg, var(--color-primary), var(--color-accent-2), var(--color-primary));
  background-size: 200% 200%;
  animation: bento-glow-shift 5s linear infinite;
}
.bento-glow::before {
  /* the crisp rim — just barely outside the card edge */
  inset: -1px;
}
.bento-glow::after {
  /* the soft halo — needs to extend just enough beyond the card for the blur
     to fade before it's behind the card's own content, without spilling into
     a huge wash (see the file-level comment above for how big this used to be). */
  inset: -6px;
  z-index: -2;
  filter: blur(8px);
  opacity: 0.4;
}
@keyframes bento-glow-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-glow::before, .bento-glow::after { animation: none; background-position: 30% 50%; }
}

.card--greeting { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.card__glow {
  position: absolute;
  top: 0; right: 0;
  width: 128px; height: 128px;
  background: var(--color-primary);
  opacity: 0.1;
  filter: blur(50px);
  border-radius: 50%;
}
.greeting__title { margin-bottom: 4px; }
.greeting__sub { margin: 0; }
.greeting__sub strong { color: var(--color-text); font-weight: 600; }

.card--highlight {
  padding: 24px;
  /* Layered: opaque dark surface first, subtle green wash on top — needs to
     stay mostly opaque (2026-07-23 fix) or the bento-glow halo sitting behind
     it (see .bento-glow::after) bleeds all the way through via backdrop-filter
     and floods the whole card in solid green instead of just tinting it. A
     flat rgba(118,255,0,0.08) fill (previous value) was far too transparent
     to resist that. */
  background: linear-gradient(rgba(118, 255, 0, 0.1), rgba(118, 255, 0, 0.1)), var(--color-surface);
  border-color: rgba(118, 255, 0, 0.25);
}
.highlight__topline {
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(118, 255, 0, 0.6), transparent);
}
.highlight__label {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0 0 16px;
}
.highlight__row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.highlight__student { display: flex; align-items: center; gap: 14px; }
.highlight__icon {
  width: 46px; height: 46px;
  border-radius: 16px;
  background: rgba(26, 34, 56, 0.6);
  border: 1px solid rgba(118, 255, 0, 0.2);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.highlight__icon svg { width: 22px; height: 22px; stroke: currentColor; }
.highlight__name { margin: 0; font-size: 18px; }
.highlight__name a { color: inherit; text-decoration: none; }
.highlight__name a:hover { color: var(--color-primary); }
.highlight__type { margin: 0; font-size: 13px; color: rgba(118, 255, 0, 0.8); }
.highlight__time { text-align: right; }
.highlight__start { font-size: 18px; font-weight: 500; color: var(--color-text); }
.highlight__end { margin: 0; font-size: 12px; color: rgba(118, 255, 0, 0.8); }
.highlight__empty { color: var(--color-text-muted); font-size: 14px; margin: 0; }
.highlight__cta {
  width: 100%;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px;
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.highlight__cta:active { transform: scale(0.98); }
.highlight__cta svg { width: 20px; height: 20px; stroke: currentColor; }

.card--action {
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
.action__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.action__icon svg { width: 22px; height: 22px; stroke: currentColor; }
.action__label { font-size: 14px; font-weight: 500; color: var(--color-text-muted); }

.today-section__title {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 8px 0 12px 4px;
}
.today-list { display: flex; flex-direction: column; gap: 10px; }
.today-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.today-item__row { display: flex; align-items: center; justify-content: space-between; }
.today-item--done { opacity: 0.75; }
.today-item__left { display: flex; align-items: center; gap: 14px; }
.today-item__time { font-size: 16px; font-weight: 500; color: var(--color-text-muted); width: 44px; }
.today-item__time--done { text-decoration: line-through; }
.today-item__divider { width: 1px; height: 32px; background: var(--color-border); }
.today-item__info { display: flex; flex-direction: column; }
.today-item__name { font-size: 15px; font-weight: 500; color: var(--color-text); }
.today-item__name a { color: inherit; text-decoration: none; }
.today-item__name a:hover { color: var(--color-primary); }
.today-item__type { font-size: 13px; color: var(--color-text-muted); }
.today-item__check {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.today-item__check svg { width: 18px; height: 18px; stroke: currentColor; }
.today-item__check:hover { color: var(--color-primary); border-color: var(--color-primary); }
.today-item__done-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(118, 255, 0, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.today-item__done-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.today-item__resolved { display: flex; align-items: center; gap: 10px; }
.today-item__undo {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.today-item__undo:hover { color: #ff8a8a; }
.today-item__absent-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.1);
  color: #ff8a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.today-item__absent-icon svg { width: 18px; height: 18px; stroke: currentColor; }

.note-toggle {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 12px;
  text-align: left;
  padding: 0;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-toggle:hover { color: var(--color-text); }
.note-form { display: flex; gap: 8px; align-items: flex-end; }
.note-form textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-btn);
  padding: 8px 10px;
  font-family: var(--font-family);
  font-size: 13px;
  resize: vertical;
}
.note-form .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }

.calendar-ghost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-top: 8px;
  color: var(--color-text-muted);
}
.calendar-ghost__label { font-size: 14px; }
.calendar-ghost__soon {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
}
