/* ══════════════════════════════════════════════════════════
   IDB COMMAND CENTER — style.css
   Liquid Precision Design System
   Fonts: Jost (body) · Jost (mono/data)
══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #F4F8FB;
  --bg-panel:     rgba(255,255,255,.85);
  --border:       rgba(30,72,135,.22);
  --accent:       #2671BF;
  --text:         #edf2f7;
  --muted:        #45607a;
  --green:        #00d68f;
  --font-mono:    'Jost', monospace;
  --font-body:    'Jost', system-ui, sans-serif;
}

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── CINEMATIC INTRO ───────────────────────────────────── */

#intro-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #000; overflow: hidden;
}
#intro-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
}
.intro-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; pointer-events: none;
}
.intro-glow-ring {
  position: absolute;
  width: 290px; height: 290px; border-radius: 50%;
  border: 1.5px solid rgba(38,113,191,0.35);
  box-shadow: 0 0 0 1px rgba(38,113,191,0.1),
              0 0 60px rgba(38,113,191,0.25),
              0 0 140px rgba(38,113,191,0.1),
              inset 0 0 60px rgba(38,113,191,0.06);
  opacity: 0; transform: scale(0);
  transition: opacity 0.45s ease, transform 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
.intro-glow-ring.on {
  opacity: 1; transform: scale(1);
  animation: iGlowPulse 3s ease-in-out infinite;
}
@keyframes iGlowPulse {
  0%,100% { box-shadow: 0 0 60px rgba(38,113,191,0.25), 0 0 140px rgba(38,113,191,0.1), inset 0 0 60px rgba(38,113,191,0.06); }
  50%      { box-shadow: 0 0 100px rgba(38,113,191,0.45), 0 0 200px rgba(38,113,191,0.18), inset 0 0 80px rgba(38,113,191,0.1); }
}
.intro-logo-img {
  height: 130px; width: auto;
  background: rgba(20,58,94,0.03);
  padding: 14px 30px;
  border: 1px solid rgba(38,113,191,0.2); border-radius: 12px;
  opacity: 0; transform: scale(0.12);
  filter: drop-shadow(0 0 40px rgba(38,113,191,0.8))
          drop-shadow(0 0 80px rgba(38,113,191,0.4)) brightness(1.15);
  transition: opacity 0.55s ease,
              transform 0.85s cubic-bezier(0.34,1.56,0.64,1),
              filter 0.6s;
  position: relative; z-index: 3;
}
.intro-logo-img.on { opacity: 1; transform: scale(1); }
.intro-titles {
  position: absolute;
  top: calc(50% + 108px); left: 0; right: 0;
  text-align: center; z-index: 3;
  pointer-events: none; padding: 0 16px;
}
.intro-main-title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 800; color: #fff;
  letter-spacing: 0.25em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
}
.ichar {
  display: inline-block; opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.28s ease, transform 0.44s cubic-bezier(0.34,1.56,0.64,1);
}
.intro-sub-title {
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 1.2vw, 0.84rem);
  font-weight: 500; color: var(--accent);
  letter-spacing: 0.55em; text-transform: uppercase;
  opacity: 0; margin-top: 12px;
  transition: opacity 0.8s ease;
}
.intro-line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 25%, #48A7E0 50%, var(--accent) 75%, transparent 100%);
  box-shadow: 0 0 16px rgba(38,113,191,0.8), 0 0 40px rgba(38,113,191,0.3);
  width: 0; margin: 15px auto 0; opacity: 0;
  transition: width 0.85s cubic-bezier(0.16,1,0.3,1), opacity 0.05s;
}
#intro-skip {
  position: fixed; bottom: 26px; right: 26px; z-index: 10000;
  background: rgba(20,58,94,0.360);
  border: 1px solid rgba(38,113,191,0.25);
  color: #5B6B7B; padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.06em; font-weight: 500;
  cursor: pointer; opacity: 0; border-radius: 8px;
  transition: opacity 0.5s, background 0.2s, color 0.2s;
  backdrop-filter: blur(10px);
}
#intro-skip:hover { background: rgba(38,113,191,0.15); color: #fff; border-color: rgba(38,113,191,0.5); }
#intro-skip.vis   { opacity: 1; }
@keyframes introExit {
  0%   { transform: scaleY(1)     scaleX(1);    opacity: 1;   filter: brightness(1); }
  18%  { transform: scaleY(1)     scaleX(1);    opacity: 1;   filter: brightness(4.5) saturate(2); }
  55%  { transform: scaleY(0.05)  scaleX(1.08); opacity: 1;   filter: brightness(7) blur(1px); }
  80%  { transform: scaleY(0.012) scaleX(1.14); opacity: 0.9; filter: brightness(10) blur(3px); }
  100% { transform: scaleY(0)     scaleX(1.18); opacity: 0;   filter: brightness(14) blur(6px); }
}
.intro-exiting {
  animation: introExit 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
  pointer-events: none;
}

