:root {
  --primary: #0b63ce;
  --primary-2: #1f7ae0;
  --primary-soft: #eaf3ff;
  --navy: #0b1f3a;
  --red: #ef3b34;
  --green: #1ba56a;
  --orange: #f59e0b;
  --purple: #7c3aed;
  --cyan: #0891b2;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.07);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: radial-gradient(circle at 20% 20%, #eaf3ff 0, #f7faff 38%, #eef4fb 100%);
}
.boot-screen img { width: min(320px, 70vw); }
.boot-screen p { color: var(--muted); margin: 0; }
.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 4px solid #dceafd; border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  background: #07172e;
}
.login-visual {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(11,99,206,.92), rgba(7,23,46,.96)),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.18), transparent 35%);
  color: white;
  position: relative;
  overflow: hidden;
}
.login-visual::after {
  content: "";
  position: absolute;
  width: 430px; height: 430px;
  right: -150px; bottom: -180px;
  border-radius: 50%;
  border: 70px solid rgba(255,255,255,.06);
}
.login-logo {
  width: 300px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 60px rgba(0,0,0,.2);
}
.login-visual h1 { font-size: clamp(34px, 5vw, 64px); margin: 28px 0 12px; line-height: 1.02; }
.login-visual p { max-width: 650px; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.84); }
.feature-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.feature-chip {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 10px 14px; border-radius: 999px; backdrop-filter: blur(8px);
}
.login-panel {
  display: grid; place-items: center;
  padding: 34px;
  background: #f7faff;
}
.login-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.login-card h2 { margin: 0 0 8px; font-size: 30px; }
.login-card .sub { margin: 0 0 26px; color: var(--muted); line-height: 1.55; }
.demo-box {
  margin: 18px 0 0;
  background: #fff8e8;
  border: 1px solid #fde3a7;
  color: #7c5600;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #07172e 0%, #0b2345 100%);
  color: white;
  padding: 22px 16px;
  overflow-y: auto;
  z-index: 50;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand img { width: 128px; background: white; border-radius: 10px; padding: 6px 8px; }
.brand small { display: block; color: #a9bdd9; margin-top: 2px; }
.nav-label { color: #7f9abb; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; padding: 22px 12px 8px; }
.nav-list { display: grid; gap: 5px; }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 11px;
  border: 0; background: transparent; color: #c9d7e9;
  padding: 12px 13px; border-radius: 12px; text-align: left;
  transition: .18s ease;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: white; }
.nav-item.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; box-shadow: 0 10px 22px rgba(11,99,206,.28); }
.nav-icon { width: 22px; text-align: center; font-size: 17px; }
.sidebar-footer { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: white; font-weight: 800; background: linear-gradient(135deg, #21a3ff, #7557f5);
}
.user-mini strong { display: block; font-size: 13px; }
.user-mini small { color: #9fb3cc; }

.main-area { min-width: 0; }
.topbar {
  height: 74px; position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar h1 { font-size: 21px; margin: 0; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; }
.content { padding: 28px; max-width: 1600px; margin: 0 auto; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head h2 { margin: 0 0 5px; font-size: 27px; }
.page-head p { margin: 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 13px;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; box-shadow: 0 9px 20px rgba(11,99,206,.2); }
.btn-secondary { background: white; color: var(--text); border-color: var(--border); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-success { background: var(--green); color: white; }
.btn-warning { background: var(--orange); color: white; }
.btn-danger { background: #feecec; color: var(--danger); border-color: #fecaca; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-sm { padding: 7px 10px; border-radius: 9px; font-size: 12px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-blue { background: #e8f2ff; color: #0b63ce; }
.badge-green { background: #e7f8f0; color: #128056; }
.badge-red { background: #ffeded; color: #c52222; }
.badge-orange { background: #fff4dc; color: #aa6b00; }
.badge-purple { background: #f1eafe; color: #6d34c7; }
.badge-gray { background: #eef2f7; color: #566579; }
.badge-cyan { background: #e4f7fb; color: #087a92; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 19px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.stat-card::after { content: ""; position: absolute; width: 84px; height: 84px; right: -28px; top: -30px; border-radius: 50%; background: var(--tint, #eaf3ff); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.stat-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint, #eaf3ff); color: var(--tone, var(--primary)); font-size: 21px; }
.stat-card small { color: var(--muted); font-weight: 700; }
.stat-card strong { display: block; font-size: 29px; margin-top: 15px; }
.stat-card .trend { margin-top: 7px; color: var(--muted); font-size: 12px; }

.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.card-head { padding: 18px 19px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 19px; }
.quick-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.quick-action { border: 1px solid var(--border); border-radius: 14px; padding: 15px; background: var(--surface-2); text-align: left; }
.quick-action:hover { border-color: #b8d5fa; background: #f3f8ff; }
.quick-action span { display: block; font-size: 24px; margin-bottom: 8px; }
.quick-action strong { display: block; }
.quick-action small { color: var(--muted); }
.progress-list { display: grid; gap: 14px; }
.progress-row { display: grid; gap: 7px; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.progress-track { height: 9px; border-radius: 999px; background: #eaf0f6; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #43a3ff); }
.activity-list { display: grid; gap: 13px; }
.activity-item { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: start; }
.activity-dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.activity-item p { margin: 0; font-size: 13px; line-height: 1.45; }
.activity-item small { color: var(--muted); }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.search-wrap { position: relative; min-width: min(340px, 100%); flex: 1; max-width: 480px; }
.search-wrap input { padding-left: 39px; }
.search-wrap::before { content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.form-control, input, select, textarea {
  width: 100%; border: 1px solid var(--border); background: white; color: var(--text);
  border-radius: 11px; padding: 10px 12px; outline: none; transition: .18s ease;
}
input:focus, select:focus, textarea:focus { border-color: #7ab3f4; box-shadow: 0 0 0 4px rgba(11,99,206,.09); }
textarea { min-height: 94px; resize: vertical; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-size: 13px; }
th { color: #53647a; background: #f8fafc; font-size: 11px; text-transform: uppercase; letter-spacing: .055em; position: sticky; top: 0; }
tbody tr:hover { background: #fbfdff; }
.table-title { font-weight: 800; }
.table-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.action-group { display: flex; gap: 6px; flex-wrap: nowrap; }
.empty-state { padding: 52px 20px; text-align: center; color: var(--muted); }
.empty-state .empty-icon { font-size: 43px; margin-bottom: 10px; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-group { display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 12px; font-weight: 800; color: #46566b; }
.form-group label .required { color: var(--red); }
.form-hint { font-size: 11px; color: var(--muted); }
.field-error { color: var(--danger); font-size: 11px; }
.form-section-title { grid-column: 1 / -1; margin-top: 4px; padding-top: 13px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 900; color: var(--primary); }
.preview-image { width: 110px; height: 88px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); background: #f1f5f9; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(4,13,27,.65); z-index: 100; display: grid; place-items: center; padding: 22px; animation: fadeIn .15s ease; }
.modal { width: min(760px, 100%); max-height: calc(100vh - 44px); overflow: hidden; display: flex; flex-direction: column; background: white; border-radius: 22px; box-shadow: 0 30px 100px rgba(0,0,0,.35); animation: modalIn .2s ease; }
.modal-lg { width: min(980px, 100%); }
.modal-sm { width: min(470px, 100%); }
.modal-head { padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 21px; overflow-y: auto; }
.modal-foot { padding: 15px 21px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--border); background: #fafcff; }
.modal-close { border: 0; background: #eef2f7; color: #526173; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }

#toast-root { position: fixed; top: 86px; right: 18px; z-index: 200; display: grid; gap: 10px; pointer-events: none; }
.toast { min-width: 280px; max-width: 420px; border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow); background: #172033; color: white; display: flex; gap: 10px; align-items: flex-start; pointer-events: auto; animation: toastIn .2s ease; }
.toast.success { background: #0d7a50; }
.toast.error { background: #b42323; }
.toast.warning { background: #9a6400; }
.toast p { margin: 0; font-size: 13px; line-height: 1.45; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }

.port-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.port-card { border: 1px solid var(--border); border-radius: 13px; padding: 12px; background: #f8fafc; }
.port-card.used { border-color: #b7e7d1; background: #eefaf5; }
.port-card strong { display: block; margin-bottom: 4px; }
.port-card small { color: var(--muted); }

.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.detail-item { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.detail-item small { display: block; color: var(--muted); margin-bottom: 4px; }
.detail-item strong { word-break: break-word; }
.evidence-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.evidence-grid a { display: block; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #f8fafc; }
.evidence-grid img { display: block; width: 100%; height: 130px; object-fit: cover; }

.attendance-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.attendance-clock { text-align: center; padding: 28px; background: linear-gradient(135deg, #0b63ce, #073f86); color: white; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.attendance-clock .time { font-size: 48px; font-weight: 900; letter-spacing: .02em; }
.attendance-clock .date { color: rgba(255,255,255,.8); margin-top: 6px; }
.attendance-status { margin-top: 17px; display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }

.report-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.report-card { border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: white; }
.report-card .icon { font-size: 30px; }
.report-card h3 { margin: 10px 0 6px; }
.report-card p { color: var(--muted); font-size: 13px; min-height: 40px; }

.notice { border: 1px solid #b9d8fb; background: #edf6ff; color: #174f85; padding: 13px 15px; border-radius: 13px; line-height: 1.5; font-size: 13px; }
.notice.warning { border-color: #f5d798; background: #fff7e4; color: #795700; }
.notice.danger { border-color: #f3bcbc; background: #fff0f0; color: #8f2020; }

.qr-label { width: 310px; margin: 0 auto; text-align: center; border: 2px dashed #a8b4c4; border-radius: 16px; padding: 20px; background: white; }
.qr-label img.logo { width: 170px; background: white; margin-bottom: 14px; }
#qrcode { display: grid; place-items: center; margin: 0 auto 12px; min-height: 190px; }
.qr-label .asset-code { font-size: 20px; font-weight: 900; letter-spacing: .08em; }
.qr-label .asset-name { color: var(--muted); margin-top: 5px; }

.mobile-overlay { display: none; }
.only-mobile { display: none; }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .report-cards { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 330px; padding: 34px 26px; }
  .login-visual h1 { font-size: 40px; }
  .login-panel { padding: 24px 16px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -285px; width: 270px; transition: left .22s ease; }
  .sidebar.open { left: 0; }
  .mobile-overlay.show { display: block; position: fixed; inset: 0; background: rgba(2,8,20,.55); z-index: 45; }
  .menu-toggle { display: inline-flex; }
  .content { padding: 20px 16px 90px; }
  .topbar { padding: 0 16px; }
  .topbar-actions .hide-mobile { display: none; }
  .only-mobile { display: inline-flex; }
  .attendance-panel { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .login-card { padding: 25px 20px; }
  .login-visual { display: none; }
  .login-page { background: #f7faff; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .stat-card { padding: 15px; }
  .stat-card strong { font-size: 24px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .page-actions .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full, .form-section-title { grid-column: auto; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .report-cards { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: repeat(2,1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: repeat(2,1fr); }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal, .modal-lg, .modal-sm { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; }
  .topbar h1 { font-size: 17px; }
}

@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; inset: 0; width: 100%; }
  .modal-backdrop { background: white; position: static; padding: 0; }
  .modal { box-shadow: none; width: 100%; max-height: none; }
  .modal-head, .modal-foot { display: none; }
  .qr-label { border: 1px solid #555; }
}

/* ===== TERABIT OPS v2 · Modern lightweight UI ===== */
body {
  background:
    radial-gradient(circle at 92% 3%, rgba(31, 122, 224, .08), transparent 24rem),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 34rem);
}

.sidebar {
  background:
    radial-gradient(circle at 15% 5%, rgba(31, 122, 224, .36), transparent 17rem),
    linear-gradient(180deg, #06152a 0%, #092445 100%);
}

.nav-item, .btn, .quick-action, .stat-card, .card, .report-card { -webkit-tap-highlight-color: transparent; }
.card, .stat-card, .report-card { border-color: rgba(219, 228, 239, .92); }
.card { overflow: hidden; }
.stat-card, .quick-action, .report-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.stat-card:hover, .report-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c9dff8; }
.quick-action:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .07); }

.notification-button { position: relative; }
.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  border: 2px solid white;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(239, 59, 52, .35);
}
.notification-count[hidden] { display: none; }

.mobile-bottom-nav { display: none; }

.priority-alert-panel {
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid #fecaca;
  border-radius: 17px;
  background: linear-gradient(135deg, #fff7f7, #fff);
  box-shadow: 0 10px 28px rgba(185, 28, 28, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.priority-alert-panel > div { display: flex; align-items: center; gap: 13px; min-width: 0; }
.priority-alert-panel strong { display: block; color: #9f1d1d; }
.priority-alert-panel p { margin: 3px 0 0; color: #7f1d1d; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 850px; }
.priority-pulse {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .45);
  animation: priorityPulse 2s infinite;
}
@keyframes priorityPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .4); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.priority-row.priority-darurat td:first-child { box-shadow: inset 4px 0 #dc2626; }
.priority-row.priority-tinggi td:first-child { box-shadow: inset 4px 0 #f59e0b; }

.form-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #cfe2fb;
  border-radius: 15px;
  padding: 14px 15px;
  background: linear-gradient(135deg, #edf6ff, #f8fbff);
}
.form-intro-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 20px;
  font-weight: 900;
}
.form-intro strong { color: #0b4d93; }
.form-intro p { margin: 3px 0 0; color: #52708e; font-size: 12px; line-height: 1.5; }

.work-brief {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.work-brief > div {
  padding: 13px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.work-brief small { display: block; color: var(--muted); margin-bottom: 5px; }
.work-brief strong { font-size: 13px; line-height: 1.45; }

.speedtest-card {
  border-radius: 18px;
  border: 1px solid #cfe2fb;
  background:
    radial-gradient(circle at 95% 0, rgba(31, 122, 224, .13), transparent 15rem),
    linear-gradient(145deg, #f8fbff, #ffffff);
  padding: 17px;
  overflow: hidden;
}
.speedtest-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.speedtest-head strong { display: block; font-size: 15px; }
.speedtest-head span { color: var(--muted); font-size: 12px; }
.speedtest-progress { height: 7px; margin: 15px 0; border-radius: 999px; background: #e7eef7; overflow: hidden; }
.speedtest-progress > div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b63ce, #25a3ff); transition: width .3s ease; }
.speedtest-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.speedtest-results > div { border: 1px solid #e0e9f5; border-radius: 13px; padding: 12px; background: rgba(255, 255, 255, .88); }
.speedtest-results small { display: block; color: var(--muted); font-weight: 700; }
.speedtest-results strong { display: block; margin-top: 5px; font-size: 17px; color: #0b4d93; }
.speedtest-status { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.evidence-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.evidence-preview img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.evidence-grid.labeled a { position: relative; }
.evidence-grid.labeled span {
  display: block;
  padding: 9px 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.notification-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding: 13px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.notification-toolbar > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.notification-toolbar strong, .notification-toolbar span { display: block; }
.notification-toolbar span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.notification-list { display: grid; gap: 9px; }
.notification-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  color: var(--text);
}
.notification-item:hover { border-color: #b7d4f5; background: #fafdff; }
.notification-item.unread { background: #f2f7ff; border-color: #bad7f8; }
.notification-item.priority-darurat { border-left: 4px solid #dc2626; }
.notification-item.priority-tinggi { border-left: 4px solid #f59e0b; }
.notification-priority {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eaf3ff;
  color: var(--primary);
  font-weight: 900;
}
.notification-item.priority-darurat .notification-priority { background: #fee2e2; color: #b91c1c; }
.notification-item.priority-tinggi .notification-priority { background: #fef3c7; color: #a16207; }
.notification-item strong { display: block; font-size: 13px; }
.notification-item p { margin: 3px 0 5px; color: #53647a; font-size: 12px; line-height: 1.45; }
.notification-item small { color: var(--muted); }

@media (max-width: 900px) {
  .mobile-bottom-nav {
    position: fixed;
    z-index: 44;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 66px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 7px;
    border: 1px solid rgba(207, 219, 234, .9);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .18);
  }
  .mobile-nav-item {
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #718096;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
  }
  .mobile-nav-item > span { font-size: 19px; line-height: 1; }
  .mobile-nav-item small { font-size: 9px; font-weight: 800; }
  .mobile-nav-item.active { color: var(--primary); background: var(--primary-soft); }
  .content { padding-bottom: 100px; }
  .priority-alert-panel { align-items: stretch; }
}

@media (max-width: 680px) {
  .topbar { height: 68px; }
  .topbar p { display: none; }
  .page-head h2 { font-size: 23px; }
  .speedtest-head { align-items: stretch; flex-direction: column; }
  .speedtest-results { grid-template-columns: repeat(2, 1fr); }
  .work-brief { grid-template-columns: 1fr; }
  .notification-toolbar { align-items: stretch; flex-direction: column; }
  .notification-toolbar > div:last-child { justify-content: stretch; }
  .notification-toolbar .btn { flex: 1; }
  .priority-alert-panel { flex-direction: column; }
  .priority-alert-panel .btn { width: 100%; }
  .evidence-grid.labeled { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* TERABIT OPS v3 — menu groups, attendance gate, speed gauge, and Excel import */
.dashboard-menu-stack { display: grid; gap: 16px; margin-bottom: 20px; }
.menu-group-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; padding: 20px; background: var(--surface); box-shadow: var(--shadow-soft); }
.menu-group-card::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; right: -95px; top: -105px; background: rgba(255,255,255,.12); pointer-events: none; }
.technician-menu-card { color: white; border: 0; background: linear-gradient(135deg, #075bbd, #1886e8); }
.operational-menu-card { background: linear-gradient(135deg, #ffffff, #f5f9ff); }
.menu-group-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; position: relative; z-index: 1; }
.menu-group-heading h3 { margin: 3px 0 5px; font-size: 23px; }
.menu-group-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.technician-menu-card .menu-group-heading p { color: rgba(255,255,255,.78); }
.menu-group-kicker { font-size: 10px; font-weight: 900; letter-spacing: .16em; opacity: .7; }
.menu-group-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(255,255,255,.16); font-size: 23px; }
.operational-menu-card .menu-group-icon { background: var(--primary-soft); color: var(--primary); }
.menu-group-actions { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.menu-group-actions .quick-action { min-height: 105px; }
.technician-menu-card .quick-action { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.18); color: white; }
.technician-menu-card .quick-action:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.technician-menu-card .quick-action small { color: rgba(255,255,255,.76); }

.attendance-loading { min-height: 55vh; display: grid; place-items: center; align-content: center; gap: 13px; text-align: center; color: var(--muted); }
.attendance-loading strong { color: var(--text); font-size: 18px; }
.attendance-loading p { margin: 0; }
.attendance-gate-notice { margin-bottom: 18px; display: flex; align-items: center; gap: 15px; padding: 17px 18px; color: #6b4700; border: 1px solid #f7d37a; border-radius: 17px; background: linear-gradient(135deg, #fff9e9, #fff3c9); box-shadow: 0 8px 22px rgba(176,116,0,.08); }
.attendance-gate-notice > span { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: white; background: #f59e0b; font-size: 24px; }
.attendance-gate-notice strong { display: block; font-size: 15px; }
.attendance-gate-notice p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; }

.speed-gauge { --gauge-angle: -90deg; width: min(360px, 100%); margin: 12px auto 2px; text-align: center; }
.speed-gauge-arc { position: relative; width: 280px; max-width: 100%; aspect-ratio: 2 / 1; margin: 0 auto; overflow: hidden; }
.speed-gauge-arc::before { content: ""; position: absolute; inset: 0; border-radius: 280px 280px 0 0; background: conic-gradient(from 270deg at 50% 100%, #ef4444 0deg 50deg, #f59e0b 50deg 105deg, #22c55e 105deg 180deg, transparent 180deg 360deg); }
.speed-gauge-arc::after { content: ""; position: absolute; left: 13%; right: 13%; bottom: 0; height: 74%; border-radius: 220px 220px 0 0; background: #f8fbff; box-shadow: inset 0 7px 20px rgba(15,23,42,.06); }
.speed-gauge-needle { position: absolute; z-index: 3; left: 50%; bottom: 0; width: 42%; height: 4px; border-radius: 999px; background: #13233b; transform-origin: 0 50%; transform: rotate(var(--gauge-angle)); transition: transform .65s cubic-bezier(.2,.75,.25,1); box-shadow: 0 1px 4px rgba(15,23,42,.28); }
.speed-gauge-needle::after { content: ""; position: absolute; right: -3px; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: #13233b; }
.speed-gauge-hub { position: absolute; z-index: 4; left: 50%; bottom: -9px; width: 22px; height: 22px; transform: translateX(-50%); border: 5px solid white; border-radius: 50%; background: #0b63ce; box-shadow: 0 3px 10px rgba(15,23,42,.3); }
.gauge-label { position: absolute; z-index: 4; bottom: 3px; color: #64748b; font-size: 10px; font-weight: 800; }
.gauge-label-min { left: 4px; }.gauge-label-mid { left: 50%; transform: translateX(-50%); bottom: calc(100% - 26px); }.gauge-label-max { right: 2px; }
.speed-gauge-value { margin-top: 5px; }
.speed-gauge-value strong { display: block; color: #0b4d93; font-size: 30px; line-height: 1; }
.speed-gauge-value span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.speed-gauge.is-testing .speed-gauge-needle { animation: speedNeedleSweep 1.15s ease-in-out infinite alternate; }
@keyframes speedNeedleSweep { from { transform: rotate(-82deg); } to { transform: rotate(78deg); } }
.connection-quality { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 14px; border-radius: 14px; border: 1px solid; }
.connection-quality > span { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: white; font-weight: 900; font-size: 18px; }
.connection-quality strong { display: block; font-size: 14px; }
.connection-quality p { margin: 3px 0 0; font-size: 11px; line-height: 1.45; }
.quality-good { border-color: #a9e6c9; background: #ecfbf4; color: #11683f; }.quality-good > span { background: #1ba56a; }
.quality-bad { border-color: #fecaca; background: #fff1f2; color: #991b1b; }.quality-bad > span { background: #dc2626; }
.quality-pending { border-color: #dbe5f0; background: #f8fafc; color: #64748b; }.quality-pending > span { background: #94a3b8; }

.import-panel { display: grid; gap: 15px; }
.import-hero { display: flex; gap: 15px; align-items: center; padding: 18px; border-radius: 17px; color: white; background: linear-gradient(135deg, #0b63ce, #1686e6); }
.import-hero > span { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.16); font-size: 24px; }
.import-hero strong { display: block; font-size: 17px; }.import-hero p { margin: 5px 0 0; color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.5; }
.import-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.import-result { padding: 15px; border-radius: 14px; border: 1px solid; }
.import-result.is-success { color: #11683f; border-color: #a9e6c9; background: #ecfbf4; }
.import-result.has-warning { color: #7c5600; border-color: #fde3a7; background: #fff8e8; }
.import-result p { margin: 5px 0; font-size: 12px; }.import-result details { margin-top: 10px; }.import-result details div { max-height: 220px; overflow: auto; }

@media (max-width: 980px) { .menu-group-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .menu-group-card { padding: 16px; border-radius: 18px; }
  .menu-group-actions { grid-template-columns: 1fr 1fr; }
  .menu-group-actions .quick-action { min-height: 96px; padding: 12px; }
  .speed-gauge-arc { width: 235px; }
  .attendance-gate-notice { align-items: flex-start; }
  .import-actions { flex-direction: column; }.import-actions .btn { width: 100%; justify-content: center; }
}

/* TERABIT OPS v4 — Android-style icon UI, attendance geofence, package master, modern speedometer */
.app-icon { display: block; flex: 0 0 auto; }
.btn .app-icon { width: 1.15em; height: 1.15em; }
.nav-icon {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #a9c0dc;
  background: rgba(255,255,255,.055);
}
.nav-item { min-height: 48px; border-radius: 15px; padding: 6px 10px; }
.nav-item.active .nav-icon { color: white; background: rgba(255,255,255,.17); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.nav-item:hover .nav-icon { color: white; }

.app-launcher-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.app-launcher-item {
  min-height: 132px !important;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px;
  border-radius: 22px;
  padding: 15px 10px !important;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 24px rgba(21, 50, 85, .07);
}
.app-launcher-icon {
  width: 58px; height: 58px; margin: 0 0 2px !important;
  display: grid !important; place-items: center;
  border-radius: 19px;
  color: white;
  background: linear-gradient(145deg, #1688ef, #075ab8);
  box-shadow: 0 12px 24px rgba(11,99,206,.24), inset 0 1px 0 rgba(255,255,255,.28);
}
.app-launcher-icon.icon-attendance { background: linear-gradient(145deg, #9a63ff, #6932d7); }
.app-launcher-icon.icon-psb { background: linear-gradient(145deg, #2ccf8b, #15965f); }
.app-launcher-icon.icon-work { background: linear-gradient(145deg, #ff9f3f, #e36b0a); }
.app-launcher-icon.icon-assets { background: linear-gradient(145deg, #237be6, #0a4fa9); }
.app-launcher-icon.icon-locations { background: linear-gradient(145deg, #0bb8c7, #087d98); }
.app-launcher-icon.icon-odp { background: linear-gradient(145deg, #7c6bf3, #4b3cc0); }
.app-launcher-icon.icon-customers { background: linear-gradient(145deg, #ef5a8c, #bc2c64); }
.app-launcher-icon.icon-packages { background: linear-gradient(145deg, #20b981, #087f5b); }
.app-launcher-item strong { font-size: 13px; line-height: 1.2; }
.app-launcher-item small { font-size: 10px; line-height: 1.35; }
.technician-menu-card .app-launcher-item { background: rgba(255,255,255,.12); box-shadow: none; }
.technician-menu-card .app-launcher-icon { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 20px rgba(0,0,0,.08); }
.menu-group-icon .app-icon { width: 26px; height: 26px; }
.stat-icon .app-icon { width: 23px; height: 23px; }

.mobile-icon-wrap {
  width: 36px; height: 30px;
  display: grid; place-items: center;
  border-radius: 16px;
  transition: .18s ease;
}
.mobile-nav-item.active .mobile-icon-wrap { background: #dcecff; color: #075bbd; transform: translateY(-1px); }
.mobile-nav-item > span { font-size: inherit; }

.card-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.attendance-location-admin { margin-bottom: 18px; overflow: hidden; }
.attendance-location-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.attendance-location-card {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center;
  padding: 14px; border: 1px solid #dfe9f5; border-radius: 17px; background: linear-gradient(145deg, #fbfdff, #f4f8fd);
}
.location-pin {
  width: 45px; height: 45px; display: grid; place-items: center;
  border-radius: 15px; color: white; background: linear-gradient(145deg, #1688ef, #075ab8);
  box-shadow: 0 9px 18px rgba(11,99,206,.2);
}
.location-copy { min-width: 0; }
.location-copy strong, .location-copy span, .location-copy small { display: block; }
.location-copy span { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #53647a; font-size: 12px; }
.location-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.location-card-actions .action-group { justify-content: flex-end; }
.attendance-allowed-points {
  border: 1px solid #dbe9fa; border-radius: 16px; padding: 13px 14px; background: #f4f9ff;
}
.attendance-allowed-points > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.attendance-allowed-points > div { display: flex; flex-wrap: wrap; gap: 7px; }
.attendance-allowed-points span { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 999px; color: #0b4d93; background: white; border: 1px solid #d6e7fb; font-size: 10px; font-weight: 800; }
.attendance-location-preview {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 15px; border: 1px solid #dbe5f0; background: #f8fafc;
}
.attendance-location-preview .preview-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: #94a3b8; }
.attendance-location-preview strong { display: block; font-size: 13px; }
.attendance-location-preview p { margin: 3px 0 0; color: inherit; opacity: .82; font-size: 11px; }
.attendance-location-preview.is-inside { color: #11683f; border-color: #a9e6c9; background: #ecfbf4; }
.attendance-location-preview.is-inside .preview-icon { background: #1ba56a; }
.attendance-location-preview.is-outside { color: #991b1b; border-color: #fecaca; background: #fff1f2; }
.attendance-location-preview.is-outside .preview-icon { background: #dc2626; }

.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; padding: 18px; }
.package-card {
  position: relative; overflow: hidden; padding: 18px; border: 1px solid #dce7f4; border-radius: 22px;
  background: linear-gradient(155deg, #ffffff, #f5f9ff); box-shadow: 0 12px 30px rgba(15,23,42,.07);
}
.package-card::after { content: ''; position: absolute; width: 135px; height: 135px; top: -70px; right: -65px; border-radius: 50%; background: #e6f2ff; }
.package-card.is-inactive { opacity: .62; filter: grayscale(.25); }
.package-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.package-card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: white; background: linear-gradient(145deg, #20b981, #087f5b); box-shadow: 0 10px 20px rgba(20,155,105,.2); }
.package-card > small { display: block; margin-top: 14px; color: var(--muted); font-weight: 800; letter-spacing: .05em; }
.package-card h3 { margin: 4px 0 10px; font-size: 18px; }
.package-speed { display: flex; align-items: baseline; gap: 5px; color: #075bbd; }
.package-speed strong { font-size: 38px; line-height: 1; }
.package-speed span { font-size: 13px; font-weight: 800; }
.package-price { margin-top: 8px; color: #25364f; font-weight: 900; }
.package-price small { color: var(--muted); font-weight: 600; }
.package-thresholds { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 15px; }
.package-thresholds span { padding: 8px; border-radius: 10px; color: #53647a; background: white; border: 1px solid #e1e9f3; font-size: 9px; font-weight: 800; }
.package-actions { margin-top: 15px; }

.speedtest-card {
  position: relative; overflow: hidden;
  border: 1px solid #183d6a;
  background: radial-gradient(circle at 50% 28%, #123c70 0, #071b35 48%, #051426 100%);
  color: white;
  box-shadow: 0 22px 48px rgba(5,20,38,.26);
}
.speedtest-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(130deg, rgba(57,157,255,.13), transparent 40%, rgba(61,227,170,.07));
}
.speedtest-head, .speed-gauge, .speedtest-progress, .speedtest-results, .connection-quality, .speedtest-status { position: relative; z-index: 1; }
.speedtest-head strong { color: white; font-size: 16px; }
.speedtest-head span { color: #a8c3df; }
.modern-speed-gauge { width: min(390px, 100%); margin-top: 18px; }
.modern-speed-gauge .speed-gauge-arc { width: 310px; overflow: visible; filter: drop-shadow(0 10px 22px rgba(0,0,0,.28)); }
.modern-speed-gauge .speed-gauge-arc::before {
  inset: 0; border-radius: 310px 310px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, #ff5964 0deg 42deg, #ffb020 42deg 95deg, #30d98b 95deg 180deg, transparent 180deg 360deg);
  box-shadow: 0 0 28px rgba(38,143,255,.16);
}
.modern-speed-gauge .speed-gauge-arc::after {
  left: 10%; right: 10%; height: 80%; bottom: -1px;
  background: radial-gradient(circle at 50% 100%, #102f57 0, #081d38 62%, #07172c 100%);
  box-shadow: inset 0 12px 28px rgba(0,0,0,.24), 0 -1px 0 rgba(255,255,255,.04);
}
.speed-gauge-ticks {
  position: absolute; z-index: 2; inset: 5px 5px 0;
  border-radius: 300px 300px 0 0;
  background: repeating-conic-gradient(from 270deg at 50% 100%, rgba(255,255,255,.72) 0deg 1deg, transparent 1deg 9deg, transparent 180deg 360deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 75%, #000 76% 82%, transparent 83%);
  mask: radial-gradient(circle at 50% 100%, transparent 0 75%, #000 76% 82%, transparent 83%);
}
.modern-speed-gauge .speed-gauge-needle {
  z-index: 5; width: 43%; height: 5px; left: 50%; bottom: -1px;
  background: linear-gradient(90deg, #58c8ff, #ffffff 72%, #50ffcb);
  box-shadow: 0 0 8px rgba(93,211,255,.9), 0 0 20px rgba(93,211,255,.48);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.modern-speed-gauge .speed-gauge-needle span { position: absolute; right: -5px; top: -3px; width: 11px; height: 11px; border-radius: 50%; background: white; box-shadow: 0 0 11px #65dcff; }
.modern-speed-gauge .speed-gauge-needle::after { display: none; }
.modern-speed-gauge .speed-gauge-hub {
  z-index: 6; bottom: -15px; width: 31px; height: 31px; border: 6px solid #0b284c; background: #65d6ff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 22px rgba(81,207,255,.85);
}
.modern-speed-gauge .speed-gauge-hub i { display: block; width: 7px; height: 7px; border-radius: 50%; background: white; }
.modern-speed-gauge .gauge-label { color: #a9c4df; font-size: 10px; text-shadow: 0 1px 2px #000; }
.modern-speed-gauge .gauge-label-mid { bottom: calc(100% - 20px); }
.speed-gauge-glow { position: absolute; left: 50%; top: 42%; width: 210px; height: 90px; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(35,145,255,.12); filter: blur(22px); pointer-events: none; }
.modern-speed-gauge .speed-gauge-value { margin-top: 14px; }
.modern-speed-gauge .speed-gauge-value strong { color: white; font-size: 42px; text-shadow: 0 0 18px rgba(73,190,255,.4); }
.modern-speed-gauge .speed-gauge-value span { color: #9fbad4; }
.speed-package-target { margin-top: 8px; color: #76e4bd; font-size: 11px; font-weight: 800; }
.speed-gauge.is-testing .speed-gauge-needle { animation: none; }
.speed-gauge.is-testing .speed-gauge-glow { animation: gaugeGlowPulse 1.2s ease-in-out infinite alternate; }
@keyframes gaugeGlowPulse { from { opacity: .45; transform: translate(-50%,-50%) scale(.92); } to { opacity: 1; transform: translate(-50%,-50%) scale(1.08); } }
.speedtest-progress { background: rgba(255,255,255,.1); }
.speedtest-progress > div { background: linear-gradient(90deg, #28a7ff, #56e0bc); box-shadow: 0 0 14px rgba(56,183,255,.5); }
.speedtest-results > div { border-color: rgba(154,197,236,.16); background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.speedtest-results small { color: #93b1cf; }
.speedtest-results strong { color: white; }
.speedtest-status { color: #9eb8d1; }
.button-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: white; animation: spin .7s linear infinite; }
.speedtest-card .quality-pending { color: #d6e4f2; border-color: rgba(171,200,229,.22); background: rgba(255,255,255,.06); }
.speedtest-card .quality-good { color: #bff5dc; border-color: rgba(48,217,139,.35); background: rgba(34,174,110,.14); }
.speedtest-card .quality-bad { color: #ffd0d4; border-color: rgba(255,89,100,.38); background: rgba(205,45,61,.16); }
.connection-quality > span .app-icon { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .app-launcher-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .package-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .app-launcher-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .app-launcher-item { min-height: 116px !important; border-radius: 19px; }
  .app-launcher-icon { width: 53px; height: 53px; border-radius: 17px; }
  .app-launcher-item small { display: none; }
  .attendance-location-grid, .package-grid { grid-template-columns: 1fr; }
  .attendance-location-card { grid-template-columns: auto minmax(0,1fr); }
  .location-card-actions { grid-column: 1 / -1; }
  .location-card-actions .action-group { justify-content: flex-start; }
  .modern-speed-gauge .speed-gauge-arc { width: 265px; }
}
@media (max-width: 480px) {
  .app-launcher-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .app-launcher-item { min-height: 102px !important; padding: 10px 5px !important; }
  .app-launcher-icon { width: 48px; height: 48px; border-radius: 16px; }
  .app-launcher-item strong { font-size: 11px; }
  .package-thresholds { grid-template-columns: 1fr; }
  .modern-speed-gauge .speed-gauge-arc { width: 232px; }
  .modern-speed-gauge .speed-gauge-value strong { font-size: 35px; }
}
