﻿:root {
  color-scheme: dark;
  --bg: #080c0d;
  --surface: rgba(15, 20, 19, 0.95);
  --surface-solid: #101514;
  --surface-2: #151c1a;
  --surface-3: #1c2824;
  --line: rgba(191, 207, 198, 0.12);
  --line-strong: rgba(191, 207, 198, 0.24);
  --text: #f4f6f1;
  --muted: #9ba69e;
  --soft: #d8dfd8;
  --green: #74b58f;
  --green-dark: #3d7c5b;
  --cyan: #86aeb0;
  --amber: #c3a86f;
  --violet: #8c86b7;
  --danger: #ff7a7a;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.24);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(195, 168, 111, 0.08), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(116, 181, 143, 0.06), transparent 24rem),
    linear-gradient(180deg, rgba(16, 22, 20, 0.75), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(180, 197, 187, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 197, 187, 0.024) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, black, transparent 66%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 38%, rgba(195, 168, 111, 0.026) 49%, transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.38;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(195, 168, 111, 0.72);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.app-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 20px 18px 36px;
}

.topbar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(155, 225, 185, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.028), transparent 54%),
    rgba(10, 15, 14, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  animation: fade-up 420ms var(--ease) both;
}

.topbar-glow {
  position: absolute;
  inset: auto 14px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 160, 102, 0.52), rgba(122, 166, 173, 0.48), transparent);
  transform: translateX(-55%);
  animation: line-scan 4.8s var(--ease) infinite;
}

.brand,
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand {
  flex: 1 1 auto;
}

.top-actions {
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(91, 166, 128, 0.13), rgba(122, 166, 173, 0.05)),
    #101713;
  color: var(--green);
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.brand-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 92%;
  height: 92%;
  object-fit: cover;
  border-radius: 7px;
  filter: saturate(0.58) brightness(0.86) contrast(1.05);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(124, 228, 244, 0.18);
  border-radius: 6px;
  opacity: 0.55;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.08;
  text-wrap: balance;
}

.muted-text,
.muted {
  color: var(--muted);
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 58%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(12px);
  transition: transform 220ms var(--ease), border-color 220ms ease, box-shadow 220ms ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132, 176, 151, 0.55), transparent);
}

.panel:hover {
  border-color: rgba(134, 190, 158, 0.3);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.42);
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.75fr);
  gap: 14px;
  animation: fade-up 520ms var(--ease) 80ms both;
}

.auth-hero {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(90deg, rgba(7, 10, 9, 0.94), rgba(7, 10, 9, 0.8) 50%, rgba(7, 10, 9, 0.42)),
    linear-gradient(135deg, rgba(195, 168, 111, 0.075), transparent 48%),
    url("/app/assets/assets/hero-fintech.png") center / cover,
    var(--surface);
}

.auth-hero::after,
.client-hero::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: min(38%, 320px);
  height: 46%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(160, 180, 168, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(160, 180, 168, 0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  mask-image: linear-gradient(135deg, transparent, black 30%, transparent);
}

.auth-hero h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 54px);
}

.auth-hero p {
  max-width: 620px;
  line-height: 1.6;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-terminal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
  max-width: 640px;
}

.hero-terminal div {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(91, 166, 128, 0.17);
  border-radius: 8px;
  background: rgba(3, 12, 8, 0.42);
  padding: 10px 11px;
}

.hero-terminal span,
.hero-terminal b {
  display: block;
}

.hero-terminal span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.hero-terminal b {
  color: var(--soft);
  font-size: 13px;
  margin-top: 4px;
}

.hero-terminal i {
  display: block;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--green), transparent);
  transform-origin: left;
  transform: scaleX(0.84);
  opacity: 0.78;
}

.hero-strip span,
.live-badge,
.user-pill,
.status-chip,
.counter {
  border: 1px solid rgba(169, 198, 181, 0.18);
  border-radius: 8px;
  background: rgba(91, 166, 128, 0.065);
  color: var(--soft);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.live-badge,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-badge i,
.status-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(91, 166, 128, 0.12);
}

