:root {
  --primary: #0047ff;
  --primary-dark: #0034c9;
  --primary-soft: #edf3ff;

  --text-main: #090b1f;
  --text-muted: #555b70;
  --text-soft: #74798c;

  --white: #ffffff;
  --bg-main: #fbfcff;
  --border: #dfe6f5;

  --green-soft: #eaf8ef;
  --gold-soft: #fff3c7;

  --shadow-soft: 0 18px 45px rgba(16, 35, 80, 0.08);
  --shadow-card: 0 12px 30px rgba(23, 38, 78, 0.07);
  --shadow-button: 0 18px 35px rgba(0, 71, 255, 0.28);

  --radius-full: 999px;
}

/* RESET */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(0, 71, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

/* PAGE SYSTEM */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* WRAPPER */
.landing-wrapper {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 44px 40px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(210, 218, 236, 0.85);
  border-radius: 0 0 46px 46px;
  box-shadow: 0 22px 70px rgba(23, 38, 78, 0.08);
  backdrop-filter: blur(16px);
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-img {
  width: 210px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 58px;
  font-size: 18px;
  font-weight: 700;
  color: #111326;
}

.nav-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.25s ease;
}

.nav-menu a .material-symbols-outlined {
  font-size: 24px;
  color: var(--primary);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active-link {
  color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active-link::after {
  width: 100%;
}

.menu-btn {
  width: 42px;
  height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border: none;
  background: transparent;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 34px;
  height: 3px;
  border-radius: var(--radius-full);
  background: #111326;
}

/* HERO */
.hero-section {
  padding: 88px 20px 52px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 38px;
  margin-bottom: 34px;
  border-radius: var(--radius-full);
  background: #edf3ff;
  color: #0040c7;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-content h1 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.04;
  letter-spacing: 1px;
  font-weight: 800;
  color: #07081c;
}

.hero-content h1 span {
  display: block;
  color: var(--primary);
}

.hero-content p {
  max-width: 800px;
  margin: 28px auto 0;
  color: var(--text-muted);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.65;
  letter-spacing: 0.4px;
}

.btn-login {
  margin-top: 36px;
  min-width: 480px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: none;
  border-radius: var(--radius-full);
  padding: 26px 46px;
  background: linear-gradient(135deg, #0047ff 0%, #003ee0 45%, #004fff 100%);
  color: #ffffff;
  font-size: 29px;
  font-weight: 800;
  box-shadow: var(--shadow-button);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-login:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0, 71, 255, 0.35);
}

.btn-login .material-symbols-outlined {
  font-size: 38px;
}

/* HERO CARD */
.illustration-card,
.custom-feature-box {
  position: relative;
  min-height: 390px;
  margin-top: 22px;
  padding: 42px 36px 42px 54px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  border: 1px solid #d9e3f7;
  border-radius: 34px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.94) 42%,
    rgba(245, 248, 255, 0.86) 100%
  );
  box-shadow: 0 14px 36px rgba(23, 38, 78, 0.08);
  overflow: hidden;
}

.illustration-left {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.illustration-left h2 {
  margin: 0 0 34px;
  font-family: "Outfit", sans-serif;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  color: #12152c;
}

.illustration-left h2 span {
  color: var(--primary);
}

.feature-list,
.vertical-feature {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: none;
  background: transparent;
}

.feature-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  border: 7px solid #f3f6ff;
  box-shadow: 0 10px 24px rgba(23, 38, 78, 0.08);
}

.feature-icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.feature-icon .material-symbols-outlined {
  font-size: 28px;
  color: var(--primary);
  line-height: 1;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.42;
  font-weight: 500;
}

.illustration-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 330px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.hero-illustration {
  display: block;
  width: 100%;
  max-width: 810px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(20, 40, 90, 0.14));
  transform: scale(1.18);
  transform-origin: center right;
}

/* MENU CARD */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.info-card {
  min-height: 215px;
  padding: 22px 16px 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e4e9f5;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 71, 255, 0.25);
}

.card-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
}

.card-icon.blue {
  background: #eef2ff;
}

.card-icon.green {
  background: var(--green-soft);
}

