/* e-AM — temă FEAM (după eam.ase.ro) */

:root {
  --eam-navy: #045c8c;
  --eam-navy-2: #034b73;
  --eam-navy-3: #045c8c;
  --eam-gold: #8fbbd4;
  --eam-hero: #bacfda;
  --eam-ink: #0f172a;
  --eam-muted: #454f5e;
  --eam-accent: #045c8c;
  --eam-accent-2: #045c8c;
  --eam-surface: #eef4f8;
  --eam-panel: #ffffff;
  --eam-line: #dfe3ee;
  --eam-line-2: #e7eaf3;
  --eam-ok: #1d7a46;
  --eam-bad: #b42318;
  --eam-warn: #8a5a00;
  --eam-radius: 4px;
  --eam-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Fira Sans", system-ui, sans-serif;
  --font-btn: "Poppins", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

h1, h2, h3, h4, h5, .panel-title, .sys-name, .student-brand, .brand-title {
  font-family: var(--font-head);
}

/* ——— Logo FEAM ——— */
.feam-logo { display: block; width: auto; }
.feam-logo-sm { height: 40px; }
.feam-logo-lg { height: 64px; }

.brand-divider {
  width: 1px;
  height: 32px;
  background: var(--eam-line);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  color: var(--eam-ink);
  background: var(--eam-surface);
  min-height: 100vh;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); font-size: 0.85em; }
.ico { flex-shrink: 0; vertical-align: -0.2em; }

