:root {
  --bg: #101319;
  --panel: #171b23;
  --panel-2: #202633;
  --panel-3: #252c3a;
  --ink: #f8fafc;
  --muted: #b7c0cf;
  --subtle: #8490a3;
  --line: #2a3241;
  --soft-line: #354052;
  --brand: #38bdf8;
  --brand-2: #34d399;
  --brand-soft: rgba(56, 189, 248, 0.12);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #fb7185;
  --focus: rgba(56, 189, 248, 0.28);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 34rem),
    linear-gradient(180deg, #121720 0%, #0f1319 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
  min-width: 0;
}

button {
  cursor: pointer;
  overflow-wrap: anywhere;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  background: var(--bg);
}

.public-page {
  background: var(--bg);
}

.public-section {
  padding: 82px 56px;
  border-top: 1px solid var(--line);
  background: #111620;
}

.public-section:nth-child(odd) {
  background: #0f1319;
}

.public-section.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: start;
}

.public-section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.public-section span,
.public-section-head span {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-section h2 {
  margin: 12px 0;
  max-width: 780px;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.02;
}

.public-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.public-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-grid article,
.public-plan-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.public-grid strong,
.public-plan-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.public-plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-plan-list div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.public-page,
.public-layout,
.public-main,
.public-section,
.home-hero,
.home-hero-grid,
.home-copy,
.platform-preview,
.preview-grid,
.auth-strip,
.simple-metrics,
.simple-steps,
.simple-cards,
.message-section,
.fixed-login {
  min-width: 0;
  max-width: 100%;
}

.public-grid > *,
.public-plan-list > *,
.preview-grid > *,
.simple-metrics > *,
.simple-steps > *,
.simple-cards > *,
.home-hero-grid > *,
.auth-strip > * {
  min-width: 0;
}

.public-plan-list strong {
  margin: 0;
}

.home-hero {
  min-height: 92vh;
  padding: 26px 56px 72px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.12), transparent 38%),
    linear-gradient(180deg, #141a24 0%, #0f1319 100%);
}

.public-nav {
  max-width: 1280px;
  margin: 0 auto 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.public-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.public-nav-links a:hover {
  color: var(--ink);
}

.home-hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 54px;
  align-items: center;
}

.home-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  width: fit-content;
  color: var(--brand-2);
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.home-copy p {
  margin: 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-preview {
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.preview-top span,
.preview-grid span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-top strong {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 30px;
}

.preview-chart {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  background: #10151e;
  border: 1px solid var(--line);
}

.preview-chart i {
  display: block;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

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

.preview-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.preview-grid strong {
  display: block;
  margin-top: 8px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.preview-feed {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.preview-feed div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.preview-feed span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-2);
}

.auth-strip {
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 38px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #0f1319;
}

.auth-strip > div {
  max-width: 720px;
}

.auth-strip span {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-strip h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

.brand-row,
.top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-row {
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.public-brand-logo {
  height: 74px;
}

.app-brand-logo {
  height: 62px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #061018;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
}

.metric-tile {
  min-height: 112px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
}

.metric-tile strong {
  display: block;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px;
}

.metric-tile span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
}

.login-card {
  width: 100%;
  max-width: 410px;
  padding: 28px;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 900;
}

.login-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

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

.auth-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.icon-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
}

.public-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
  padding: 34px 42px 72px;
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 189, 248, 0.11), transparent 30rem),
    linear-gradient(180deg, #121720 0%, #0f1319 100%);
}

.public-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 34px;
}

.public-brand {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.simple-hero {
  padding: 50px 0 14px;
  display: grid;
  gap: 22px;
}

.simple-hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1;
  font-weight: 900;
}

.simple-hero p,
.final-message p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.simple-metrics div,
.simple-steps article,
.simple-cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.simple-metrics div {
  padding: 18px;
}

.simple-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
}

.simple-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.message-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.message-section h2 {
  margin: 10px 0 18px;
  max-width: 760px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
}

.simple-steps,
.simple-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.simple-steps article,
.simple-cards article {
  padding: 20px;
}

.simple-steps span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #061018;
  background: var(--brand-2);
  font-weight: 900;
}

.simple-steps strong,
.simple-cards strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.simple-steps p,
.simple-cards p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.fixed-login {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 48px);
  display: grid;
  align-items: center;
}

.fixed-login .auth-panel {
  width: 100%;
}

.fixed-login .login-card {
  max-width: none;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 11, 17, 0.68);
  backdrop-filter: blur(10px);
}

