/* ============================================================
   TM Business Directory — global styles v2 (desktop + mobile)
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --green: #187a5f;
  --green-deep: #0c3d2f;
  --green-dark: #082c22;
  --green-mid: #115846;
  --green-tint: #e4f2ec;
  --ink: #122b22;
  --paper: #eef3ef;
  --card: #ffffff;
  --amber: #f0a93f;
  --amber-deep: #c07e17;
  --amber-tint: #fcf3e1;
  --line: #dce7e0;
  --muted: #61796e;
  --red: #c0392b;
  --red-tint: #fbe4e1;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(12, 61, 47, 0.06),
    0 4px 14px rgba(12, 61, 47, 0.06);
  --shadow-md: 0 2px 4px rgba(12, 61, 47, 0.08),
    0 12px 32px rgba(12, 61, 47, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Sora", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1000px 500px at 100% -10%,
      rgba(24, 122, 95, 0.07),
      transparent 60%),
    radial-gradient(800px 400px at -10% 110%,
      rgba(240, 169, 63, 0.06),
      transparent 60%),
    var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--green-deep);
}

h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

h2::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 4px;
  flex: none;
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
}

.sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- layout with sidebar (admin) ---------- */
.shell {
  display: flex;
  min-height: 100vh;
}

.side {
  width: 248px;
  flex: none;
  color: #fff;
  background: linear-gradient(180deg,
      var(--green-deep) 0%,
      var(--green-dark) 100%);
  padding: 26px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 4px 0 24px rgba(8, 44, 34, 0.18);
}

.side .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 24px;
}

.side .brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--green-dark);
  letter-spacing: -0.03em;
  box-shadow: 0 4px 14px rgba(240, 169, 63, 0.35);
}

.side .brand .bt {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
}

.side .brand .bt small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: #8fb8a9;
  letter-spacing: 0.06em;
}

.side a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 11px;
  color: #a9c9bc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.14s, color 0.14s;
}

.side a svg {
  width: 19px;
  height: 19px;
  flex: none;
  opacity: 0.85;
}

.side a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.side a.on {
  background: linear-gradient(90deg,
      rgba(240, 169, 63, 0.16),
      rgba(240, 169, 63, 0.05));
  color: #fff;
  position: relative;
}

.side a.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: var(--amber);
}

.side .spacer {
  flex: 1;
}

.side .out {
  color: #efa9a0;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 30px 34px 70px;
  max-width: 1240px;
}

/* mobile top bar replaces sidebar */
.topbar {
  display: none;
}

