/* ── 14. RESPONSIF ────────────────────────────────────────────────────── */
@media (max-width: 1399.98px) {
  .nav-link-ui { padding: 0 11px; font-size: 13.5px; }
  .grid-main-side { grid-template-columns: minmax(0, 1fr) 340px; }
  .tariff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
  :root { --page-x: 1.5rem; --gutter: 1rem; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main-side, .grid-7-5, .grid-8-4 { grid-template-columns: minmax(0, 1fr); }
  .sticky-side { position: static; }
  .brand-text small { display: none; }
  .nav-link-ui { padding: 0 9px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  :root { --topbar-h: 56px; }
  .main-nav, .brand-text, .profile-btn { display: none !important; }
  .mobile-title { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-inner { gap: 10px; }
  .app-container { padding-bottom: calc(var(--bottomnav-h) + 28px + env(safe-area-inset-bottom)); }
  .app-footer { display: none; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .bottom-nav button { flex: 1; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; position: relative; min-height: 48px; }
  .bottom-nav button i { font-size: 21px; line-height: 1; }
  .bottom-nav button.active { color: var(--primary-text); }
  .bottom-nav button.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--primary); }
  .toast-stack { bottom: calc(var(--bottomnav-h) + 14px + env(safe-area-inset-bottom)); right: 12px; width: calc(100% - 24px); }
  .login-grid { grid-template-columns: 1fr; }
  .login-hero { padding: 28px 22px 26px; gap: 16px; }
  .login-hero .hero-feats, .login-hero .hero-quote, .login-hero .hero-secure { display: none; }
  .login-hero h1 { font-size: 22px; }
  .login-hero p.lead-sm { font-size: 13.5px; }
  .login-panel { padding: 18px 18px 28px; }
  .login-form-wrap { padding: 18px 0; }
  .login-form-wrap h2 { font-size: 26px; }
  .mut-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  :root { --page-x: 1rem; --gutter: .75rem; }
  body { font-size: 14px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .btn-icon { width: 44px; min-height: 44px; }
  .form-control, .form-select { min-height: 44px; font-size: 16px; }
  .app-container { padding-top: 18px; }
  .page-title { font-size: 22px; line-height: 28px; }
  .page-head { margin-bottom: 16px; align-items: stretch; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .card-ui { padding: 16px; border-radius: 14px; }
  .kpi-body { padding: 16px 16px 12px; }
  .kpi-foot { padding: 10px 16px; }
  .kpi-value { font-size: 21px; line-height: 28px; margin-top: 10px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .job-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tariff-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
  .filter-bar > * { flex: 1 1 100%; }
  .date-range { width: 100%; justify-content: space-between; }
  .date-range input { width: 42%; }
  .tbl-foot { padding: 12px; justify-content: center; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .notif-menu { width: calc(100vw - 24px); }
  /* Tabel → kartu di HP */
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { border: 1px solid var(--border); border-radius: 12px; margin: 10px 12px; width: auto; padding: 6px 12px; background: var(--surface) !important; }
  .tbl.cards td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl.cards td::before { content: attr(data-label); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: left; flex-shrink: 0; padding-top: 2px; }
  .tbl.cards td.no { width: auto; }
  .tbl.cards td.act { justify-content: flex-end; border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 10px; }
  .tbl.cards td.act::before { content: none; }
  .tbl.cards td > div { text-align: right; }
  .nota-a5 { font-size: 8px; }
}
@media (max-width: 767.98px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .seg-tabs button { white-space: normal; font-size: 12.5px; padding: 0 8px; line-height: 1.2; }
  .form-actions { width: 100%; }
  .form-actions .btn { flex: 1 1 0; min-width: 0; }
  .btn-lg { padding: 0 14px; font-size: 15px; }
  .pk-actions-row > .pill { width: 100%; justify-content: center; }
}
@media (max-width: 575.98px) {
  .grid-4 { gap: 10px; }
  .grid-4 > .kpi.hero { grid-column: span 2; }
  .kpi-body { padding: 14px 14px 10px; }
  .kpi-label { font-size: 10px; letter-spacing: .04em; }
  .kpi-icon { width: 30px; height: 30px; font-size: 14px; }
  .kpi-value { font-size: 17px; line-height: 24px; margin-top: 8px; }
  .kpi.hero .kpi-value { font-size: 24px; line-height: 30px; }
  .kpi-value small { font-size: 12px; }
  .kpi-sub { font-size: 11.5px; }
  .kpi-foot { flex-wrap: wrap; padding: 8px 14px; font-size: 11.5px; gap: 4px; }
  .date-range .small { display: none; }
  .date-range input { flex: 1 1 0; min-width: 0; width: auto; }
  .server-pill { font-size: 12px; }
}
@media (min-width: 992px) { .bottom-sheet, .sheet-backdrop { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

