:root {
  --bg: #080b12;
  --panel: #111722;
  --panel-2: #171e2b;
  --line: #263044;
  --text: #f4f7fb;
  --muted: #9aa8bd;
  --accent: #57e6a9;
  --accent-dark: #102b22;
  --danger: #ff6b7a;
  --warning: #f6c85f;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-body {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.brand-panel {
  min-height: 650px;
  padding: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(87, 230, 169, .12),
      transparent 34%
    ),
    #0b1018;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: #07130e;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 13px;
  flex: 0 0 auto;
}

.brand-panel h1 {
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -.06em;
  margin: 10px 0 18px;
}

.brand-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 520px;
}

.eyebrow {
  margin: 24px 0 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.feature-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: #c7d2e3;
  font-size: 13px;
}

.auth-card {
  padding: 72px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0c111a;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
}

.tab {
  border: 0;
  border-radius: 9px;
  padding: 12px;
  background: transparent;
  color: var(--muted);
}

.tab.active {
  background: var(--panel-2);
  color: var(--text);
}

.form-stack {
  display: grid;
  gap: 20px;
}

.form-stack h2 {
  font-size: 30px;
  margin: 6px 0;
}

label {
  display: block;
  color: #dbe4f0;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #0b1018;
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(87, 230, 169, .09);
}

.primary-button,
.secondary-button,
.logout-button {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 800;
}

.primary-button {
  border: 0;
  background: var(--accent);
  color: #07130e;
}

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.hint,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.hint {
  font-size: 12px;
  margin: 7px 0 0;
}

.status {
  margin-top: 20px;
  border-radius: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: #0c111a;
  color: var(--muted);
}

.status.error {
  color: #ffd7dc;
  border-color: rgba(255, 107, 122, .4);
}

.status.success {
  color: #caffea;
  border-color: rgba(87, 230, 169, .35);
}

.hidden {
  display: none !important;
}

.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 255px 1fr;
}

.sidebar {
  min-height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #0b1018;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 8px 24px;
  color: var(--text);
  text-decoration: none;
}

.sidebar-brand div {
  display: grid;
  gap: 2px;
}

.sidebar-brand small {
  color: var(--muted);
  font-size: 11px;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.nav-item.active {
  background: var(--accent-dark);
  color: var(--accent);
}

.logout-button {
  margin-top: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: #d5dfec;
}

.main-content {
  padding: 34px;
  min-width: 0;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.page-heading .eyebrow {
  margin: 0 0 5px;
}

.page-heading h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -.035em;
}

.admin-identity {
  display: grid;
  text-align: right;
  gap: 3px;
}

.admin-identity span {
  color: var(--muted);
  font-size: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.welcome-card,
.empty-state,
.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.metric-card {
  padding: 20px;
}

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

.metric-card strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.welcome-card,
.empty-state {
  padding: 28px;
  margin-bottom: 18px;
}

.welcome-card .eyebrow {
  margin: 0;
}

.welcome-card h2 {
  margin: 8px 0;
}

.table-card {
  margin-top: 18px;
  overflow: hidden;
}

.table-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.table-header h2 {
  margin: 0;
  font-size: 17px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

td {
  color: #dfe7f2;
}

.badge {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
}

.badge.good {
  color: var(--accent);
  border-color: rgba(87, 230, 169, .3);
}

.badge.warn {
  color: var(--warning);
}

.badge.bad {
  color: var(--danger);
}

.empty-table {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}

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

  .brand-panel {
    min-height: auto;
    padding: 42px;
  }

  .auth-card {
    padding: 42px;
  }

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

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-nav {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .logout-button {
    margin-top: 16px;
  }

  .card-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .auth-body {
    padding: 14px;
  }

  .brand-panel,
  .auth-card,
  .main-content {
    padding: 24px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-identity {
    text-align: left;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== QRPayAPI animated password monkey ===== */

.password-section {
  position: relative;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(255, 255, 255, .055);
  color: var(--text);
  outline: none;
}

.eye-glyph {
  position: relative;
  width: 20px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 70% 30%;
  transform: rotate(45deg);
}

.eye-glyph::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 5.5px;
  top: 2.5px;
  border-radius: 50%;
  background: currentColor;
}

.password-toggle.is-visible .eye-glyph::before {
  content: "";
  position: absolute;
  width: 25px;
  height: 2px;
  left: -4px;
  top: 5px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
  border-radius: 99px;
  z-index: 2;
}

.password-monkey {
  width: 116px;
  height: 92px;
  position: relative;
  margin: 0 auto 14px;
  animation: qrpaMonkeyFloat 2.8s ease-in-out infinite;
  transform-origin: bottom center;
}

.monkey-head {
  position: absolute;
  width: 78px;
  height: 72px;
  left: 19px;
  top: 10px;
  border-radius: 46% 46% 48% 48%;
  background: #81512f;
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, .12),
    0 8px 25px rgba(0, 0, 0, .18);
  z-index: 2;
}

.monkey-ear {
  position: absolute;
  width: 30px;
  height: 34px;
  top: 28px;
  border-radius: 50%;
  background: #81512f;
  z-index: 1;
}

.monkey-ear::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #c99268;
}

.monkey-ear-left {
  left: 7px;
}

.monkey-ear-right {
  right: 7px;
}

.monkey-face {
  position: absolute;
  width: 58px;
  height: 50px;
  left: 10px;
  top: 15px;
  border-radius: 46% 46% 48% 48%;
  background: #ddb184;
}

.monkey-eye {
  position: absolute;
  width: 15px;
  height: 16px;
  top: 13px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  transition:
    transform .18s ease,
    height .18s ease;
}

.monkey-eye-left {
  left: 11px;
}

.monkey-eye-right {
  right: 11px;
}

.monkey-pupil {
  position: absolute;
  width: 6px;
  height: 6px;
  left: 4.5px;
  top: 5px;
  border-radius: 50%;
  background: #161616;
  animation:
    qrpaMonkeyLook 3.8s ease-in-out infinite;
}

.monkey-nose {
  position: absolute;
  width: 10px;
  height: 7px;
  left: 24px;
  top: 29px;
  border-radius: 50%;
  background: #81512f;
}

.monkey-mouth {
  position: absolute;
  width: 20px;
  height: 9px;
  left: 19px;
  top: 36px;
  border-bottom: 2px solid #75452b;
  border-radius: 0 0 50% 50%;
}

.monkey-hand {
  position: absolute;
  width: 27px;
  height: 34px;
  top: 51px;
  border-radius: 48% 48% 45% 45%;
  background: #d7a576;
  transition:
    transform .22s cubic-bezier(.2, .9, .25, 1.2);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, .1);
  z-index: 5;
}

.monkey-hand-left {
  left: -5px;
  transform: rotate(22deg);
}

.monkey-hand-right {
  right: -5px;
  transform: rotate(-22deg);
}

.password-monkey.cover .monkey-hand-left {
  transform:
    translate(22px, -34px)
    rotate(-18deg);
}

.password-monkey.cover .monkey-hand-right {
  transform:
    translate(-22px, -34px)
    rotate(18deg);
}

.password-monkey.cover .monkey-eye {
  height: 4px;
  top: 19px;
}

.password-monkey.cover .monkey-pupil {
  opacity: 0;
}

.password-monkey.cover {
  animation:
    qrpaMonkeyCoverBounce .28s ease-out;
}

.password-monkey.idle .monkey-pupil {
  opacity: 1;
}

@keyframes qrpaMonkeyLook {
  0%, 18%, 100% {
    transform: translateX(0);
  }

  30%, 42% {
    transform: translateX(-3px);
  }

  60%, 74% {
    transform: translateX(3px);
  }
}

@keyframes qrpaMonkeyFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes qrpaMonkeyCoverBounce {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.035);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .password-monkey,
  .monkey-pupil {
    animation: none;
  }

  .monkey-hand,
  .monkey-eye {
    transition: none;
  }
}

/* ===== Super Admin Plan Manager ===== */

.plan-editor,
.billing-merchant-form {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.plan-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.plan-editor-heading h2 {
  margin: 0;
  font-size: 18px;
}

.plan-form-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-field > span {
  color: #dbe4f0;
  font-size: 12px;
  font-weight: 700;
}

.admin-field input,
.admin-field select,
.admin-field textarea,
.billing-merchant-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1018;
  color: var(--text);
  padding: 11px 13px;
  outline: none;
}

.admin-field input,
.admin-field select {
  min-height: 46px;
}

.admin-field textarea {
  margin-top: 8px;
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px
    rgba(87, 230, 169, .08);
}

.admin-check-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbe4f0;
  font-size: 13px;
}

