@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #07111f;
  --navy: #071629;
  --navy-2: #0b2240;
  --navy-3: #102b50;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --sky: #38bdf8;
  --emerald: #10b981;
  --gold: #f5c66b;
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #7c3aed;
  --text: #0f172a;
  --soft-text: #526179;
  --muted: #748098;
  --line: #e3e9f3;
  --line-2: rgba(148, 163, 184, .24);
  --bg: #f4f7fb;
  --card: #ffffff;
  --card-soft: #f8fbff;
  --sidebar: #08182d;
  --sidebar-2: #0e2749;
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, .08);
  --shadow: 0 22px 55px rgba(15, 23, 42, .11);
  --shadow-lg: 0 32px 80px rgba(15, 23, 42, .18);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --sidebar-width: 288px;
}

* { 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;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(37, 99, 235, .10), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(245, 198, 107, .11), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #eef3fa 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img, svg { max-width: 100%; }
.min-w-0 { min-width: 0; }

/* =========================
   AUTH / LOGIN PREMIUM
========================= */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(56, 189, 248, .26), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(245, 198, 107, .22), transparent 28%),
    linear-gradient(135deg, #061226 0%, #0a1d37 42%, #020712 100%);
  position: relative;
}
.auth-body:before,
.auth-body:after {
  content: '';
  position: fixed;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
}
.auth-body:before { width: 420px; height: 420px; left: -130px; bottom: -160px; background: rgba(37, 99, 235, .28); }
.auth-body:after { width: 360px; height: 360px; right: -120px; top: -120px; background: rgba(245, 198, 107, .20); }
.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.12fr 430px;
  gap: 24px;
  align-items: stretch;
}
.auth-shell.single { grid-template-columns: minmax(280px, 520px); justify-content: center; }
.auth-brand {
  color: white;
  padding: 46px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.045));
  box-shadow: 0 35px 90px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.auth-brand:after {
  content: '';
  position: absolute;
  right: -82px;
  top: -82px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.brand-mark,
.brand-logo {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #08182d;
  font-weight: 900;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--gold), #fff2be);
  box-shadow: 0 18px 38px rgba(245, 198, 107, .28);
}
.auth-brand h1 {
  margin: 28px 0 16px;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: .93;
  letter-spacing: -3px;
  font-weight: 900;
}
.auth-brand p {
  color: rgba(255,255,255,.78);
  max-width: 650px;
  font-size: 17px;
  line-height: 1.8;
}
.auth-bullets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.auth-bullets span {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.10);
  font-weight: 700;
}
.auth-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 34px;
  padding: 36px;
  box-shadow: 0 35px 90px rgba(0,0,0,.30);
  align-self: center;
}
.auth-card h2 { margin: 0 0 8px; font-weight: 900; letter-spacing: -.8px; }
.muted { color: var(--muted); }
.password-wrap { position: relative; }
.toggle-password {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  background: #edf3fb;
  color: var(--navy-2);
  font-weight: 800;
  padding: 8px 11px;
}

