@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --pu: #802980;
  --pu-d: #5c1d5c;
  --pu-l: #f7f0f7;
  --pu-b: #ddc8dd;
  --pu-s: #b08cb0;
  --wh: #ffffff;
  --bg: #f2ecf2;
  --tx: #160016;
  --tx2: #5a4d5a;
  --tx3: #a090a0;
  --bdr: #e8dde8;
  --grn: #1a9050;
  --grn-b: #e8f5ee;
  --red: #c42a2a;
  --red-b: #fdf0f0;
  --amb: #b86000;
  --amb-b: #fef4e6;
  --r-s: 8px;
  --r-m: 6px;
  --r-l: 18px;
  --r-xl: 24px;
  --sh: 0 2px 12px rgba(128, 41, 128, 0.08);
  --sh-lg: 0 8px 32px rgba(128, 41, 128, 0.14);
}

body {
  font-family: "Roboto", sans-serif;
  background: #120012;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── Phone ── */
.phone {
  width: 390px;
  height: 844px;
  background: var(--bg);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 2px var(--pu),
    0 0 0 6px #120012,
    0 0 0 8px var(--pu),
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(128, 41, 128, 0.15);
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 32px;
  background: #0a000a;
  border-radius: 0 0 20px 20px;
  z-index: 200;
}

/* ── Status Bar ── */
.sbar {
  height: 48px;
  background: var(--wh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 0;
  border-bottom: 1px solid var(--bdr);
  flex-shrink: 0;
  z-index: 100;
  position: relative;
}

.sbar-t {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--tx);
}

.sbar-i {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--tx);
}

/* ── Home Bar ── */
.hbar {
  height: 34px;
  background: var(--wh);
  border-top: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hpill {
  width: 86px;
  height: 4px;
  background: var(--bdr);
  border-radius: 4px;
}

/* ── Screen ── */
.screen {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Overlay ── */
.ov {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 10, 0.55);
  backdrop-filter: blur(4px);
  z-index: 80;
}

.ov.on {
  display: block;
}

/* ── Drawer ── */
.drawer {
  position: absolute;
  inset-block: 0;
  left: -290px;
  width: 280px;
  background: var(--wh);
  z-index: 90;
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid var(--bdr);
}

.drawer.on {
  left: 0;
}

/* Drawer Profile */
.dw-top {
  padding: 42px 18px 18px;
  background: linear-gradient(160deg, var(--pu) 0%, var(--pu-d) 100%);
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.dw-av {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.dw-name {
  font-family: "Roboto", sans-serif;
  ;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.dw-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.dw-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
}

.dot-t {
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
}

/* Nav */
.dw-nav {
  flex: 1;
  padding: 10px 8px;
  overflow-y: auto;
}

.dw-nav::-webkit-scrollbar {
  display: none;
}

.nav-sec {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pu-s);
  font-weight: 700;
  padding: 10px 11px 4px;
}

.ni {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-s);
  cursor: pointer;
  margin-bottom: 1px;
  position: relative;
  text-decoration: none;
  transition: background 0.14s;
}

.ni:hover {
  background: var(--pu-l);
}

.ni.act {
  background: var(--pu-l);
  border: 1px solid var(--pu-b);
}

.ni.act::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  background: var(--pu);
  border-radius: 0 3px 3px 0;
}

.ni.act .ni-ic,
.ni.act .ni-lb {
  color: var(--pu);
}

.ni.out .ni-ic,
.ni.out .ni-lb {
  color: var(--red);
}

.ni-ic {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx2);
  flex-shrink: 0;
}

.ni-ic svg {
  width: 17px;
  height: 17px;
}

.ni-lb {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx2);
  flex: 1;
}

.ni-bg {
  background: var(--pu);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.dw-ft {
  padding: 10px 8px;
  border-top: 1px solid var(--bdr);
  flex-shrink: 0;
}

/* ── Topbar ── */
.topbar {
  background: var(--wh);
  padding: 12px 16px 10px;
  border-bottom: 1.5px solid var(--bdr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
}

.tb-l .tb-sm {
  font-size: 10px;
  color: var(--pu-s);
  font-weight: 500;
}

.tb-l .tb-tl {
  font-family: "Roboto", sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--tx);
  letter-spacing: -0.4px;
}

.tb-r {
  display: flex;
  gap: 7px;
}

.ib {
  width: 36px;
  height: 36px;
  background: var(--pu-l);
  border: 1.5px solid var(--pu-b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pu);
  transition: background 0.14s;
  text-decoration: none;
  position: relative;
}

.ib svg {
  width: 16px;
  height: 16px;
}

.ib:active {
  background: var(--pu-b);
}

.ib .nd {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid white;
}

/* ── Scroll ── */
.sa {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.sa::-webkit-scrollbar {
  display: none;
}

/* ── Section ── */
.sec {
  padding: 14px 14px 0;
}

.sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.st {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--tx);
}

.sl {
  font-size: 11px;
  color: var(--pu);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

/* ── Card ── */
.card {
  background: var(--wh);
  border: 1.5px solid var(--bdr);
  border-radius: 8px;
  padding: 14px;
  box-shadow: none;
}

.card.np {
  padding: 0;
  overflow: hidden;
}

/* ── Tags ── */
.tg {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.tg.paid {
  background: var(--grn-b);
  color: var(--grn);
}

.tg.pending {
  background: var(--amb-b);
  color: var(--amb);
}

.tg.overdue {
  background: var(--red-b);
  color: var(--red);
}

.tg.active {
  background: var(--grn-b);
  color: var(--grn);
}

.tg.inactive {
  background: var(--pu-l);
  color: var(--pu-s);
}

/* ── Buttons ── */
.btn-p {
  background: var(--pu);
  color: #fff;
  border: none;
  border-radius: var(--r-m);
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(128, 41, 128, 0.28);
}

.btn-p svg {
  width: 15px;
  height: 15px;
}

.btn-p:hover {
  background: var(--pu-d);
  transform: translateY(-1px);
}

.btn-p:active {
  transform: scale(0.98);
}

.btn-o {
  background: var(--wh);
  color: var(--pu);
  border: 1.5px solid var(--pu);
  border-radius: var(--r-m);
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-o:active {
  background: var(--pu-l);
}

/* ── Form elements (shared) ── */
.fg {
  margin-bottom: 12px;
}

.fg:last-child {
  margin-bottom: 0;
}

.fl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--pu);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 5px;
  font-family: 'Syne', sans-serif;
}

.fi,
.fsel,
.fta {
  width: 100%;
  background: var(--pu-l);
  border: 1.5px solid var(--pu-b);
  border-radius: var(--r-s);
  padding: 11px 12px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--tx);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.fi:focus,
.fsel:focus,
.fta:focus {
  border-color: var(--pu);
  background: var(--wh);
  box-shadow: 0 0 0 3px rgba(128, 41, 128, 0.1);
}

.fi::placeholder,
.fta::placeholder {
  color: var(--pu-s);
}

.fi[readonly] {
  opacity: 0.55;
  cursor: not-allowed;
}

.fta {
  resize: none;
}

.fsel {
  cursor: pointer;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Form card */
.fc {
  background: var(--wh);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-l);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--sh);
}

.fc-h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--pu);
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--bdr);
}

.fc-h svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Btn row */
.brow {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

@keyframes pIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.pe {
  animation: pIn 0.28s ease both;
}