:root {
  --ink: #0f2742;
  --muted: #60738a;
  --primary: #083b87;
  --primary-2: #0757b8;
  --sky: #ecfbff;
  --line: #cfe1ec;
  --success: #0f9f6e;
  --danger: #d93654;
  --warn: #c98500;
  --panel: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(8, 59, 135, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(155deg, #d9fbff 0%, #94edf3 42%, #39c9c7 100%);
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #102137;
}

.boot-card {
  width: min(440px, 100%);
  padding: 34px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  text-align: center;
}

.boot-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.boot-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.boot-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.boot-card a {
  color: var(--primary);
  font-weight: 800;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-wrap {
  width: min(560px, 100%);
  text-align: center;
}

.brand-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border-radius: 22px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(8, 59, 135, 0.24);
}

.brand-mark svg {
  width: 36px;
  height: 36px;
}

.glass-card {
  padding: 52px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.83), rgba(229, 251, 251, 0.78));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
}

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

.auth-title {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-subtitle {
  margin-bottom: 30px;
  color: #425b72;
  font-size: 18px;
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 30px;
  padding: 5px;
  border-radius: 22px;
  background: rgba(226, 239, 244, 0.88);
}

.tab-button {
  min-height: 45px;
  border-radius: 17px;
  color: #486072;
  font-weight: 700;
  background: transparent;
  transition: 180ms ease;
}

.tab-button.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 6px 18px rgba(25, 57, 92, 0.1);
}

.form-stack {
  display: grid;
  gap: 18px;
  text-align: left;
}

.field {
  position: relative;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  padding: 0 48px 0 54px;
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
  padding-top: 16px;
}

.field select {
  appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #6cbfe9;
  box-shadow: 0 0 0 4px rgba(76, 181, 230, 0.16);
  background: #fff;
}

.field-icon,
.field-action {
  position: absolute;
  top: 28px;
  transform: translateY(-50%);
  color: #637789;
}

.field-icon {
  left: 18px;
}

.field-action {
  right: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
}

.field-action:hover {
  color: var(--primary);
  background: #eef8ff;
}

.hint {
  margin: 7px 4px 0;
  color: #6d7f8f;
  font-size: 13px;
}

.upload-field {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #9fcde7;
  border-radius: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #f1fbff);
  cursor: pointer;
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.upload-field:hover,
.upload-field:focus-within {
  border-color: #5ab8e7;
  box-shadow: 0 0 0 4px rgba(76, 181, 230, 0.14);
  background: #fff;
}

.upload-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: #eaf7ff;
}

.upload-icon svg {
  width: 22px;
  height: 22px;
}

.upload-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.upload-copy strong {
  font-size: 14px;
  color: var(--primary);
}

.upload-copy small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.upload-preview {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid #d7e8f2;
  border-radius: 10px;
  background: #fff;
}

.upload-preview.show {
  display: block;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #43586d;
  font-size: 14px;
  line-height: 1.5;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 800;
  transition: 170ms ease;
}

.primary-button {
  width: 100%;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(8, 59, 135, 0.2);
}

.primary-button:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--primary);
  border: 1px solid #b9d7ea;
  background: #fff;
  padding: 0 16px;
}

.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  background: #eef8ff;
}

.danger-button {
  color: #fff;
  background: var(--danger);
  padding: 0 14px;
}

.ghost-button {
  color: var(--primary);
  background: transparent;
  padding: 0 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: #fff;
  border: 1px solid #d8e8f2;
}

.auth-footer {
  margin: 22px 0 0;
  color: #4d6679;
}

.brand-footer {
  margin-top: 30px;
  color: var(--primary);
  font-weight: 500;
}

.notice {
  display: none;
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 14px;
  color: #074779;
  background: #dff6ff;
  border: 1px solid #bce8fa;
  text-align: left;
  font-size: 14px;
}

.notice.show {
  display: block;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background: #f7fcff;
}