.admin-check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.plan-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.admin-save-button {
  width: auto;
  min-width: 150px;
  padding: 0 20px;
}

.admin-save-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.billing-selected {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid
    rgba(87, 230, 169, .3);
  border-radius: 12px;
  background: var(--accent-dark);
}

.billing-selected span {
  color: var(--muted);
  font-size: 13px;
}

.billing-warning {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid
    rgba(246, 200, 95, .32);
  border-radius: 12px;
  background:
    rgba(246, 200, 95, .055);
  color: #efd99c;
  line-height: 1.55;
}

.billing-merchant-form {
  display: grid;
  gap: 18px;
}

@media (max-width: 1000px) {
  .plan-form-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .plan-form-grid {
    grid-template-columns: 1fr;
  }

  .plan-editor-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-save-button {
    width: 100%;
  }
}

/* Forgot password */

.text-button {
  justify-self: end;
  border: 0;
  padding: 0;
  margin-top: -6px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.text-button:hover,
.text-button:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* ===== Super Admin Paytm Connections ===== */

.paytm-connect-card,
.paytm-merchant-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.paytm-connect-card h3,
.paytm-merchant-card h3,
.paytm-otp-panel h3 {
  margin: 0;
}

.paytm-connect-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.paytm-merchant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.paytm-merchant-header p {
  margin-bottom: 0;
}

.merchant-details-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.merchant-detail {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1018;
  min-width: 0;
}

.merchant-detail span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.merchant-detail strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.merchant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.merchant-actions .secondary-button,
.merchant-actions .danger-button {
  width: auto;
}

.danger-button {
  min-height: 44px;
  border: 1px solid
    rgba(255, 96, 96, .38);
  border-radius: 11px;
  padding: 0 16px;
  background:
    rgba(255, 96, 96, .08);
  color: #ffabab;
  font-weight: 700;
}

.danger-button:hover {
  background:
    rgba(255, 96, 96, .14);
}

.merchant-error {
  margin-top: 14px;
  color: #ffb2b2;
  font-size: 13px;
}

.paytm-otp-panel {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid
    rgba(246, 200, 95, .32);
  border-radius: 12px;
  background:
    rgba(246, 200, 95, .05);
}

.paytm-otp-panel .admin-field {
  max-width: 360px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
}

@media (max-width: 1100px) {
  .merchant-details-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .paytm-connect-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .paytm-connect-grid,
  .merchant-details-grid {
    grid-template-columns: 1fr;
  }

  .paytm-merchant-header {
    flex-direction: column;
  }

  .merchant-actions {
    display: grid;
  }

  .merchant-actions .secondary-button,
  .merchant-actions .danger-button {
    width: 100%;
  }
}

/* ===== Website Content CMS ===== */

.cms-admin-intro {
  margin-bottom: 18px;
}

.cms-admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cms-admin-heading h2 {
  margin-top: 0;
}

.cms-editor-form {
  display: grid;
  gap: 18px;
}

.cms-settings-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.cms-settings-card > h3 {
  margin-top: 0;
}

.cms-seo-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

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

.cms-field small {
  display: block;
  margin-top: 5px;
}

.cms-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cms-editor-heading h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.cms-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cms-token-actions .secondary-button {
  width: auto;
  white-space: nowrap;
}

.cms-publish-actions {
  position: sticky;
  bottom: 14px;
  z-index: 20;

  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;

  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(12, 17, 25, .95);

  backdrop-filter:
    blur(12px);
}

.cms-publish-actions button {
  width: auto;
}

.cms-preview-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.cms-preview-frame {
  display: block;
  width: 100%;
  height: 650px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.cms-version-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.cms-version-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 12px 14px;

  border: 1px solid var(--line);
  border-radius: 11px;
}

.cms-version-item > div {
  display: grid;
  gap: 4px;
}

.cms-version-item .secondary-button {
  width: auto;
}

/*
 * Jodit is intentionally light inside the
 * dark admin UI for maximum editing clarity.
 */
.jodit-container {
  border-radius: 12px !important;
  overflow: hidden;
}

.jodit-workplace {
  min-height: 450px !important;
}

.jodit-wysiwyg {
  color: #111 !important;
  background: #fff !important;
  line-height: 1.6 !important;
}

@media (max-width: 850px) {
  .cms-seo-grid {
    grid-template-columns: 1fr;
  }

  .cms-admin-heading,
  .cms-editor-heading {
    flex-direction: column;
  }

  .cms-token-actions {
    width: 100%;
  }

  .cms-token-actions .secondary-button {
    flex: 1;
  }

  .cms-publish-actions {
    display: grid;
  }

  .cms-publish-actions button {
    width: 100%;
  }

  .cms-version-item {
    align-items: stretch;
    flex-direction: column;
  }

  .cms-version-item .secondary-button {
    width: 100%;
  }
}

/* =========================================================
   QRPayAPI public landing page
   ========================================================= */

.landing-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(59, 130, 246, .15),
      transparent 34rem
    ),
    var(--bg);
  color: var(--text);
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  min-height: 74px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));

  border-bottom: 1px solid var(--line);

  background:
    rgba(8, 12, 19, .92);

  backdrop-filter: blur(14px);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--text);
  text-decoration: none;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.landing-nav a,
