:root {
  --bg: #eef4f2;
  --surface: #ffffff;
  --surface2: #f7faf9;
  --ink: #12231e;
  --muted: #71827c;
  --line: #d9e5e1;
  --brand: #087b84;
  --brand2: #13a1a2;
  --deep: #0e251f;
  --good: #1a8a60;
  --warn: #bc7b17;
  --bad: #bd4242;
  --shadow: 0 18px 50px rgba(18, 55, 45, 0.1), 0 3px 10px rgba(18, 55, 45, 0.06);
  --shadow3d: 0 20px 0 rgba(8, 65, 57, 0.05), 0 28px 65px rgba(10, 56, 48, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
body {
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  background: radial-gradient(
      600px 500px at 9% 8%,
      rgba(19, 161, 162, 0.12),
      transparent 70%
    ),
    radial-gradient(
      500px 450px at 92% 18%,
      rgba(39, 134, 108, 0.12),
      transparent 70%
    ),
    linear-gradient(135deg, #f5f9f8, #edf4f1);
}
.aurora:after {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  right: -250px;
  bottom: -330px;
  border-radius: 50%;
  border: 1px solid rgba(8, 123, 132, 0.08);
  box-shadow: 0 0 0 80px rgba(8, 123, 132, 0.025),
    0 0 0 160px rgba(8, 123, 132, 0.018);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: stretch;
  padding: 18px;
  gap: 18px;
}
.login-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 28px;
  background: linear-gradient(145deg, #0c221c 0%, #10372e 46%, #087b84 100%);
  color: #fff;
  padding: clamp(38px, 6vw, 84px);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow3d);
  isolation: isolate;
}
.login-visual:before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -190px;
  top: -190px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025),
    0 0 0 120px rgba(255, 255, 255, 0.018);
}
.login-visual:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: -170px;
  bottom: -190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  filter: blur(2px);
}
.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(650px) rotateX(55deg) scale(1.25);
  transform-origin: center bottom;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 100%);
}
.visual-orb {
  position: absolute;
  right: 13%;
  top: 15%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 28% 25%,
    #d9ffff 0 5%,
    #56cdd0 16%,
    #087b84 56%,
    #062d2a 100%
  );
  box-shadow: inset -24px -22px 45px rgba(0, 0, 0, 0.25),
    0 30px 70px rgba(0, 0, 0, 0.22);
  opacity: 0.6;
  filter: saturate(0.85);
}
.visual-copy {
  position: relative;
  z-index: 2;
  max-width: 670px;
}
.visual-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6be2ae;
  box-shadow: 0 0 0 6px rgba(107, 226, 174, 0.12);
}
.visual-rule {
  width: 65px;
  height: 4px;
  background: #77d7da;
  border-radius: 10px;
  margin: 24px 0;
}
.visual-copy h1 {
  font-size: clamp(37px, 4.1vw, 66px);
  line-height: 1.01;
  margin: 0 0 17px;
  letter-spacing: -0.055em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.visual-copy p {
  max-width: 600px;
  color: #c6d8d2;
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
}
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}
.feature {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #dbe8e4;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-box {
  width: min(455px, 100%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow3d);
}
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.login-logo img {
  width: 165px;
  height: 78px;
  object-fit: contain;
  border-radius: 11px;
}
.login-box h2 {
  text-align: center;
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin: 6px 0 28px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 7px;
  color: #2e433b;
}
.field input {
  width: 100%;
  height: 48px;
  border: 1px solid #d1ddda;
  border-radius: 11px;
  padding: 0 13px;
  outline: none;
  background: rgba(248, 251, 250, 0.9);
  transition: 0.2s;
}
.field input:focus {
  border-color: var(--brand2);
  box-shadow: 0 0 0 4px rgba(19, 161, 162, 0.1),
    0 7px 15px rgba(10, 80, 75, 0.06);
  background: #fff;
}
.password-row {
  position: relative;
}
.password-row input {
  padding-right: 78px;
}
.show-pass {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 9px;
  font-weight: 900;
}
.login-btn {
  width: 100%;
  height: 49px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #0d6f76, #15a5a5);
  color: #fff;
  font-weight: 850;
  letter-spacing: 0.01em;
  box-shadow: 0 13px 25px rgba(8, 123, 132, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(8, 123, 132, 0.28);
}
.login-foot {
  text-align: center;
  color: var(--muted);
  font-size: 9px;
  margin-top: 19px;
}
.flash {
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff1f1;
  border: 1px solid #e8c2c2;
  color: #992e2e;
  font-size: 10px;
  margin-bottom: 15px;
}

.erp-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 262px;
  position: fixed;
  inset: 0 auto 0 0;
  background: linear-gradient(180deg, #102a23, #0c211c);
  color: #dbe7e2;
  overflow: auto;
  padding: 18px 13px;
  z-index: 30;
  box-shadow: 12px 0 40px rgba(8, 40, 33, 0.12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand img {
  width: 95px;
  height: 57px;
  object-fit: contain;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 8px 17px rgba(0, 0, 0, 0.2);
}
.brand strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}
.brand small {
  display: block;
  color: #91aaa1;
  font-size: 11px;
  margin-top: 3px;
}
.nav-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6f8b81;
  font-weight: 900;
  margin: 22px 9px 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
  border-radius: 9px;
  color: #b9cbc5;
  font-size: 12px;
  font-weight: 650;
  margin: 3px 0;
  transition: 0.18s;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateX(2px);
}
.nav-link.active {
  background: linear-gradient(
    135deg,
    rgba(20, 151, 154, 0.3),
    rgba(255, 255, 255, 0.05)
  );
  color: #fff;
  box-shadow: inset 3px 0 #19afb0, 0 9px 20px rgba(0, 0, 0, 0.12);
}
.main {
  margin-left: 262px;
  min-width: 0;
  width: calc(100% - 262px);
}
.topbar {
  height: 74px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.crumb small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.crumb strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn,
.user-pill {
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 0 11px;
  font-size: 10px;
  box-shadow: 0 5px 16px rgba(20, 55, 45, 0.06);
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, #d9f0ed, #bde0da);
  color: #08717b;
  display: grid;
  place-items: center;
  font-size: 9px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}
.content {
  padding: 28px;
  max-width: 1680px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 20px;
}
.eyebrow {
  color: var(--brand);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.page-head h1 {
  margin: 4px 0;
  font-size: 28px;
  letter-spacing: -0.045em;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.actions {
  display: flex;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  font-weight: 850;
  box-shadow: 0 5px 15px rgba(20, 55, 45, 0.06);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
.btn.accent {
  background: linear-gradient(135deg, #0d747c, #0f9b9f);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 123, 132, 0.19);
}
.grid {
  display: grid;
  gap: 14px;
}
.kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 229, 225, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5),
    transparent 45%
  );
}
.kpi {
  padding: 16px;
  min-height: 128px;
  transition: 0.2s;
  box-shadow: var(--shadow), 0 2px 0 rgba(8, 123, 132, 0.06);
}
.kpi:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(20, 55, 45, 0.13),
    0 6px 0 rgba(8, 123, 132, 0.05);
}
.kpi .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kpi .label {
  font-size: 9px;
  color: var(--muted);
  font-weight: 800;
}
.kpi .icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, #edf9f7, #dcefed);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 12px;
  box-shadow: inset 0 1px #fff;
}
.kpi .value {
  font-size: 23px;
  font-weight: 900;
  margin-top: 18px;
  letter-spacing: -0.04em;
}
.kpi .sub {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.kpi.dark {
  background: linear-gradient(145deg, #112d25, #0f3b31);
  color: #fff;
  border-color: #16453a;
  box-shadow: 0 23px 45px rgba(8, 43, 35, 0.22), 0 5px 0 rgba(8, 48, 39, 0.12);
}
.kpi.dark .label,
.kpi.dark .sub {
  color: #a9c0b9;
}
.kpi.dark .icon {
  background: rgba(255, 255, 255, 0.1);
  color: #bcfbfa;
}
.section-grid {
  grid-template-columns: 1.36fr 0.64fr;
  margin-top: 15px;
}
.card-head {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-head h3 {
  font-size: 12px;
  margin: 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 8px;
}
.chart {
  padding: 18px;
  height: 260px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  position: relative;
  background: linear-gradient(to top, rgba(8, 123, 132, 0.028), transparent);
}
.chart:before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 34px;
  bottom: 32px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(52, 92, 82, 0.08) 0,
    rgba(52, 92, 82, 0.08) 1px,
    transparent 1px,
    transparent 46px
  );
  pointer-events: none;
}
.bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  z-index: 2;
}
.bar {
  flex: 1;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(to top, #b5d5d1, #dcecea);
  min-height: 8px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}
.bar.mainbar {
  background: linear-gradient(to top, #08757e, #29aeb0);
  box-shadow: 0 7px 15px rgba(8, 123, 132, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.32);
}
.bar-labels {
  display: flex;
  gap: 12px;
  padding: 0 18px 15px;
}
.bar-labels span {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-size: 8px;
}
.donut-area {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 202px;
}
.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(
    #087b84 0 48%,
    #65b39c 48% 72%,
    #d4a84c 72% 86%,
    #e1ebe8 86%
  );
  display: grid;
  place-items: center;
  box-shadow: inset -9px -10px 20px rgba(0, 0, 0, 0.08),
    0 18px 28px rgba(20, 55, 45, 0.08);
  position: relative;
}
.donut:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.5),
    transparent 45%
  );
}
.donut:after {
  content: "";
  width: 94px;
  height: 94px;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
}
.legend {
  font-size: 9px;
  line-height: 2.15;
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
  background: #087b84;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}
.table th {
  padding: 10px 14px;
  text-align: left;
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1ef;
  white-space: nowrap;
}
.table tr:hover td {
  background: #f8fbfa;
}
.table tr:last-child td {
  border-bottom: 0;
}
.status {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 900;
}
.paid {
  background: #e5f7ee;
  color: #16714e;
}
.partial {
  background: #fff4d7;
  color: #93640f;
}
.unpaid {
  background: #fff0f0;
  color: #a02e2e;
}
.bottom-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 15px;
}
.mini-list {
  padding: 4px 17px 14px;
}
.mini-row {
  padding: 12px 0;
  border-bottom: 1px solid #edf1ef;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.mini-row:last-child {
  border-bottom: 0;
}
.mini-row strong {
  font-size: 9px;
}
.mini-row span {
  font-size: 8px;
  color: var(--muted);
}
.progress {
  height: 7px;
  border-radius: 20px;
  background: #edf2f0;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #087b84, #25b1ad);
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(8, 123, 132, 0.16);
}
@media (max-width: 1120px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .section-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-visual {
    min-height: 410px;
  }
  .login-panel {
    min-height: 500px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 72px;
    padding: 14px 8px;
  }
  .brand div,
  .nav-title,
  .nav-link span:last-child {
    display: none;
  }
  .brand {
    justify-content: center;
  }
  .brand img {
    width: 140px;
  }
  .nav-link {
    justify-content: center;
  }
  .main {
    margin-left: 72px;
    width: calc(100% - 72px);
  }
  .topbar {
    padding: 0 14px;
  }
  .content {
    padding: 16px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .login-page {
    padding: 10px;
  }
  .login-visual {
    padding: 35px;
    border-radius: 20px;
  }
  .visual-copy h1 {
    font-size: 38px;
  }
  .login-box {
    padding: 27px;
    border-radius: 20px;
  }
}
@media (max-width: 490px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .top-actions .icon-btn {
    display: none;
  }
  .login-visual {
    min-height: 360px;
  }
  .feature {
    font-size: 9px;
  }
}

/* ===== PREMIUM MOTION / INTERACTION LAYER ===== */
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19, 161, 162, 0.16) 0,
    rgba(19, 161, 162, 0.08) 24%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: multiply;
}
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14a6a6;
  box-shadow: 0 0 0 6px rgba(20, 166, 166, 0.1),
    0 0 18px rgba(20, 166, 166, 0.34);
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.cursor-active .cursor-glow,
body.cursor-active .cursor-dot {
  opacity: 1;
}
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}
[data-tilt]:hover {
  box-shadow: 0 28px 65px rgba(10, 56, 48, 0.14), 0 6px 0 rgba(8, 48, 39, 0.055);
}
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: revealIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.reveal.d1 {
  animation-delay: 0.06s;
}
.reveal.d2 {
  animation-delay: 0.12s;
}
.reveal.d3 {
  animation-delay: 0.18s;
}
.reveal.d4 {
  animation-delay: 0.24s;
}
@keyframes revealIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.float {
  animation: floatY 4.8s ease-in-out infinite;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.pulse-soft {
  animation: pulseSoft 2.8s ease-in-out infinite;
}
@keyframes pulseSoft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(20, 166, 166, 0.08);
  }
  50% {
    box-shadow: 0 0 0 13px rgba(20, 166, 166, 0);
  }
}
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer:after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.34),
    transparent
  );
  transform: skewX(-18deg);
  animation: shine 4.2s ease-in-out infinite;
}
@keyframes shine {
  0%,
  58% {
    left: -120%;
  }
  78%,
  100% {
    left: 140%;
  }
}
.mobile-menu-btn {
  display: none;
  height: 40px;
  width: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(20, 55, 45, 0.06);
}
.sidebar-overlay {
  display: none;
}
.mobile-bottom {
  display: none;
}
.nav-link {
  position: relative;
}
.nav-link .nav-icon {
  width: 22px;
  text-align: center;
  opacity: 0.9;
}
.nav-link span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  background: var(--deep);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10001;
  font-size: 10px;
}
.skip-link:focus {
  top: 12px;
}
.btn,
.icon-btn,
.user-pill,
.mobile-menu-btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.btn:hover,
.icon-btn:hover,
.mobile-menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 55, 45, 0.09);
}
.kpi .value {
  position: relative;
  z-index: 2;
}
.kpi .icon {
  transform: translateZ(16px);
}
.chart .bar {
  transition: height 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.2s ease;
}
.chart .bar:hover {
  filter: brightness(1.06);
}
.topbar {
  box-shadow: 0 8px 28px rgba(20, 55, 45, 0.045);
}
.content {
  animation: contentIn 0.55s ease both;
}
@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 11px 14px;
  border-radius: 11px;
  background: #122e27;
  color: #fff;
  font-size: 10px;
  box-shadow: 0 18px 40px rgba(8, 40, 33, 0.22);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 10002;
}
.toast.show {
  transform: none;
  opacity: 1;
}