.auth-modal-shell {
  width: min(430px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
}

.auth-modal-card {
  max-width: none;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #10151d;
  color: var(--ink);
  outline: none;
}

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

.field-note {
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field-note.success {
  color: #86efac;
}

.field-note.warning {
  color: #fbbf24;
}

.otp-preview {
  display: grid;
  gap: 4px;
  margin-top: 0;
  color: var(--muted);
}

.otp-preview strong {
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #10151d;
}

.segmented button {
  border: 0;
  border-radius: 6px;
  padding: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.segmented button.active {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 14px;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.primary-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #041018;
  border-color: transparent;
}

.primary-btn:hover {
  filter: brightness(1.06);
}

.secondary-btn {
  border-color: var(--line);
  background: #121821;
  color: var(--ink);
}

.ghost-btn {
  background: transparent;
  color: var(--muted);
}

.danger-btn {
  background: rgba(251, 113, 133, 0.12);
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.28);
}

.full {
  width: 100%;
}

.hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hint code {
  color: var(--ink);
  font-weight: 700;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  max-width: 100%;
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(17, 22, 31, 0.96);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.nav {
  display: grid;
  gap: 16px;
}

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

.nav-group > span {
  padding: 0 10px 4px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  min-height: 36px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 700;
}

.nav-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
}

.nav button.active,
.nav button:hover {
  background: var(--brand-soft);
  color: var(--ink);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.mode-pill,
.status-pill,
.role-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-2);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.main {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 74px;
  background: rgba(16, 19, 25, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 28px;
}

.topbar > div {
  min-width: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  overflow-wrap: anywhere;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.content {
  padding: 24px;
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.grid-4 > *,
.grid-3 > *,
.grid-2 > * {
  min-width: 0;
}

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

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

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

@supports selector(:has(*)) {
  .grid-2:has(table) {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.stat-card {
  padding: 18px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-card strong {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  line-height: 30px;
}

.stat-card small {
  color: var(--muted);
  line-height: 1.4;
}

.referral-strip {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.referral-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.referral-strip strong {
  display: block;
  margin: 5px 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 28px;
  letter-spacing: 0;
}

.referral-strip small {
  color: var(--muted);
}

.section {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.section-head > div {
  min-width: 0;
}

.section-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 24px;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.plans > * {
  min-width: 0;
}

.plan-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.plan-card h3 {
  margin: 0;
  font-size: 18px;
}

.plan-card .amount {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
}

.plan-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--soft-line);
  font-size: 13px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  background: #121821;
  font-size: 11px;
  text-transform: uppercase;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.pending {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
}

.badge.approved,
.badge.active,
.badge.completed {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
}

.badge.rejected,
.badge.failed {
  color: #fda4af;
  background: rgba(251, 113, 133, 0.14);
}

.badge.info {
  color: #bae6fd;
  background: var(--brand-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.form-grid > * {
  min-width: 0;
}

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

.form-card {
  padding: 18px;
}

.upi-box {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #111821;
}

.upi-box img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.upi-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.upi-box strong {
  display: block;
  margin: 8px 0 12px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.mini-btn {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
  min-width: 0;
  max-width: 100%;
}

.dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}

.dashboard-command > * {
  min-width: 0;
}

.compact-strip {
  min-height: 100%;
}

.priority-grid {
  align-items: stretch;
}

.bulk-actions {
  margin-bottom: 12px;
}

.inline-preview,
.check-row,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111821;
  color: var(--muted);
}

.inline-preview {
  margin: 12px 0;
  padding: 12px 14px;
  font-size: 13px;
}

.proof-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111821;
  overflow: hidden;
}

.proof-image {
  max-width: 100%;
  max-height: 360px;
  border-radius: 8px;
  object-fit: contain;
}

.proof-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 8px;
  background: var(--panel);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  padding: 12px 14px;
  font-size: 13px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
}

.filter-bar input,
.filter-bar select {
  width: min(260px, 100%);
  padding: 12px 14px;
  outline: none;
}

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

.segmented.compact {
  width: 100%;
  max-width: 360px;
  margin-bottom: 14px;
}

.segmented.category-tabs {
  width: 100%;
  max-width: 640px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.filter-bar.wide input {
  width: min(760px, 100%);
}

.next-action {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(52, 211, 153, 0.08));
}

.next-action span,
.search-results span {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-action strong {
  display: block;
  margin: 5px 0;
  font-size: 20px;
}

.next-action p {
  margin: 0;
  color: var(--muted);
}

.search-results {
  display: grid;
  gap: 10px;
}

.search-results article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.search-results p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.advanced-panel {
  display: grid;
  gap: 14px;
}

.advanced-panel summary {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121821;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.advanced-panel[open] summary {
  margin-bottom: 14px;
  border-color: rgba(56, 189, 248, 0.45);
  background: var(--brand-soft);
}

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

.process-flow article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.process-flow span {
  color: var(--brand);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.process-flow strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 18px;
}

.process-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.announcement {
  padding: 14px 18px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.announcement span {
  color: var(--muted);
}

.notice-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
}

.notice-list article.unread {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.notice-list article.pinned {
  border-left: 4px solid var(--brand);
}

.notice-list p {
  margin: 6px 0;
  color: var(--muted);
}

.notice-list small {
  color: var(--subtle);
}

.bar-chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #111821;
  min-width: 0;
  max-width: 100%;
}

.bar-item {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  align-items: end;
  text-align: center;
}

.bar-item span {
  width: 100%;
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.bar-item small {
  color: var(--subtle);
  font-size: 10px;
}

.referral-tree {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.tree-level {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #111821;
}

.tree-level > strong {
  color: var(--brand);
  font-size: 13px;
}

.tree-level > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.tree-level span {
  display: inline-grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 800;
  font-size: 12px;
}

.tree-level small,
.tree-level em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.invite-hero {
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.invite-hero span {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.invite-hero h2 {
  margin: 8px 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
}

.invite-hero p {
  margin: 0;
  color: var(--muted);
}

.progress-row {
  display: grid;
  grid-template-columns: 180px minmax(160px, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.progress-row strong {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px;
}

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

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-grid div {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #111821;
}

.calendar-grid div.credited {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(34, 197, 94, 0.1);
}

.calendar-grid div.pending {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.1);
}

.calendar-grid div.closed {
  color: var(--subtle);
  background: #111821;
}

.calendar-grid strong,
.calendar-grid span {
  display: block;
  font-size: 12px;
}

.ticket-list,
.timeline {
  display: grid;
  gap: 12px;
}

.ticket-card,
.timeline article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.ticket-card h3 {
  margin: 0;
  font-size: 16px;
}

.ticket-card p,
.timeline p {
  margin: 8px 0;
  color: var(--muted);
}

.timeline article {
  border-left: 3px solid var(--brand);
}

.empty {
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
}

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

.settings-row {
  display: grid;
  grid-template-columns: 1fr 150px 130px 110px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  min-width: 0;
  max-width: 100%;
}

.settings-row > * {
  min-width: 0;
}

.settings-row.salary {
  grid-template-columns: 1fr 160px 160px;
}

.settings-row.referral {
  grid-template-columns: 1fr 160px;
}

.settings-row.template {
  grid-template-columns: 220px 1fr;
}

.settings-row.deposit-method {
  grid-template-columns: 150px 190px 1fr 110px;
}

.mobile-nav-toggle {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(380px, calc(100vw - 24px));
  padding: 13px 15px;
  border-radius: 8px;
  color: var(--ink);
  background: #070b11;
  border: 1px solid var(--line);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
  font-size: 14px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.hidden {
  display: none !important;
}

.settings-sticky {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}

.table-tools,
.pager {
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 12px 0;
}

.table-tools .field {
  min-width: 180px;
  margin-bottom: 0;
}

.pager span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.rich-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  text-align: left;
}

.rich-empty p {
  margin: 0;
  color: var(--muted);
}

.modal-backdrop,
.action-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-items: end;
  background: rgba(15, 17, 21, 0.34);
}

.detail-drawer {
  width: min(620px, 100%);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(15, 17, 21, 0.16);
}

.action-modal-backdrop {
  place-items: center;
  justify-items: center;
  padding: 20px;
}

.action-modal {
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(15, 17, 21, 0.18);
}

.status-timeline {
  display: grid;
  gap: 10px;
  margin: 14px 0 20px;
}

.status-timeline article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.status-timeline span {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 999px;
  border: 2px solid var(--soft-line);
}

.status-timeline article.done span {
  border-color: var(--success);
  background: var(--success);
}

.status-timeline strong {
  display: block;
}

.status-timeline small {
  color: var(--muted);
}

.user-tabs,
.settings-sticky .segmented {
  overflow-x: auto;
  justify-content: flex-start;
}

@media (max-width: 1120px) {
  .grid-4,
  .plans,
  .process-flow,
  .simple-steps,
  .simple-cards,
  .simple-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-grid,
  .auth-strip,
  .public-layout,
  .dashboard-command {
    grid-template-columns: 1fr;
  }

  .fixed-login {
    position: static;
    min-height: auto;
    align-items: start;
  }
}

@media (max-width: 860px) {
  html,
  body,
  .app-shell,
  .main,
  .content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .public-section,
  .home-hero,
  .auth-strip,
  .public-layout {
    padding: 28px;
  }

  .public-section.split,
  .public-grid,
  .public-grid.four,
  .public-plan-list,
  .process-flow,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .simple-steps,
  .simple-cards,
  .simple-metrics {
    grid-template-columns: 1fr;
  }

  .simple-hero {
    padding-top: 28px;
  }

  .simple-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .public-nav {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 42px;
  }

  .public-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-actions {
    width: 100%;
    justify-content: stretch;
  }

  .public-actions > * {
    flex: 1 1 150px;
  }

  .public-nav-links {
    flex-wrap: wrap;
  }

  .home-copy h1 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .public-plan-list div {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: auto;
    gap: 42px;
  }

  .auth-panel {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

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

  .sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: min(84vw, 300px);
  }

  .sidebar.open {
    display: flex;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

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

  .topbar h1 {
    font-size: 21px;
    line-height: 28px;
  }

  .content {
    padding: 18px 16px 28px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .plans,
  .dashboard-command,
  .form-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .settings-row,
  .settings-row.salary,
  .settings-row.referral,
  .settings-row.template,
  .settings-row.deposit-method {
    grid-template-columns: 1fr;
  }

  .referral-strip,
  .invite-hero,
  .upi-box {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .referral-strip,
  .invite-hero,
  .next-action {
    flex-direction: column;
    align-items: stretch;
  }

  .progress-row,
  .calendar-grid,
  .segmented.category-tabs {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  tr {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 10px;
  }

  td {
    display: grid;
    grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
    gap: 8px;
    padding: 9px 4px;
    border-bottom: 1px solid var(--soft-line);
    text-align: left;
    overflow-wrap: anywhere;
  }

  td > * {
    min-width: 0;
  }

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

  td::before {
    content: attr(data-label);
    color: var(--subtle);
    font-weight: 800;
    text-align: left;
  }

  .notice-list article,
  .tree-level {
    grid-template-columns: 1fr;
  }

  .notice-list article {
    flex-direction: column;
    align-items: stretch;
  }

  .bar-chart {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .quick-actions,
  .actions,
  .home-actions {
    width: 100%;
  }

  .quick-actions > *,
  .actions > *,
  .home-actions > * {
    flex: 1 1 150px;
    min-width: 0;
  }

  .section-head,
  .preview-top,
  .announcement,
  .table-tools,
  .pager {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar input,
  .filter-bar select,
  .table-tools .field {
    width: 100%;
    min-width: 0;
  }

  .segmented,
  .segmented.compact,
  .segmented.category-tabs,
  .settings-sticky .segmented {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .user-tabs {
    display: flex;
    flex-wrap: nowrap;
  }

  .user-tabs button {
    flex: 0 0 auto;
  }

  .settings-sticky .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .detail-drawer {
    padding: 18px 14px;
  }

  .action-modal {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .public-layout,
  .public-section,
  .home-hero,
  .auth-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .public-layout {
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .simple-hero {
    padding-top: 24px;
  }

  .simple-hero h1,
  .home-copy h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.02;
  }

  .simple-hero p,
  .final-message p,
  .home-copy p {
    font-size: 15px;
    line-height: 1.6;
  }

  .login-card,
  .platform-preview,
  .form-card,
  .plan-card,
  .invite-hero,
  .referral-strip {
    padding: 16px;
  }

  .auth-modal-backdrop {
    padding: 14px;
    align-items: start;
    overflow: auto;
  }

  .auth-modal-shell {
    max-height: none;
    margin: 18px 0;
  }

  .auth-card-head {
    gap: 12px;
  }

  .content {
    padding: 14px 12px 24px;
    gap: 14px;
  }

  .topbar {
    padding: 10px 12px;
    gap: 10px;
  }

  .stat-card {
    min-height: 96px;
    padding: 15px;
  }

  .stat-card strong,
  .metric-tile strong,
  .plan-card .amount,
  .referral-strip strong {
    font-size: 20px;
    line-height: 28px;
  }

  .invite-hero h2 {
    font-size: clamp(34px, 14vw, 52px);
  }

  .upi-box {
    padding: 12px;
  }

  .upi-box img {
    width: min(150px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .quick-actions > *,
  .actions > *,
  .home-actions > * {
    flex-basis: 100%;
  }

  td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  td::before {
    margin-bottom: 2px;
  }

  .bar-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 230px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
  }
}