.landing-footer a {
  color: var(--muted);
  text-decoration: none;
}

.landing-nav a:hover,
.landing-footer a:hover {
  color: var(--text);
}

.landing-nav .landing-nav-cta {
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.landing-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.landing-topbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;

  padding: 22px 0 0;
}

.landing-topbar span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;

  background: var(--panel);

  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.landing-cms-content > section {
  margin: 72px 0;

  padding:
    clamp(28px, 5vw, 66px);

  border: 1px solid var(--line);
  border-radius: 26px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .035),
      rgba(255, 255, 255, .012)
    );
}

.landing-cms-content .cms-hero {
  margin-top: 34px;
  min-height: 560px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background:
    radial-gradient(
      circle at 75% 15%,
      rgba(59, 130, 246, .18),
      transparent 28rem
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .045),
      rgba(255, 255, 255, .012)
    );
}

.landing-cms-content h1 {
  max-width: 900px;

  margin:
    12px 0 20px;

  font-size:
    clamp(42px, 7vw, 78px);

  line-height: 1.02;
  letter-spacing: -.045em;
}

.landing-cms-content h2 {
  max-width: 900px;

  margin:
    10px 0 20px;

  font-size:
    clamp(28px, 4vw, 46px);

  line-height: 1.08;
  letter-spacing: -.025em;
}

.landing-cms-content h3 {
  margin-top: 30px;
  margin-bottom: 8px;
  font-size: 21px;
}

.landing-cms-content p,
.landing-cms-content li {
  max-width: 850px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.landing-cms-content strong {
  color: var(--text);
}

.landing-cms-content img {
  max-width: 100%;
  height: auto;
}

.landing-cms-content table {
  width: 100%;
  border-collapse: collapse;
}

.landing-cms-content th,
.landing-cms-content td {
  padding: 12px;
  border: 1px solid var(--line);
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 18px;

  border-radius: 11px;

  background: var(--accent);
  color: #fff !important;

  font-weight: 800;
  text-decoration: none;
}

.landing-button-large {
  min-height: 54px;
  padding: 0 24px;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;

  margin-top: 30px;
}

.landing-plan-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 350px;
  padding: 22px;

  border: 1px solid var(--line);
  border-radius: 18px;

  background:
    rgba(8, 13, 22, .82);
}

.landing-plan-card h3 {
  margin-top: 8px;
}

.landing-plan-card p {
  font-size: 14px;
  line-height: 1.5;
}

.landing-plan-price {
  margin: 8px 0;

  font-size: 31px;
  font-weight: 900;
  letter-spacing: -.025em;
}

.landing-plan-rule {
  flex: 1;
}

.landing-plan-badge {
  align-self: flex-start;

  padding: 6px 9px;

  border-radius: 999px;

  background:
    rgba(59, 130, 246, .14);

  color: #9ec5ff;

  font-size: 11px;
  font-weight: 800;
}

.public-empty-pricing {
  margin-top: 20px;
  padding: 20px;

  border: 1px dashed var(--line);
  border-radius: 12px;

  color: var(--muted);
}

.landing-footer {
  width: min(1180px, calc(100% - 36px));

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;

  margin: 80px auto 0;
  padding: 38px 0 48px;

  border-top: 1px solid var(--line);
}

.landing-footer p {
  max-width: 700px;
  color: var(--muted);
}

.landing-footer-links {
  display: flex;
  gap: 18px;
}

.landing-disclaimer {
  grid-column: 1 / -1;

  padding-top: 18px;

  border-top: 1px solid var(--line);

  font-size: 12px;
  line-height: 1.65;
}


/* =========================================================
   Separate auth pages
   ========================================================= */

.auth-page-shell {
  max-width: 1050px;
}

.auth-home-link {
  display: inline-block;
  margin-bottom: 28px;

  color: var(--muted);
  text-decoration: none;
}

.auth-home-link:hover {
  color: var(--text);
}

.auth-switch-copy {
  margin: 4px 0 0;
  text-align: center;
  color: var(--muted);
}

.auth-switch-copy a {
  color: var(--text);
  font-weight: 800;
}

.auth-page-card .monkey-seated-password {
  /*
   * Space is reserved so the monkey's body
   * sits visually on the password input border.
   */
  padding-top: 94px;
}

.auth-page-card
.monkey-seated-password
.password-monkey {
  position: absolute;

  top: 17px;
  left: 50%;

  margin:
    0 0 0 -58px;

  z-index: 4;
}

.auth-page-card
.monkey-seated-password
.password-input-wrap {
  position: relative;
  z-index: 3;
}

.auth-page-card
.monkey-seated-password
.password-input-wrap::before {
  content: "";

  position: absolute;

  left: calc(50% - 39px);
  top: -2px;

  width: 78px;
  height: 3px;

  border-radius: 99px;

  background:
    rgba(215, 165, 118, .55);

  pointer-events: none;
}