/* ——— Bandă instituțională ——— */
.gov-strip {
  background: var(--eam-navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.74rem;
  letter-spacing: 0.01em;
}

.gov-strip a { color: #fff; text-decoration: none; }

.gov-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 1.25rem;
}

.gov-strip-left,
.gov-strip-right {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.gov-flag {
  display: inline-block;
  width: 18px;
  height: 11px;
  background: linear-gradient(90deg, #002b7f 33.3%, #fcd116 33.3% 66.6%, #ce1126 66.6%);
  border-radius: 1px;
}

@media (max-width: 640px) {
  .gov-strip-right { display: none; }
}

/* ——— Blazon ——— */
.crest {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--eam-navy);
  color: #fff;
  border: 1px solid rgba(176, 141, 46, 0.7);
  border-radius: 4px;
  line-height: 1.05;
  box-shadow: inset 0 0 0 2px var(--eam-navy), inset 0 0 0 3px rgba(176, 141, 46, 0.45);
}
.crest-top { font-size: 0.55rem; font-weight: 600; letter-spacing: 0.22em; color: #e3cf94; }
.crest-main { font-weight: 700; letter-spacing: 0.08em; }
.crest-sm { width: 44px; height: 44px; }
.crest-sm .crest-main { font-size: 0.8rem; }
.crest-lg { width: 68px; height: 68px; }
.crest-lg .crest-top { font-size: 0.66rem; }
.crest-lg .crest-main { font-size: 1.1rem; }

/* compat vechi */
.brand-mark, .brand-mark-sm, .feam-crest {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--eam-navy); color: #fff; border-radius: 4px; font-weight: 700;
}
.brand-mark-sm { width: 42px; height: 42px; font-size: 0.8rem; }

/* ——— Bootstrap overrides ——— */
.btn {
  border-radius: 2px;
  font-family: var(--font-btn);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-lg { font-size: 0.98rem; padding: 0.8rem 1.4rem; }

.btn-primary {
  --bs-btn-bg: var(--eam-navy);
  --bs-btn-border-color: var(--eam-navy);
  --bs-btn-hover-bg: var(--eam-navy-2);
  --bs-btn-hover-border-color: var(--eam-navy-2);
  --bs-btn-active-bg: #023a59;
  --bs-btn-active-border-color: #023a59;
  --bs-btn-disabled-bg: #7fa9c2;
  --bs-btn-disabled-border-color: #7fa9c2;
}

.btn-outline-primary {
  --bs-btn-color: var(--eam-navy);
  --bs-btn-border-color: #b5c0d0;
  --bs-btn-hover-bg: var(--eam-navy);
  --bs-btn-hover-border-color: var(--eam-navy);
  --bs-btn-active-bg: var(--eam-navy);
  --bs-btn-active-border-color: var(--eam-navy);
}

.btn-outline-secondary {
  --bs-btn-color: var(--eam-ink);
  --bs-btn-border-color: var(--eam-line);
  --bs-btn-hover-bg: var(--eam-line-2);
  --bs-btn-hover-color: var(--eam-ink);
  --bs-btn-hover-border-color: #c3cad5;
}

.btn-outline-teal {
  --bs-btn-color: var(--eam-navy);
  --bs-btn-border-color: #b5c0d0;
  --bs-btn-hover-bg: var(--eam-navy);
  --bs-btn-hover-border-color: var(--eam-navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #06142a;
  --bs-btn-active-border-color: #06142a;
  --bs-btn-active-color: #fff;
}

.form-control,
.form-select {
  border-radius: var(--eam-radius);
  border-color: #c9d0da;
  font-size: 0.94rem;
}

.form-control-lg, .form-select-lg { font-size: 1rem; }

.form-control:focus,
.form-select:focus {
  border-color: var(--eam-navy-3);
  box-shadow: 0 0 0 3px rgba(29, 63, 110, 0.15);
}

.form-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eam-muted);
  margin-bottom: 0.3rem;
}

.alert { border-radius: var(--eam-radius); font-size: 0.9rem; }
.badge { border-radius: 3px; font-weight: 600; letter-spacing: 0.02em; }
.table { --bs-table-hover-bg: #f5f7fa; }
.modal-content { border-radius: 8px; border: 1px solid var(--eam-line); }
.modal-header { border-bottom-color: var(--eam-line-2); }

code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--eam-navy-2);
  background: #eef1f5;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ——— Autentificare ——— */
.auth-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.auth-header {
  background: #fff;
  border-bottom: 1px solid var(--eam-line);
}

.auth-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.auth-header .sys-name { font-weight: 600; color: var(--eam-ink); }
.auth-header .sys-sub { font-size: 0.8rem; color: var(--eam-muted); }

.auth-side {
  background:
    linear-gradient(180deg, rgba(4, 92, 140, 0.86), rgba(4, 92, 140, 0.94)),
    var(--eam-hero);
  color: #fff;
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-side h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.5rem;
}

.auth-side .lead-sub {
  color: rgba(255, 255, 255, 0.7);
  max-width: 34rem;
  font-size: 0.98rem;
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.auth-features li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.auth-features .ico { color: #cfe3ef; margin-top: 0.1rem; }

.auth-side-foot {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 2rem;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.auth-wrap { width: min(420px, 100%); }

.auth-card {
  background: var(--eam-panel);
  border: 0;
  border-radius: 10px;
  padding: 2.1rem 2rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
}

.auth-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.auth-card .auth-sub {
  color: var(--eam-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.auth-notice {
  display: flex;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--eam-muted);
  background: #f5f7fa;
  border: 1px solid var(--eam-line-2);
  border-radius: var(--eam-radius);
  padding: 0.65rem 0.75rem;
  margin-top: 1.25rem;
}

.demo-hint {
  color: var(--eam-muted);
  border-top: 1px dashed var(--eam-line);
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-side { padding: 2rem 1.5rem; }
  .auth-side h1 { font-size: 1.5rem; margin-top: 1rem; }
  .auth-features, .auth-side-foot { display: none; }
}

.brand-title { font-size: 1.5rem; font-weight: 600; margin: 0; }
.brand-sub { color: var(--eam-muted); margin: 0.35rem 0 0; font-size: 0.92rem; }
.brand-uni { margin: 0.15rem 0 0; font-size: 0.8rem; color: #7a8698; }

/* ——— Topbar aplicație ——— */
.topbar {
  background: #fff;
  color: var(--eam-ink);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--eam-line);
}

.topbar .sys-name { font-weight: 600; font-size: 1.05rem; color: var(--eam-ink); }
.topbar .sys-sub { font-size: 0.78rem; color: var(--eam-muted); }

.topbar .btn-outline-secondary,
.topbar .btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--eam-navy);
  --bs-btn-border-color: var(--eam-navy);
  --bs-btn-hover-bg: var(--eam-navy-2);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: var(--eam-navy-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--eam-ink);
  padding: 0.3rem 0.8rem;
  border-left: 1px solid var(--eam-line);
}

.role-tag {
  font-family: var(--font-btn);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--eam-navy);
  border-radius: 2px;
  padding: 0.15rem 0.45rem;
}

.date-chip {
  font-size: 0.8rem;
  color: var(--eam-muted);
}

/* Bandă de titlu (ca hero-ul de pe eam.ase.ro) */
.page-hero {
  background:
    linear-gradient(180deg, rgba(4, 92, 140, 0.78), rgba(4, 92, 140, 0.9)),
    var(--eam-hero);
  color: #fff;
  padding: 1.35rem 0 1.2rem;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
}

.page-hero p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* ——— Tab-uri modul ——— */
.module-bar {
  background: #fff;
  border-bottom: 1px solid var(--eam-line);
}

.ux-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ux-tab {
  border: 0;
  background: transparent;
  padding: 0.95rem 1.15rem 0.85rem;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--eam-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}

.ux-tab:hover { color: var(--eam-ink); }

.ux-tab.active {
  color: var(--eam-navy);
  border-bottom-color: var(--eam-navy);
}

.ux-tab-num {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 3px;
  background: var(--eam-line-2);
  color: var(--eam-muted);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.ux-tab.active .ux-tab-num { background: var(--eam-navy); color: #fff; }

.ux-pane { display: none; }
.ux-pane.active { display: block; animation: fadeIn 0.14s ease-out; }

@keyframes fadeIn { from { opacity: 0.4; } to { opacity: 1; } }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.breadcrumb-sys {
  font-size: 0.74rem;
  color: var(--eam-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ——— Panouri ——— */
.panel {
  background: var(--eam-panel);
  border: 1px solid var(--eam-line-2);
  border-radius: 8px;
  padding: 1.35rem 1.45rem;
  box-shadow: var(--eam-shadow);
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--eam-ink);
}

.panel-desc {
  color: var(--eam-muted);
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--eam-line-2);
}

.step-badge {
  font-family: var(--font-btn);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--eam-navy);
  border-radius: 2px;
  padding: 0.22rem 0.5rem;
}

.session-meta {
  background: #f5f7fa;
  border: 1px solid var(--eam-line-2);
  border-left: 3px solid var(--eam-navy);
  border-radius: var(--eam-radius);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
}

/* ——— QR ——— */
.qr-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  background: #fff;
  border: 1px solid var(--eam-line);
  border-radius: var(--eam-radius);
  padding: 1.25rem;
  background-image:
    linear-gradient(var(--eam-navy), var(--eam-navy)), linear-gradient(var(--eam-navy), var(--eam-navy)),
    linear-gradient(var(--eam-navy), var(--eam-navy)), linear-gradient(var(--eam-navy), var(--eam-navy)),
    linear-gradient(var(--eam-navy), var(--eam-navy)), linear-gradient(var(--eam-navy), var(--eam-navy)),
    linear-gradient(var(--eam-navy), var(--eam-navy)), linear-gradient(var(--eam-navy), var(--eam-navy));
  background-repeat: no-repeat;
  background-size: 18px 2px, 2px 18px;
  background-position:
    10px 10px, 10px 10px,
    calc(100% - 10px) 10px, calc(100% - 10px) 10px,
    10px calc(100% - 10px), 10px calc(100% - 10px),
    calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) calc(100% - 10px);
}

#qrCanvas {
  display: block;
  width: min(100%, 560px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  image-rendering: pixelated;
}

.qr-panel .qr-stage { min-height: 420px; padding: 1.75rem; }

.qr-stage:fullscreen {
  background-color: #fff;
  border: 0;
  border-radius: 0;
  padding: 2rem;
}

.qr-stage:fullscreen #qrCanvas {
  width: min(92vh, 92vw);
}

.qr-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--eam-muted);
  font-size: 0.9rem;
}