.admin-dashboard {
  grid-template-columns: 190px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  color: #fff;
  background: linear-gradient(180deg, #073d87, #0a65b6 70%, #0aa6bf);
}

.admin-dashboard .sidebar {
  padding: 20px 12px;
}

.admin-dashboard .side-brand {
  gap: 9px;
  font-size: 18px;
}

.admin-dashboard .nav-button {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 21px;
  font-weight: 900;
}

.side-brand .mini-mark,
.top-profile .mini-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: #fff;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  padding: 0 14px;
  font-weight: 750;
  text-align: left;
}

.nav-icon {
  display: none;
  flex: 0 0 auto;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-text {
  min-width: 0;
}

.nav-badge {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 12px;
}

.nav-button.active,
.nav-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-topbar {
  justify-content: flex-end;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  color: var(--primary);
}

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

.top-profile {
  position: relative;
}

.profile-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8e8f2;
  box-shadow: 0 10px 24px rgba(21, 64, 110, 0.08);
}

.profile-menu {
  position: absolute;
  top: 58px;
  right: 0;
  z-index: 8;
  min-width: 220px;
  display: none;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d8e8f2;
  box-shadow: var(--shadow);
}

.profile-menu.open {
  display: grid;
}

.profile-menu button {
  min-height: 42px;
  text-align: left;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
}

.profile-menu button:hover {
  background: #eef8ff;
}

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

.metric-card,
.panel,
.table-panel,
.market-tile,
.payment-card {
  background: #fff;
  border: 1px solid #dbeaf2;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(21, 64, 110, 0.08);
}

.metric-card {
  padding: 18px;
}

.metric-card span,
.table-panel .caption,
.payment-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  color: var(--primary);
}

.panel {
  padding: 18px;
  margin-bottom: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  color: var(--ink);
}

.market-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.market-tile {
  padding: 16px;
}

.market-tile .value {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.market-tile strong {
  font-size: 24px;
  color: var(--primary);
}

.up {
  color: var(--success);
  font-weight: 800;
}

.down {
  color: var(--danger);
  font-weight: 800;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.export-toolbar {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #c9e7f7;
  border-radius: 12px;
  background: #f3fbff;
}

.export-toolbar strong {
  color: var(--primary);
  font-size: 16px;
  margin-right: auto;
}

.export-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.export-toolbar input {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #c6ddeb;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 800;
  outline: 0;
}

.market-updated {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid #d3e4ef;
  border-radius: 14px;
  outline: 0;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #698295;
}

.table-panel {
  overflow: hidden;
}

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

.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #e5edf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 64, 110, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-control-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-search-box {
  position: relative;
  display: block;
  width: min(250px, 32vw);
}

.table-search-box input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 38px;
  border: 1px solid #e1e9ef;
  border-radius: 8px;
  color: var(--ink);
  outline: 0;
  box-shadow: 0 6px 16px rgba(21, 64, 110, 0.05);
}

.table-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #6c7d8b;
}

.export-dropdown {
  position: relative;
}

.export-dropdown summary {
  min-height: 42px;
  border-radius: 8px;
  list-style: none;
  cursor: pointer;
}

.button-icon {
  width: 17px;
  height: 17px;
}

.export-dropdown summary::-webkit-details-marker {
  display: none;
}

.export-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 9;
  min-width: 260px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c9e7f7;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.export-menu label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.export-menu input {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #c6ddeb;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  outline: 0;
}

.page-size-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e1e9ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(21, 64, 110, 0.05);
  white-space: nowrap;
}

.page-size-select select {
  min-height: 34px;
  padding: 0 18px 0 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  outline: 0;
}

.table-action-button {
  width: auto;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
}

.pager-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.pager-buttons .ghost-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #e1e9ef;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.pager-buttons .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

.admin-table {
  min-width: 980px;
}

.users-admin-table {
  min-width: 1120px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e6f0f5;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #52697c;
  background: #f4fbff;
  font-size: 13px;
  text-transform: uppercase;
}