@media (max-width: 950px) {
  .landing-pricing-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 720px) {
  .landing-header {
    min-height: auto;
    padding: 13px 18px;
  }

  .landing-nav {
    gap: 10px;
  }

  .landing-nav a[href="#how-it-works"],
  .landing-nav a[href="#pricing"] {
    display: none;
  }

  .landing-main {
    width: min(
      100% - 24px,
      1180px
    );
  }

  .landing-cms-content > section {
    margin: 30px 0;
    padding: 25px 20px;
    border-radius: 18px;
  }

  .landing-cms-content .cms-hero {
    min-height: auto;
  }

  .landing-cms-content h1 {
    font-size:
      clamp(38px, 12vw, 58px);
  }

  .landing-pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-footer {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .landing-disclaimer {
    grid-column: 1;
  }
}

/* ===== Landing social sharing ===== */

.landing-social-share {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 9px;

  margin:
    20px auto 0;
}

.landing-share-label {
  margin-right: 4px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .055em;
}

.landing-social-share a {
  display: grid;
  place-items: center;

  width: 39px;
  height: 39px;

  border: 1px solid var(--line);
  border-radius: 50%;

  background:
    rgba(255, 255, 255, .035);

  color: var(--text);

  text-decoration: none;

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.landing-social-share a:hover {
  transform: translateY(-2px);

  border-color:
    rgba(96, 165, 250, .55);

  background:
    rgba(59, 130, 246, .12);
}

.landing-social-share a span {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 600px) {
  .landing-social-share {
    justify-content: flex-start;
  }

  .landing-share-label {
    width: 100%;
    margin-bottom: 3px;
  }
}

.cms-preview-banner {
  position: sticky;
  top: 0;
  z-index: 100;

  padding: 8px 16px;

  background: #7c2d12;
  color: #fff;

  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

/* =========================================================
   QRPayAPI Mobile UX V2
   Mobile only — desktop unchanged
   ========================================================= */

@media (max-width: 720px) {

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 74px;
  }

  body.landing-body {
    overflow-x: hidden;
  }

  /* ---------- Header ---------- */

  .landing-header {
    position: sticky;
    top: 0;

    min-height: 62px;

    padding:
      10px 14px;

    gap: 10px;
  }

  .landing-brand {
    flex-shrink: 0;
    gap: 7px;
  }

  .landing-brand .brand-mark.small {
    width: 34px;
    height: 34px;
    min-width: 34px;

    font-size: 12px;
  }

  .landing-brand strong {
    font-size: 15px;
  }

  .landing-nav {
    margin-left: auto;
    gap: 6px;
  }

  .landing-nav > a {
    display: none;
  }

  .landing-nav > a[href="/login.html"],
  .landing-nav > .landing-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding:
      0 11px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;
  }

  .landing-nav > a[href="/login.html"] {
    border:
      1px solid var(--line);

    color: var(--text);
  }


  /* ---------- Main ---------- */

  .landing-main {
    width: 100%;
    margin: 0;
    padding: 0 12px;
  }

  .landing-topbar {
    justify-content: flex-start;
    flex-wrap: nowrap;

    overflow-x: auto;
    overscroll-behavior-x: contain;

    gap: 7px;

    padding:
      14px 2px 3px;

    scrollbar-width: none;
  }

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

  .landing-topbar span {
    flex: 0 0 auto;

    padding:
      7px 10px;

    font-size: 11px;

    white-space: nowrap;
  }


  /* ---------- Social sharing ---------- */

  .landing-social-share {
    justify-content: flex-start;

    gap: 7px;

    margin:
      14px 2px 4px;
  }

  .landing-share-label {
    width: 100%;

    margin:
      0 0 2px;

    font-size: 10px;
  }

  .landing-social-share a {
    width: 36px;
    height: 36px;
  }


  /* ---------- CMS content ---------- */

  .landing-cms-content {
    width: 100%;
  }

  .landing-cms-content > section {
    margin:
      18px 0;

    padding:
      24px 18px;

    border-radius: 16px;
  }

  .landing-cms-content .cms-hero {
    min-height: auto;

    margin-top: 14px;

    padding:
      34px 20px;
  }

  .landing-cms-content h1 {
    margin:
      8px 0 16px;

    max-width: 100%;

    font-size:
      clamp(
        34px,
        10vw,
        44px
      );

    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .landing-cms-content h2 {
    margin:
      6px 0 14px;

    max-width: 100%;

    font-size:
      clamp(
        25px,
        7.2vw,
        32px
      );

    line-height: 1.15;
    letter-spacing: -.02em;
  }

  .landing-cms-content h3 {
    margin:
      22px 0 8px;

    font-size: 19px;
    line-height: 1.3;
  }

  .landing-cms-content p,
  .landing-cms-content li {
    max-width: 100%;

    font-size: 16px;
    line-height: 1.68;
  }

  .landing-cms-content p {
    margin:
      0 0 14px;
  }

  .landing-cms-content ul,
  .landing-cms-content ol {
    padding-left: 22px;
  }

  .landing-cms-content li + li {
    margin-top: 7px;
  }


  /* ---------- Buttons ---------- */

  .landing-button,
  .landing-button-large {
    width: 100%;

    min-height: 50px;

    padding:
      0 16px;

    border-radius: 11px;

    font-size: 15px;

    text-align: center;
  }


  /* ---------- Pricing ---------- */

  .landing-pricing-grid {
    grid-template-columns: 1fr;

    gap: 12px;

    margin-top: 20px;
  }

  .landing-plan-card {
    min-height: 0;

    padding:
      20px 18px;

    border-radius: 15px;
  }

  .landing-plan-card h3 {
    margin:
      9px 0 2px;

    font-size: 20px;
  }

  .landing-plan-price {
    margin:
      7px 0 12px;

    font-size: 29px;
  }

  .landing-plan-card p {
    margin-bottom: 10px;

    font-size: 15px;
    line-height: 1.55;
  }

  .landing-plan-rule {
    margin-bottom: 16px !important;
  }

  .landing-plan-badge {
    padding:
      5px 8px;

    font-size: 10px;
  }


  /* ---------- Tables / media ---------- */

  .landing-cms-content table {
    display: block;

    max-width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
  }

  .landing-cms-content img {
    display: block;

    width: auto;
    max-width: 100%;

    margin:
      16px auto;

    border-radius: 10px;
  }


  /* ---------- Anchors ---------- */

  #how-it-works,
  #features,
  #pricing,
  #faq,
  #use-cases,
  #why-qrpayapi {
    scroll-margin-top: 78px;
  }


  /* ---------- Footer ---------- */

  .landing-footer {
    width: auto;

    margin:
      36px 14px 0;

    padding:
      28px 2px 34px;

    gap: 16px;
  }

  .landing-footer-links {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;
  }

  .landing-footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    border:
      1px solid var(--line);

    border-radius: 10px;
  }

  .landing-disclaimer {
    font-size: 12px;
    line-height: 1.6;
  }


  /* ---------- Touch comfort ---------- */

  button,
  .landing-button,
  .landing-nav a,
  .landing-footer a {
    touch-action: manipulation;
  }
}


/* Extra small phones */

