:root {
  --bg: #f6f8fb;
  --bg-strong: #edf3f8;
  --surface: rgba(255, 255, 255, .92);
  --surface-solid: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #dbe4ef;
  --line-strong: #c8d3df;
  --primary: #0f766e;
  --primary-dark: #0b4f4a;
  --primary-soft: #e5f6f2;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --amber: #d97706;
  --amber-soft: #fff4df;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, .06);
  --shadow: 0 24px 70px rgba(15, 23, 42, .10);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, .14), transparent 32rem),
    radial-gradient(circle at 90% 0, rgba(37, 99, 235, .10), transparent 30rem),
    linear-gradient(180deg, #fbfdff, var(--bg));
  color: var(--ink);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
.hidden { display: none !important; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.02em; }
.brand i {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, #14b8a6, var(--primary-dark));
  color: white;
  display: grid;
  place-items: center;
  font-style: normal;
  letter-spacing: .05em;
  box-shadow: 0 16px 35px rgba(20, 184, 166, .25);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(370px, .75fr);
  background: linear-gradient(135deg, #08111f, #132034 52%, #123f3c);
  overflow: hidden;
}
.login-screen::before {
  content: "";
  position: fixed;
  inset: -20% 46% auto -12%;
  height: 70vh;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(20, 184, 166, .32), transparent 62%);
  pointer-events: none;
}
.login-copy {
  padding: 56px clamp(32px, 7vw, 112px);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.login-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(44px, 5vw, 74px);
  line-height: .98;
  letter-spacing: -.055em;
}
.login-copy p { color: #c7d2e1; line-height: 1.75; max-width: 650px; font-size: 16px; }
.login-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.login-stats > * {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: 10px 14px;
  color: #e5edf7;
  backdrop-filter: blur(14px);
}
.login-card {
  width: min(430px, calc(100% - 38px));
  margin: auto;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 32px;
  position: relative;
}

.login-card > span,
.topbar span,
.card-head span,
.form-card > span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  color: var(--primary);
  text-transform: uppercase;
}
.login-card h2,
.card-head h2,
.form-card h2 {
  letter-spacing: -.04em;
}
.login-card h2 { font-size: 34px; margin: 8px 0 24px; }
.login-card label,
.form-card label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}
.login-card label { margin-top: 15px; }
.login-card input,
.form-card input,
.form-card select,
.form-card textarea,
.compact-label select {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  color: var(--ink);
  padding: 0 13px;
  margin-top: 7px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-card textarea { min-height: 92px; padding-top: 12px; resize: vertical; }
.login-card input:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.compact-label select:focus {
  border-color: rgba(15, 118, 110, .62);
  background: white;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .10);
}

.login-card > button,
.form-card > button,
.primary,
.logout {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 900;
  min-height: 46px;
  padding: 0 18px;
  box-shadow: 0 14px 24px rgba(15, 118, 110, .18);
}
.login-card > button { width: 100%; margin-top: 22px; }
.error { color: var(--red); font-size: 12px; min-height: 18px; }
.demo-users { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.demo-users button,
.ghost-button {
  border: 1px solid var(--line);
  background: var(--soft);
  color: #334155;
  min-height: 36px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  padding: 0 13px;
}
.ghost-button:hover,
.demo-users button:hover { background: #edf6ff; border-color: #bed2e8; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}
aside {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .92)),
    radial-gradient(circle at top left, rgba(20, 184, 166, .28), transparent 22rem);
  color: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .08);
}
aside .brand { min-height: 52px; }
nav {
  display: grid;
  gap: 7px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
}
nav::-webkit-scrollbar { width: 6px; }
nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 999px; }
nav button {
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  border-radius: 15px;
  padding: 11px 12px;
  text-align: left;
  font-weight: 820;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
nav button .nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: #dbeafe;
  font-size: 15px;
}
nav button.active,
nav button:hover {
  background: rgba(255, 255, 255, .94);
  color: #0f172a;
  border-color: rgba(255, 255, 255, .18);
  transform: translateX(2px);
}
nav button.active .nav-icon,
nav button:hover .nav-icon {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.logout {
  margin-top: 0;
  background: rgba(255, 255, 255, .10);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .12);
}
.logout:hover { background: rgba(255, 255, 255, .16); }

.workspace {
  padding: 28px;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.topbar h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: .95;
  letter-spacing: -.055em;
  margin: 6px 0 0;
}
.user-pill {
  background: var(--surface);
  border: 1px solid rgba(219, 228, 239, .9);
  border-radius: 18px;
  padding: 13px 16px;
  text-align: right;
  box-shadow: var(--shadow-sm);
  min-width: 180px;
}
.user-pill span,
.user-pill small { display: block; }
.user-pill span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
.user-pill small { color: var(--muted); margin-top: 2px; }