.qr-placeholder.hidden { display: none; }

.stat-pill {
  background: #eef2f7;
  color: var(--eam-navy);
  font-weight: 700;
  border-radius: 3px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
  font-family: var(--font-mono);
  border: 1px solid var(--eam-line);
}

/* ——— Tabele ——— */
.student-table th,
.table thead th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--eam-muted);
  background: #f5f7fa;
  border-bottom: 1px solid var(--eam-line);
}

.table td { vertical-align: middle; border-color: var(--eam-line-2); }

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #c5ced6;
}

.status-dot.present {
  background: var(--eam-ok);
  box-shadow: 0 0 0 3px rgba(23, 102, 58, 0.15);
}

.live-dot-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--eam-ok);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eam-ok);
  box-shadow: 0 0 0 3px rgba(23, 102, 58, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.4; } }

/* ——— Istoric / perioade ——— */
.period-bar {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--eam-line);
  border-radius: var(--eam-radius);
  overflow: hidden;
  background: #fff;
}

.period-btn {
  border: 0;
  border-right: 1px solid var(--eam-line);
  background: #fff;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--eam-muted);
}

.period-btn:last-child { border-right: 0; }
.period-btn:hover { background: #f5f7fa; color: var(--eam-ink); }

.period-btn.active {
  background: var(--eam-navy);
  color: #fff;
}

.day-block {
  background: #f8f9fb;
  border: 1px solid var(--eam-line-2);
  border-radius: var(--eam-radius);
  padding: 0.75rem;
}

.day-head {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
  color: var(--eam-navy);
}

.hist-card {
  background: #fff;
  border: 1px solid var(--eam-line);
  border-radius: var(--eam-radius);
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.5rem;
}

.hist-card:last-child { margin-bottom: 0; }

.history-card {
  background: #f5f7fa;
  border: 1px solid var(--eam-line-2);
  border-radius: var(--eam-radius);
  padding: 0.7rem 0.9rem;
}

.history-list .history-item {
  font-size: 0.86rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--eam-line-2);
}

