:root {
  --bg0: #050914;
  --bg1: #070f24;
  --card: rgba(255, 255, 255, .06);
  --card2: rgba(255, 255, 255, .10);
  --stroke: rgba(255, 255, 255, .12);
  --text: #e9f2ff;
  --muted: rgba(233, 242, 255, .72);
  --blue: #3bc3ff;
  --cyan: #57fff1;
  --danger: #ff5577;
  --warn: #ffcf5a;
  --ok: #57ffa7;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --r: 18px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: 'Kanit', system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: #272727;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden
}

.bgGlow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 195, 255, .24), transparent 42%),
    radial-gradient(circle at 70% 20%, rgba(87, 255, 241, .18), transparent 45%),
    radial-gradient(circle at 40% 85%, rgba(120, 90, 255, .12), transparent 46%);
  filter: blur(20px);
  transform: translateZ(0);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(5, 9, 20, .72), rgba(5, 9, 20, .35));
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text)
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 18px rgba(59, 195, 255, .55)
}

.brand__name {
  font-weight: 700;
  letter-spacing: .2px
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04)
}

main.container {
  padding: 22px 0 34px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: stretch;
  margin: 12px 0 20px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr
  }
}

.card {
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, .04));
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 12px;
}

.card__pad {
  padding: 18px
}

.hTitle {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 8px;
  font-weight: 800
}

.hSub {
  color: var(--muted);
  margin: 0 0 14px
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.badge {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(59, 195, 255, .10);
  border: 1px solid rgba(59, 195, 255, .22);
  color: rgba(233, 242, 255, .92)
}

.badge--cyan {
  background: rgba(87, 255, 241, .08);
  border-color: rgba(87, 255, 241, .20)
}

.grid {
  display: grid;
  gap: 14px
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr)
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: 1fr
  }

  .grid--2 {
    grid-template-columns: 1fr
  }
}

.kpi {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
}

.kpi__label {
  color: var(--muted);
  font-size: 13px
}

.kpi__value {
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(59, 195, 255, .28);
  background: linear-gradient(135deg, rgba(59, 195, 255, .22), rgba(87, 255, 241, .12));
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
}

.btn:hover {
  transform: translateY(-1px)
}

.btn:active {
  transform: translateY(0)
}

.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
  color: var(--muted)
}

.btn--danger {
  border-color: rgba(255, 85, 119, .35);
  background: rgba(255, 85, 119, .10)
}

.input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(3, 8, 20, .55);
  color: var(--text);
  outline: none;
}

.input:focus,
select:focus,
textarea:focus {
  border-color: rgba(59, 195, 255, .45);
  box-shadow: 0 0 0 4px rgba(59, 195, 255, .12)
}

.label {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px
}

.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

@media (max-width: 900px) {
  .formRow {
    grid-template-columns: 1fr
  }
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px
}

.table th {
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  padding: 0 10px
}

.table td {
  padding: 12px 10px;
  background: rgba(255, 255, 255, .06);
  border-top: 1px solid rgba(255, 255, 255, .10);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.table tr td:first-child {
  border-left: 1px solid rgba(255, 255, 255, .10);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px
}

.table tr td:last-child {
  border-right: 1px solid rgba(255, 255, 255, .10);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06)
}

.pill--pending {
  border-color: rgba(255, 207, 90, .35);
  background: rgba(255, 207, 90, .10)
}

.pill--approved {
  border-color: rgba(87, 255, 167, .35);
  background: rgba(87, 255, 167, .10)
}

.pill--rejected {
  border-color: rgba(255, 85, 119, .35);
  background: rgba(255, 85, 119, .10)
}

.alert {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06)
}

.alert--ok {
  border-color: rgba(87, 255, 167, .35);
  background: rgba(87, 255, 167, .10)
}

.alert--danger {
  border-color: rgba(255, 85, 119, .35);
  background: rgba(255, 85, 119, .10)
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  object-fit: cover;
  background: rgba(255, 255, 255, .05)
}

.footer {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(5, 9, 20, .10), rgba(5, 9, 20, .55));
  backdrop-filter: blur(16px);
}

.footer__inner {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  color: var(--muted);
  flex-wrap: wrap
}

.muted {
  color: var(--muted)
}

.small {
  font-size: 13px;
  color: var(--muted)
}

.link {
  color: rgba(59, 195, 255, .9)
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, .10);
  margin: 14px 0
}

/* Form card polish */
.form .help {
  margin-top: 6px
}

.formGroup {
  padding: 2px;
  border-radius: 16px;
}

.formGroup:focus-within {
  border-color: rgba(59, 195, 255, .22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}