.mygate-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -28px -28px 20px;
  padding: 16px 28px;
  background: rgba(246, 248, 251, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 228, 239, .75);
}
.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.topbar-left { flex: 1; }
.module-heading { min-width: 0; }
.society-control {
  min-width: 235px;
  display: grid;
  gap: 3px;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
}
.society-control span {
  color: #64748b;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: none;
}
.society-control select {
  min-height: 42px;
  border: 1px solid #c7d4e2;
  border-radius: 13px;
  padding: 0 38px 0 13px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}
.fy-chip,
.faq-chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 15px;
  min-height: 48px;
  padding: 8px 13px;
  color: var(--ink);
  font-weight: 950;
  box-shadow: var(--shadow-sm);
}
.fy-chip {
  display: grid;
  text-align: left;
  min-width: 126px;
}
.fy-chip small {
  color: #f97316;
  font-size: 11px;
  font-weight: 850;
}
.faq-chip {
  background: #07343f;
  color: white;
  border-color: transparent;
  min-width: 54px;
}
.user-pill {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  text-align: left;
}
.user-pill i {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #bae6fd, #dbeafe);
  color: #0284c7;
  font-style: normal;
  font-weight: 950;
  font-size: 19px;
}

.submenu {
  display: grid;
  gap: 4px;
  margin: -2px 0 7px 42px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.submenu button {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: #b6c4d4;
}
.nav-caret {
  margin-left: auto;
  opacity: .7;
}

.mygate-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 336px);
  gap: 18px;
  align-items: start;
}
.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 16px;
}
.overview-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 16px;
}
.command-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 253, 255, .96)),
    radial-gradient(circle at top right, rgba(20, 184, 166, .12), transparent 18rem);
}
.command-card .ghost-button {
  display: grid;
  place-items: center;
  gap: 1px;
  height: auto;
  min-height: 40px;
}
.command-card .ghost-button small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.action-grid.mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.action-tile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  min-height: 86px;
  border: 0;
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  background: #f4f6f8;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.action-tile:hover {
  transform: translateY(-2px);
  background: #eef6f5;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
}
.action-tile span {
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}
.action-tile strong {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.06em;
  color: #06333a;
}
.action-tile small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}
.action-tile i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: #06333a;
  font-style: normal;
  font-size: 24px;
}
.command-card.compact .action-tile {
  min-height: 78px;
}
.command-card.compact .action-tile strong {
  font-size: 30px;
}