.fund-col,
.status-col,
.action-col {
  width: 1%;
  white-space: nowrap;
}

td {
  color: #24394b;
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.status.pending {
  color: #96630a;
  background: #fff2cb;
}

.status.no_kyc {
  color: #52697c;
  background: #eef5f9;
}

.status.approved {
  color: #08744f;
  background: #dff8ef;
}

.status.rejected {
  color: #aa1832;
  background: #ffe2e8;
}

.request-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.request-badge.deposit {
  color: #08744f;
  background: #dff8ef;
}

.request-badge.withdrawal {
  color: #aa1832;
  background: #ffe2e8;
}

.secure-text {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #52697c;
  background: #eef5f9;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.password-text {
  color: var(--primary);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.fund-cell,
.status-cell {
  white-space: nowrap;
}

.fund-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #b9d7ea;
  border-radius: 9px;
  color: var(--primary);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fund-edit-button:hover {
  background: #eef8ff;
}

.status-action-button {
  width: auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.actions .primary-button,
.actions .secondary-button,
.actions .danger-button,
.actions .ghost-button,
.toolbar .primary-button,
.toolbar .secondary-button {
  width: auto;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
}

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

.confirmation-actions .primary-button {
  width: auto;
  min-width: 160px;
  padding: 0 18px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-card {
  padding: 16px;
  border-color: #9bdff1;
  background: linear-gradient(180deg, #ffffff, #edfbff);
}

.payment-card strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
  color: var(--primary);
}

.fund-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #cfe8f3;
  border-radius: 8px;
  background: #f5fcff;
}

.fund-preview-item {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.fund-preview-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fund-preview-item strong {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.settings-page {
  display: grid;
  gap: 16px;
}

.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #ffffff, #edfaff);
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: #08744f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.settings-hero h2,
.settings-card h3 {
  margin: 0;
  color: var(--primary);
}

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

.settings-save {
  width: auto;
  min-width: 170px;
  padding: 0 20px;
}

.settings-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1.25fr);
  gap: 14px;
}

.settings-summary-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbeaf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(21, 64, 110, 0.08);
}

.settings-summary-item span,
.settings-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-summary-item strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 16px;
}

.settings-card {
  display: grid;
  align-content: start;
  gap: 16px;
  margin-bottom: 0;
}

.settings-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upi-list,
.bank-form-grid {
  display: grid;
  gap: 12px;
}

.upi-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbeaf2;
  border-radius: 8px;
  background: #f8fcff;
}

.upi-row.active {
  border-color: #8adfc4;
  background: #f0fff8;
}

.radio-row {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.radio-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.compact-field input {
  min-height: 46px;
  border-radius: 12px;
}

.compact-field .field-icon {
  top: 23px;
}

.compact-button {
  width: auto;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
}

.add-upi-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-top: 4px;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(8, 34, 66, 0.38);
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: min(760px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(3, 28, 63, 0.28);
}

.modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid #e4eef5;
  background: #fff;
}

.modal-head h3 {
  margin: 0;
  color: var(--primary);
}

.modal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.modal-meta strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.modal-body {
  padding: 18px;
}

.kyc-detail-view {
  display: grid;
  gap: 16px;
}

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

.file-box {
  min-height: 120px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--ink);
  border: 1px solid #d7e8f2;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(21, 64, 110, 0.07);
}

.file-box img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e1edf4;
  background: #f8fbfd;
}

.kyc-preview {
  align-content: start;
}

.kyc-document-card strong {
  color: var(--primary);
  font-size: 16px;
}

.kyc-document-card small,
.kyc-document-card span {
  color: var(--muted);
  font-weight: 800;
}

.document-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  text-align: left;
}