.card-icon.gold {
  background: var(--gold-soft);
}

.card-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.info-card h3 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 22px;
  color: #10142b;
}

.info-card p {
  margin: 10px 0 14px;
  color: #666d81;
  font-size: 14px;
  line-height: 1.45;
}

.info-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.info-card a span {
  font-size: 16px;
}

/* BANNER */
.bottom-banner {
  display: grid;
  grid-template-columns: 72px 1fr 110px;
  align-items: center;
  gap: 18px;
  min-height: auto;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid #dfe5f6;
  background: linear-gradient(135deg, #f3f5ff 0%, #f8f9ff 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.banner-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(23, 38, 78, 0.08);
}

.banner-icon .material-symbols-outlined {
  font-size: 34px;
}

.banner-text h3 {
  margin: 0 0 6px;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  line-height: 1.35;
  color: #151833;
}

.banner-text p {
  margin: 0;
  color: #667086;
  font-size: 14px;
  line-height: 1.55;
}

.banner-mascot {
  width: 88px;
  justify-self: end;
  position: static;
}

/* FOOTER */
.main-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  align-items: center;
  gap: 28px;
  padding: 42px 0 10px;
}

.footer-logo {
  width: 185px;
}

.footer-brand {
  border-left: 1px solid #c9d0df;
  padding-left: 60px;
}

.footer-brand h3 {
  margin: 0;
  color: var(--primary);
  font-family: "Outfit", sans-serif;
  font-size: 34px;
}

.footer-brand p,
.footer-copy p {
  margin: 8px 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* LOGIN PAGE */
.login-page {
  min-height: 100vh;
  padding: 32px;
  background:
    radial-gradient(circle at top left, rgba(0, 71, 255, 0.12), transparent 32%),
    linear-gradient(135deg, #f7faff 0%, #ffffff 100%);
}

.login-shell {
  width: min(1120px, 100%);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(210, 218, 236, 0.95);
  box-shadow: 0 28px 80px rgba(23, 38, 78, 0.1);
  overflow: hidden;
}

.login-left {
  position: relative;
  padding: 48px;
  background:
    linear-gradient(160deg, rgba(0, 71, 255, 0.1), rgba(255, 255, 255, 0.85)),
    url("../img/bacround.png");
  background-size: cover;
  background-position: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfd9ef;
  background: rgba(255, 255, 255, 0.88);
  color: #111326;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-weight: 800;
}

.login-badge {
  display: inline-block;
  margin-top: 54px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: #edf3ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
}

.login-left h1 {
  max-width: 420px;
  margin: 24px 0 18px;
  font-family: "Outfit", sans-serif;
  font-size: 52px;
  line-height: 1.08;
}

.login-left p {
  max-width: 460px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.login-hero {
  width: 260px;
  margin-top: 32px;
  filter: drop-shadow(0 18px 24px rgba(20, 40, 90, 0.15));
}

.login-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 36px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dce5f8;
}

.login-note .material-symbols-outlined {
  color: var(--primary);
}

.login-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.form-card {
  width: 100%;
  max-width: 500px;
  padding: 42px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid #e0e6f4;
  box-shadow: var(--shadow-card);
}

.form-card h2 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 36px;
  color: #111326;
}

.form-subtitle {
  margin: 10px 0 32px;
  color: var(--text-muted);
  font-size: 16px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  color: #111326;
  font-size: 15px;
  font-weight: 800;
}

.input-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 18px;
  background: #f8faff;
  border: 1px solid #dfe6f5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-box:focus-within {
  border-color: rgba(0, 71, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 71, 255, 0.08);
}

.input-box .material-symbols-outlined {
  color: var(--primary);
  font-size: 25px;
}

.input-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111326;
  font-size: 16px;
  font-weight: 600;
}

.input-box input::placeholder {
  color: #9aa1b6;
  font-weight: 500;
}

.form-group small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.submit-btn {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #0047ff 0%, #003dd4 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: var(--shadow-button);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(0, 71, 255, 0.32);
}

.message-box {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
}

.message-box.success {
  background: #eaf8ef;
  color: #0f7a3d;
  border: 1px solid #bde8ce;
}