@media (max-width: 880px) {
  .shell {
    display: block;
  }

  .side {
    display: none;
  }

  .main {
    padding: 18px 14px 90px;
  }

  .topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, var(--green-deep), var(--green-dark));
    padding: 12px 14px;
    position: sticky;
    top: 0;
    z-index: 60;
    overflow-x: auto;
    box-shadow: 0 4px 18px rgba(8, 44, 34, 0.25);
  }

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

  .topbar .brand {
    font-weight: 800;
    color: #fff;
    font-size: 14px;
    margin-right: 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .topbar .brand .mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex: none;
    background: linear-gradient(135deg, var(--amber), var(--amber-deep));
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    color: var(--green-dark);
  }

  .topbar a {
    color: #a9c9bc;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 11px;
    border-radius: 9px;
    white-space: nowrap;
  }

  .topbar a.on {
    background: #fff;
    color: var(--green-deep);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

/* ---------- cards, buttons, forms ---------- */
.card {
  background: var(--card);
  border: 1px solid rgba(220, 231, 224, 0.9);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

@media (max-width: 880px) {

  .grid2,
  .grid3,
  .grid4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 11px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 3px 10px rgba(24, 122, 95, 0.25);
  transition: transform 0.1s, box-shadow 0.14s, filter 0.14s;
}

.btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 5px 16px rgba(24, 122, 95, 0.32);
}

.btn:active {
  transform: translateY(1px);
}

.btn.gold {
  background: linear-gradient(135deg, var(--amber), #e29224);
  color: #3a2a08;
  box-shadow: 0 3px 12px rgba(240, 169, 63, 0.38);
}

.btn.gold:hover {
  filter: brightness(1.05);
  box-shadow: 0 5px 18px rgba(240, 169, 63, 0.45);
}

.btn.ghost {
  background: var(--green-tint);
  color: var(--green-deep);
  box-shadow: none;
}

.btn.ghost:hover {
  background: #d6e9e0;
  filter: none;
  box-shadow: none;
}

.btn.danger {
  background: var(--red-tint);
  color: var(--red);
  box-shadow: none;
}

.btn.danger:hover {
  background: #f6d2cc;
  filter: none;
  box-shadow: none;
}

.btn.small {
  padding: 8px 14px;
  font-size: 12.5px;
  border-radius: 9px;
}

.btn.block {
  display: block;
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  background: #fbfdfc;
  color: var(--ink);
  transition: border-color 0.14s, box-shadow 0.14s, background 0.14s;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(24, 122, 95, 0.13);
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

@media (max-width: 520px) {
  .frow {
    grid-template-columns: 1fr;
  }
}

.form-sec {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

/* password with eye toggle */
.pwd-wrap {
  position: relative;
}

.pwd-wrap input {
  padding-right: 46px;
}

.pwd-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.pwd-eye:hover {
  background: var(--green-tint);
  color: var(--green-deep);
}

.pwd-eye svg {
  width: 20px;
  height: 20px;
}

.pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--green-tint);
  color: var(--green-deep);
}

.pill.gold {
  background: var(--amber-tint);
  color: var(--amber-deep);
}

.pill.red {
  background: var(--red-tint);
  color: var(--red);
}

.amount {
  font-weight: 800;
  color: var(--amber-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.msg {
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  gap: 9px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.msg::before {
  font-size: 15px;
}

.msg.ok {
  background: var(--green-tint);
  color: var(--green-deep);
  border: 1px solid #c6e2d5;
}

.msg.ok::before {
  content: "✓";
}

.msg.err {
  background: var(--red-tint);
  color: var(--red);
  border: 1px solid #f2c4bc;
}

.msg.err::before {
  content: "!";
}

/* ---------- stats ---------- */
.stat {
  background: var(--card);
  border: 1px solid rgba(220, 231, 224, 0.9);
  border-radius: 14px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--green-tint);
  opacity: 0.55;
}

.stat.gold::after {
  background: var(--amber-tint);
  opacity: 0.8;
}

.stat .v {
  font-size: 23px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.stat .k {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.stat.gold .v {
  color: var(--amber-deep);
}

.stat.green .v {
  color: var(--green);
}

/* ---------- tables ---------- */
.tblwrap {
  overflow-x: auto;
  margin: 0 -6px;
  padding: 0 6px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

th {
  text-align: left;
  font-size: 11px;
  color: var(--green-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 10px;
  background: var(--green-tint);
  white-space: nowrap;
}

th:first-child {
  border-radius: 9px 0 0 9px;
}

th:last-child {
  border-radius: 0 9px 9px 0;
}

td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 0.12s;
}

tbody tr:hover {
  background: #f6faf7;
}

/* ---------- payment box ---------- */
.paybox {
  background: linear-gradient(135deg, #fdf6e7, var(--amber-tint));
  border: 1.5px solid #f0dcae;
  border-radius: var(--radius);
  padding: 17px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(192, 126, 23, 0.08);
}

.paybox h2 {
  color: var(--amber-deep);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.paybox h2::before {
  background: linear-gradient(180deg, var(--amber-deep), var(--amber));
}

.payrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 9px;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(192, 126, 23, 0.08);
}

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

.payrow .k {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.payrow .v {
  font-size: 14.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.copy {
  border: 0;
  background: var(--green-tint);
  color: var(--green-deep);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.12s;
}

.copy:hover {
  background: #cfe7db;
}

/* ---------- search ---------- */
.search {
  position: relative;
  max-width: 440px;
}

.search input {
  width: 100%;
  padding: 13px 15px 13px 42px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.14s, box-shadow 0.14s;
}

.search input:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3.5px rgba(24, 122, 95, 0.13);
}

.search::before {
  content: "\2315";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 20px;
  color: var(--muted);
}

/* ---------- employee header ---------- */
.emp-head {
  background: radial-gradient(500px 260px at 90% -30%,
      rgba(240, 169, 63, 0.22),
      transparent 60%),
    linear-gradient(155deg, var(--green-mid) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 26px 0 30px;
  box-shadow: 0 6px 28px rgba(8, 44, 34, 0.22);
}

.emp-head .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}

.emp-head h1 {
  color: #fff;
}

.emp-head .date {
  color: #a9c9bc;
  font-size: 12.5px;
  margin-bottom: 5px;
  font-weight: 600;
}

.emp-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 16px 70px;
}

.earn {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.14);
}

.earn .label {
  font-size: 13px;
  color: #d3e8de;
  font-weight: 600;
}

.earn .cycle {
  font-size: 11px;
  color: #8fb8a9;
  margin-top: 3px;
}

.earn .val {
  font-size: 29px;
  font-weight: 800;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(240, 169, 63, 0.35);
}

.emp-nav {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.emp-nav a {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  color: #d3e8de;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.14s;
}

.emp-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.emp-nav a.on {
  background: #fff;
  color: var(--green-deep);
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.brief {
  background: linear-gradient(135deg, #eaf5ef, var(--green-tint));
  border: 1px solid #c6e2d5;
}

.brief h2 {
  color: var(--green-deep);
  font-size: 14px;
}

.brief p {
  font-size: 13.5px;
  color: #28453a;
  white-space: pre-line;
  font-weight: 500;
}

.task {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.task:last-child {
  border-bottom: 0;
}

.task .info {
  flex: 1;
  min-width: 0;
}

.task .name {
  font-weight: 700;
  font-size: 14.5px;
}

.task .meta {
  font-size: 12.5px;
  color: var(--muted);
  white-space: pre-line;
}

.task.done .name {
  color: var(--muted);
  text-decoration: line-through;
}

.tick {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 2px solid var(--line);
  flex: none;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #fff;
  transition: all 0.15s;
}

.task.done .tick {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(24, 122, 95, 0.3);
}

/* ---------- login ---------- */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(700px 420px at 85% 8%,
      rgba(240, 169, 63, 0.2),
      transparent 55%),
    radial-gradient(600px 400px at 5% 95%,
      rgba(24, 122, 95, 0.35),
      transparent 55%),
    linear-gradient(150deg, var(--green-mid) 0%, var(--green-dark) 90%);
}

.login-body::before,
.login-body::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, 0.09);
}

.login-body::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
}

.login-body::after {
  width: 300px;
  height: 300px;
  bottom: -90px;
  left: -70px;
}

.login-card {
  width: 100%;
  max-width: 410px;
  background: var(--card);
  border-radius: 22px;
  padding: 38px 32px 34px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.login-card .logo-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 6px;
}

.login-card .mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: none;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
  color: var(--green-dark);
  letter-spacing: -0.03em;
  box-shadow: 0 6px 18px rgba(240, 169, 63, 0.4);
}

.login-card .logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.login-card .logo span {
  color: var(--amber-deep);
}

.login-card .tag {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 26px;
  font-weight: 500;
}

.user-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
  flex: none;
  box-shadow: 0 4px 12px rgba(24, 122, 95, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ============================================================
   v3 — off-canvas menu, modals, card layouts (no tables)
   ============================================================ */

/* ---------- off-canvas sidebar on mobile ---------- */
@media (max-width: 880px) {
  .side {
    display: flex !important;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
    width: 274px;
    z-index: 120;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.4);
  }

  .side.open {
    transform: translateX(0);
  }

  .scrim {
    position: fixed;
    inset: 0;
    background: rgba(8, 44, 34, 0.5);
    backdrop-filter: blur(2px);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
  }

  .scrim.show {
    opacity: 1;
    pointer-events: auto;
  }

  .topbar {
    justify-content: flex-start;
    gap: 12px;
    overflow: visible;
  }
}

.hamb {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #fff;
  align-items: center;
  justify-content: center;
  flex: none;
}

.hamb svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 880px) {
  .hamb {
    display: flex;
  }
}

.side .close-x {
  display: none;
  position: absolute;
  top: 16px;
  right: 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 880px) {
  .side .close-x {
    display: block;
  }
}

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 44, 34, 0.55);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 14px;
  overflow-y: auto;
}

.modal-backdrop.show {
  display: flex;
  animation: fadeIn 0.18s ease;
}

.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  padding: 26px 24px;
  position: relative;
  margin: auto 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: popUp 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal h2 {
  font-size: 17px;
  margin-bottom: 18px;
}

.modal .mclose {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: var(--green-tint);
  color: var(--green-deep);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: background 0.12s;
}

.modal .mclose:hover {
  background: #cfe7db;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .modal,
  .modal-backdrop.show {
    animation: none;
  }
}

/* ---------- page head row ---------- */
.phead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ---------- user cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
}

.ucard {
  background: var(--card);
  border: 1px solid rgba(220, 231, 224, 0.9);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.14s, box-shadow 0.16s, border-color 0.14s;
  position: relative;
  overflow: hidden;
}

.ucard::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -26px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--green-tint);
  opacity: 0.5;
  transition: transform 0.2s;
}