.login-card {
  display: grid;
  align-content: end;
  gap: 12px;
}

.role-panel,
.workspace {
  animation: fade-up 420ms var(--ease) both;
}

.work-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.work-layout > *,
.work-content {
  min-width: 0;
}

.work-layout.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.side-panel {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(91, 166, 128, 0.035), transparent),
    rgba(12, 17, 15, 0.94);
  box-shadow: var(--shadow);
  padding: 12px;
  backdrop-filter: blur(16px);
  animation: fade-up 360ms var(--ease) both;
}

.side-panel::after {
  transform: translateX(-130%);
}

.side-head {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 6px 14px;
  margin-bottom: 10px;
}

.side-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(91, 166, 128, 0.07);
}

.side-head strong,
.side-head small {
  display: block;
}

.side-head small {
  color: var(--muted);
  margin-top: 2px;
}

.side-nav {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.side-nav button {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  text-align: left;
  font-weight: 850;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.side-nav button:hover {
  transform: translateX(2px);
  background: rgba(180, 164, 112, 0.055);
  color: var(--soft);
}

.side-nav button.active {
  border-color: rgba(202, 168, 102, 0.24);
  background: linear-gradient(135deg, rgba(91, 166, 128, 0.095), rgba(202, 168, 102, 0.05));
  color: var(--green);
  box-shadow: inset 3px 0 0 var(--amber), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.side-nav span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(91, 166, 128, 0.055);
}

.asset-icon {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(169, 198, 181, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.asset-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  image-rendering: auto;
  filter: saturate(0.52) brightness(0.84) contrast(1.08);
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

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

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 12, 10, 0.84);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: rgba(199, 241, 220, 0.38);
}

input:focus,
select:focus {
  border-color: rgba(202, 168, 102, 0.48);
  background: rgba(7, 15, 12, 0.96);
  box-shadow: 0 0 0 3px rgba(202, 168, 102, 0.09);
}

.geo-field {
  gap: 10px;
}

.geo-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(195, 168, 111, 0.035), transparent 52%),
    rgba(5, 12, 10, 0.72);
}

.geo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: 100%;
  border: 1px solid rgba(169, 198, 181, 0.13);
  border-radius: 8px;
  background: rgba(14, 25, 21, 0.82);
  color: var(--text);
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 850;
  transition: transform 160ms var(--ease), border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.geo-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(202, 168, 102, 0.34);
  background: rgba(20, 39, 29, 0.92);
}

.geo-chip.active {
  border-color: rgba(202, 168, 102, 0.62);
  background:
    linear-gradient(135deg, rgba(195, 168, 111, 0.18), rgba(116, 181, 143, 0.08)),
    rgba(17, 29, 21, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.geo-chip small {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 20px;
  border-radius: 6px;
  background: rgba(202, 168, 102, 0.12);
  color: var(--amber);
  padding: 0 7px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.bank-field {
  align-content: start;
}

.bank-field input[type="hidden"] {
  display: none;
}

.bank-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(195, 168, 111, 0.035), transparent 52%),
    rgba(5, 12, 10, 0.72);
}

.bank-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 50px;
  border: 1px solid rgba(169, 198, 181, 0.13);
  border-radius: 8px;
  background: rgba(14, 25, 21, 0.82);
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
  transition: transform 160ms var(--ease), border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bank-picker-item:hover {
  transform: translateY(-1px);
  border-color: rgba(202, 168, 102, 0.34);
  background: rgba(20, 39, 29, 0.92);
}

.bank-picker-item.active {
  border-color: rgba(202, 168, 102, 0.64);
  background:
    linear-gradient(135deg, rgba(195, 168, 111, 0.18), rgba(116, 181, 143, 0.08)),
    rgba(17, 29, 21, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.bank-picker-logo {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(169, 198, 181, 0.16);
  background: rgba(8, 15, 13, 0.72);
  overflow: hidden;
}

.bank-picker-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-picker-logo-empty {
  color: var(--muted);
  font-size: 17px;
}

.bank-picker-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.bank-picker-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(169, 198, 181, 0.16);
  border-radius: 8px;
  background: rgba(14, 25, 21, 0.54);
  color: var(--muted);
  padding: 13px;
  font-size: 13px;
  font-weight: 750;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.tab-btn,
.role-card {
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 900;
}

.primary-btn:active,
.secondary-btn:active,
.danger-btn:active,
.ghost-btn:active,
.side-nav button:active {
  transform: scale(0.985);
}

.primary-btn {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 44%),
    linear-gradient(135deg, #c3a86f, #92764a);
  color: #120f08;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.primary-btn:hover,
.secondary-btn:hover,
.tab-btn:hover,
.role-card:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  background: rgba(21, 28, 26, 0.92);
  border-color: var(--line);
  color: var(--text);
}

.danger-btn {
  background: rgba(60, 24, 24, 0.72);
  border-color: rgba(255, 122, 122, 0.28);
  color: #ffd4d4;
}

.danger-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 122, 0.48);
  background: rgba(78, 28, 28, 0.82);
}

.ghost-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  min-height: 38px;
  padding: 8px 11px;
  font-weight: 850;
}

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