.history-list .history-item:last-child { border-bottom: 0; }

.chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 0.18rem 0.45rem;
  background: #eef1f5;
  color: var(--eam-muted);
}

.chip-ok { background: #e3f1e8; color: var(--eam-ok); }
.chip-mute { background: #f1f3f5; color: #6b7280; }

.tiny { font-size: 0.76rem; color: var(--eam-muted); }

.empty-state {
  text-align: center;
  color: var(--eam-muted);
  padding: 2rem 1rem;
  background: #f8f9fb;
  border: 1px dashed var(--eam-line);
  border-radius: var(--eam-radius);
  font-size: 0.88rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--eam-line);
  border-radius: var(--eam-radius);
  overflow: hidden;
}

.stat-box {
  background: #fff;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-right: 1px solid var(--eam-line);
}

.stat-box:last-child { border-right: 0; }

.stat-val {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--eam-navy);
  font-family: var(--font-mono);
}

.stat-lab {
  font-size: 0.66rem;
  color: var(--eam-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.tl-item {
  background: #fff;
  border: 1px solid var(--eam-line-2);
  border-left: 3px solid var(--eam-line);
  border-radius: 0 var(--eam-radius) var(--eam-radius) 0;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.4rem;
}

.tl-ok { border-left-color: var(--eam-ok); }
.tl-pts { border-left-color: var(--eam-gold); }

.alt-method summary {
  cursor: pointer;
  color: var(--eam-muted);
  font-size: 0.86rem;
}

.field-note {
  background: #fdf7e7;
  border: 1px solid #ecd9a4;
  border-left: 3px solid #c79a2b;
  color: #6b4f00;
  border-radius: var(--eam-radius);
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
}

/* ——— Punctaj ——— */
.weight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ase-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: end;
}

.ase-plus {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--eam-muted);
  padding-bottom: 1.6rem;
  text-align: center;
}