.ucard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #bfdccd;
}

.ucard:hover::after {
  transform: scale(1.15);
}

.ucard .top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  position: relative;
  z-index: 1;
}

.ucard .nm {
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.ucard .mb {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.ucard .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  position: relative;
  z-index: 1;
}

.ucard .row .k {
  color: var(--muted);
  font-weight: 600;
}

.ucard .row .vv {
  font-weight: 800;
}

/* ---------- generic item cards (categories / tasks / businesses) ---------- */
.icard {
  background: var(--card);
  border: 1px solid rgba(220, 231, 224, 0.9);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.14s, box-shadow 0.16s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.icard .ic-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icard .ic-sub {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.icard .ic-body {
  font-size: 13px;
  color: #3a5348;
}

.icard .ic-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

.icard .ic-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: 11px;
}

.ic-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-tint), #d3e9de);
  color: var(--green-deep);
}

.ic-badge svg {
  width: 21px;
  height: 21px;
}

.ic-badge.gold {
  background: linear-gradient(135deg, var(--amber-tint), #f6e2b8);
  color: var(--amber-deep);
}

/* ---------- row list (replaces tables) ---------- */
.rlist {
  display: flex;
  flex-direction: column;
}

.rrow {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.rrow:last-child {
  border-bottom: 0;
}

.rrow .ri {
  flex: 1;
  min-width: 0;
}

.rrow .rt {
  font-weight: 700;
  font-size: 14px;
}

.rrow .rs {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.rrow .re {
  text-align: right;
  flex: none;
}

.rdot {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--green-tint);
  color: var(--green-deep);
  font-weight: 800;
  font-size: 14px;
}

.rdot.gold {
  background: var(--amber-tint);
  color: var(--amber-deep);
}

/* ---------- detail rows on business view ---------- */
.dlist {
  display: flex;
  flex-direction: column;
}

.drow {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.drow:last-child {
  border-bottom: 0;
}

.drow .dk {
  width: 200px;
  flex: none;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  padding-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drow .dv {
  flex: 1;
  min-width: 220px;
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 560px) {
  .drow .dk {
    width: 100%;
  }
}