.message-box.error {
  background: #fff0f0;
  color: #c32929;
  border: 1px solid #ffc7c7;
}

.message-box.hidden,
.hidden {
  display: none !important;
}

/* HALAMAN DETAIL */
.active-link {
  color: var(--primary);
}

.subpage-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 40px;
  margin-top: 70px;
  padding: 64px;
  border-radius: 42px;
  border: 1px solid #dce5f8;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(240, 246, 255, 0.88)
    ),
    url("../img/bacround.png");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.subpage-hero h1 {
  margin: 24px 0 18px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.08;
  color: #07081c;
}

.subpage-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1.65;
}

.subpage-hero img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 18px 28px rgba(0, 71, 255, 0.14));
}

.subpage-content {
  margin-top: 42px;
  display: grid;
  gap: 26px;
}

.grid-page {
  grid-template-columns: repeat(2, 1fr);
}

.content-box {
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #e0e6f4;
  box-shadow: var(--shadow-card);
}

.content-box img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin-bottom: 18px;
}

.content-box h2 {
  margin: 0 0 14px;
  font-family: "Outfit", sans-serif;
  font-size: 30px;
  color: #111326;
}

.content-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

/* TAMBAHAN DESAIN HALAMAN TENTANG, MANFAAT, FITUR */
.subpage-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 20px;
  background: #edf3ff;
  color: var(--primary);
  font-size: 34px;
  box-shadow: 0 10px 24px rgba(0, 71, 255, 0.08);
}

.content-box {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.content-box:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 71, 255, 0.28);
  box-shadow: 0 16px 34px rgba(23, 38, 78, 0.09);
}

.content-box h2 {
  margin-top: 0;
}

.content-box p {
  text-align: justify;
}

.feature-detail-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* DASHBOARD UTAMA MAPS */
.dashboard-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 71, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fc 100%);
}

.dashboard-header {
  width: 100%;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e1e7f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(23, 38, 78, 0.04);
  backdrop-filter: blur(12px);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-brand img {
  width: 150px;
  height: auto;
}

.dashboard-brand h3 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  color: #090b1f;
}

.dashboard-brand p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #666d81;
}

.dashboard-logout {
  border: 1px solid #d7deeb;
  background: #ffffff;
  color: #090b1f;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.dashboard-logout:hover {
  background: #edf3ff;
  color: var(--primary);
}

.dashboard-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 46px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f3;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(23, 38, 78, 0.06);
}

.welcome-card h2 {
  margin: 10px 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: 30px;
  color: #090b1f;
}

.welcome-card p {
  margin: 0;
  color: #555b70;
  font-size: 15px;
  line-height: 1.6;
}

.monitoring-badge,
.live-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: #edf3ff;
  color: #0047ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pulse-dot,
.pulse-dot-secondary {
  width: 8px;
  height: 8px;
  background: #0047ff;
  border-radius: 50%;
  animation: pulseDot 1.8s infinite;
}

.pulse-dot-secondary {
  width: 7px;
  height: 7px;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 71, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 71, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 71, 255, 0);
  }
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-card-header h3,
.dashboard-section-title,
.widget-card h3 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 21px;
  color: #090b1f;
}

.btn-refresh {
  border: 1px solid #d7deeb;
  background: #ffffff;
  color: #0047ff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-refresh:hover {
  background: #edf3ff;
}

.map-container {
  width: 100%;
  height: 440px;
  background: #f1f5fb;
  border: 1px solid #dce4f2;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #555b70;
  font-size: 14px;
}