@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 20px 0 55px rgba(8, 40, 33, 0.2);
    width: 270px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(9, 27, 23, 0.35);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    z-index: 25;
  }
  .sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  .main {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    height: 64px;
    padding: 0 12px;
    gap: 8px;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .crumb {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .crumb small {
    display: none;
  }
  .crumb strong {
    font-size: 12px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions .icon-btn {
    display: none;
  }
  .user-pill {
    height: 36px;
    padding: 0 8px;
    font-size: 9px;
  }
  .avatar {
    width: 24px;
    height: 24px;
  }
  .content {
    padding: 14px 12px 82px;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head p {
    line-height: 1.6;
  }
  .actions {
    width: 100%;
  }
  .actions .btn {
    flex: 1;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .kpi {
    min-height: 118px;
    padding: 13px;
  }
  .kpi .value {
    font-size: 19px;
  }
  .section-grid,
  .bottom-grid {
    gap: 10px;
  }
  .card-head {
    padding: 13px 14px;
  }
  .chart {
    height: 220px;
    padding: 14px 10px;
    gap: 7px;
  }
  .bar-labels {
    gap: 7px;
    padding: 0 10px 12px;
  }
  .donut-area {
    min-height: 230px;
    flex-direction: column;
    gap: 8px;
  }
  .donut {
    width: 135px;
    height: 135px;
  }
  .donut:after {
    width: 84px;
    height: 84px;
  }
  .legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 8px;
  }
  .legend div {
    white-space: nowrap;
  }
  .table {
    font-size: 8px;
    min-width: 650px;
  }
  .mobile-bottom {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 7px;
    box-shadow: 0 20px 45px rgba(20, 55, 45, 0.16);
    z-index: 22;
  }
  .mobile-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 2px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 7px;
    font-weight: 800;
  }
  .mobile-bottom a.active {
    background: #eaf7f5;
    color: var(--brand);
  }
  .mobile-bottom .mb-icon {
    font-size: 14px;
    line-height: 1;
  }
}
@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpi .label {
    font-size: 8px;
  }
  .kpi .sub {
    font-size: 7px;
  }
  .topbar {
    padding: 0 9px;
  }
  .content {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-glow,
  .cursor-dot {
    display: none !important;
  }
}
