/* INPReS prototype — JPN blue palette */
:root {
  --accent:      #1d4ed8;
  --accent-dark: #1e3a8a;
  --accent-bg:   #eff6ff;
  --accent-mid:  #2563eb;
  --accent-deep: #1a3a92;
  --navy:        #0b1e3f;
  --slate:       #64748D;
  --border:      #E5EDF5;
  --off-white:   #F8FAFC;
  --yellow:      #FFCC00;
  --red:         #dc2626;
  --red-bg:      #fef2f2;
  --red-border:  #fecaca;
  --amber:       #d97706;
  --amber-bg:    #fef3c7;
  --grey:        #cbd5e1;
  --grey-bg:     #f1f5f9;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: var(--off-white);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 12px; font-weight: 600; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }

/* containers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* split login buttons */
.btn-login-public { background: var(--accent); color: #fff; padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: 13.5px; text-decoration: none; transition: all 150ms; }
.btn-login-public:hover { background: var(--accent-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-login-officer { background: var(--navy); color: #fff; padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: 13.5px; text-decoration: none; transition: all 150ms; display: inline-flex; align-items: center; gap: 6px; }
.btn-login-officer:hover { background: #000; color: var(--yellow); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.25); }

/* user menu */
.user-menu { position: relative; }
.user-menu summary { list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--accent-bg); border-radius: 999px; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13px; transition: all 150ms; }
.user-menu-trigger:hover { background: #dbeafe; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.user-menu-name { color: var(--navy); }
.user-menu-caret { font-size: 10px; opacity: 0.7; }
.user-menu-panel { position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,0.10); z-index: 100; }
.user-menu-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu-name-full { font-weight: 600; color: var(--navy); font-size: 13.5px; }
.user-menu-item { display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: 6px; color: var(--navy); text-decoration: none; font-size: 13.5px; background: transparent; border: none; cursor: pointer; font-family: inherit; }
.user-menu-item:hover { background: var(--accent-bg); color: var(--accent); text-decoration: none; }
.user-menu-form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--border); }
.user-menu-logout { color: var(--red); }
.user-menu-logout:hover { background: var(--red-bg); color: var(--red); }

/* hero search */
.hero-search { max-width: 760px; margin: 40px auto 0; background: rgba(255,255,255,0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.18); border-radius: 14px; padding: 20px 24px; position: relative; z-index: 3; box-shadow: 0 10px 40px rgba(0,0,0,0.18); }
.hero-search-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); font-weight: 700; margin-bottom: 12px; text-align: left; }
.hero-search-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 8px; }
.hero-search-select, .hero-search-input { padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.95); color: var(--navy); font-family: inherit; font-size: 14px; }
.hero-search-select:focus, .hero-search-input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,204,0,0.3); }
.hero-search-btn { padding: 12px 22px; background: var(--yellow); color: var(--navy); font-weight: 700; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 14px; transition: all 150ms; }
.hero-search-btn:hover { background: #ffd633; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,204,0,0.4); }
.hero-search-hint { font-size: 11.5px; color: rgba(255,255,255,0.7); margin-top: 10px; text-align: left; }
@media (max-width: 768px) {
    .hero-search-row { grid-template-columns: 1fr; }
}

/* footer map */
.footer-map { position: relative; margin-top: 80px; }
.footer-map iframe { filter: contrast(0.95); }
.footer-map-caption { background: var(--accent); color: #fff; padding: 14px 24px; font-size: 13.5px; text-align: center; }
.footer-map-caption strong { color: var(--yellow); margin-right: 6px; }

/* gov utility bar */
.govbar { background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 50%, var(--accent-mid) 100%); background-size: 200% 100%; color: #fff; font-size: 12.5px; padding: 8px 0; position: relative; overflow: hidden; animation: shimmer 12s ease-in-out infinite; }
.govbar::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 16px 16px; pointer-events: none; }
.govbar-inner { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.govbar-left, .govbar-right { display: flex; align-items: center; gap: 14px; }
.govbar-link, .govbar-fz, .govbar-icon { color: rgba(255,255,255,0.92); text-decoration: none; font-weight: 500; transition: color 150ms; }
.govbar-link:hover, .govbar-fz:hover, .govbar-icon:hover { color: var(--yellow); text-decoration: none; }
.govbar-link.active { color: #fff; font-weight: 700; }
.govbar-fz { font-family: 'Times New Roman', serif; min-width: 18px; text-align: center; }
.govbar-fz:nth-child(3) { font-size: 13px; }
.govbar-fz:nth-child(5) { font-size: 14px; }
.govbar-fz:nth-child(7) { font-size: 15px; }
.govbar-sep { opacity: 0.5; }
.govbar-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.1); font-size: 11px; }
.govbar-icon:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* navbar */
.navbar { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; z-index: 50; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--navy); }
.nav-brand img { height: 32px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--navy); font-weight: 500; font-size: 13.5px; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.card-accent { position: relative; overflow: hidden; }
.card-accent::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-mid)); }

/* buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 6px; font-weight: 500; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: all 150ms; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn-secondary { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-bg); }
.btn-ghost { background: transparent; color: var(--slate); }
.btn-ghost:hover { color: var(--accent); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-hero-yellow { background: var(--yellow); color: var(--navy); font-weight: 700; padding: 12px 22px; }
.btn-hero-yellow:hover, .btn-hero-yellow:focus, .btn-hero-yellow:active { background: #ffd633; color: var(--navy); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,204,0,0.4); }
.btn-hero-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.45); padding: 12px 22px; }
.btn-hero-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }
.btn-hero-officer { background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,0.4); padding: 12px 22px; font-weight: 600; display: inline-flex; align-items: center; }
.btn-hero-officer:hover { background: #000; color: var(--yellow); }
.lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-left: 8px; }
.lang-toggle .lang-btn { background: transparent; border: 0; padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--slate); cursor: pointer; font-family: inherit; transition: all 150ms; }
.lang-toggle .lang-btn:hover { color: var(--accent); }
.lang-toggle .lang-btn.active { background: var(--accent); color: #fff; }
.btn-nav-sm { padding: 8px 16px !important; font-size: 13.5px; font-weight: 600; }
.nav-links a.btn-hero-yellow { color: var(--navy); }
.nav-links a.btn-hero-officer { color: #fff; }
.nav-links a.btn-hero-officer:hover { color: var(--yellow); }

/* Module segments */
.modules-section { background: #f7f9fc; padding: 72px 0; }
.modules-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.modules-head .kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); padding: 4px 12px; background: rgba(37,99,235,0.08); border-radius: 999px; }
.modules-head h2 { font-size: 28px; font-weight: 700; margin: 12px 0 10px; }

.mod-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border); }
.mod-segment:first-of-type { border-top: none; }
.mod-segment.mod-right .mod-visual { order: 2; }
.mod-segment.mod-right .mod-content { order: 1; }