/* ── LOGIN SPLIT SCREEN ────────────────────────────────── */

#login-screen {
  position: relative; z-index: 10;
  min-height: 100vh; display: flex;
}

/* Linker paneel */
.login-left {
  flex: 0 0 60%;
  background: var(--bg);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  border-right: 1px solid rgba(38,113,191,0.06);
}
#login-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.login-stats {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 28px;
}
.stat-row {
  display: flex; align-items: center; gap: 12px;
}
.stat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
  animation: statPulse 2.5s ease-in-out infinite;
}
.accent-dot { background: var(--accent); box-shadow: 0 0 8px rgba(38,113,191,0.7); }
.green-dot  { background: var(--green);  box-shadow: 0 0 8px rgba(72,167,224,0.7); }
.muted-dot  { background: var(--muted);  box-shadow: 0 0 6px rgba(69,96,122,0.5); animation-delay: 1.2s; }
@keyframes statPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); min-width: 155px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em;
}
.stat-value.accent { color: var(--accent); text-shadow: 0 0 20px rgba(38,113,191,0.2); }
.stat-value.green  { color: color-mix(in srgb,var(--green) 60%,#000);  text-shadow: 0 0 20px rgba(72,167,224,0.2); }
.stat-value.muted  { color: var(--muted);  }
.login-left-footer {
  position: relative; z-index: 2;
  font-family: var(--font-body);
  font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px; font-weight: 500;
}

/* Rechter paneel */
.login-right {
  flex: 0 0 40%;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.95));
  display: flex; flex-direction: column;
  padding: 36px 48px;
  backdrop-filter: blur(20px);
}
.login-right-top { padding-bottom: 8px; }
.login-logo-small {
  height: 80px; width: auto; display: block;
  background: rgba(20,58,94,0.03);
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  filter: drop-shadow(0 0 12px rgba(38,113,191,0.08));
}
.login-form-area {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 24px 0 32px;
}
.login-eyebrow {
  font-family: var(--font-body);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.login-title {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800;
  color: var(--text); letter-spacing: -0.02em;
  line-height: 1.05; margin-bottom: 12px;
}
.login-sub {
  font-size: 0.82rem; color: var(--muted);
  margin-bottom: 36px; line-height: 1.55;
}

/* Form velden */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); margin-bottom: 7px;
}
.form-group input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.88rem;
  color: var(--text); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input::placeholder { color: var(--muted); opacity: 0.45; }
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(38,113,191,0.08), 0 0 20px rgba(38,113,191,0.05);
}

/* Lockout */
.lockout-banner {
  display: none; align-items: center; gap: 10px;
  background: rgba(231,76,60,0.06);
  border: 1px solid rgba(231,76,60,0.18);
  padding: 10px 13px; margin-bottom: 14px; border-radius: 8px;
  font-size: 0.76rem; color: #B03A2E; line-height: 1.4;
}
.lockout-banner.show { display: flex; }
.lockout-icon svg { width: 15px; height: 15px; flex-shrink: 0; color: #B03A2E; }
#lockout-timer { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Pogingen */
.attempt-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
}
.attempt-dots { display: flex; gap: 6px; align-items: center; }
.attempt-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(38,113,191,0.1); border: 1px solid rgba(38,113,191,0.25);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.attempt-dot.used {
  background: rgba(231,76,60,0.65); border-color: rgba(231,76,60,0.8);
  box-shadow: 0 0 8px rgba(231,76,60,0.4);
}
.attempt-label {
  font-family: var(--font-body); font-size: 0.58rem;
  color: var(--muted); letter-spacing: 0.06em; font-weight: 500;
}

/* Login knop */
.login-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--accent), #2671BF);
  color: #1E2B3A;
  border: none; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; margin-top: 6px;
  transition: all 0.25s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 4px 20px rgba(38,113,191,0.2);
}
.login-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #00e0ff, #2671BF);
  box-shadow: 0 6px 30px rgba(38,113,191,0.35);
  transform: translateY(-1px);
}
.login-btn:disabled { opacity: 0.35; cursor: default; transform: none; box-shadow: none; }