.role-card {
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(91, 166, 128, 0.045), transparent 55%),
    var(--surface-2);
  color: var(--text);
  padding: 18px;
  text-align: left;
}

.role-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.role-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 22px;
}

.role-card small {
  color: var(--muted);
  line-height: 1.5;
}

.role-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(91, 166, 128, 0.065);
  border: 1px solid rgba(169, 198, 181, 0.13);
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding: 2px 0 8px;
}

.client-stack,
.admin-stack {
  display: grid;
  gap: 16px;
}

.client-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(250px, 0.72fr);
  gap: 16px;
  align-items: stretch;
  min-height: 250px;
  background:
    linear-gradient(90deg, rgba(7, 10, 9, 0.96), rgba(7, 10, 9, 0.84) 56%, rgba(7, 10, 9, 0.5)),
    linear-gradient(135deg, rgba(195, 168, 111, 0.07), transparent 52%),
    url("/app/assets/assets/hero-fintech.png") center / cover,
    var(--surface);
}

.client-hero h2 {
  max-width: 700px;
  font-size: clamp(27px, 4.5vw, 44px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-stats {
  display: grid;
  gap: 10px;
  align-content: start;
}

.quick-stats div {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 24, 22, 0.82);
  padding: 13px;
}

.quick-stats div::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--green), transparent);
  opacity: 0.32;
  transform-origin: left;
}

.quick-stats strong {
  display: block;
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.quick-stats span {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.route-visual {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.route-card {
  position: relative;
  overflow: hidden;
  min-height: 70px;
  border: 1px solid rgba(155, 225, 185, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(134, 174, 176, 0.055), transparent 56%),
    rgba(6, 14, 12, 0.72);
  padding: 12px;
}

.route-card-primary {
  border-color: rgba(202, 168, 102, 0.26);
  background:
    linear-gradient(135deg, rgba(91, 166, 128, 0.08), rgba(202, 168, 102, 0.04)),
    rgba(6, 16, 12, 0.72);
}

.route-card span,
.route-card strong {
  display: block;
}

.route-card span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.route-card strong {
  margin-top: 7px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.route-line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--green));
  box-shadow: 0 0 14px rgba(202, 168, 102, 0.14);
  opacity: 0.82;
}

.route-line-alt {
  opacity: 0.68;
}

.partner-lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(202, 168, 102, 0.09), transparent 60%),
    linear-gradient(90deg, rgba(122, 166, 173, 0.025), transparent),
    var(--surface);
}

.partner-lead h2 {
  margin-bottom: 8px;
}

.partner-application,
.client-search-area {
  animation: fade-up 300ms var(--ease) both;
}