.mod-visual { background: #fff; border-radius: 16px; padding: 28px 24px 24px; min-height: 320px; position: relative; box-shadow: 0 4px 16px rgba(0,0,0,0.05); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 20px; align-items: stretch; justify-content: flex-start; }
.mod-active .mod-visual { background: linear-gradient(135deg, #fff 0%, #eff6ff 100%); border-color: rgba(37,99,235,0.2); }
.mod-scope .mod-visual { background: linear-gradient(135deg, #fff 0%, #f4f5f7 100%); }

.mod-tag-corner { position: absolute; top: 14px; right: 14px; font-family: 'Courier New', monospace; font-size: 10.5px; font-weight: 800; color: var(--slate); letter-spacing: 2px; padding: 3px 8px; background: rgba(0,0,0,0.05); border-radius: 4px; z-index: 2; }

.mod-illustration { display: flex; align-items: center; justify-content: center; padding: 8px 0; min-height: 160px; }
.mod-illustration svg { width: 100%; max-width: 240px; height: 160px; color: var(--accent); }
.mod-scope .mod-illustration svg { color: #94a3b8; }

.mod-photo { width: 100%; height: 200px; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.mod-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.mod-visual:hover .mod-photo img { transform: scale(1.04); }
.mod-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(15,23,42,0.35) 100%); pointer-events: none; }
.mod-visual-img { padding: 16px; }
.mod-scope .mod-photo { filter: grayscale(0.4); opacity: 0.85; }

.mod-flow { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 4px 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.mod-flow-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 70px; max-width: 110px; position: relative; }
.mod-flow-icon { width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1.5px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(37,99,235,0.18); }
.mod-flow-icon svg { width: 18px; height: 18px; }
.mod-scope .mod-flow-icon { border-color: #94a3b8; color: #64748b; box-shadow: 0 2px 8px rgba(148,163,184,0.2); }
.mod-flow-num { position: absolute; top: -4px; right: 50%; margin-right: -22px; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.mod-scope .mod-flow-num { background: #cbd5e1; color: var(--navy); }
.mod-flow-label { font-size: 10.5px; font-weight: 600; color: var(--navy); text-align: center; line-height: 1.3; margin-top: 2px; }
.mod-flow-arrow { color: var(--slate); font-size: 16px; font-weight: 700; align-self: center; padding-top: 14px; }

.mod-content h3 { font-size: 26px; font-weight: 700; margin: 12px 0 12px; color: var(--navy); line-height: 1.2; }
.mod-content > p { font-size: 14.5px; color: var(--slate); line-height: 1.6; margin: 0 0 18px; }

.mod-status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mod-pill { font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 4px 10px; border-radius: 4px; }
.mod-pill-active { background: rgba(16,185,129,0.12); color: #059669; }
.mod-pill-scope { background: rgba(148,163,184,0.18); color: #475569; }
.mod-tagline { font-size: 13px; font-weight: 600; color: var(--slate); }

.mod-features { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.mod-features li { padding-left: 22px; position: relative; font-size: 13px; color: var(--navy); line-height: 1.5; }
.mod-features li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: rgba(16,185,129,0.12); color: #059669; font-weight: 800; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.mod-scope .mod-features li::before { content: '○'; background: rgba(148,163,184,0.18); color: #64748b; }

.btn-mod-cta { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; padding: 11px 22px; border-radius: 8px; font-size: 14px; text-decoration: none; border: none; cursor: pointer; transition: all 150ms; }
.btn-mod-cta:hover { background: #ffd633; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,204,0,0.4); color: var(--navy); text-decoration: none; }
.btn-mod-cta-scope { display: inline-block; background: transparent; color: var(--slate); font-weight: 600; padding: 11px 22px; border-radius: 8px; font-size: 14px; border: 1px solid var(--border); cursor: pointer; transition: all 150ms; font-family: inherit; }
.btn-mod-cta-scope:hover { background: #fff; color: var(--navy); border-color: var(--navy); }

@media (max-width: 900px) {
    .mod-segment { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
    .mod-segment.mod-right .mod-visual,
    .mod-segment.mod-right .mod-content { order: unset; }
    .mod-features { grid-template-columns: 1fr; }
    .mod-content h3 { font-size: 22px; }
}

/* forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--slate); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 13.5px; color: var(--navy); background: #fff; }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,104,55,0.12); }
.form-control::placeholder { color: #9aabbc; }

/* badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: var(--accent-bg); color: var(--accent); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-grey { background: var(--grey-bg); color: var(--slate); }

/* SLA / priority pill helpers */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-on-track { background: #dcfce7; color: #15803d; }
.pill-due-soon { background: var(--amber-bg); color: var(--amber); }
.pill-breach-risk { background: #ffedd5; color: #c2410c; }
.pill-breached { background: var(--red-bg); color: var(--red); }
.pill-high { background: var(--red-bg); color: var(--red); }
.pill-medium { background: var(--amber-bg); color: var(--amber); }
.pill-normal { background: var(--accent-bg); color: var(--accent); }

/* split-screen auth layout */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 42% 58%; }
.auth-left { background: linear-gradient(135deg, var(--navy) 0%, var(--accent-deep) 45%, var(--accent) 100%); color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-left::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.5px); background-size: 22px 22px; pointer-events: none; }
.auth-left::after { content: ''; position: absolute; right: -160px; top: -160px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(255,204,0,0.18) 0%, rgba(37,99,235,0.12) 40%, transparent 70%); border-radius: 50%; pointer-events: none; animation: orb-drift 14s ease-in-out infinite; }
.auth-left > * { position: relative; z-index: 1; }
.auth-left .badge-portal { display: inline-block; background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; backdrop-filter: blur(8px); }
.auth-left h1 { color: #fff; margin: 24px 0 12px; }
.auth-left .features { list-style: none; padding: 0; margin: 24px 0; }
.auth-left .features li { padding: 8px 0; display: flex; align-items: center; gap: 10px; font-size: 13.5px; opacity: 0.92; }
.auth-left .features li::before { content: ''; width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; flex-shrink: 0; }
.auth-right { background: var(--off-white); padding: 56px 48px; display: flex; align-items: center; justify-content: center; }
.auth-card { background: #fff; padding: 40px 36px; border-radius: 12px; width: 100%; max-width: 420px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); position: relative; overflow: hidden; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-mid)); }
@media (max-width: 768px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}

/* timeline (lifecycle) */
.lifecycle { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 16px 0; }
.lifecycle-step { flex: 1; text-align: center; position: relative; padding: 0 8px; min-width: 120px; }
.lifecycle-step::after { content: ''; position: absolute; top: 18px; left: 50%; right: -50%; height: 2px; background: var(--grey); z-index: 0; }
.lifecycle-step:last-child::after { display: none; }
.lifecycle-step.completed::after { background: var(--accent); }
.lifecycle-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--grey-bg); border: 2px solid var(--grey); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--slate); position: relative; z-index: 1; }
.lifecycle-step.completed .lifecycle-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.lifecycle-step.current .lifecycle-dot { background: var(--amber); border-color: var(--amber); color: #fff; box-shadow: 0 0 0 4px rgba(217,119,6,0.18); }
.lifecycle-label { font-size: 12px; color: var(--slate); font-weight: 500; }
.lifecycle-step.completed .lifecycle-label,
.lifecycle-step.current .lifecycle-label { color: var(--navy); }

/* tracker (courier-style) */
.tracker { display: flex; flex-direction: column; gap: 0; }
.tracker-step { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 12px 0; position: relative; }
.tracker-step:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: -8px; width: 2px; background: var(--border); }
.tracker-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--grey-bg); border: 2px solid var(--grey); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--slate); }
.tracker-step.done .tracker-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.tracker-step.current .tracker-dot { background: var(--amber); border-color: var(--amber); color: #fff; }
.tracker-step.done:not(:last-child)::after { background: var(--accent); }
.tracker-title { font-weight: 600; font-size: 14px; }
.tracker-meta { font-size: 12px; color: var(--slate); margin-top: 2px; }

/* AI panel */
.ai-panel { border: 1px solid var(--accent); background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%); border-radius: 10px; padding: 20px; }
.ai-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ai-panel-title { font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.ai-panel-summary { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin: 10px 0; font-size: 13.5px; }
.ai-panel-rec { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }

/* utilities */
.row { display: grid; gap: 20px; }
.row-2 { grid-template-columns: repeat(2, 1fr); }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .row-2, .row-3, .row-4 { grid-template-columns: 1fr; } }

.text-slate { color: var(--slate); }
.text-accent { color: var(--accent); }
.text-red { color: var(--red); }
.muted { color: var(--slate); font-size: 13px; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.flex { display: flex; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

/* tables */
table.tbl { width: 100%; border-collapse: collapse; background: #fff; }
table.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate); padding: 12px 14px; background: var(--grey-bg); border-bottom: 1px solid var(--border); }
table.tbl td { padding: 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
table.tbl tr:hover td { background: var(--accent-bg); }

/* hero */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #fff; padding: 88px 0 96px; text-align: center; position: relative; overflow: hidden; }
#hero-wave-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero h1 { color: #fff; position: relative; z-index: 2; }
.hero > .container { position: relative; z-index: 2; }
.hero-badge { display: inline-block; background: var(--yellow); color: var(--navy); padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,0.92); font-size: 16px; max-width: 720px; margin: 12px auto 0; position: relative; z-index: 2; }

@keyframes hero-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-2%, -1%) scale(1.05); }
  100% { transform: translate(2%, 1%) scale(1); }
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-30px, 20px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* module heatmap tile */
.tile { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; transition: all 150ms; cursor: pointer; }
.tile:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-1px); }
.tile-active { border-left: 4px solid var(--accent); }
.tile-partial { border-left: 4px solid var(--amber); }
.tile-scope { border-left: 4px solid var(--grey); cursor: default; opacity: 0.65; }
.tile-disabled { border-left: 4px solid var(--grey); opacity: 0.4; cursor: not-allowed; }

/* QR verify success panel */
.verify-success { border: 2px solid var(--accent); background: var(--accent-bg); padding: 32px; border-radius: 12px; text-align: center; }
.verify-success .check { font-size: 48px; color: var(--accent); margin-bottom: 12px; }

/* error box */
.error-box { background: var(--red-bg); border: 1px solid var(--red-border); color: #b91c1c; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