/* =========================
   GLOBAL LAYOUT
========================= */
.app-body { min-height: 100vh; }
.app-main {
  min-height: 100vh;
  margin-left: calc(var(--sidebar-width) + 30px);
  padding: 24px 28px 60px;
}
.desktop-sidebar {
  position: fixed;
  inset: 16px auto 16px 16px;
  width: var(--sidebar-width);
  z-index: 20;
}
.sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 32px;
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 0%, rgba(37, 99, 235, .30), transparent 35%),
    linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  box-shadow: 0 35px 80px rgba(8, 24, 45, .30);
}
.brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 22px;
  color: white;
  min-width: 0;
}
.brand-card:hover { color: white; background: rgba(255,255,255,.06); }
.brand-card.compact { padding: 0; }
.brand-logo { width: 48px; height: 48px; border-radius: 17px; flex: 0 0 auto; font-size: 15px; }
.brand-copy { min-width: 0; display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { margin-top: 3px; color: rgba(255,255,255,.56); }
.sidebar-section-title {
  margin: 15px 12px 8px;
  color: rgba(255,255,255,.38);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.side-nav {
  display: grid;
  gap: 5px;
  overflow: auto;
  padding: 2px 4px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.35) transparent;
}
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.20); border-radius: 999px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 16px;
  color: rgba(255,255,255,.73);
  font-weight: 800;
  transition: .18s ease;
  position: relative;
}
.side-link:hover,
.side-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  transform: translateX(3px);
}
.side-link.active:before {
  content: '';
  position: absolute;
  left: -2px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: var(--gold);
}
.side-icon {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  flex: 0 0 auto;
}
.side-label { font-size: 13px; }
.sidebar-upgrade-card {
  margin: 14px 2px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245,198,107,.18), rgba(37,99,235,.10));
}
.sidebar-upgrade-card strong { display: block; font-size: 13px; }
.sidebar-upgrade-card span { display: block; margin-top: 4px; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.45; }
.upgrade-icon {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(255,255,255,.10);
  margin-bottom: 10px;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px;
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.08);
  min-width: 0;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #64748b, #334155);
  flex: 0 0 auto;
}
.avatar-sm { width: 38px; height: 38px; border-radius: 14px; }
.sidebar-user-copy { min-width: 0; display: grid; }
.sidebar-user-copy strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-copy small { color: rgba(255,255,255,.56); font-size: 12px; }
.mobile-offcanvas {
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  color: white;
  border: 0;
}
.mobile-offcanvas .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.10); }
.mobile-offcanvas .offcanvas-body { padding-top: 10px; }
.mobile-offcanvas .side-nav { overflow: visible; }
.mobile-bottom-nav { display: none; }

/* =========================
   TOPBAR
========================= */
.premium-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 10px 0 22px;
  background: linear-gradient(180deg, rgba(247,250,255,.96) 0%, rgba(247,250,255,.72) 70%, rgba(247,250,255,0) 100%);
  backdrop-filter: blur(12px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
}
.premium-topbar h1 {
  margin: 2px 0 0;
  padding-top: 2px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -1.2px;
  font-weight: 900;
  color: #061226;
  overflow: visible;
}
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 15px;
  color: var(--navy);
  background: white;
  box-shadow: var(--shadow-sm);
  font-size: 24px;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.date-pill,
.quick-add,
.user-chip {
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(226,232,240,.8);
  background: rgba(255,255,255,.86);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  color: var(--navy);
}
.date-pill { padding: 12px 16px; color: var(--soft-text); font-weight: 700; }
.quick-add { padding: 12px 16px; background: var(--navy); color: white; font-weight: 900; }
.quick-add:hover { color: white; transform: translateY(-1px); }
.user-chip { display: inline-flex; padding: 6px 10px 6px 6px; border: 0; }
.user-chip-text { text-align: left; line-height: 1.1; }
.user-chip-text strong { font-size: 13px; }
.user-chip-text small { color: var(--muted); font-weight: 700; }
.premium-dropdown {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
}
.premium-dropdown .dropdown-header { display: grid; padding: 8px 10px 10px; }
.premium-dropdown .dropdown-header span { color: var(--muted); font-size: 12px; }
.premium-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  font-weight: 700;
  padding: 9px 10px;
}

/* =========================
   PANELS / DASHBOARD
========================= */
.hero-panel,
.panel,
.stat-card,
.feature-card,
.dashboard-card,
.kpi-strip,
.insight-card {
  border: 1px solid rgba(226, 232, 240, .78);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}
.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 30px;
  border-radius: 32px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, .15), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,251,255,.88));
}
.hero-panel:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245,198,107,.10), transparent 35%);
  pointer-events: none;
}
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel h2 {
  margin: 6px 0 10px;
  max-width: 900px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  font-weight: 900;
}
.hero-panel p { margin: 0; color: var(--soft-text); font-size: 15px; line-height: 1.7; max-width: 800px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 24px;
  padding: 18px;
  min-height: 112px;
  transition: .18s ease;
}
.stat-card:after {
  content: '';
  position: absolute;
  right: -35px;
  top: -35px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .06);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue);
  background: linear-gradient(135deg, #eef5ff, #f8fbff);
  font-size: 21px;
}
.stat-icon i { line-height: 1; }
.stat-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.stat-card strong { display: block; margin-top: 5px; font-size: 24px; line-height: 1.12; letter-spacing: -.7px; font-weight: 900; }
.stat-card small { display: block; color: var(--muted); margin-top: 5px; font-size: 12px; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel {
  border-radius: 26px;
  padding: 22px;
  margin-bottom: 20px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.panel-header h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.5px;
  font-weight: 900;
}
.panel-header p { margin: 4px 0 0; color: var(--muted); }
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
}
.kpi-strip-item { padding: 18px; background: rgba(255,255,255,.56); }
.kpi-strip-item span { color: var(--muted); font-size: 12px; font-weight: 800; }
.kpi-strip-item strong { display: block; margin-top: 5px; font-size: 20px; font-weight: 900; }