.document-card-head .ghost-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.kyc-document-loading {
  background: linear-gradient(90deg, #f7fbfe, #eef7fc, #f7fbfe);
}

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

.history-list {
  display: none;
}

.landing-screen {
  min-height: 100vh;
  overflow: hidden;
  color: #11151d;
  background: #fff;
}

.landing-hero {
  position: relative;
  min-height: 906px;
  display: flex;
  justify-content: center;
  padding: 127px 24px 124px;
  color: #fff;
  background:
    radial-gradient(circle at 83% 66%, rgba(82, 237, 216, 0.78) 0 18%, rgba(52, 212, 205, 0.3) 35%, transparent 52%),
    linear-gradient(118deg, #14257e 0%, #155c8e 36%, #2ca7b7 67%, #39d5c4 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -74px -58px;
  width: 270px;
  height: 140px;
  background: #fff;
  transform: rotate(18deg);
  transform-origin: left bottom;
}

.landing-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -92px;
  width: min(900px, 64vw);
  height: 120px;
  border-radius: 50% 50% 0 0;
  background: #fff;
  transform: translateX(-50%);
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-pill,
.section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.landing-pill {
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.landing-pill svg,
.section-pill svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.landing-hero h1 {
  margin: 32px 0 28px;
  max-width: 800px;
  color: #fff;
  font-size: 92px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.landing-hero h1 span {
  color: rgba(255, 255, 255, 0.78);
}

.landing-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 31px;
  line-height: 1.28;
  font-weight: 500;
}

.landing-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 42px;
}

.landing-primary,
.landing-secondary {
  min-height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #040d68;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: none;
}

.landing-primary {
  min-width: 273px;
  gap: 22px;
}

.landing-secondary {
  min-width: 176px;
  color: #050505;
  background: #f7f7f8;
}

.landing-primary span {
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.landing-feature-grid {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 31px;
  margin-top: 60px;
}

.landing-feature {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 28px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 21px;
  font-weight: 900;
}

.landing-feature svg {
  width: 30px;
  height: 30px;
  color: #49eadc;
  flex: 0 0 auto;
}

.landing-benefits {
  padding: 32px 46px 34px;
  background: #fff;
  text-align: center;
}

.section-pill {
  min-height: 46px;
  padding: 0 22px;
  color: #051c8f;
  background: #e6e8f0;
  font-size: 18px;
}

.landing-benefits h2 {
  margin: 22px auto 26px;
  color: #12151c;
  font-size: 62px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.landing-benefits h2 span {
  color: #10268f;
}

.benefits-lede {
  max-width: 845px;
  margin: 0 auto 84px;
  color: #657081;
  font-size: 27px;
  line-height: 1.34;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  margin: 0 auto;
  max-width: 1712px;
}

.benefit-card {
  min-height: 258px;
  padding: 31px;
  border-radius: 18px;
  border: 1px solid #f0f2f5;
  background: #fff;
  box-shadow: 0 18px 46px rgba(24, 35, 54, 0.035);
  text-align: left;
}

.benefit-card:nth-child(6) {
  box-shadow: 0 20px 58px rgba(18, 31, 50, 0.1);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 13px;
  color: #fff;
}

.benefit-icon svg {
  width: 31px;
  height: 31px;
}

.benefit-icon.blue {
  background: #122894;
}

.benefit-icon.mint {
  background: #4bdbd1;
}

.benefit-icon.green {
  background: #2cac61;
}

.benefit-icon.cyan {
  background: linear-gradient(135deg, #122d8c, #37d5c9);
}

.benefit-icon.mixed {
  background: linear-gradient(135deg, #45dccc, #102a8f);
}

.benefit-icon.gold {
  background: #ffab19;
}

.benefit-card h3 {
  margin: 0 0 24px;
  color: #02060d;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
}

.benefit-card p {
  max-width: 490px;
  margin: 0;
  color: #59687a;
  font-size: 19px;
  line-height: 1.48;
  font-weight: 500;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1600px;
  margin: 100px auto 0;
}

.landing-stats div {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.landing-stats strong {
  color: #10268f;
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
}

.landing-stats span {
  color: #5c6877;
  font-size: 19px;
  font-weight: 500;
}

@media (max-width: 980px) {
  .landing-hero {
    min-height: auto;
    padding-top: 88px;
  }

  .landing-hero h1 {
    font-size: 70px;
  }

  .landing-hero p,
  .benefits-lede {
    font-size: 23px;
  }

  .landing-feature-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .landing-benefits h2 {
    font-size: 48px;
  }

  .benefits-lede {
    margin-bottom: 44px;
  }

  .landing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 58px;
  }

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

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .side-brand {
    margin-bottom: 14px;
  }

  .nav-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

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

  .settings-summary,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background: #f7fcff;
  }

  .landing-hero {
    padding: 58px 18px 96px;
  }

  .landing-hero::after {
    width: 86vw;
  }

  .landing-pill,
  .section-pill {
    min-height: 40px;
    font-size: 14px;
  }

  .landing-hero h1 {
    margin: 28px 0 22px;
    font-size: 48px;
  }

  .landing-hero p {
    font-size: 20px;
  }

  .landing-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  .landing-primary,
  .landing-secondary {
    width: 100%;
    min-width: 0;
  }

  .landing-feature-grid {
    gap: 14px;
    margin-top: 36px;
  }

  .landing-feature {
    min-height: 74px;
    justify-content: flex-start;
    font-size: 18px;
  }

  .landing-benefits {
    position: relative;
    z-index: 2;
    padding: 72px 20px 38px;
  }

  .landing-benefits h2 {
    max-width: 360px;
    font-size: 34px;
    line-height: 1.08;
  }

  .landing-benefits h2 br {
    display: none;
  }

  .benefits-lede {
    font-size: 18px;
  }

  .benefit-grid {
    gap: 18px;
  }

  .benefit-card {
    min-height: auto;
    padding: 24px;
  }

  .benefit-card h3 {
    font-size: 23px;
  }

  .benefit-card p {
    font-size: 17px;
  }

  .landing-stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .landing-stats strong {
    font-size: 42px;
  }

  .user-dashboard {
    min-height: 100svh;
    display: block;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .user-dashboard .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 15;
    height: auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    color: var(--primary);
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #dbeaf2;
    box-shadow: 0 -12px 34px rgba(21, 64, 110, 0.13);
    backdrop-filter: blur(16px);
  }

  .user-dashboard .side-brand {
    display: none;
  }

  .user-dashboard .nav-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 4px;
    overflow: visible;
    padding: 0;
  }

  .user-dashboard .nav-button {
    position: relative;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 5px 4px;
    border-radius: 8px;
    color: #6d8091;
    background: transparent;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .user-dashboard .nav-icon {
    display: block;
  }

  .user-dashboard .nav-button.active {
    color: var(--primary);
    background: #eaf6ff;
  }

  .user-dashboard .nav-button:hover {
    color: var(--primary);
    background: #eef8ff;
  }

  .user-dashboard .nav-badge {
    position: absolute;
    top: 3px;
    right: calc(50% - 22px);
    min-width: 18px;
    height: 18px;
    color: #fff;
    background: var(--danger);
    font-size: 10px;
  }

  .auth-screen {
    min-height: 100svh;
    place-items: start center;
    padding: 14px;
    align-items: start;
  }

  .auth-wrap {
    width: min(100%, 430px);
  }

  .glass-card {
    width: 100%;
    padding: 24px 16px;
    border-radius: 20px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .brand-mark svg {
    width: 29px;
    height: 29px;
  }

  .auth-title {
    font-size: 28px;
  }

  .auth-subtitle {
    font-size: 15px;
    line-height: 1.38;
    margin-bottom: 18px;
  }

  .auth-tabs {
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .tab-button {
    min-height: 42px;
    border-radius: 12px;
  }

  .field input,
  .field textarea,
  .field select {
    min-height: 52px;
    border-radius: 15px;
    padding-right: 44px;
    padding-left: 48px;
    font-size: 16px;
  }

  .field-icon {
    left: 16px;
  }

  .field-action {
    right: 12px;
  }

  .form-stack {
    gap: 14px;
  }

  .auth-row {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    line-height: 1.35;
  }

  .auth-footer,
  .brand-footer {
    font-size: 14px;
    line-height: 1.4;
  }

  .auth-footer {
    margin-top: 4px;
    text-align: center;
  }

  .brand-footer {
    margin-top: 16px;
  }

  .content {
    padding: 14px;
  }

  .user-dashboard .content {
    padding-bottom: 18px;
  }

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

  .history-table-panel {
    display: none;
  }

  .history-item {
    padding: 14px;
    border: 1px solid #dbeaf2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(21, 64, 110, 0.07);
  }

  .history-main,
  .history-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .history-main strong {
    color: var(--primary);
    font-size: 16px;
  }

  .history-main span {
    font-size: 16px;
  }

  .history-meta {
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
  }

  .history-meta span {
    padding-right: 10px;
    border-right: 1px solid #dbeaf2;
  }

  .history-meta span:last-child {
    border-right: 0;
  }

  .topbar,
  .panel-head,
  .toolbar,
  .auth-row,
  .settings-hero,
  .settings-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-button {
    width: 100%;
    justify-content: space-between;
  }

  .profile-menu {
    left: 0;
    right: 0;
  }

  .metric-grid,
  .market-row,
  .payment-grid,
  .split-grid,
  .kyc-document-grid,
  .kyc-info-grid,
  .fund-preview,
  .settings-summary,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-save {
    width: 100%;
  }

  .upi-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .add-upi-row {
    grid-template-columns: 1fr;
  }

  .radio-row {
    justify-content: space-between;
  }

  .admin-dashboard .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    gap: 5px;
  }

  .admin-dashboard .nav-button {
    min-height: 44px;
    justify-content: center;
    padding: 0 4px;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
  }

  .admin-dashboard .sidebar {
    padding: 12px 10px 14px;
  }

  .admin-dashboard .side-brand {
    margin-bottom: 12px;
  }

  .topbar p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .admin-dashboard .top-profile {
    display: block;
  }

  .side-brand {
    font-size: 19px;
  }

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

  .panel,
  .metric-card,
  .market-tile,
  .payment-card {
    padding: 14px;
  }

  .panel {
    margin-bottom: 14px;
  }

  .panel-head h2,
  .panel-head h3 {
    font-size: 22px;
  }

  .primary-button,
  .secondary-button,
  .danger-button,
  .ghost-button {
    width: 100%;
    min-height: 48px;
  }

  .actions .primary-button,
  .actions .secondary-button,
  .actions .danger-button,
  .actions .ghost-button,
  .toolbar .primary-button,
  .toolbar .secondary-button,
  .fund-edit-button {
    width: auto;
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

  .table-panel {
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .table-controls {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  .table-control-left {
    width: 100%;
    flex-wrap: wrap;
  }

  .table-search-box {
    width: 100%;
  }

  .page-size-select,
  .export-dropdown,
  .pager-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .export-dropdown summary {
    width: 100%;
    justify-content: center;
  }

  .export-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }

  .page-size-select select {
    min-width: 96px;
  }

  .pager-buttons .ghost-button {
    width: auto;
    min-height: 36px;
  }

  .table-wrap {
    overflow: visible;
  }

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

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tr {
    border: 1px solid #dbeaf2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(21, 64, 110, 0.07);
    overflow: hidden;
  }

  td {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(86px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #edf4f8;
    color: #24394b;
    text-align: left;
    overflow-wrap: anywhere;
  }

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

  td::before {
    content: attr(data-label);
    color: #52697c;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  td.actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  td.actions::before {
    flex: 0 0 38%;
    min-width: 86px;
    margin-bottom: 0;
  }

  .actions {
    width: 100%;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .modal-backdrop {
    padding: 10px;
    align-items: end;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }

  .modal-head,
  .modal-body {
    padding: 14px;
  }

  .payment-card strong {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .file-box img {
    height: 220px;
  }

  .empty-state {
    padding: 22px 14px;
  }
}