.final-score {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.grade-ok { color: var(--eam-ok); }
.grade-bad { color: var(--eam-bad); }

.score-row {
  display: grid;
  grid-template-columns: 1fr 5.5rem;
  gap: 0.5rem;
  align-items: center;
}

.score-name { margin: 0; font-size: 0.88rem; }

.grade-card {
  background: #fff;
  border: 1px solid var(--eam-line);
  border-top: 3px solid var(--eam-navy);
  border-radius: var(--eam-radius);
  padding: 0.9rem 1rem;
}

.gbar { margin-bottom: 0.45rem; }

.gbar-track {
  height: 5px;
  background: var(--eam-line-2);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 0.2rem;
}

.gbar-fill {
  height: 100%;
  background: var(--eam-navy-3);
  border-radius: 1px;
}

.lookup-hit {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--eam-line);
  background: #fff;
  border-radius: var(--eam-radius);
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.lookup-hit:hover {
  border-color: var(--eam-navy-3);
  background: #f5f7fa;
}

/* ——— Student (mobil) ——— */
.student-body {
  background: var(--eam-surface);
  color: var(--eam-ink);
}

.student-top {
  background: #fff;
  color: var(--eam-ink);
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--eam-line);
}

.student-brand {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.student-hero {
  background:
    linear-gradient(180deg, rgba(4, 92, 140, 0.8), rgba(4, 92, 140, 0.92)),
    var(--eam-hero);
  color: #fff;
  padding: 0.9rem 1.1rem;
}

.student-hello {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.faculty-line {
  font-size: 0.76rem;
  color: var(--eam-muted);
}

.student-hero .faculty-line { color: rgba(255, 255, 255, 0.82); }

.student-top .btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--eam-navy);
  --bs-btn-border-color: var(--eam-navy);
  --bs-btn-hover-bg: var(--eam-navy-2);
  --bs-btn-hover-color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.student-main {
  padding: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.ip-banner {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border-radius: var(--eam-radius);
  padding: 0.8rem 0.95rem;
  border: 1px solid transparent;
  border-left-width: 3px;
  background: #fff;
}

.ip-banner.ip-ok { border-color: #bcdcc8; border-left-color: var(--eam-ok); color: #0f4a29; }
.ip-banner.ip-bad { border-color: #ecc3c4; border-left-color: var(--eam-bad); color: #7a1013; }

.ip-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ip-ok .ip-dot { background: var(--eam-ok); }
.ip-bad .ip-dot { background: var(--eam-bad); }

.qr-reader {
  border-radius: var(--eam-radius);
  overflow: hidden;
  background: var(--eam-navy);
  min-height: 240px;
}

.qr-reader video { border-radius: var(--eam-radius); }

.has-bottom-nav .student-main { padding-bottom: 5.5rem; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #fff;
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  z-index: 40;
  border-top: 1px solid var(--eam-line);
  box-shadow: 0 -2px 10px rgba(11, 31, 58, 0.05);
}

.bn-item {
  border: 0;
  background: transparent;
  color: var(--eam-muted);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 2px solid transparent;
}

.bn-item.active {
  color: var(--eam-navy);
  border-top-color: var(--eam-navy);
}

.bn-ico { line-height: 1; display: inline-flex; }

/* ——— Subsol ——— */
.sys-footer {
  border-top: 4px solid var(--eam-navy);
  background: #fff;
  font-size: 0.78rem;
  color: #222;
  margin-top: 2rem;
}

.sys-footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.25rem 0.5rem;
}

.sys-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.82rem;
}

.sys-footer-links a { color: #222; }
.sys-footer-links a:hover { color: var(--eam-navy); }

.sys-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
}

.has-bottom-nav .sys-footer { margin-bottom: 4.5rem; }

@media (max-width: 720px) {
  .sys-footer-mid { display: none; }
}