@media (max-width: 390px) {

  .landing-header {
    padding:
      9px 10px;
  }

  .landing-brand strong {
    font-size: 14px;
  }

  .landing-nav > a[href="/login.html"],
  .landing-nav > .landing-nav-cta {
    padding:
      0 9px;

    font-size: 12px;
  }

  .landing-main {
    padding:
      0 9px;
  }

  .landing-cms-content > section {
    padding:
      22px 16px;
  }

  .landing-cms-content h1 {
    font-size: 32px;
  }

  .landing-cms-content h2 {
    font-size: 25px;
  }
}

/* =========================================================
   QRPayAPI Mobile UX V2
   Mobile only — desktop unchanged
   ========================================================= */

@media (max-width: 720px) {

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 74px;
  }

  body.landing-body {
    overflow-x: hidden;
  }

  /* ---------- Header ---------- */

  .landing-header {
    position: sticky;
    top: 0;

    min-height: 62px;

    padding:
      10px 14px;

    gap: 10px;
  }

  .landing-brand {
    flex-shrink: 0;
    gap: 7px;
  }

  .landing-brand .brand-mark.small {
    width: 34px;
    height: 34px;
    min-width: 34px;

    font-size: 12px;
  }

  .landing-brand strong {
    font-size: 15px;
  }

  .landing-nav {
    margin-left: auto;
    gap: 6px;
  }

  .landing-nav > a {
    display: none;
  }

  .landing-nav > a[href="/login.html"],
  .landing-nav > .landing-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding:
      0 11px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;
  }

  .landing-nav > a[href="/login.html"] {
    border:
      1px solid var(--line);

    color: var(--text);
  }


  /* ---------- Main ---------- */

  .landing-main {
    width: 100%;
    margin: 0;
    padding: 0 12px;
  }

  .landing-topbar {
    justify-content: flex-start;
    flex-wrap: nowrap;

    overflow-x: auto;
    overscroll-behavior-x: contain;

    gap: 7px;

    padding:
      14px 2px 3px;

    scrollbar-width: none;
  }

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

  .landing-topbar span {
    flex: 0 0 auto;

    padding:
      7px 10px;

    font-size: 11px;

    white-space: nowrap;
  }


  /* ---------- Social sharing ---------- */

  .landing-social-share {
    justify-content: flex-start;

    gap: 7px;

    margin:
      14px 2px 4px;
  }

  .landing-share-label {
    width: 100%;

    margin:
      0 0 2px;

    font-size: 10px;
  }

  .landing-social-share a {
    width: 36px;
    height: 36px;
  }


  /* ---------- CMS content ---------- */

  .landing-cms-content {
    width: 100%;
  }

  .landing-cms-content > section {
    margin:
      18px 0;

    padding:
      24px 18px;

    border-radius: 16px;
  }

  .landing-cms-content .cms-hero {
    min-height: auto;

    margin-top: 14px;

    padding:
      34px 20px;
  }

  .landing-cms-content h1 {
    margin:
      8px 0 16px;

    max-width: 100%;

    font-size:
      clamp(
        34px,
        10vw,
        44px
      );

    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .landing-cms-content h2 {
    margin:
      6px 0 14px;

    max-width: 100%;

    font-size:
      clamp(
        25px,
        7.2vw,
        32px
      );

    line-height: 1.15;
    letter-spacing: -.02em;
  }

  .landing-cms-content h3 {
    margin:
      22px 0 8px;

    font-size: 19px;
    line-height: 1.3;
  }

  .landing-cms-content p,
  .landing-cms-content li {
    max-width: 100%;

    font-size: 16px;
    line-height: 1.68;
  }

  .landing-cms-content p {
    margin:
      0 0 14px;
  }

  .landing-cms-content ul,
  .landing-cms-content ol {
    padding-left: 22px;
  }

  .landing-cms-content li + li {
    margin-top: 7px;
  }


  /* ---------- Buttons ---------- */

  .landing-button,
  .landing-button-large {
    width: 100%;

    min-height: 50px;

    padding:
      0 16px;

    border-radius: 11px;

    font-size: 15px;

    text-align: center;
  }


  /* ---------- Pricing ---------- */

  .landing-pricing-grid {
    grid-template-columns: 1fr;

    gap: 12px;

    margin-top: 20px;
  }

  .landing-plan-card {
    min-height: 0;

    padding:
      20px 18px;

    border-radius: 15px;
  }

  .landing-plan-card h3 {
    margin:
      9px 0 2px;

    font-size: 20px;
  }

  .landing-plan-price {
    margin:
      7px 0 12px;

    font-size: 29px;
  }

  .landing-plan-card p {
    margin-bottom: 10px;

    font-size: 15px;
    line-height: 1.55;
  }

  .landing-plan-rule {
    margin-bottom: 16px !important;
  }

  .landing-plan-badge {
    padding:
      5px 8px;

    font-size: 10px;
  }


  /* ---------- Tables / media ---------- */

  .landing-cms-content table {
    display: block;

    max-width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
  }

  .landing-cms-content img {
    display: block;

    width: auto;
    max-width: 100%;

    margin:
      16px auto;

    border-radius: 10px;
  }


  /* ---------- Anchors ---------- */

  #how-it-works,
  #features,
  #pricing,
  #faq,
  #use-cases,
  #why-qrpayapi {
    scroll-margin-top: 78px;
  }


  /* ---------- Footer ---------- */

  .landing-footer {
    width: auto;

    margin:
      36px 14px 0;

    padding:
      28px 2px 34px;

    gap: 16px;
  }

  .landing-footer-links {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;
  }

  .landing-footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    border:
      1px solid var(--line);

    border-radius: 10px;
  }

  .landing-disclaimer {
    font-size: 12px;
    line-height: 1.6;
  }


  /* ---------- Touch comfort ---------- */

  button,
  .landing-button,
  .landing-nav a,
  .landing-footer a {
    touch-action: manipulation;
  }
}


/* Extra small phones */

@media (max-width: 390px) {

  .landing-header {
    padding:
      9px 10px;
  }

  .landing-brand strong {
    font-size: 14px;
  }

  .landing-nav > a[href="/login.html"],
  .landing-nav > .landing-nav-cta {
    padding:
      0 9px;

    font-size: 12px;
  }

  .landing-main {
    padding:
      0 9px;
  }

  .landing-cms-content > section {
    padding:
      22px 16px;
  }

  .landing-cms-content h1 {
    font-size: 32px;
  }

  .landing-cms-content h2 {
    font-size: 25px;
  }
}

/* =========================================================
   Tenant Plans & Subscription
   ========================================================= */