/* Foutmelding */
.login-error {
  margin-top: 10px; padding: 9px 13px;
  background: rgba(231,76,60,0.07); color: #B03A2E;
  border: 1px solid rgba(231,76,60,0.2);
  font-size: 0.76rem; display: none;
}
.login-error.visible { display: block; }

/* Wachtwoord vergeten */
.forgot-link {
  display: block; text-align: center; margin-top: 20px;
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.04em; color: var(--muted);
  text-decoration: none; transition: color 0.2s; font-weight: 500;
}
.forgot-link:hover { color: var(--accent); }

/* ── WACHTWOORD VERGETEN MODAL ─────────────────────────── */

#forgot-modal {
  display: none; position: fixed; inset: 0; z-index: 8000;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(20,58,94,0.600); backdrop-filter: blur(6px);
}
#forgot-modal.open { display: flex; }
.forgot-card {
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.95));
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 38px 40px 32px; width: 100%; max-width: 420px;
  position: relative; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(20,58,94,0.200);
  backdrop-filter: blur(20px);
}
.forgot-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--muted);
  font-size: 1.4rem; cursor: pointer; padding: 4px 8px; line-height: 1;
  transition: color 0.2s;
}
.forgot-close:hover { color: var(--text); }
.forgot-title {
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em; margin-bottom: 8px;
}
.forgot-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.forgot-send-btn {
  width: 100%; padding: 13px; margin-top: 14px;
  background: linear-gradient(135deg, var(--accent), #2671BF); color: #1E2B3A;
  border: none; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: all 0.25s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 4px 20px rgba(38,113,191,0.2);
}
.forgot-send-btn:hover:not(:disabled) { background: linear-gradient(135deg, #00e0ff, #2671BF); box-shadow: 0 6px 30px rgba(38,113,191,0.35); transform: translateY(-1px); }
.forgot-send-btn:disabled { opacity: 0.35; cursor: default; transform: none; box-shadow: none; }
.forgot-msg { font-size: 0.78rem; margin-top: 12px; padding: 10px 13px; display: none; }
.forgot-msg.success { display: block; background: rgba(39,174,96,0.07); color: #1E7E46; border: 1px solid rgba(39,174,96,0.18); }
.forgot-msg.error   { display: block; background: rgba(231,76,60,0.07);  color: #B03A2E; border: 1px solid rgba(231,76,60,0.18); }
.emailjs-note {
  margin-top: 14px; padding: 10px 13px;
  background: rgba(0,152,200,0.04); border: 1px solid rgba(0,152,200,0.14);
  font-size: 0.68rem; color: var(--muted); line-height: 1.55;
}
.emailjs-note strong { color: var(--accent); }
.emailjs-note a { color: var(--accent); text-decoration: none; }
.emailjs-note a:hover { color: #2671BF; }

/* ── APP ───────────────────────────────────────────────── */

#app { display: none; min-height: 100vh; flex-direction: column; }
#app.visible { display: flex; }

/* Topbar */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.93));
  border-bottom: 1px solid rgba(38,113,191,0.08);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 54px; flex-shrink: 0;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(38,113,191,0.06), 0 4px 40px rgba(20,58,94,0.133);
}
.header-left  { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-logo  { height: 36px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(38,113,191,0.08)); }
.header-divider { width: 1px; height: 22px; background: linear-gradient(180deg, transparent, var(--border), transparent); }
.header-label {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); opacity: 0.85;
}
.header-center { flex: 1; text-align: center; }
.header-user-name {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}
.header-user-role {
  font-family: var(--font-body); font-size: 0.56rem;
  color: var(--muted); letter-spacing: 0.06em; margin-top: 2px;
}
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-clock-wrap { text-align: right; }
.header-time {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  color: var(--text); letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.header-date {
  font-family: var(--font-body); font-size: 0.54rem;
  color: var(--muted); letter-spacing: 0.06em; margin-top: 2px;
}
.logout-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); padding: 6px 14px; border-radius: 6px;
  font-family: var(--font-body); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
}
.logout-btn:hover { border-color: rgba(231,76,60,0.3); color: #143A5E; }

/* Main */
.app-main {
  flex: 1; padding: 52px 56px 48px;
  max-width: 1400px; margin: 0 auto; width: 100%;
}

/* Hero */
.hero-section { margin-bottom: 52px; }
.hero-eyebrow {
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.hero-name {
  font-family: var(--font-body); font-size: 3.2rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 14px;
}
.hero-sub {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
}

/* Sectie-headers */
.section-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
}
.section-title {
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent 80%); }
.section-count {
  font-family: var(--font-mono); font-size: 0.56rem; font-weight: 600;
  background: rgba(38,113,191,0.06); color: var(--accent);
  border: 1px solid rgba(38,113,191,0.12);
  padding: 3px 12px; letter-spacing: 0.08em; border-radius: 20px;
}

/* Kaarten */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px; margin-bottom: 52px;
}
.tool-card {
  background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.7));
  border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 26px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(20,58,94,0.083);
}
.tool-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), #48A7E0);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.tool-card:hover {
  border-color: rgba(38,113,191,0.3);
  box-shadow: 0 12px 48px rgba(20,58,94,0.117),
              0 0 30px rgba(38,113,191,0.06);
  transform: translateY(-3px);
}
.tool-card:hover::after { transform: scaleX(1); }
.card-icon-wrap {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(38,113,191,0.04); color: var(--accent);
  margin-bottom: 18px; flex-shrink: 0;
}
.card-icon-wrap svg { width: 22px; height: 22px; }
.card-icon-photo { padding: 0; overflow: hidden; border-color: rgba(38,113,191,0.25); }
.card-icon-photo img { width: 48px; height: 48px; object-fit: cover; display: block; border-radius: 9px; }
.card-name  { font-weight: 600; font-size: 1.05rem; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.card-desc  { font-size: 0.84rem; color: var(--muted); line-height: 1.65; flex: 1; }
.card-footer {
  display: flex; align-items: center;
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-tag {
  font-family: var(--font-mono); font-size: 0.56rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}

/* Live value strip per card */
.card-live {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin-top: 14px;
  background: rgba(38,113,191,0.04);
  border: 1px solid rgba(38,113,191,0.10);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  font-family: var(--font-mono);
}
.card-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00d68f; flex-shrink: 0;
  box-shadow: 0 0 6px rgba(72,167,224,.5);
  animation: cl-pulse 2.5s ease-in-out infinite;
}
@keyframes cl-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.card-live-val  { font-size: .78rem; font-weight: 700; color: var(--text); }
.card-live-sep  { color: var(--muted); opacity: .4; font-size: .7rem; }
.card-live-ctx  { font-size: .58rem; color: var(--muted); letter-spacing: .04em; }
.card-live--load { opacity: .55 }
.card-live--load .card-live-dot { background: #4a6580; box-shadow: none; animation: none }
.card-live--ok    { border-left-color: #00d68f; background: rgba(72,167,224,.04); border-color: rgba(72,167,224,.12) }
.card-live--warn  { border-left-color: #F39C12; background: rgba(243,156,18,.04); border-color: rgba(243,156,18,.14) }
.card-live--warn  .card-live-dot { background: #F39C12; box-shadow: 0 0 6px rgba(243,156,18,.5) }
.card-live--alert { border-left-color: #E74C3C; background: rgba(231,76,60,.05); border-color: rgba(231,76,60,.16) }
.card-live--alert .card-live-dot { background: #E74C3C; box-shadow: 0 0 6px rgba(231,76,60,.5) }
.card-live--info  { border-left-color: #143A5E; background: rgba(20,58,94,.04); border-color: rgba(20,58,94,.14) }
.card-live--info  .card-live-dot { background: #143A5E; box-shadow: 0 0 6px rgba(20,58,94,.5) }
.admin-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(38,113,191,0.06); border: 1px solid rgba(38,113,191,0.15);
  color: var(--accent); padding: 3px 10px; border-radius: 20px;
  font-family: var(--font-mono); font-size: 0.52rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* Made with love */
.made-with-love {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 28px 0 36px;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.made-with-love:hover { opacity: 0.8; }
.mwl-photo {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(30%);
}
.mwl-text {
  font-family: var(--font-body); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.mwl-heart { color: #143A5E; font-size: 0.7rem; }

/* Status footer */
.app-footer {
  background: rgba(255,255,255,0.95); border-top: 1px solid var(--border);
  height: 32px; padding: 0 40px;
  display: flex; align-items: center;
  font-family: var(--font-body); font-size: 0.56rem;
  color: var(--muted); letter-spacing: 0.06em; flex-shrink: 0;
  backdrop-filter: blur(16px);
}
.footer-left   { display: flex; align-items: center; gap: 8px; }
.footer-center { flex: 1; text-align: center; color: #2671BF; }
.footer-right  { color: rgba(74,122,150,0.45); }
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(72,167,224,0.6);
  flex-shrink: 0; animation: footerPulse 2.5s ease-in-out infinite;
}
@keyframes footerPulse {
  0%,100% { opacity: 1;   box-shadow: 0 0 8px rgba(72,167,224,0.6); }
  50%      { opacity: 0.5; box-shadow: 0 0 3px rgba(72,167,224,0.2); }
}
.footer-sep { width: 1px; height: 12px; background: var(--border); margin: 0 20px; }

/* ── TABLET (≤900px) ── */
@media (max-width: 900px) {
  .login-left    { display: none; }
  .login-right   { flex: 0 0 100%; }
  .app-header    { padding: 0 20px; }
  .app-main      { padding: 28px 20px 32px; }
  .app-footer    { padding: 0 16px; }
  .header-center { display: none; }
  .hero-name     { font-size: 2rem; }
  .card-grid     { grid-template-columns: 1fr; }
}

/* ── MOBILE (≤600px) ── */
@media (max-width: 600px) {
  /* Login */
  .login-right { padding: 24px 20px; }
  .login-logo-small { height: 60px; padding: 8px 16px; }
  .login-title { font-size: 1.8rem; }
  .login-sub { font-size: 0.78rem; margin-bottom: 24px; }
  .form-group input { padding: 14px 12px; font-size: 1rem; }
  .login-btn { padding: 16px; font-size: 0.8rem; }

  /* App header */
  .app-header { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .header-logo { height: 28px; }
  .header-label { font-size: 0.6rem; letter-spacing: 0.12em; }
  .header-divider { display: none; }
  .header-right { gap: 10px; }
  .header-time { font-size: 0.72rem; }
  .header-date { display: none; }
  .logout-btn { padding: 5px 10px; font-size: 0.55rem; }

  /* App main */
  .app-main { padding: 20px 14px 24px; }
  .hero-section { margin-bottom: 32px; }
  .hero-eyebrow { font-size: 0.58rem; }
  .hero-name { font-size: 1.6rem; }
  .hero-sub { font-size: 0.65rem; }

  /* OP Hero card */
  .op-hero { flex-direction: column; gap: 10px; padding: 14px 16px; }
  .op-hero-open { align-self: flex-start; }
  .op-hero-kpis { font-size: 12px; }

  /* Tool cards */
  .tool-card { padding: 20px 18px; }
  .card-icon-wrap { width: 44px; height: 44px; margin-bottom: 14px; }
  .card-icon-wrap svg { width: 20px; height: 20px; }
  .card-icon-photo img { width: 44px; height: 44px; }
  .card-name { font-size: 0.95rem; }
  .card-desc { font-size: 0.8rem; }
  .card-footer { margin-top: 16px; padding-top: 12px; }

  /* Section headers */
  .section-header { gap: 10px; margin-bottom: 16px; }

  /* Footer */
  .app-footer { height: auto; padding: 8px 14px; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .footer-sep { display: none; }
  .footer-center { font-size: 0.52rem; }

  /* Made with love */
  .made-with-love { padding: 20px 0 24px; }

  /* Forgot modal */
  .forgot-card { padding: 28px 24px 24px; }

  /* Intro */
  .intro-logo-img { height: 90px; padding: 10px 20px; }
  .intro-glow-ring { width: 200px; height: 200px; }
  .intro-titles { top: calc(50% + 80px); }
  #intro-skip { bottom: 18px; right: 18px; padding: 10px 16px; font-size: 0.68rem; }
}

/* ── PWA standalone ── */
@media (display-mode: standalone) {
  .app-header { padding-top: env(safe-area-inset-top, 0); }
  body { padding-bottom: env(safe-area-inset-bottom, 0); }
}

/* ── Touch devices ── */
@media (hover: none) and (pointer: coarse) {
  .tool-card:hover { border-color: var(--border); box-shadow: none; }
  .tool-card:hover::after { transform: scaleX(0); }
  .tool-card:active { border-color: var(--accent); background: rgba(0,152,200,0.04); }
  .login-btn { -webkit-tap-highlight-color: transparent; }
  .logout-btn { -webkit-tap-highlight-color: transparent; }
}