.collection-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(250, 204, 21, .30), transparent 16rem),
    linear-gradient(135deg, #083c38, #0f766e);
  border-color: rgba(15, 118, 110, .25);
}
.collection-card span {
  color: #a7f3d0;
  font-size: 10px;
  letter-spacing: .14em;
  font-weight: 950;
}
.collection-card h2 {
  margin: 8px 0 4px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.06em;
}
.collection-card p {
  margin: 0;
  color: #d5fff5;
  line-height: 1.5;
}
.collection-card button,
.smart-card button {
  width: max-content;
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 15px;
  font-weight: 950;
  color: #083c38;
  background: white;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shortcut-grid button {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
  min-height: 84px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fbfdff;
  color: #0b3340;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.shortcut-grid i {
  font-style: normal;
  font-size: 22px;
}
.shortcut-grid button:hover {
  background: var(--primary-soft);
  border-color: #bfe5dd;
}
.smart-card {
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 80% 110%, rgba(56, 189, 248, .36), transparent 14rem),
    linear-gradient(135deg, #06333a, #0f172a);
  box-shadow: var(--shadow-sm);
}
.smart-card strong {
  display: block;
  color: #facc15;
  font-size: 19px;
  letter-spacing: -.02em;
}
.smart-card p {
  color: #cbe7ee;
  font-size: 13px;
  line-height: 1.45;
}
.smart-card i {
  align-self: end;
  justify-self: end;
  font-style: normal;
  font-size: 48px;
  color: rgba(255, 255, 255, .72);
}
.health-list {
  display: grid;
  gap: 10px;
}
.health-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: #fbfdff;
}
.health-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.health-list strong {
  text-align: right;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric {
  position: relative;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.metric::after {
  content: "";
  position: absolute;
  inset: auto 14px 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(37, 99, 235, .10));
}
.metric span { font-size: 11px; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { display: block; font-size: 30px; letter-spacing: -.04em; margin-top: 8px; }

.panel { display: grid; gap: 16px; }
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 410px);
  gap: 18px;
  align-items: start;
}
.card,
.form-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 19px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card + .card,
.form-card + .form-card { margin-top: 14px; }
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.card-head h2,
.form-card h2 {
  font-size: 24px;
  line-height: 1.05;
  margin: 5px 0 0;
}
.form-card { display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.table { display: grid; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  transform: translateY(-1px);
}
.row > div { min-width: 0; overflow-wrap: anywhere; }
.row > div:nth-child(2),
.row > div:nth-child(4) { justify-self: end; text-align: right; }
.row > div:nth-child(3) { justify-self: start; }
.row strong,
.row span,
.row small { display: block; }
.row strong { letter-spacing: -.02em; }
.row small,
.subtle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  background: #eef2f7;
  color: #334155;
}
.pill.Pending,
.pill.Due,
.pill.Overdue,
.pill.High { background: var(--amber-soft); color: #9a5f00; }
.pill.Approved,
.pill.Paid,
.pill.Confirmed,
.pill.Verified,
.pill.Inside,
.pill.Enabled { background: var(--success-soft); color: #166534; }
.pill.Open,
.pill.At,
.pill.Resident,
.pill.progress { background: var(--blue-soft); color: #1d4ed8; }
.pill.Checked,
.pill.Delivered,
.pill.Resolved,
.pill.Closed { background: #f1f5f9; color: #475569; }

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.actions button {
  min-height: 36px;
  border: 0;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
  background: #102033;
  color: white;
  padding: 0 12px;
}
.actions button.secondary {
  background: #eef4fb;
  color: #25364c;
}
.actions button:hover { filter: brightness(.98); transform: translateY(-1px); }

.compact-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.compact-label select { min-height: 38px; margin-top: 0; }

.notice-list { display: grid; gap: 10px; }
.notice {
  border: 1px solid #fde7bd;
  border-left: 5px solid var(--amber);
  background: #fffbf2;
  border-radius: 17px;
  padding: 14px;
}
.notice strong { display: block; margin-bottom: 4px; }
.empty {
  text-align: center;
  color: var(--muted);
  padding: 38px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: #fbfdff;
}

.payment-card { gap: 15px; }
.payment-summary {
  border: 1px solid #d9e8f4;
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(240, 249, 255, .88)),
    radial-gradient(circle at top right, rgba(15, 118, 110, .12), transparent 16rem);
}
.payment-summary strong {
  display: block;
  font-size: 30px;
  letter-spacing: -.05em;
}
.payment-summary small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.payment-phone {
  display: grid;
  gap: 10px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.payment-mode {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  color: var(--ink);
  min-height: 58px;
  text-align: left;
  padding: 10px 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.form-card .payment-mode {
  background: white;
  color: var(--ink);
}
.payment-mode:hover {
  transform: translateY(-1px);
  border-color: #b9c8d7;
  box-shadow: 0 13px 28px rgba(15, 23, 42, .07);
}
.payment-mode.selected {
  border-color: rgba(15, 118, 110, .65);
  background: linear-gradient(135deg, #f3fffb, #ffffff);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .10);
}
.payment-mode .radio {
  width: 24px;
  height: 24px;
  border: 1.5px solid #b9c6d3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 12px;
  background: white;
}
.payment-mode.selected .radio {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.pay-icon {
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 950;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  white-space: nowrap;
}
.pay-icon.rupay-upi {
  background: #f7fbff;
  color: #1d3f88;
  border: 1px solid #dfe8f2;
}
.pay-icon.debit-card,
.pay-icon.rupay-debit {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}
.pay-icon.net-banking {
  background: #eef2f7;
  color: #667085;
}
.pay-icon.wallets {
  background: linear-gradient(135deg, #b45309, #92400e);
}
.pay-now {
  width: 100%;
  margin: 4px 0 0;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 950;
  min-height: 52px;
  display: block;
  box-shadow: 0 16px 32px rgba(15, 118, 110, .20);
}
.pay-now:disabled {
  background: #d7dde5;
  box-shadow: none;
  color: #ffffff;
}
.gateway-stack {
  display: grid;
  gap: 10px;
}
.gateway-row {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #ffffff;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.gateway-row strong,
.gateway-row small { display: block; }

@media (max-width: 1180px) {
  .grid { grid-template-columns: 1fr; }
  .mygate-dashboard { grid-template-columns: 1fr; }
  .dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .shell { grid-template-columns: 1fr; }
  aside { position: static; height: auto; }
  nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar-left,
  .topbar-actions { width: 100%; flex-wrap: wrap; }
  .mygate-topbar { position: static; margin: 0 0 20px; padding: 0; background: transparent; border-bottom: 0; }
  .overview-split { grid-template-columns: 1fr; }
  .dashboard-side { grid-template-columns: 1fr; }
  .user-pill { text-align: left; }
  .row { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-copy { display: none; }
  .login-card { border-radius: 24px; }
  .workspace { padding: 16px; }
  aside { padding: 16px; }
  nav { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .society-control { min-width: 100%; }
  .topbar-actions { display: grid; grid-template-columns: 1fr 72px; }
  .topbar-actions .user-pill { grid-column: 1 / -1; width: 100%; }
  .action-grid,
  .action-grid.mini,
  .shortcut-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-mode { grid-template-columns: 28px 64px 1fr; }
}
