:root {
  --bg: #f5faf7;
  --panel: #ffffff;
  --panel-soft: #eef6f1;
  --ink: #10252c;
  --muted: #64747a;
  --line: #dbe8e1;
  --teal: #00a6a6;
  --teal-dark: #08737a;
  --lime: #b9cc45;
  --red: #d95d5d;
  --gold: #e5b04b;
  --blue: #336fb7;
  --shadow: 0 24px 70px rgba(20, 54, 58, .13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(185, 204, 69, .2), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(0, 166, 166, .16), transparent 30%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 420px 1fr;
}

.auth-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(239,246,241,.94)),
    radial-gradient(circle at 20% 10%, rgba(185,204,69,.22), transparent 34%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(0, 166, 166, .2);
}

.auth-copy {
  margin: 46px 0 24px;
}

.eyebrow,
.tiny {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(70px, 10vw, 108px);
  line-height: .86;
  letter-spacing: .01em;
}

.auth-copy p:last-child,
.form-note,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.auth-card,
.card,
.list-card,
.metric,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 40px rgba(20, 54, 58, .06);
}

.auth-card {
  padding: 18px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 4px;
  background: var(--panel-soft);
}

.tabs button,
.sidebar button {
  border: 0;
  cursor: pointer;
}

.tabs button {
  min-height: 40px;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.tabs button.active {
  color: #052b2d;
  background: linear-gradient(135deg, rgba(185,204,69,.42), rgba(0,166,166,.15));
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 13px;
  outline: 0;
  color: var(--ink);
  background: white;
}

textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0,166,166,.45);
  box-shadow: 0 0 0 4px rgba(0,166,166,.08);
}

.phone-row,
.otp-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.phone-row span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--teal-dark);
  background: var(--panel-soft);
  font-weight: 900;
}

.phone-row input,
.otp-row input {
  min-width: 0;
  flex: 1;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
}

.button.primary {
  color: #06292b;
  background: linear-gradient(135deg, var(--lime), #65d9bd 48%, var(--teal));
  box-shadow: 0 16px 34px rgba(0,166,166,.18);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--teal-dark);
  background: white;
}

.button.danger {
  color: white;
  background: var(--red);
}

.button.full {
  width: 100%;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  background: rgba(247, 250, 247, .9);
  backdrop-filter: blur(16px);
}

.topbar h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.05em;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 78px);
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 16px 10px;
  background: rgba(255,255,255,.48);
}

.sidebar button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 14px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  text-align: left;
}

.sidebar button.active {
  color: #06292b;
  border: 1px solid rgba(0,166,166,.24);
  background: linear-gradient(135deg, rgba(185,204,69,.32), rgba(0,166,166,.1));
}

.screen {
  min-width: 0;
  padding: 24px;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.dashboard-head h3 {
  margin-bottom: 6px;
  font-size: 30px;
  letter-spacing: -.06em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  color: var(--teal-dark);
  font-size: 30px;
  letter-spacing: -.06em;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card {
  padding: 20px;
}

.card h3 {
  margin-bottom: 8px;
  letter-spacing: -.04em;
}

.card p {
  color: var(--muted);
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-card {
  padding: 16px;
}

.list-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.list-card h4 {
  margin: 0;
  font-size: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--teal-dark);
  background: rgba(0,166,166,.09);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.empty-state {
  padding: 24px;
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state span {
  margin-top: 6px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    position: static;
    height: auto;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .sidebar {
    display: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar.open {
    display: block;
  }
}

@media (max-width: 680px) {
  .auth-panel,
  .screen {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .button {
    flex: 1;
  }

  .metrics,
  .grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