.dashboard-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.info-table {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.info-row {
  padding: 13px 0;
  border-bottom: 1px solid #eef2f8;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span {
  color: #666d81;
  font-size: 14px;
}

.info-row strong {
  color: #090b1f;
  font-size: 14px;
  text-align: right;
}

.status-pill {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 800;
}

.status-error {
  background: #ffe3e3;
  color: #ba1a1a !important;
}

.status-success {
  background: #e2f6ee;
  color: #107a4d !important;
}

.value-error {
  color: #ba1a1a !important;
}

.widget-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.battery-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.battery-percent {
  font-family: "Outfit", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #090b1f;
}

.battery-status-badge {
  padding: 7px 13px;
  border-radius: 999px;
  background: #eef2f8;
  color: #555b70;
  font-size: 12px;
  font-weight: 800;
}

.battery-track {
  width: 100%;
  height: 9px;
  background: #edf1f7;
  border-radius: 999px;
  overflow: hidden;
}

.battery-fill-level {
  height: 100%;
  width: 0%;
  background: #2fbf8f;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.widget-card p {
  margin: 0;
  color: #666d81;
  font-size: 14px;
}

.sos-display {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sos-display > span {
  font-size: 18px;
  color: #555b70;
  font-weight: 700;
}

.sos-badge {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sos-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sos-badge.normal {
  background: #e2f6ee;
  color: #107a4d;
}

.sos-badge.normal .dot {
  background: #107a4d;
}

.sos-badge.active {
  background: #ffe3e3;
  color: #ba1a1a;
  animation: sosBlink 1s infinite;
}

.sos-badge.active .dot {
  background: #ba1a1a;
}

@keyframes sosBlink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }

  100% {
    opacity: 1;
  }
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.toggle-switch {
  width: 58px;
  height: 32px;
  background: #ccd5e4;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: 0.25s ease;
}

.toggle-switch.active {
  background: #0047ff;
}

.toggle-knob {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  transition: 0.25s ease;
}

.toggle-switch.active .toggle-knob {
  left: 30px;
}

.toggle-status {
  font-weight: 800;
  color: #090b1f;
}

/* INTRO OPENING ANIMATION ECHONAV */
.intro-animation {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at center, rgba(216, 236, 255, 0.75), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
}

.intro-animation.intro-hide {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.9s ease,
    visibility 0.9s ease;
}

.intro-animation {
  animation: introSafetyHide 6s ease forwards;
}

@keyframes introSafetyHide {
  0%,
  88% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.intro-orb {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0%, #eef7ff 45%, #cfe7ff 100%);
  box-shadow:
    0 0 35px rgba(169, 214, 255, 0.65),
    0 0 85px rgba(125, 183, 255, 0.35),
    0 0 130px rgba(216, 236, 255, 0.95);
  animation: introOrbPulse 1.6s ease-in-out infinite alternate;
  position: relative;
  z-index: 8;
}

@keyframes introOrbPulse {
  from {
    transform: scale(0.95);
    opacity: 0.82;
  }

  to {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* Tulisan selamat datang */
.intro-welcome {
  position: absolute;
  z-index: 9;
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: introWelcomeIn 1.2s ease forwards;
}

.intro-welcome span {
  display: inline-flex;
  padding: 8px 18px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(237, 243, 255, 0.9);
  color: #0047ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.intro-welcome h2 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1.05;
  color: #090b1f;
}

.intro-welcome p {
  margin: 12px 0 0;
  color: #555b70;
  font-size: 14px;
  font-weight: 600;
}

@keyframes introWelcomeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.intro-animation.intro-play .intro-welcome {
  animation: introWelcomeOut 1s ease forwards;
  animation-delay: 1.2s;
}

@keyframes introWelcomeOut {
  to {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
}

.intro-animation.intro-play .intro-orb {
  animation:
    introOrbPulse 1.4s ease-in-out infinite alternate,
    introOrbFade 2.4s ease forwards;
}

@keyframes introOrbFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  55% {
    opacity: 0.85;
    transform: scale(1.12);
  }

  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* Blob buram */
.intro-blob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 760px);
  height: min(88vh, 820px);
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 46px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
  box-shadow: 0 28px 80px rgba(0, 71, 255, 0.12);
  z-index: 4;
}

.intro-animation.intro-play .intro-blob {
  animation: introBlobOpen 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes introBlobOpen {
  0% {
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
    transform: translate(-50%, -50%) scale(0.9);
  }

  18% {
    opacity: 1;
  }

  58% {
    clip-path: circle(62% at 50% 50%);
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 1;
    clip-path: circle(145% at 50% 50%);
    transform: translate(-50%, -50%) scale(1);
  }
}

.intro-clone-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  filter: blur(22px);
  opacity: 0.58;
  transform: scale(0.94);
  transform-origin: top center;
  transition:
    filter 1.4s ease,
    opacity 1.4s ease,
    transform 1.4s ease;
}

.intro-animation.intro-clear .intro-clone-wrap {
  filter: blur(8px);
  opacity: 0.9;
  transform: scale(0.98);
}

.intro-animation.intro-finish .intro-clone-wrap {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}

.intro-clone-wrap .landing-wrapper {
  width: 100%;
  min-height: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  transform: scale(0.86);
  transform-origin: top center;
  pointer-events: none;
}

/* Gelombang biru soft */
.intro-wave {
  position: absolute;
  left: 50%;
  bottom: -42%;
  width: 145vw;
  height: 54vh;
  border-radius: 45% 55% 0 0;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
}

.intro-wave-one {
  background: linear-gradient(
    180deg,
    rgba(169, 214, 255, 0.72),
    rgba(216, 236, 255, 0.28)
  );
}

.intro-wave-two {
  width: 130vw;
  height: 46vh;
  background: linear-gradient(
    180deg,
    rgba(125, 183, 255, 0.45),
    rgba(216, 236, 255, 0.08)
  );
  filter: blur(16px);
}

.intro-animation.intro-play .intro-wave-one {
  animation: introWaveRise 3.4s ease forwards;
}

.intro-animation.intro-play .intro-wave-two {
  animation: introWaveRiseSoft 3.7s ease forwards;
}

@keyframes introWaveRise {
  0% {
    bottom: -45%;
    opacity: 0;
    transform: translateX(-50%) scaleX(1);
  }

  28% {
    opacity: 1;
  }

  68% {
    bottom: 6%;
    opacity: 0.72;
    transform: translateX(-50%) scaleX(1.05);
  }

  100% {
    bottom: 120%;
    opacity: 0;
    transform: translateX(-50%) scaleX(1.08);
  }
}

@keyframes introWaveRiseSoft {
  0% {
    bottom: -42%;
    opacity: 0;
  }

  34% {
    opacity: 0.7;
  }

  74% {
    bottom: 16%;
    opacity: 0.38;
  }

  100% {
    bottom: 125%;
    opacity: 0;
  }
}

/* RESPONSIVE: TABLET */
@media (max-width: 980px) {
  .landing-wrapper {
    width: min(100% - 20px, 760px);
    padding: 24px 20px 32px;
    border-radius: 0 0 32px 32px;
  }

  .brand-img {
    width: 155px;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    right: 0;
    width: 240px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dfe6f5;
    box-shadow: var(--shadow-card);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 14px 12px;
  }

  .hero-section {
    padding: 62px 0 34px;
  }

  .hero-badge {
    padding: 12px 22px;
    font-size: 12px;
    letter-spacing: 3px;
  }

  .hero-content h1 {
    font-size: 54px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .btn-login {
    min-width: 0;
    width: 100%;
    padding: 20px 28px;
    font-size: 21px;
  }

  .illustration-card,
  .custom-feature-box {
    min-height: 300px;
    padding: 30px 24px;
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .illustration-left h2 {
    font-size: 27px;
  }

  .feature-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-width: 6px;
  }

  .feature-icon img {
    width: 24px;
    height: 24px;
  }

  .feature-item p {
    font-size: 14px;
  }

  .hero-illustration {
    transform: none;
    max-width: 520px;
  }

  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .info-card {
    min-height: 190px;
    padding: 18px 12px 16px;
  }

  .info-card h3 {
    font-size: 19px;
  }

  .info-card p {
    font-size: 13px;
  }

  .bottom-banner {
    grid-template-columns: 60px 1fr 90px;
    padding: 18px;
  }

  .main-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .footer-brand {
    border-left: none;
    padding-left: 0;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-left {
    padding: 30px;
  }

  .login-right {
    padding: 24px;
  }

  .login-left h1 {
    font-size: 38px;
  }

  .subpage-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 44px 28px;
  }

  .subpage-hero p {
    margin: 0 auto;
    font-size: 18px;
  }

  .subpage-hero img {
    width: 140px;
    height: 140px;
  }

  .grid-page {
    grid-template-columns: 1fr;
  }

  .dashboard-grid-2,
  .dashboard-grid-3 {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 360px;
  }
}

/* RESPONSIVE: HP */
@media (max-width: 520px) {
  body {
    background: #ffffff;
  }

  .landing-wrapper {
    width: 100%;
    padding: 18px 14px 26px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .navbar {
    gap: 12px;
  }

  .brand-img {
    width: 135px;
  }

  .menu-btn {
    width: 36px;
  }

  .menu-btn span {
    width: 30px;
    height: 3px;
  }

  .hero-section {
    padding: 28px 0 20px;
  }

  .hero-badge {
    max-width: 100%;
    padding: 8px 14px;
    margin-bottom: 18px;
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: 1.6px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: -0.5px;
  }

  .hero-content p {
    max-width: 92%;
    margin: 16px auto 0;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0;
  }

  .btn-login {
    width: 82%;
    min-width: 0;
    margin-top: 22px;
    padding: 15px 18px;
    font-size: 15px;
    gap: 8px;
  }

  .btn-login .material-symbols-outlined {
    font-size: 22px;
  }

  .illustration-card,
  .custom-feature-box {
    min-height: auto;
    margin-top: 18px;
    padding: 24px 18px 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    border-radius: 28px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 100%
    );
    overflow: hidden;
  }

  .illustration-left {
    max-width: 100%;
    width: 100%;
  }

  .illustration-left h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.16;
    letter-spacing: -0.3px;
    text-align: center;
  }

  .illustration-card .feature-list,
  .illustration-card .vertical-feature {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
  }

  .illustration-card .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: center;
  }

  .illustration-card .feature-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-width: 5px;
  }

  .illustration-card .feature-icon img {
    width: 21px;
    height: 21px;
  }

  .illustration-card .feature-item p {
    margin: 0;
    max-width: 95px;
    font-size: 11.5px;
    line-height: 1.35;
    text-align: center;
  }

  .illustration-right {
    display: flex !important;
    width: 100%;
    min-height: 210px;
    margin-top: 4px;
    align-items: center;
    justify-content: center;
  }

  .hero-illustration {
    display: block !important;
    width: 100%;
    max-width: 390px;
    max-height: 260px;
    height: auto;
    object-fit: contain;
    transform: none;
  }

  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .info-card {
    min-height: 176px;
    padding: 14px 7px 12px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 9px;
  }

  .card-icon img {
    width: 20px;
    height: 20px;
  }

  .info-card h3 {
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
  }

  .info-card p {
    margin: 0;
    min-height: 42px;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
  }

  .info-card a {
    margin-top: auto;
    padding-top: 10px;
    font-size: 9.5px;
    line-height: 1.2;
    gap: 4px;
    justify-content: center;
    text-align: center;
  }

  .info-card a span {
    font-size: 11px;
  }

  .bottom-banner {
    grid-template-columns: 46px 1fr 70px;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 12px;
    border-radius: 18px;
  }

  .banner-icon {
    width: 42px;
    height: 42px;
  }

  .banner-icon .material-symbols-outlined {
    font-size: 24px;
  }

  .banner-text h3 {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .banner-text p {
    font-size: 10px;
    line-height: 1.35;
  }

  .banner-mascot {
    width: 60px;
  }

  .main-footer {
    display: grid;
    grid-template-columns: 0.85fr 0.85fr 1.3fr;
    align-items: center;
    gap: 8px;
    padding: 24px 0 8px;
    text-align: left;
  }

  .footer-left {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-logo {
    width: 82px;
    margin: 0;
  }

  .footer-brand {
    border-left: 1px solid #c9d0df;
    padding-left: 10px;
  }

  .footer-brand h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
  }

  .footer-brand p {
    margin: 4px 0 0;
    font-size: 9px;
    line-height: 1.2;
  }

  .footer-copy {
    text-align: left;
  }

  .footer-copy p {
    margin: 2px 0;
    font-size: 9px;
    line-height: 1.3;
  }

  .login-page {
    padding: 12px;
  }

  .login-shell {
    min-height: calc(100vh - 24px);
    border-radius: 28px;
  }

  .login-left {
    padding: 22px 24px 16px;
  }

  .login-badge {
    margin-top: 12px;
    padding: 7px 16px;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 3px;
  }

  .login-left h1 {
    margin: 20px 0 12px;
    font-size: 34px;
    line-height: 1.12;
  }

  .login-left > p {
    max-width: 100%;
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: justify;
    letter-spacing: 0;
  }

  .login-hero {
    width: 120px;
    margin: 18px auto 14px;
  }

  .login-note {
    margin-top: 10px;
    padding: 13px 15px;
    gap: 10px;
    border-radius: 18px;
    align-items: flex-start;
  }

  .login-note .material-symbols-outlined {
    font-size: 21px;
    margin-top: 2px;
    flex: 0 0 auto;
  }

  .login-note p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: left;
  }

  .login-note strong {
    font-size: 12.5px;
    font-weight: 800;
  }

  .form-card {
    padding: 28px 22px;
  }

  .subpage-hero {
    margin-top: 44px;
    padding: 34px 22px;
    border-radius: 30px;
  }

  .subpage-hero h1 {
    font-size: 36px;
  }

  .subpage-hero p {
    max-width: 100%;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.55;
    text-align: center;
  }

  .subpage-hero img {
    width: 110px;
    height: 110px;
  }

  .content-box {
    padding: 26px 22px;
  }

  .content-box h2 {
    font-size: 24px;
  }

  .content-box p {
    font-size: 16px;
  }

  .content-box img {
    width: 52px;
    height: 52px;
  }

  .dashboard-header {
    padding: 14px 16px;
    align-items: flex-start;
  }

  .dashboard-brand {
    gap: 8px;
  }

  .dashboard-brand img {
    width: 110px;
  }

  .dashboard-brand h3 {
    font-size: 16px;
  }

  .dashboard-brand p {
    font-size: 10px;
    line-height: 1.25;
  }

  .dashboard-logout {
    padding: 8px 12px;
    font-size: 12px;
  }

  .dashboard-content {
    width: 100%;
    padding: 18px 14px 34px;
    gap: 16px;
  }

  .dashboard-card {
    padding: 18px;
    border-radius: 20px;
  }

  .welcome-card h2 {
    font-size: 24px;
  }

  .welcome-card p {
    font-size: 13px;
  }

  .dashboard-card-header {
    align-items: flex-start;
  }

  .dashboard-card-header h3,
  .dashboard-section-title,
  .widget-card h3 {
    font-size: 18px;
  }

  .map-container {
    height: 300px;
    border-radius: 16px;
  }

  .info-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .info-row strong {
    text-align: left;
  }

  .battery-percent {
    font-size: 28px;
  }

  .widget-card {
    min-height: 150px;
  }

  .intro-orb {
    width: 145px;
    height: 145px;
  }

  .intro-blob {
    width: 92vw;
    height: 84vh;
    border-radius: 34px;
  }

  .intro-clone-wrap .landing-wrapper {
    transform: scale(0.94);
  }

  .intro-wave {
    width: 165vw;
    height: 50vh;
  }
}

/* FIX ICON MENU NAVBAR DAN ICON CARD DETAIL */
.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.nav-menu a .material-symbols-outlined {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: var(--primary);
}

.subpage-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 0 24px 0;
  border-radius: 20px;
  background: #edf3ff;
  color: var(--primary);
  font-size: 30px !important;
  line-height: 1 !important;
  box-shadow: 0 10px 24px rgba(0, 71, 255, 0.08);
  overflow: hidden;
}

.content-box {
  overflow: hidden;
}

.content-box .material-symbols-outlined {
  line-height: 1 !important;
}

@media (max-width: 980px) {
  .nav-menu a {
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
  }

  .nav-menu a .material-symbols-outlined {
    width: 32px;
    min-width: 32px;
    height: 32px;
    font-size: 32px;
  }

  .subpage-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    font-size: 32px !important;
    margin-bottom: 28px;
  }
}