.tenant-subscription-section {
  margin-top: 18px;
  padding: 22px;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: var(--panel);
}

.tenant-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 18px;
}

.tenant-section-heading h2 {
  margin:
    3px 0 6px;
}

.tenant-subscription-current {
  min-height: 80px;
}

.tenant-no-subscription,
.tenant-active-subscription {
  padding: 20px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(255, 255, 255, .025);
}

.tenant-no-subscription h3,
.tenant-active-subscription h3 {
  margin:
    8px 0;
}

.tenant-subscription-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tenant-active-badge {
  display: inline-block;

  padding:
    5px 8px;

  border-radius: 999px;

  background:
    rgba(34, 197, 94, .12);

  color: #86efac;

  font-size: 10px;
  font-weight: 900;
}

.tenant-quota-big {
  text-align: right;
}

.tenant-quota-big strong {
  font-size: 25px;
}

.tenant-quota-big span {
  color: var(--muted);
  font-size: 13px;
}

.tenant-subscription-stats {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 10px;

  margin-top: 18px;
}

.tenant-stat {
  display: grid;
  gap: 5px;

  padding: 13px;

  border: 1px solid var(--line);
  border-radius: 11px;
}

.tenant-stat span {
  color: var(--muted);
  font-size: 11px;
}

.tenant-stat strong {
  font-size: 14px;
}

.tenant-progress {
  margin-top: 16px;
}

.tenant-progress p {
  margin:
    0 0 7px;
}

.tenant-progress-bar {
  height: 9px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, .08);
}

.tenant-progress-bar span {
  display: block;
  height: 100%;

  border-radius: inherit;

  background: var(--accent);
}

.tenant-plans-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 13px;

  margin-top: 16px;
}

.tenant-plan-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 350px;

  padding: 19px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(255, 255, 255, .025);
}

.tenant-plan-card h3 {
  margin:
    5px 0;
}

.tenant-plan-group {
  margin: 0;

  color: var(--muted);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
}

.tenant-plan-badge {
  align-self: flex-start;

  margin-bottom: 9px;

  padding:
    5px 8px;

  border-radius: 999px;

  background:
    rgba(59, 130, 246, .15);

  color: #bfdbfe;

  font-size: 10px;
  font-weight: 900;
}

.tenant-plan-price {
  margin:
    5px 0 12px;

  font-size: 28px;
  font-weight: 900;
}

.tenant-plan-details p {
  margin:
    5px 0;

  color: var(--muted);

  font-size: 14px;
}

.tenant-plan-features {
  flex: 1;

  margin:
    14px 0 18px;

  padding-left: 20px;

  color: var(--muted);
}

.tenant-plan-features li {
  margin:
    6px 0;

  font-size: 13px;
}

.tenant-buy-button {
  margin-top: auto;
}

.tenant-buy-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}