.tab-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 26, 20, 0.7);
  color: var(--muted);
  padding: 9px 14px;
  font-weight: 900;
  white-space: nowrap;
}

.tab-btn.active {
  color: #120f08;
  border-color: transparent;
  background: linear-gradient(135deg, #c3a565, #a8894f);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

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

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

.wide {
  grid-column: 1 / -1;
}

.form-button {
  align-self: end;
}

.results-panel {
  min-height: 360px;
}

.account-list {
  display: grid;
  gap: 11px;
}

.account-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(134, 174, 176, 0.035), transparent),
    var(--surface-2);
  padding: 15px;
  animation: fade-up 280ms var(--ease) both;
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease;
}

.account-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), rgba(116, 181, 143, 0.78));
}

.account-item:hover {
  transform: translateY(-1px);
  border-color: rgba(134, 190, 158, 0.28);
}

.account-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.account-title-line {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.bank-logo {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(169, 198, 181, 0.16);
  background: rgba(8, 15, 13, 0.72);
  overflow: hidden;
}

.bank-logo img,
.detail-bank-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-logo-empty {
  color: var(--muted);
  font-size: 18px;
}

.account-number {
  font-size: 17px;
  font-weight: 950;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.account-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-meta b {
  color: var(--soft);
}

.rating {
  color: var(--amber);
  font-weight: 950;
  white-space: nowrap;
}

.account-detail-panel,
.requests-panel,
.partner-requests-panel {
  animation: fade-up 300ms var(--ease) both;
}

.account-detail-panel,
.requests-panel {
  grid-column: 1 / -1;
}

.detail-card {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-bank-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 8px;
  border: 1px solid rgba(169, 198, 181, 0.16);
  background: rgba(8, 15, 13, 0.72);
  overflow: hidden;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 14, 0.58);
  padding: 11px 12px;
}

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

.detail-row b {
  color: var(--soft);
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-warning {
  border: 1px solid rgba(195, 168, 111, 0.24);
  border-radius: 8px;
  background: rgba(195, 168, 111, 0.08);
  color: var(--soft);
  padding: 12px;
  line-height: 1.5;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.account-actions .primary-btn,
.account-actions .secondary-btn,
.account-actions .danger-btn {
  width: auto;
  min-height: 40px;
  padding: 9px 14px;
}

.issued-notice {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(116, 181, 143, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(116, 181, 143, 0.13), rgba(195, 168, 111, 0.06)),
    rgba(13, 24, 20, 0.8);
  color: var(--soft);
  padding: 12px;
  margin: 12px 0 10px;
}

.issued-notice strong {
  color: var(--text);
  font-size: 16px;
}

.issued-notice span {
  color: var(--muted);
  line-height: 1.45;
}

.issued-notice-compact {
  margin-top: 0;
}

.payment-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(195, 168, 111, 0.28);
  border-radius: 8px;
  background: rgba(195, 168, 111, 0.08);
  padding: 11px 12px;
  margin: 0 0 10px;
}

.payment-timer span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.payment-timer strong {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  letter-spacing: 0;
}

.payment-timer.urgent {
  border-color: rgba(255, 193, 112, 0.5);
  background: rgba(195, 168, 111, 0.14);
}

.payment-timer.expired {
  border-color: rgba(255, 122, 122, 0.34);
  background: rgba(255, 122, 122, 0.08);
}

.payment-timer.expired strong {
  color: #ffb8b8;
}

.approved-account-box {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(116, 181, 143, 0.28);
  border-radius: 8px;
  background: rgba(116, 181, 143, 0.075);
  padding: 13px;
  margin-bottom: 10px;
}

.approved-account-box strong {
  font-size: 20px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.approved-account-box span {
  color: var(--muted);
}

.request-approved::before {
  background: linear-gradient(180deg, var(--green), rgba(116, 181, 143, 0.2));
}

.request-rejected::before,
.request-expired::before {
  background: linear-gradient(180deg, var(--danger), rgba(255, 122, 122, 0.16));
}

.miniapp-roles-panel {
  grid-column: 1 / -1;
}

.miniapp-users-list {
  margin-top: 14px;
  max-height: 460px;
  overflow: auto;
  padding-right: 3px;
}

.miniapp-user-item .primary-btn,
.miniapp-user-item .secondary-btn {
  width: auto;
  min-height: 40px;
  padding: 9px 14px;
}

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

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

.setting-card {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 13px;
  transition: transform 180ms var(--ease), border-color 180ms ease;
}

.setting-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.setting-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(91, 166, 128, 0.055);
  margin-bottom: 12px;
}

.setting-card .asset-icon {
  overflow: hidden;
}

.setting-card .asset-icon img {
  width: 100%;
  height: 100%;
  transform: none;
}

.setting-card strong,
.setting-card small {
  display: block;
}

.setting-card small {
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}

.metric {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(116, 181, 143, 0.04), transparent),
    var(--surface-2);
  padding: 15px;
}

.metric strong {
  display: block;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.ops-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.ops-list span {
  grid-row: span 2;
  color: var(--cyan);
  font-weight: 950;
}

.ops-list strong {
  font-size: 16px;
}

.ops-list small {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  border: 1px solid rgba(202, 168, 102, 0.24);
  border-radius: 10px;
  background: rgba(8, 16, 14, 0.97);
  color: var(--text);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: toast-in 180ms var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-light {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 0, 0 0, 100% 0, 0 0;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 72px 72px;
  }
}

@keyframes beam-pass {
  from {
    background-position: 0 0, 100% 0;
  }
  to {
    background-position: 100% 0, 0 0;
  }
}

@keyframes line-scan {
  0%,
  18% {
    transform: translateX(-70%);
    opacity: 0;
  }
  45% {
    opacity: 0.95;
  }
  100% {
    transform: translateX(70%);
    opacity: 0;
  }
}

@keyframes mark-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(91, 166, 128, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(91, 166, 128, 0.02);
  }
}

@keyframes bar-load {
  0%,
  100% {
    transform: scaleX(0.34);
    opacity: 0.48;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.9;
  }
}

@keyframes line-grow {
  0%,
  100% {
    transform: scaleX(0.35);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes line-drop {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .auth-panel,
  .role-grid,
  .dashboard-grid,
  .client-hero,
  .settings-grid {
    grid-template-columns: 1fr;
  }

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

  .side-panel {
    position: relative;
    top: 0;
  }

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

@media (max-width: 680px) {
  .app-shell {
    padding: 10px 10px 24px;
  }

  .topbar {
    align-items: center;
  }

  .topbar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
  }

  .top-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .live-badge {
    display: none;
  }

  .user-pill {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  h1 {
    font-size: clamp(19px, 5.8vw, 26px);
  }

  h2 {
    font-size: clamp(20px, 7vw, 27px);
  }

  .auth-hero {
    min-height: 320px;
  }

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

  .hero-terminal div {
    padding: 9px 10px;
  }

  .form-grid,
  .metric-grid,
  .account-meta {
    grid-template-columns: 1fr;
  }

  .partner-lead {
    align-items: stretch;
    flex-direction: column;
  }

  .side-panel {
    position: relative;
    z-index: 6;
    padding: 9px;
  }

  .side-head {
    display: none;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .side-nav button {
    grid-template-columns: 34px 1fr;
    gap: 8px;
    min-height: 48px;
    padding: 8px;
    min-width: 0;
  }

  .side-nav span {
    width: 34px;
    height: 34px;
  }

  .client-hero {
    min-height: 0;
    gap: 12px;
  }

  .client-hero h2 {
    font-size: clamp(24px, 8vw, 32px);
  }

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

  .quick-stats div {
    padding: 12px 10px;
  }

  .quick-stats strong {
    font-size: 23px;
  }

  .route-visual {
    display: none;
  }

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

  .panel {
    padding: 15px;
  }
}


.partner-app-status {
  margin: 4px 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--amber);
  font-size: 14px;
  line-height: 1.5;
}