/* =========================
   BUTTONS / FORMS
========================= */
.btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: white; box-shadow: 0 16px 28px rgba(37,99,235,.18); }
.btn.primary:hover { color: white; }
.btn.ghost { background: white; color: var(--navy); border: 1px solid var(--line); }
.btn.soft { background: #edf3fb; color: var(--navy-2); }
.btn.danger { background: #fee2e2; color: #b91c1c; }
.btn.full { width: 100%; }
.btn.tiny { padding: 7px 10px; border-radius: 11px; font-size: 12px; }
.link,
.mini-link { color: var(--blue); font-weight: 900; }
.link:hover,
.mini-link:hover { color: var(--blue-2); }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid label { display: grid; gap: 8px; color: #1b2940; font-weight: 900; }
.form-grid label small { color: var(--muted); font-weight: 600; }
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 14px;
  background: #fbfdff;
  color: var(--text);
  outline: none;
  transition: .16s ease;
  font-weight: 600;
}
input::placeholder,
textarea::placeholder { color: #9aa6b8; }
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
  background: white;
}
textarea { resize: vertical; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.toolbar input,
.toolbar select { max-width: 280px; }
.report-toolbar input,
.report-toolbar select { max-width: 220px; }

/* =========================
   TABLES / BADGES / LISTS
========================= */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.data-table th {
  padding: 0 14px 2px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 900;
  white-space: nowrap;
}
.data-table td {
  padding: 14px;
  background: #fbfdff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-weight: 650;
}
.data-table td:first-child { border-left: 1px solid var(--line); border-radius: 17px 0 0 17px; }
.data-table td:last-child { border-right: 1px solid var(--line); border-radius: 0 17px 17px 0; }
.data-table td strong { display: block; font-weight: 900; }
.data-table td small { display: block; color: var(--muted); margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .01em;
}
.badge.success { background: #dcfce7; color: #166534; }
.badge.warning { background: #fef3c7; color: #92400e; }
.badge.danger { background: #fee2e2; color: #991b1b; }
.badge.info { background: #dbeafe; color: #1e40af; }
.badge.neutral { background: #f1f5f9; color: #475569; }
.timeline-list,
.policy-list { display: grid; gap: 12px; }
.timeline-item,
.policy-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdff;
}
.timeline-date { min-width: 104px; color: var(--blue); font-weight: 900; }
.timeline-date small { display: block; color: var(--muted); margin-top: 3px; }
.timeline-item p,
.policy-card p { margin: 4px 0 0; color: var(--muted); }
.policy-card .right { display: grid; justify-items: end; gap: 6px; text-align: right; }
.empty-state {
  padding: 28px;
  border: 1px dashed #d8e2ef;
  border-radius: 20px;
  background: #f8fbff;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}
.empty-state.compact { padding: 18px; }
.success-state { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.danger-state { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.notice { padding: 13px 14px; border-radius: 15px; margin: 12px 0; font-weight: 800; }
.notice.danger { background: #fee2e2; color: #991b1b; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card { border-radius: 20px; padding: 18px; }
.feature-card strong { display: block; margin-bottom: 5px; font-weight: 900; }
.feature-card span { color: var(--muted); }

/* =========================
   TOAST / MODAL CUSTOM
========================= */
.toast-stack {
  position: fixed;
  right: 24px;
  top: 24px;
  display: grid;
  gap: 10px;
  z-index: 1060;
}
.toast-stack.static { position: static; margin: 14px 0; }
.premium-toast,
.toast {
  min-width: 300px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: .25s ease;
}
.premium-toast.success,
.toast.success { border-left: 5px solid var(--emerald); }
.premium-toast.danger,
.toast.danger { border-left: 5px solid var(--red); }
.premium-toast.warning,
.toast.warning { border-left: 5px solid var(--orange); }
.premium-toast.hide,
.toast.hide { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 17, 31, .64);
  backdrop-filter: blur(9px);
}
.modal-backdrop-custom.hidden { display: none; }
.premium-modal {
  width: min(430px, 100%);
  padding: 26px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.5);
}
.premium-modal h3 { margin: 12px 0 6px; font-weight: 900; }
.premium-modal p { margin: 0 0 20px; color: var(--muted); }
.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.modal-icon.danger { background: #fee2e2; color: #b91c1c; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px; }
  .desktop-sidebar { display: none; }
  .app-main { margin-left: 0; padding: 16px 14px 98px; }
  .premium-topbar { padding-bottom: 16px; }
  .mobile-menu-btn { display: inline-grid; place-items: center; }
  .topbar-actions { gap: 7px; }
  .hero-panel { grid-template-columns: 1fr; padding: 24px; }
  .hero-actions { justify-content: flex-start; }
  .grid-two,
  .form-grid.two,
  .feature-grid,
  .kpi-strip { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .panel { padding: 18px; border-radius: 22px; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  .toolbar input,
  .toolbar select,
  .toolbar .btn { max-width: none; width: 100%; }
  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
    z-index: 40;
  }
  .mobile-bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 7px 4px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 900;
  }
  .mobile-bottom-nav a i { font-size: 17px; }
  .mobile-bottom-nav a.active { background: #eff6ff; color: var(--blue); }
}
@media (max-width: 720px) {
  .auth-body { padding: 16px; }
  .auth-brand { display: none; }
  .auth-card { padding: 26px; border-radius: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tr {
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fbfdff;
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    text-align: right;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 9px 8px;
    background: transparent;
  }
  .data-table td:before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 900;
    text-align: left;
  }
  .data-table td strong,
  .data-table td small { text-align: right; }
  .actions { justify-content: flex-end; }
  .timeline-item,
  .policy-card { flex-direction: column; }
  .policy-card .right { justify-items: start; text-align: left; }
  .toast-stack { left: 12px; right: 12px; top: 12px; }
  .premium-toast,
  .toast { min-width: 0; width: 100%; }
}
@media print {
  body { background: white; }
  .desktop-sidebar,
  .mobile-bottom-nav,
  .premium-topbar,
  .toolbar,
  .btn,
  .toast-stack,
  .sidebar-upgrade-card { display: none !important; }
  .app-main { margin: 0; padding: 0; }
  .panel,
  .stat-card { box-shadow: none; border: 1px solid #d1d5db; background: white; }
}

/* =====================================================
   HOTFIX UI PREMIUM V2
   Mencegah mobile offcanvas/dropdown Bootstrap tampil
   sebagai blok kosong besar jika CSS/JS Bootstrap telat/gagal load.
===================================================== */
.dropdown { position: relative; }
.dropdown-menu:not(.show) { display: none !important; }
.dropdown-menu.show {
  display: block !important;
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 10px) !important;
  z-index: 1055 !important;
}

/* Hide offcanvas from desktop flow. This fixes the giant navy blank area. */
@media (min-width: 921px) {
  #mobileSidebar,
  .mobile-offcanvas,
  .offcanvas.mobile-offcanvas {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: fixed !important;
    transform: translateX(-120%) !important;
    pointer-events: none !important;
  }
}

/* Mobile fallback if Bootstrap CSS is not loaded from CDN. */
@media (max-width: 920px) {
  #mobileSidebar.mobile-offcanvas,
  .offcanvas.mobile-offcanvas {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(86vw, 340px) !important;
    max-width: 100% !important;
    z-index: 1045 !important;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  #mobileSidebar.mobile-offcanvas.show,
  .offcanvas.mobile-offcanvas.show {
    transform: translateX(0) !important;
    visibility: visible !important;
  }
}

/* Ensure desktop content starts immediately below the topbar, not after hidden elements. */
.app-main { position: relative; }
.premium-topbar { isolation: isolate; }


/* =====================================================
   HOTFIX UI PREMIUM V4
   - Dashboard lebih lega dan tidak terlalu padat
   - Header title tidak mepet/terasa terpotong
   - Mobile dibuat lebih aman agar tidak ketimpa
===================================================== */
.page-title-block {
  padding-left: 10px;
  border-left: 4px solid rgba(37, 99, 235, .16);
}
.premium-topbar {
  padding-top: 14px;
  padding-bottom: 22px;
}
.premium-topbar h1 {
  line-height: 1.24 !important;
  padding-top: 3px;
  padding-bottom: 2px;
}
.hero-panel.hero-compact,
.hero-panel {
  padding: 24px 26px;
  min-height: 0;
}
.hero-panel h2 {
  max-width: 700px;
  font-size: clamp(26px, 3.1vw, 38px) !important;
  line-height: 1.08 !important;
  letter-spacing: -1.2px;
}
.hero-panel p {
  max-width: 660px;
  font-size: 14px;
}
.hero-actions .btn {
  min-height: 44px;
}
.kpi-strip-item { padding: 14px 16px; }
.stat-card { min-height: 104px; }
.stat-card strong { font-size: 22px; }
.stat-card span { line-height: 1.25; }
.panel-header h3 { line-height: 1.25; }
.stat-icon i,
.side-icon i,
.mobile-bottom-nav i { line-height: 1; }

@media (min-width: 921px) {
  .app-main {
    margin-left: calc(var(--sidebar-width) + 38px);
    padding-left: 32px;
    padding-right: 36px;
  }
}

@media (max-width: 920px) {
  body { overflow-x: hidden; }
  .app-main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 14px 12px 96px;
  }
  .premium-topbar {
    position: relative;
    top: auto;
    z-index: 12;
    padding: 6px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    backdrop-filter: none;
  }
  .premium-topbar > .d-flex {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px !important;
  }
  .page-title-block {
    min-width: 0;
    padding-left: 8px;
    border-left-width: 3px;
  }
  .eyebrow {
    max-width: 100%;
    font-size: 9px;
    letter-spacing: .10em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .premium-topbar h1 {
    font-size: 25px !important;
    line-height: 1.18 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
  }
  .user-chip {
    padding: 4px;
    min-width: 44px;
    justify-content: center;
  }
  .hero-panel.hero-compact,
  .hero-panel {
    padding: 18px;
    border-radius: 24px;
    gap: 14px;
    margin-bottom: 14px;
  }
  .hero-panel h2 {
    font-size: 25px !important;
    line-height: 1.10 !important;
    letter-spacing: -.8px;
    margin-bottom: 8px;
  }
  .hero-panel p {
    font-size: 13px;
    line-height: 1.55;
  }
  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 10px 11px;
    font-size: 13px;
  }
  .kpi-strip {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 14px;
  }
  .kpi-strip-item { padding: 12px 14px; }
  .stats-grid {
    gap: 12px;
    margin-bottom: 14px;
  }
  .stat-card {
    min-height: auto;
    padding: 14px;
    border-radius: 20px;
  }
  .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 18px;
  }
  .panel {
    padding: 16px;
    border-radius: 22px;
  }
  .panel-header h3 { font-size: 20px; }
  .panel-header p { font-size: 13px; }
}

@media (max-width: 560px) {
  .app-main { padding: 12px 10px 96px; }
  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 22px;
  }
  .premium-topbar h1 { font-size: 23px !important; }
  .avatar-sm { width: 36px; height: 36px; border-radius: 13px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-panel h2 { font-size: 23px !important; }
  .kpi-strip { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
  }
  .stat-card strong { font-size: 21px; }
  .grid-two { gap: 12px; }
  .mobile-bottom-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 20px;
  }
  .mobile-bottom-nav a span { font-size: 10px; }
}

/* =========================
   PRINT / PDF CLEAN MODE
   Hide app chrome when user prints directly from report page.
========================= */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  .desktop-sidebar,
  .mobile-bottom-nav,
  .mobile-offcanvas,
  .offcanvas-backdrop,
  .premium-topbar,
  .sidebar,
  .bottom-nav,
  .topbar,
  .toast-stack,
  #toast-stack,
  .modal-backdrop,
  .toolbar,
  .topbar-actions,
  .actions,
  .btn,
  .quick-add,
  .date-pill,
  .user-chip {
    display: none !important;
  }
  .app-main,
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
  }
  .panel:not(.print-area) {
    display: none !important;
  }
  .print-area,
  .print-area .panel,
  .print-area.stat-card,
  .print-area.panel {
    box-shadow: none !important;
  }
  .stats-grid.print-area {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
  .stat-card,
  .panel {
    border: 1px solid #d7dde8 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }
  .data-table th {
    color: #0f172a !important;
    background: #eef2f7 !important;
  }
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
}

/* Patch 2C - renewal & user role polish */
.btn.success {
  background: #dcfce7;
  color: #166534;
}
.btn.success:hover { color: #166534; }
.role-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.role-help-card {
  border: 1px solid rgba(226, 232, 240, .9);
  background: #f8fbff;
  border-radius: 16px;
  padding: 13px 14px;
}
.role-help-card strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}
.role-help-card span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 820px) {
  .role-help-grid { grid-template-columns: 1fr; }
}

/* Patch 2C role dropdown visibility */
.user-form-grid select,
.role-select {
  min-height: 52px !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  background-color: #fbfdff !important;
}
.user-form-grid select option,
.role-select option {
  color: #0f172a !important;
  background: #ffffff !important;
}
.role-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.role-help-card {
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 18px;
  padding: 14px;
  background: #fbfdff;
}
.role-help-card strong { display: block; font-size: 13px; color: #0f172a; margin-bottom: 4px; }
.role-help-card span { display: block; color: #64748b; font-size: 12px; line-height: 1.45; }

/* =========================
   UI V5 - CLEAN TOPBAR / SIDEBAR FOOTER
========================= */
.topbar-v5 {
  position: relative;
  top: auto;
  z-index: 25;
  min-height: auto;
  padding: 10px 10px 18px;
  margin-bottom: 8px;
  background: transparent;
  backdrop-filter: none;
  border: 0;
}
.topbar-left-v5 {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar-v5 .page-title-block {
  display: grid;
  gap: 2px;
  padding-left: 0;
}
.breadcrumb-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
}
.topbar-v5 h1 {
  margin: 0;
  padding: 0;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.22;
  letter-spacing: -1.15px;
  font-weight: 900;
  color: #061226;
}
.topbar-v5 .page-title-block p {
  margin: 0;
  max-width: 680px;
  color: var(--soft-text);
  font-size: 13px;
  line-height: 1.5;
}
.topbar-actions-v5 {
  gap: 8px;
  flex: 0 0 auto;
}
.user-chip-static {
  cursor: default;
  min-height: 50px;
  padding: 6px 12px 6px 6px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
}
.logout-chip {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #ffe4e6;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(190, 18, 60, .08);
}
.logout-chip:hover {
  color: #9f1239;
  background: #ffe4e6;
  transform: translateY(-1px);
}
.sidebar-footer-v5 {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
.sidebar-user-v5 {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.08);
  min-width: 0;
}
.sidebar-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sidebar-logout,
.mobile-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 15px;
  font-weight: 900;
  color: #fecdd3;
  background: rgba(244, 63, 94, .10);
  border: 1px solid rgba(251, 113, 133, .18);
}
.sidebar-logout:hover,
.mobile-logout:hover {
  color: white;
  background: rgba(244, 63, 94, .18);
}
.mobile-logout { margin-top: auto; }
.premium-dropdown { z-index: 1000; }
.panel { position: relative; z-index: 1; }

@media (max-width: 1180px) {
  .topbar-v5 { align-items: flex-start; }
  .topbar-v5 .page-title-block p { max-width: 560px; }
}
@media (max-width: 920px) {
  .topbar-v5 {
    padding: 4px 2px 14px;
    align-items: flex-start;
  }
  .topbar-v5 .page-title-block p { display: none; }
  .breadcrumb-mini { font-size: 10px; letter-spacing: .08em; }
  .topbar-v5 h1 { font-size: 25px; line-height: 1.18; }
  .topbar-actions-v5 .user-chip-static { min-height: 44px; padding: 4px; }
  .logout-chip { min-height: 42px; width: 42px; padding: 0; justify-content: center; }
  .logout-chip span { display: none !important; }
}
@media (max-width: 560px) {
  .topbar-v5 {
    gap: 10px;
    align-items: center;
  }
  .topbar-left-v5 { gap: 10px; }
  .breadcrumb-mini { display: none; }
  .topbar-v5 h1 { font-size: 22px; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-actions-v5 { gap: 6px; }
  .avatar-sm { width: 36px; height: 36px; }
}


/* =========================
   UI V6 - FORCE MOBILE TOPBAR CLEANUP
   Fix burger tertimpa tanggal / action kanan di HP
========================= */
.date-pill {
  gap: 9px !important;
  padding: 10px 16px !important;
  line-height: 1 !important;
}
.date-pill i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0 !important;
  line-height: 1 !important;
}

@media (max-width: 1199.98px) {
  .topbar-actions-v5 .date-pill,
  .premium-topbar .date-pill,
  header .date-pill {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .desktop-sidebar { display: none !important; }
  .app-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 14px 12px 96px !important;
  }
  .premium-topbar.topbar-v5 {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 4px 2px 14px !important;
    margin-bottom: 6px !important;
    min-height: auto !important;
    position: relative !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }
  .topbar-left-v5 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .mobile-menu-btn {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    z-index: 5 !important;
  }
  .topbar-v5 .page-title-block {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .breadcrumb-mini,
  .topbar-v5 .page-title-block p {
    display: none !important;
  }
  .topbar-v5 h1 {
    max-width: calc(100vw - 150px) !important;
    font-size: 22px !important;
    line-height: 1.12 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .topbar-actions-v5 {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-width: 0 !important;
  }
  .user-chip-static,
  .topbar-actions-v5 .user-chip-static {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 4px !important;
    border-radius: 15px !important;
    justify-content: center !important;
  }
  .user-chip-text,
  .user-chip-static .user-chip-text,
  .user-chip-static small,
  .user-chip-static strong {
    display: none !important;
  }
  .avatar-sm {
    width: 34px !important;
    height: 34px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
  }
  .logout-chip {
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 15px !important;
    justify-content: center !important;
  }
  .logout-chip span { display: none !important; }
}

@media (max-width: 575.98px) {
  body { overflow-x: hidden !important; }
  .app-main { padding-left: 10px !important; padding-right: 10px !important; }
  .premium-topbar.topbar-v5 { gap: 8px !important; }
  .mobile-menu-btn,
  .user-chip-static,
  .logout-chip {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  .avatar-sm { width: 32px !important; height: 32px !important; }
  .topbar-v5 h1 { max-width: calc(100vw - 140px) !important; font-size: 21px !important; }
  .hero-panel {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
    border-radius: 24px !important;
    gap: 14px !important;
  }
  .hero-panel h2 { font-size: 24px !important; line-height: 1.1 !important; letter-spacing: -.7px !important; }
  .hero-panel p { font-size: 13px !important; line-height: 1.55 !important; }
  .hero-actions { width: 100% !important; display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
  .hero-actions .btn { width: 100% !important; }
  .kpi-strip { display: none !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
}


/* =========================
   UI V7 - DESKTOP DATE CHIP CLEANUP
   Rapikan tanggal di topbar desktop agar tidak mepet
========================= */
.topbar-actions-v5 {
  align-items: center !important;
  gap: 12px !important;
}
.date-chip,
.topbar-actions-v5 .date-chip {
  height: 48px !important;
  min-width: 136px !important;
  padding: 6px 15px 6px 8px !important;
  gap: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(226, 232, 240, .90) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.date-chip .date-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 13px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: #eef5ff !important;
  color: var(--blue) !important;
  line-height: 1 !important;
}
.date-chip .date-icon i {
  font-size: 15px !important;
  line-height: 1 !important;
  display: block !important;
  margin: 0 !important;
}
.date-chip .date-text {
  display: inline-flex !important;
  align-items: center !important;
  color: #526179 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: -.1px !important;
  line-height: 1 !important;
}
@media (max-width: 1199.98px) {
  .date-chip,
  .topbar-actions-v5 .date-chip {
    display: none !important;
  }
}

/* =========================
   UI V8 - PROSPEK PREMIUM CARD & PRODUCT DROPDOWN
========================= */
.product-new-wrap {
  display: none;
  margin-top: -6px;
}
.product-new-wrap.is-visible { display: grid; }
.product-help-text {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: -2px;
}
.prospect-card-list {
  display: grid;
  gap: 12px;
}
.prospect-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(170px, .8fr) minmax(140px, .65fr) minmax(140px, .65fr) minmax(160px, .7fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,251,255,.92));
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
}
.prospect-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, .09);
  transform: translateY(-1px);
  transition: .18s ease;
}
.prospect-main {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.prospect-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #eef5ff;
  font-weight: 900;
}
.prospect-main strong,
.prospect-field strong {
  display: block;
  color: #061226;
  font-weight: 900;
  line-height: 1.2;
}
.prospect-main small,
.prospect-field small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}
.prospect-field .field-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.prospect-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 188px;
}
.form-note-grid {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px dashed rgba(37, 99, 235, .18);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
@media (max-width: 1180px) {
  .prospect-card {
    grid-template-columns: 1fr 1fr;
  }
  .prospect-actions { justify-content: flex-start; min-width: 0; }
}
@media (max-width: 768px) {
  .prospect-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
    border-radius: 20px;
  }
  .prospect-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
  }
  .prospect-actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .prospect-actions { grid-template-columns: 1fr; }
}


/* =========================
   FINAL V25: TOOLS, GUIDE, MOBILE POLISH
========================= */
.final-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.final-card { border:1px solid rgba(226,232,240,.9); background:#fff; border-radius:24px; padding:18px; box-shadow:0 12px 32px rgba(15,23,42,.06); display:grid; gap:10px; }
.final-card .final-icon { width:42px; height:42px; border-radius:16px; display:grid; place-items:center; background:#eef5ff; color:#2563eb; font-size:20px; }
.final-card strong { font-size:16px; }
.final-card span, .final-card p { color:#748098; font-size:13px; line-height:1.6; margin:0; }
.final-card.ok .final-icon { background:#dcfce7; color:#166534; }
.final-card.warn .final-icon { background:#fef3c7; color:#92400e; }
.final-card.bad .final-icon { background:#fee2e2; color:#991b1b; }
.guide-steps { display:grid; gap:12px; }
.guide-step { display:flex; gap:13px; padding:16px; border:1px solid rgba(226,232,240,.9); border-radius:20px; background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.05); }
.guide-step .num { width:34px; height:34px; border-radius:13px; display:grid; place-items:center; background:#08182d; color:#fff; font-weight:900; flex:0 0 auto; }
.guide-step h4 { font-size:15px; margin:0 0 4px; font-weight:900; }
.guide-step p { margin:0; color:#748098; font-size:13px; line-height:1.55; }
.copy-box { width:100%; min-height:220px; border:1px solid var(--line); border-radius:20px; padding:16px; background:#fbfdff; font-size:14px; line-height:1.7; }
.security-table { display:grid; gap:10px; }
.security-row { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:14px 16px; border:1px solid rgba(226,232,240,.9); border-radius:18px; background:#fff; }
.security-row strong { display:block; font-size:14px; }
.security-row small { color:#748098; }
.status-dot { display:inline-flex; align-items:center; gap:7px; font-weight:900; font-size:12px; padding:8px 10px; border-radius:999px; }
.status-dot.ok { background:#dcfce7; color:#166534; }
.status-dot.warn { background:#fef3c7; color:#92400e; }
.status-dot.bad { background:#fee2e2; color:#991b1b; }
.sidebar-inner .side-nav { padding-bottom: 6px; }
@media (max-width: 768px) {
  .final-grid { grid-template-columns:1fr; }
  .guide-step { padding:14px; }
  .security-row { align-items:flex-start; flex-direction:column; }
  .copy-box { min-height:260px; font-size:13px; }
  .mobile-bottom-nav { max-width: calc(100vw - 18px); }
  .panel, .hero-panel, .final-card { border-radius:22px; }
  .page-title-block p { max-width: 230px; }
}

/* Login mobile: label email/password jangan center */
@media (max-width: 768px) {
  .login-field-v27 {
    width: 100%;
    text-align: right !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  .login-field-v27 > span,
  .login-input-wrap-v27 {
    width: 100%;
    text-align: right !important;
  }

  .login-input-wrap-v27 input {
    width: 100%;
    text-align: right !important;
  }

  .login-input-wrap-v27 input::placeholder {
    text-align: right !important;
  }
}