@media (max-width: 1000px) {
  .tenant-plans-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .tenant-subscription-stats {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}


@media (max-width: 720px) {
  .tenant-subscription-section {
    margin-top: 12px;

    padding:
      18px 14px;

    border-radius: 14px;
  }

  .tenant-subscription-top {
    flex-direction: column;
  }

  .tenant-quota-big {
    text-align: left;
  }

  .tenant-plans-grid,
  .tenant-subscription-stats {
    grid-template-columns: 1fr;
  }

  .tenant-plan-card {
    min-height: 0;
  }
}

/* ===== Tenant Websites UI V1 ===== */

.tenant-nav-button {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tenant-websites-panel {
  display: grid;
  gap: 20px;
}

.tenant-websites-panel[hidden] {
  display: none !important;
}

.tenant-websites-top,
.tenant-websites-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tenant-website-create-card,
.tenant-websites-list-section,
.tenant-website-card,
.tenant-websites-empty {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.tenant-website-create-card,
.tenant-websites-list-section {
  padding: 20px;
}

#tenantWebsiteForm {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

#tenantWebsiteForm label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

#tenantWebsiteForm input {
  width: 100%;
}

.tenant-website-message {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 13px;
}

.tenant-website-message.success {
  color: #16803d;
}

.tenant-website-message.error {
  color: #b42318;
}

.tenant-websites-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.tenant-website-card {
  padding: 16px;
}

.tenant-website-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tenant-website-card-head h3 {
  margin: 0;
}

.tenant-website-status,
.tenant-domain-verified,
.tenant-domain-pending {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.tenant-website-status.active,
.tenant-domain-verified {
  background: rgba(22, 128, 61, .10);
  color: #16803d;
}

.tenant-website-status.disabled,
.tenant-domain-pending {
  background: rgba(180, 83, 9, .10);
  color: #b45309;
}

.tenant-website-domains {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.tenant-domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.tenant-website-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

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

@media (max-width: 820px) {
  #tenantWebsiteForm {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tenant-websites-top,
  .tenant-websites-list-heading,
  .tenant-domain-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tenant-websites-top .secondary-button,
  #tenantWebsiteSubmit {
    width: 100%;
  }

  .tenant-website-create-card,
  .tenant-websites-list-section {
    padding: 15px;
  }
}

/* ===== Tenant Websites UI V2 ===== */

.tenant-website-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.tenant-website-edit-form {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tenant-website-edit-form[hidden] {
  display: none !important;
}

.tenant-website-edit-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.tenant-website-edit-form input {
  width: 100%;
}

.tenant-website-edit-form
.tenant-website-actions,
.tenant-website-edit-form
.tenant-website-inline-message {
  grid-column: 1 / -1;
}

.tenant-website-inline-message {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 12px;
}

.tenant-website-inline-message.success {
  color: #16803d;
}

.tenant-website-inline-message.error {
  color: #b42318;
}

.tenant-verification-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tenant-verification-box h4 {
  margin: 0 0 6px;
}

.tenant-dns-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tenant-dns-record > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.tenant-dns-record span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.tenant-dns-record code {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12px;
}

.tenant-copy-button {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .tenant-website-edit-form {
    grid-template-columns: 1fr;
  }

  .tenant-website-edit-form
  .tenant-website-actions,
  .tenant-website-edit-form
  .tenant-website-inline-message {
    grid-column: auto;
  }

  .tenant-dns-record {
    align-items: stretch;
    flex-direction: column;
  }

  .tenant-copy-button,
  .tenant-website-actions button {
    width: 100%;
  }
}

/* ===== Tenant Paytm Connections UI V1 ===== */

.tenant-paytm-panel {
  display: grid;
  gap: 20px;
}

.tenant-paytm-panel[hidden] {
  display: none !important;
}

.tenant-paytm-top,
.tenant-paytm-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.tenant-paytm-connect-card,
.tenant-paytm-list-section,
.tenant-paytm-card,
.tenant-paytm-empty {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.tenant-paytm-connect-card,
.tenant-paytm-list-section {
  padding: 20px;
}

#tenantPaytmConnectForm {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

#tenantPaytmConnectForm label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.tenant-password-field {
  display: flex;
  align-items: stretch;
}

.tenant-password-field input {
  flex: 1;
  min-width: 0;
}

.tenant-password-eye {
  min-width: 44px;
  border: 1px solid var(--line);
  border-left: 0;
  background: transparent;
  cursor: pointer;
}

.tenant-paytm-message,
.tenant-paytm-inline-message {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 12px;
}

.tenant-paytm-message.success,
.tenant-paytm-inline-message.success {
  color: #16803d;
}

.tenant-paytm-message.error,
.tenant-paytm-inline-message.error {
  color: #b42318;
}

.tenant-paytm-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.tenant-paytm-card {
  padding: 16px;
}

.tenant-paytm-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tenant-paytm-card-head h3 {
  margin: 0;
}

.tenant-paytm-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.tenant-paytm-status.connected {
  background: rgba(22, 128, 61, .10);
  color: #16803d;
}

.tenant-paytm-status.awaiting_otp,
.tenant-paytm-status.connecting {
  background: rgba(180, 83, 9, .10);
  color: #b45309;
}

.tenant-paytm-status.error,
.tenant-paytm-status.session_expired {
  background: rgba(180, 35, 24, .10);
  color: #b42318;
}

.tenant-paytm-status.disconnected {
  background: rgba(100, 116, 139, .12);
  color: #64748b;
}

.tenant-paytm-details {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tenant-paytm-details > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tenant-paytm-details span {
  font-size: 11px;
  color: var(--muted);
}

.tenant-paytm-details strong {
  overflow-wrap: anywhere;
}

.tenant-paytm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.tenant-paytm-otp {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.tenant-paytm-otp input {
  flex: 1;
}

.tenant-danger-button {
  color: #b42318;
}

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

@media (max-width: 900px) {
  #tenantPaytmConnectForm {
    grid-template-columns:
      1fr 1fr;
  }
}

@media (max-width: 720px) {
  #tenantPaytmConnectForm,
  .tenant-paytm-details {
    grid-template-columns:
      1fr;
  }

  .tenant-paytm-top,
  .tenant-paytm-list-heading,
  .tenant-paytm-otp {
    flex-direction: column;
    align-items: stretch;
  }

  .tenant-paytm-actions button,
  .tenant-paytm-otp button,
  #tenantPaytmConnectSubmit,
  .tenant-paytm-top .secondary-button {
    width: 100%;
  }

  .tenant-paytm-connect-card,
  .tenant-paytm-list-section {
    padding: 15px;
  }
}

/* ===== Merchant Reconnect V1 ===== */

.paytm-reconnect-panel,
.tenant-paytm-reconnect {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(148, 163, 184, .06);
}

.paytm-reconnect-panel h3,
.tenant-paytm-reconnect h4 {
  margin-top: 0;
  margin-bottom: 6px;
}

.paytm-reconnect-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.tenant-paytm-reconnect {
  display: grid;
  gap: 10px;
}

.tenant-paytm-reconnect input {
  width: 100%;
}

@media (max-width: 720px) {
  .paytm-reconnect-grid {
    grid-template-columns: 1fr;
  }

  .paytm-reconnect-panel
    .admin-save-button,
  .tenant-paytm-reconnect
    .primary-button {
    width: 100%;
  }
}

/* ===== QRPayAPI mobile nav interaction fix V1 ===== */

.nav-item {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:focus:not(:focus-visible) {
  outline: none;
}

@media (hover: none), (pointer: coarse) {
  .nav-item:not(.active):hover {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .nav-item:active {
    transform: none !important;
  }
}

/* ===== QRPayAPI mobile nav interaction fix V1 ===== */

.nav-item {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:focus:not(:focus-visible) {
  outline: none;
}

@media (hover: none), (pointer: coarse) {
  .nav-item:not(.active):hover {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .nav-item:active {
    transform: none !important;
  }
}

/* ===== Super Admin clickable overview cards V1 ===== */

.metric-card-link {
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.metric-card-link:hover {
  transform: translateY(-2px);
}

.metric-card-link:active {
  transform: translateY(0);
}

.metric-card-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (hover: none), (pointer: coarse) {
  .metric-card-link:hover {
    transform: none;
  }
}

/* ===== Super Admin Website Cards V1 ===== */

.website-admin-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.website-admin-card {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    auto
    auto;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.website-admin-info h3 {
  margin: 0 0 4px;
}

.website-admin-info p {
  margin: 3px 0;
}

.website-admin-domain {
  font-weight: 700;
  word-break: break-word;
}

.website-admin-summary {
  display: grid;
  gap: 7px;
  min-width: 130px;
}

.website-admin-stat {
  font-size: .82rem;
  opacity: .75;
}

.website-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.website-admin-actions button {
  white-space: nowrap;
  touch-action: manipulation;
}

.website-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .62);
  overflow-y: auto;
}

.website-detail-modal {
  width: min(820px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface, #111827);
}

.website-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 12px;
  background: inherit;
}

.website-modal-header h2 {
  margin: 0;
}

.website-detail-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin-top: 10px;
}

.website-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid
    rgba(148, 163, 184, .16);
}

.website-detail-row span {
  opacity: .72;
}

.website-detail-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.website-modal-section {
  margin-top: 22px;
}

.website-modal-section h3 {
  margin-bottom: 10px;
}

.website-domain-row,
.website-modal-item {
  padding: 10px 0;
  border-bottom: 1px solid
    rgba(148, 163, 184, .16);
}

.website-modal-item p {
  margin: 4px 0 0;
}

.website-break-text {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .website-admin-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .website-admin-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .website-admin-actions {
    justify-content: stretch;
  }

  .website-admin-actions button {
    flex: 1 1 auto;
  }

  .website-detail-grid {
    grid-template-columns: 1fr;
  }

  .website-detail-modal {
    padding: 16px;
  }
}

/* ===== Tenant Merchant Cards V1 ===== */

.merchant-admin-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.merchant-admin-card {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    auto
    auto;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.merchant-admin-info h3 {
  margin: 0 0 4px;
}

.merchant-admin-info p {
  margin: 3px 0;
}

.merchant-admin-account {
  font-weight: 700;
}

.merchant-admin-summary {
  display: grid;
  gap: 7px;
  min-width: 145px;
}

.merchant-admin-stat {
  font-size: .82rem;
  opacity: .75;
}

.merchant-admin-actions {
  display: flex;
  justify-content: flex-end;
}

.merchant-admin-actions button {
  white-space: nowrap;
  touch-action: manipulation;
}

.merchant-readonly-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid
    rgba(148,163,184,.16);
}

@media (max-width: 760px) {
  .merchant-admin-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .merchant-admin-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .merchant-admin-actions {
    justify-content: stretch;
  }

  .merchant-admin-actions button {
    width: 100%;
  }
}

/* ===== Audit Cards V1 ===== */

.audit-admin-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.audit-admin-card {
  display: grid;
  grid-template-columns:
    minmax(240px, 1fr)
    minmax(150px, auto)
    auto;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.audit-admin-info h3 {
  margin: 0 0 5px;
  text-transform: capitalize;
}

.audit-admin-info p {
  margin: 3px 0;
}

.audit-admin-target {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.audit-admin-summary {
  display: grid;
  gap: 7px;
}

.audit-admin-time {
  font-size: .82rem;
  opacity: .75;
  white-space: nowrap;
}

.audit-admin-actions {
  display: flex;
  justify-content: flex-end;
}

.audit-admin-actions button {
  white-space: nowrap;
  touch-action: manipulation;
}

.audit-metadata-box {
  max-height: 300px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  font-size: .78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: rgba(0,0,0,.22);
}

@media (max-width: 760px) {
  .audit-admin-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .audit-admin-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .audit-admin-actions {
    justify-content: stretch;
  }

  .audit-admin-actions button {
    width: 100%;
  }

  .audit-admin-time {
    white-space: normal;
  }
}

/* ===== Plan Hide/Delete Controls V1 ===== */

.plan-admin-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid
    rgba(148,163,184,.16);
}

.plan-admin-controls .badge {
  margin-right: auto;
}

.plan-admin-controls button {
  white-space: nowrap;
  touch-action: manipulation;
}

@media (max-width: 600px) {
  .plan-admin-controls {
    display: grid;
    grid-template-columns:
      1fr 1fr;
  }

  .plan-admin-controls .badge {
    grid-column: 1 / -1;
    margin-right: 0;
  }

  .plan-admin-controls button {
    width: 100%;
  }
}

/* ===== Webhook Dashboard V1 ===== */

.webhook-page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.webhook-page-intro h2 {
  margin-bottom: 4px;
}

.webhook-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(110px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.webhook-summary-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid
    rgba(148,163,184,.16);
  background: rgba(255,255,255,.035);
}

.webhook-summary-card span {
  display: block;
  font-size: .75rem;
  opacity: .72;
}

.webhook-summary-card strong {
  display: block;
  margin-top: 5px;
  font-size: 1.35rem;
}

.webhook-admin-list {
  display: grid;
  gap: 12px;
}

.webhook-admin-card {
  display: grid;
  grid-template-columns:
    minmax(230px, 1fr)
    minmax(150px, auto)
    auto;
  gap: 18px;
  align-items: center;
  margin: 0;
}

.webhook-admin-info h3 {
  margin: 0 0 5px;
  text-transform: capitalize;
}

.webhook-admin-info p {
  margin: 3px 0;
}

.webhook-admin-website {
  font-weight: 700;
}

.webhook-admin-txn {
  overflow-wrap: anywhere;
}

.webhook-admin-summary {
  display: grid;
  gap: 6px;
}

.webhook-admin-stat {
  font-size: .78rem;
  opacity: .72;
}

.webhook-admin-actions {
  display: flex;
  justify-content: flex-end;
}

.webhook-delivered {
  border-color:
    rgba(34,197,94,.38) !important;
}

.webhook-failed {
  border-color:
    rgba(239,68,68,.42) !important;
}

.webhook-retrying {
  border-color:
    rgba(245,158,11,.45) !important;
}

.webhook-pending {
  border-color:
    rgba(59,130,246,.38) !important;
}

.webhook-empty-state {
  text-align: center;
  padding: 36px 20px;
}

.webhook-empty-state h3 {
  margin: 8px 0;
}

.webhook-empty-state p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.webhook-empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 1.5rem;
  border: 1px solid
    rgba(148,163,184,.24);
}

@media (max-width: 850px) {
  .webhook-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .webhook-admin-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .webhook-admin-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .webhook-admin-actions {
    justify-content: stretch;
  }

  .webhook-admin-actions button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .webhook-page-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .webhook-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

/* ===== Tenant Overview V1 ===== */

.tenant-overview-section {
  margin-top: 16px;
}

.tenant-overview-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tenant-overview-card {
  min-width: 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 16px;
  text-align: left;
  border: 1px solid
    rgba(148,163,184,.16);
  border-radius: 16px;
  background:
    rgba(255,255,255,.035);
  color: inherit;
}

button.tenant-overview-card {
  width: 100%;
  font: inherit;
}

.tenant-overview-card-link {
  cursor: pointer;
  touch-action: manipulation;
}

.tenant-overview-card-link:hover {
  transform: translateY(-1px);
  border-color:
    rgba(148,163,184,.32);
}

.tenant-overview-card-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.tenant-overview-label {
  font-size: .75rem;
  opacity: .72;
}

.tenant-overview-value {
  width: 100%;
  font-size: 1.35rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tenant-overview-hint {
  font-size: .72rem;
  opacity: .58;
}

.tenant-overview-error {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .tenant-overview-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .tenant-overview-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .tenant-overview-card {
    min-height: 105px;
    padding: 13px;
  }

  .tenant-overview-value {
    font-size: 1.08rem;
  }

  @media (hover: none) {
    .tenant-overview-card-link:hover {
      transform: none;
    }
  }
}

/* ===== Tenant Plans Separate Panel V1 ===== */

.tenant-plans-panel[hidden] {
  display: none !important;
}

.tenant-plans-panel {
  width: 100%;
}

.tenant-plans-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid
    rgba(148,163,184,.16);
  background:
    rgba(255,255,255,.035);
}

.tenant-plans-top h2 {
  margin-top: 3px;
  margin-bottom: 6px;
}

.tenant-plans-panel
.tenant-subscription-section {
  margin-top: 16px;
}

@media (max-width: 650px) {
  .tenant-plans-top {
    flex-direction: column;
  }

  .tenant-plans-top
  .secondary-button {
    width: 100%;
  }
}
