:root {
  color-scheme: dark;
  --bg: #080a0e;
  --surface: #101319;
  --surface-2: #151920;
  --surface-3: #1b2029;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #8d95a5;
  --muted-2: #626a78;
  --violet: #8a63ff;
  --violet-2: #7147f2;
  --green: #63e6a4;
  --green-2: #31c985;
  --orange: #f6ad62;
  --blue: #69a8ff;
  --red: #ff727d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 45% -20%, rgba(120, 83, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #090b10 0%, #080a0e 100%);
  color: var(--text);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.session-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(138, 99, 255, 0.16), transparent 24%),
    var(--bg);
}

.session-loader-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  filter: drop-shadow(0 0 18px rgba(99, 230, 164, 0.2));
  animation: session-loader-pulse 1.1s ease-in-out infinite alternate;
}

.session-loader-mark img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.session-loader strong {
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.04em;
}

@keyframes session-loader-pulse {
  from { opacity: 0.62; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button {
  border: 0;
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: 0;
  right: -160px;
  width: 480px;
  height: 480px;
  background: #7048ff;
}

.ambient-two {
  bottom: -260px;
  left: 38%;
  width: 520px;
  height: 520px;
  background: #2bc98c;
  opacity: 0.05;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: 244px;
  flex-direction: column;
  padding: 36px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgba(10, 12, 17, 0.88);
  backdrop-filter: blur(26px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px 38px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand b {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  min-height: 48px;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #858d9c;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.nav-item::before {
  position: absolute;
  inset: 8px auto 8px -18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--violet);
  content: "";
  opacity: 0;
  transition: 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #cad0db;
}

.nav-item.active {
  border-color: rgba(138, 99, 255, 0.16);
  background: linear-gradient(90deg, rgba(138, 99, 255, 0.13), rgba(138, 99, 255, 0.04));
  color: #f0ebff;
}

.nav-item.active::before {
  opacity: 1;
}

.nav-item.active svg {
  color: #a688ff;
}

.nav-item span {
  font-size: 14px;
  font-weight: 650;
}

.nav-item em,
.nav-item i {
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-item em {
  min-width: 21px;
  padding: 4px 6px;
  background: rgba(138, 99, 255, 0.2);
  color: #bba7ff;
  text-align: center;
}

.nav-item i {
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted-2);
}

.sidebar-spacer {
  flex: 1;
}

.support-card {
  position: relative;
  overflow: hidden;
  margin: 18px 0;
  padding: 17px;
  border: 1px solid rgba(138, 99, 255, 0.18);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(138, 99, 255, 0.16), transparent 50%),
    #11141b;
}

.support-icon {
  display: grid;
  width: 33px;
  height: 33px;
  margin-bottom: 11px;
  place-items: center;
  border-radius: 10px;
  background: rgba(138, 99, 255, 0.14);
  color: #ad97ff;
}

.support-icon svg {
  width: 17px;
}

.support-card b {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.support-card p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
}

.support-card button {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #c9ced8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.profile-card {
  display: grid;
  grid-template-columns: 38px 1fr 15px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 9px;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: linear-gradient(145deg, #222a35, #131820);
  color: #d6dce6;
  font-size: 13px;
  font-weight: 800;
}

.profile-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.profile-card b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
}

.profile-card small {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 12px;
}

.profile-card small > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-telegram-mark {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border-radius: 50%;
  background: rgba(60, 169, 239, 0.14);
  color: #55b7f3;
}

.profile-telegram-mark[hidden] {
  display: none;
}

.profile-card .profile-telegram-mark svg {
  width: 10px;
  height: 10px;
  color: #55b7f3;
  stroke-width: 1.8;
}

.profile-card svg {
  width: 14px;
  color: var(--muted-2);
}

.main-content {
  display: flex;
  grid-column: 2;
  min-height: 100vh;
  width: 100%;
  max-width: 1600px;
  flex-direction: column;
  margin: 0 auto;
  padding: 76px clamp(24px, 3.2vw, 52px) 52px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 31px;
}

.page-title p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.045em;
}

.page-title h1 span {
  display: inline-block;
  margin-left: 3px;
  transform: rotate(-8deg);
  font-size: 23px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  color: #9ba3b1;
}

.system-status span,
.live-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(99, 230, 164, 0.7);
}

.system-status b {
  font-size: 13px;
}

.system-status.unavailable span {
  background: var(--muted-2);
  box-shadow: none;
}

.icon-button,
.mobile-menu {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
}

.icon-button > .notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-flex;
  min-width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #090b10;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b7a, #e43f58);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(228, 63, 88, 0.38);
  transition: opacity 150ms ease, transform 150ms ease;
}

.icon-button > .notification-badge.empty {
  opacity: 0;
  transform: scale(0.7);
}

.icon-button.support-reply-alert {
  border-color: rgba(99, 230, 164, 0.55);
  background: rgba(99, 230, 164, 0.1);
  color: var(--green);
  box-shadow: 0 0 0 3px rgba(99, 230, 164, 0.06), 0 0 24px rgba(99, 230, 164, 0.16);
  animation: support-notification-pulse 1.8s ease-in-out infinite;
}

.icon-button.support-reply-alert > .notification-badge {
  background: linear-gradient(135deg, #63e6a4, #27b878);
  box-shadow: 0 4px 14px rgba(39, 184, 120, 0.4);
}

.icon-button.broadcast-alert {
  border-color: rgba(238, 190, 82, 0.58);
  background: rgba(238, 190, 82, 0.1);
  color: #f3c967;
  box-shadow: 0 0 0 3px rgba(238, 190, 82, 0.06), 0 0 24px rgba(238, 190, 82, 0.16);
  animation: support-notification-pulse 1.8s ease-in-out infinite;
}

.icon-button.broadcast-alert > .notification-badge {
  background: linear-gradient(135deg, #d9a62e, #f0cb68);
  color: #211704;
  box-shadow: 0 4px 14px rgba(217, 166, 46, 0.4);
}

@keyframes support-notification-pulse {
  50% { box-shadow: 0 0 0 5px rgba(99, 230, 164, 0.08), 0 0 28px rgba(99, 230, 164, 0.24); }
}

.primary-button,
.light-button,
.outline-button,
.ghost-button,
.full-ghost,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
}

.primary-button {
  min-height: 45px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, #946dff, #7448ed);
  color: #fff;
  box-shadow: 0 12px 28px rgba(113, 71, 242, 0.22), inset 0 1px rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.light-button:hover,
.outline-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.primary-button:active,
.light-button:active {
  transform: translateY(0);
}

.primary-button svg,
.light-button svg {
  width: 17px;
}

.primary-button.compact {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 14px;
}

.page-section {
  display: none;
  animation: fade-in 220ms ease;
}

.page-section.active {
  display: block;
}

.site-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 28px 4px 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 650;
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  content: "";
}

.site-footer a,
.auth-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.site-footer a:hover,
.auth-footer a:hover { color: #bba7ff; }
.site-footer svg { width: 15px; height: 15px; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(430px, 1.35fr);
  gap: 18px;
}

.balance-card,
.launch-card,
.panel,
.flow-card,
.table-card,
.billing-balance,
.spend-chart {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 19, 25, 0.86);
  box-shadow: var(--shadow);
}

.balance-card {
  min-height: 270px;
  padding: 25px;
  border-color: rgba(151, 119, 255, 0.28);
  background:
    radial-gradient(circle at 87% 0%, rgba(153, 121, 255, 0.34), transparent 43%),
    linear-gradient(135deg, #2c2057 0%, #1b1539 48%, #171329 100%);
}

.balance-card::after {
  position: absolute;
  right: -88px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.018), 0 0 0 70px rgba(255, 255, 255, 0.012);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  pointer-events: none;
}

.balance-head,
.balance-meta,
.balance-actions {
  position: relative;
  z-index: 2;
}

.balance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.eyebrow {
  display: block;
  color: #8f97a7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow.green {
  color: #6adfa7;
}

.balance-card .eyebrow {
  color: #bcb1db;
}

.balance-value {
  display: flex;
  align-items: flex-start;
  margin-top: 10px;
  letter-spacing: -0.055em;
}

.balance-value span {
  margin: 7px 6px 0 0;
  color: #bfb0eb;
  font-size: 23px;
  font-weight: 650;
}

.balance-value b {
  font-size: clamp(37px, 3.8vw, 50px);
  font-weight: 780;
}

.wallet-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: #d4caff;
  backdrop-filter: blur(10px);
}

.balance-meta {
  display: flex;
  gap: 38px;
  margin-top: 23px;
}

.balance-meta div {
  display: grid;
  gap: 4px;
}

.balance-meta span {
  color: #938aa9;
  font-size: 12px;
}

.balance-meta b {
  font-size: 14px;
}

.balance-actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.light-button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 11px;
  background: #f4f1ff;
  color: #32285b;
  font-size: 13px;
}

.ghost-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: #cbc3de;
  font-size: 13px;
}

.ghost-button span,
.text-button span {
  font-size: 16px;
}

.launch-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 270px;
  padding: 27px 30px;
  background:
    radial-gradient(circle at 86% 42%, rgba(57, 211, 149, 0.13), transparent 35%),
    linear-gradient(140deg, rgba(19, 24, 29, 0.98), rgba(12, 16, 20, 0.98));
}

.launch-card::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000);
}

.launch-content {
  position: relative;
  z-index: 2;
}

.launch-content h2 {
  margin: 12px 0 11px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.launch-content p {
  max-width: 430px;
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.qr-visual {
  position: relative;
  display: grid;
  min-width: 190px;
  place-items: center;
}

.qr-cube {
  position: relative;
  z-index: 2;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  transform: rotate(6deg);
  border: 1px solid rgba(99, 230, 164, 0.26);
  border-radius: 29px;
  background: linear-gradient(145deg, rgba(99, 230, 164, 0.13), rgba(99, 230, 164, 0.035));
  box-shadow: 0 24px 55px rgba(27, 181, 122, 0.12), inset 0 1px rgba(255, 255, 255, 0.1);
}

.qr-cube::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(99, 230, 164, 0.08);
  border-radius: 21px;
  content: "";
}

.qr-cube svg {
  width: 72px;
  height: 72px;
  transform: rotate(-6deg);
  fill: #7eeeb5;
  stroke: none;
  filter: drop-shadow(0 0 18px rgba(99, 230, 164, 0.32));
}

.qr-orbit {
  position: absolute;
  border: 1px solid rgba(99, 230, 164, 0.08);
  border-radius: 50%;
}

.orbit-one {
  width: 190px;
  height: 190px;
}

.orbit-two {
  width: 230px;
  height: 230px;
  border-style: dashed;
  animation: orbit 24s linear infinite;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stat-card {
  display: flex;
  min-height: 106px;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(16, 19, 25, 0.73);
}

.stat-icon,
.modal-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
}

.stat-icon {
  width: 43px;
  height: 43px;
}

.stat-icon.violet,
.modal-icon.violet { background: rgba(138, 99, 255, 0.12); color: #a98eff; }
.stat-icon.green,
.modal-icon.green { background: rgba(99, 230, 164, 0.11); color: #69e3a7; }
.stat-icon.orange { background: rgba(246, 173, 98, 0.11); color: #f2ad68; }
.stat-icon.blue { background: rgba(105, 168, 255, 0.11); color: #75b0ff; }

.stat-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.stat-card span:not(.stat-icon) {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card b {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.stat-price-value {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.stat-price-value em {
  padding: 3px 6px;
  border: 1px solid rgba(99, 230, 164, 0.18);
  border-radius: 6px;
  background: rgba(99, 230, 164, 0.1);
  color: var(--green);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.stat-card small {
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.stat-card small em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}

.panel-head > div {
  display: grid;
  gap: 6px;
}

.panel-head h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot i {
  animation: pulse 1.9s ease infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 5px rgba(99, 230, 164, 0); }
}

.text-button,
.dots-button {
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.text-button:hover {
  color: #d6dbe5;
}

.dots-button {
  letter-spacing: 0.18em;
}

.request-list {
  display: grid;
  gap: 9px;
}

.request-item {
  display: grid;
  grid-template-columns: 42px minmax(145px, 1.2fr) minmax(100px, 0.72fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 160ms ease, background 160ms ease;
}

.request-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.028);
}

.request-thumb {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background:
    linear-gradient(45deg, transparent 40%, rgba(255,255,255,.06) 40% 60%, transparent 60%),
    #171c24;
  color: #9ba4b3;
}

.request-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.request-thumb svg {
  width: 23px;
  height: 23px;
}

.request-main,
.request-account {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.request-main b,
.request-account b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-main small,
.request-account small {
  color: var(--muted-2);
  font-size: 12px;
}

.request-two-factor {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: #bda8ff !important;
  cursor: copy;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 140ms ease, text-shadow 140ms ease;
}

.request-two-factor:hover {
  color: #d6cbff !important;
  text-shadow: 0 0 12px rgba(138, 99, 255, 0.34);
}

.request-two-factor-label {
  color: var(--green);
}

.request-two-factor-value {
  color: #bda8ff;
}

.request-two-factor:hover .request-two-factor-value {
  color: #d6cbff;
}

.request-two-factor:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(138, 99, 255, 0.3);
}

.request-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.request-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.request-status.waiting { background: rgba(246,173,98,.1); color: #eeb16f; }
.request-status.processing { background: rgba(105,168,255,.1); color: #7eb5ff; }
.request-status.success { background: rgba(99,230,164,.1); color: #6ce2a8; }
.request-status.failed { background: rgba(255,114,125,.1); color: #ff828b; }
.request-status.disputed { background: rgba(180,132,255,.12); color: #bd9cff; }

.request-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.decision-timer {
  display: inline-flex;
  min-width: 68px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(246, 173, 98, 0.2);
  border-radius: 9px;
  background: rgba(246, 173, 98, 0.08);
  color: #eeb16f;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.decision-timer b {
  font-size: 12px;
  letter-spacing: 0.03em;
}

.decision-timer.expired {
  opacity: 0.62;
}

.result-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #a7afbc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.result-button.stood {
  border-color: rgba(99, 230, 164, 0.18);
  background: rgba(99, 230, 164, 0.08);
  color: #74e6ad;
}

.result-button.rejected {
  border-color: rgba(255, 114, 125, 0.2);
  background: rgba(255, 114, 125, 0.08);
  color: #ff8b94;
}

.result-button:hover {
  filter: brightness(1.18);
}

.activity-list {
  display: grid;
}

.activity-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.activity-row:first-child {
  padding-top: 0;
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.activity-symbol.plus { background: rgba(99,230,164,.1); color: var(--green); }
.activity-symbol.minus { background: rgba(138,99,255,.11); color: #aa92ff; }
.activity-symbol.hold { background: rgba(246,173,98,.1); color: var(--orange); }

.activity-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.activity-row b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row small {
  color: var(--muted-2);
  font-size: 12px;
}

.activity-amount {
  font-size: 13px;
}

.activity-amount.plus { color: var(--green); }
.activity-amount.minus { color: #c5b8ff; }
.activity-amount.hold { color: var(--orange); }

.full-ghost {
  width: 100%;
  min-height: 37px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 12px;
}

.flow-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(520px, 1.25fr);
  align-items: center;
  gap: 34px;
  margin-top: 14px;
  padding: 25px 29px;
  background:
    radial-gradient(circle at 0 50%, rgba(99, 230, 164, 0.07), transparent 32%),
    rgba(16, 19, 25, 0.8);
}

.flow-copy h3 {
  margin: 8px 0 8px;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.flow-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.flow-steps {
  display: grid;
  grid-template-columns: 1fr 38px 1fr 38px 1fr;
  align-items: center;
}

.flow-steps > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 4px 10px;
}

.flow-steps > div > span {
  grid-row: 1 / 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(99, 230, 164, 0.18);
  border-radius: 10px;
  background: rgba(99, 230, 164, 0.08);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.flow-steps b {
  font-size: 12px;
}

.flow-steps small {
  color: var(--muted-2);
  font-size: 12px;
}

.flow-steps > i {
  height: 1px;
  margin: 0 9px;
  background: linear-gradient(90deg, rgba(99,230,164,.25), rgba(99,230,164,.06));
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.section-heading h2,
.partner-hero h2 {
  margin: 7px 0 6px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.section-heading-actions svg {
  width: 17px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
}

.filter-chip {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.filter-chip span {
  margin-left: 5px;
  color: var(--muted-2);
}

.filter-chip.active {
  border-color: rgba(138, 99, 255, 0.24);
  background: rgba(138, 99, 255, 0.1);
  color: #c7b8ff;
}

.search-box {
  display: flex;
  width: min(280px, 32vw);
  min-height: 37px;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted-2);
}

.search-box svg {
  width: 15px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.table-card {
  padding: 8px;
}

.request-table-head,
.request-table-row {
  display: grid;
  grid-template-columns: 1.05fr 0.62fr 0.78fr 0.7fr minmax(250px, 1.15fr) 0.55fr 32px;
  align-items: center;
  gap: 12px;
}

.request-table-head {
  min-height: 42px;
  padding: 0 13px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.request-table-row {
  min-height: 66px;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
}

.table-main {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.table-main .request-thumb {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.table-main > span,
.table-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.table-main b,
.table-cell b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-main small,
.table-cell small {
  color: var(--muted-2);
  font-size: 12px;
}

.request-mobile-account,
.request-mobile-two-factor { display: none; }

.table-price {
  font-size: 13px;
  font-weight: 750;
}

.table-decision {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-decision .result-button {
  min-height: 34px;
  padding-inline: 12px;
  white-space: nowrap;
}

.table-decision-empty {
  color: var(--muted-2);
  font-size: 12px;
}

.table-decision-empty.success { color: var(--green); font-weight: 750; }
.table-decision-empty.failed { color: #ff828b; font-weight: 750; }
.table-decision-empty.processing { color: #7eb5ff; }
.table-decision-empty.disputed { color: #bd9cff; }

.row-menu {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.admin-summary article {
  display: grid;
  gap: 8px;
  min-height: 102px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.admin-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-summary b {
  font-size: 20px;
}

.admin-user-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.admin-user-metrics article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.014);
}

.admin-user-metrics small {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-metrics b {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
}

.admin-broadcast-panel {
  padding: 20px;
  border: 1px solid rgba(238, 190, 82, 0.28);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(238, 190, 82, 0.085), rgba(238, 190, 82, 0.018));
  box-shadow: inset 0 1px rgba(255, 230, 163, 0.04);
}

.admin-broadcast-mark {
  padding: 6px 9px;
  border: 1px solid rgba(238, 190, 82, 0.28);
  border-radius: 999px;
  background: rgba(238, 190, 82, 0.1);
  color: #f3c967;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-broadcast-fields {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
  gap: 10px;
}

.admin-broadcast-fields label {
  display: grid;
  gap: 7px;
}

.admin-broadcast-fields label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-broadcast-fields input,
.admin-broadcast-fields textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: 0;
  background: rgba(5, 7, 12, 0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-broadcast-fields textarea {
  min-height: 78px;
  resize: vertical;
}

.admin-broadcast-fields input:focus,
.admin-broadcast-fields textarea:focus {
  border-color: rgba(238, 190, 82, 0.48);
  box-shadow: 0 0 0 3px rgba(238, 190, 82, 0.07);
}

.admin-broadcast-submit {
  min-height: 40px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px solid rgba(255, 222, 132, 0.35);
  border-radius: 10px;
  background: linear-gradient(135deg, #d9a62e, #f0cb68);
  color: #211704;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 25px rgba(217, 166, 46, 0.16);
}

.admin-broadcast-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.admin-dispute-list {
  display: grid;
  gap: 8px;
}

.admin-panel-block + .admin-panel-block {
  margin-top: 22px;
}

.admin-block-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 10px;
}

.admin-block-heading h3 {
  margin: 0;
  font-size: 17px;
}

.admin-block-heading span {
  color: var(--muted-2);
  font-size: 12px;
}

.admin-support-list {
  display: grid;
  gap: 8px;
}

.admin-support-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.admin-support-client {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-support-client b,
.admin-support-client small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-client b {
  font-size: 13px;
}

.admin-support-client small,
.admin-support-time {
  color: var(--muted-2);
  font-size: 12px;
}

.admin-support-message {
  margin: 0;
  color: #d8dce5;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.admin-support-content { display: grid; min-width: 0; gap: 8px; }

.admin-support-request {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(138, 99, 255, .09);
  color: var(--muted);
  font-size: 10px;
}

.admin-support-request b { color: #c5b4ff; font-size: 11px; }
.admin-support-attachments { display: flex; flex-wrap: wrap; gap: 6px; }

.admin-support-attachments a {
  display: block;
  width: 64px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
}

.admin-support-attachments img { width: 100%; height: 100%; object-fit: cover; transition: transform 160ms ease; }
.admin-support-attachments a:hover img { transform: scale(1.06); }

.admin-support-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.admin-support-actions > div {
  display: flex;
  gap: 6px;
}

.admin-support-done,
.admin-support-reply-open {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.admin-support-done {
  border: 1px solid rgba(99, 230, 164, 0.2);
  background: rgba(99, 230, 164, 0.08);
  color: var(--green);
}

.admin-support-reply-open {
  border: 1px solid rgba(138, 99, 255, 0.25);
  background: rgba(138, 99, 255, 0.09);
  color: #bda8ff;
}

.admin-support-reply {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-support-reply[hidden] {
  display: none;
}

.admin-support-reply textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.admin-support-reply textarea:focus {
  border-color: rgba(138, 99, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(138, 99, 255, 0.08);
}

.admin-support-reply > div {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.admin-support-reply button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.admin-support-reply button[type="submit"] {
  border-color: rgba(138, 99, 255, 0.25);
  background: rgba(138, 99, 255, 0.1);
  color: #c5b4ff;
}

.admin-dispute-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.admin-dispute-head,
.admin-dispute-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-dispute-head > div {
  display: grid;
  gap: 2px;
}

.admin-dispute-head b {
  font-size: 14px;
}

.admin-dispute-head small,
.admin-dispute-grid small {
  color: var(--muted-2);
  font-size: 12px;
}

.admin-dispute-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 10px 0;
}

.admin-dispute-grid > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
}

.admin-dispute-grid b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dispute-reason {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-left: 3px solid var(--violet);
  border-radius: 8px;
  background: rgba(138, 99, 255, 0.055);
  color: #c8cdd6;
  font-size: 13px;
  line-height: 1.4;
}

.admin-dispute-reason b {
  color: #f0ecff;
}

.admin-dispute-evidence {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  text-decoration: none;
}

.admin-dispute-evidence img {
  width: 52px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-dispute-evidence span {
  display: grid;
  gap: 4px;
}

.admin-dispute-evidence b { font-size: 13px; }
.admin-dispute-evidence small { color: var(--muted); font-size: 12px; }

.admin-dispute-actions {
  justify-content: flex-end;
}

.admin-resolve {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.admin-resolve.refund {
  border-color: rgba(99, 230, 164, 0.2);
  background: rgba(99, 230, 164, 0.08);
  color: var(--green);
}

.admin-resolve.charge {
  border-color: rgba(255, 114, 125, 0.2);
  background: rgba(255, 114, 125, 0.08);
  color: #ff8b94;
}

.admin-empty {
  padding: 42px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.admin-user-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 210px;
  gap: 9px;
  margin-bottom: 9px;
}

.admin-user-search {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted-2);
}

.admin-user-search input,
.admin-user-toolbar select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.admin-user-search input::placeholder { color: var(--muted-2); }

.admin-user-toolbar select {
  min-height: 43px;
  padding: 0 36px 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color-scheme: dark;
  cursor: pointer;
}

.admin-user-list { display: grid; gap: 7px; }

.admin-user-card {
  display: grid;
  grid-template-columns: 38px minmax(180px, 1.5fr) minmax(110px, .65fr) minmax(95px, .55fr) minmax(110px, auto) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-user-card:hover {
  transform: translateY(-1px);
  border-color: rgba(138, 99, 255, .28);
  background: #12161d;
}

.admin-user-card.blocked { border-color: rgba(255, 114, 125, .16); }

.admin-user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(138, 99, 255, .2);
  border-radius: 11px;
  background: rgba(138, 99, 255, .1);
  color: #c3b2ff;
  font-size: 12px;
  font-weight: 850;
}

.admin-user-main,
.admin-user-balance,
.admin-user-stat {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-user-main b,
.admin-user-main small,
.admin-user-balance b,
.admin-user-balance em,
.admin-user-stat b,
.admin-user-stat em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-main b,
.admin-user-balance b,
.admin-user-stat b { font-size: 13px; }
.admin-user-main small,
.admin-user-balance small,
.admin-user-stat small { color: var(--muted-2); font-size: 11px; }
.admin-user-balance em,
.admin-user-stat em { color: var(--muted); font-size: 10px; font-style: normal; }

.admin-user-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

.admin-user-tag {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.admin-user-tag.active { background: rgba(99, 230, 164, .09); color: var(--green); }
.admin-user-tag.blocked { background: rgba(255, 114, 125, .09); color: #ff8b94; }
.admin-user-tag.partner { background: rgba(138, 99, 255, .1); color: #bda8ff; }
.admin-user-tag.admin { background: rgba(105, 168, 255, .1); color: var(--blue); }
.admin-user-open { color: #af9afa; font-size: 11px; font-weight: 750; white-space: nowrap; }

.admin-user-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.admin-user-pagination button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.admin-user-pagination button:disabled { cursor: default; opacity: .35; }
.admin-user-pagination span { color: var(--muted-2); font-size: 11px; }

.admin-user-modal { width: min(820px, 100%); }

.admin-user-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 5px 0 16px;
}

.admin-user-modal-head h3 { margin: 0; }
.admin-user-modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.admin-user-state {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(99, 230, 164, .09);
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.admin-user-state.blocked { background: rgba(255, 114, 125, .09); color: #ff8b94; }
.admin-user-state.admin { background: rgba(105, 168, 255, .1); color: var(--blue); }

.admin-user-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 18px;
}

.admin-user-overview article {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .018);
}

.admin-user-overview small { color: var(--muted-2); font-size: 10px; }
.admin-user-overview b { font-size: 15px; }

.admin-balance-form,
.admin-account-controls {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .016);
}

.admin-account-controls { margin-top: 9px; }

.admin-modal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-modal-section-head > div { display: grid; gap: 1px; }
.admin-modal-section-head b { font-size: 13px; }
.admin-modal-section-head small { color: var(--muted-2); font-size: 10px; }

.admin-balance-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-balance-fields label,
.admin-reason-field { display: grid; gap: 5px; }
.admin-balance-fields label > span,
.admin-reason-field > span { color: var(--muted); font-size: 10px; font-weight: 750; }

.admin-balance-fields select,
.admin-money-input,
.admin-reason-field input {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  background: #12161d;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.admin-balance-fields select { width: 100%; padding: 0 10px; color-scheme: dark; }
.admin-money-input { display: flex; align-items: center; padding: 0 10px; }
.admin-money-input b { color: var(--green); }
.admin-money-input input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.admin-reason-field input { width: 100%; padding: 0 10px; }
.admin-balance-fields select:focus,
.admin-money-input:focus-within,
.admin-reason-field input:focus { border-color: rgba(138, 99, 255, .45); box-shadow: 0 0 0 3px rgba(138, 99, 255, .07); }
.admin-balance-form .primary-button { justify-self: end; min-height: 38px; padding: 0 15px; }

.admin-account-controls > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.admin-account-controls button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
}
.admin-account-controls #adminToggleBlock { border-color: rgba(255, 114, 125, .2); background: rgba(255, 114, 125, .07); color: #ff8b94; }
.admin-account-controls #adminToggleBlock.unblock { border-color: rgba(99, 230, 164, .2); background: rgba(99, 230, 164, .07); color: var(--green); }
.admin-account-controls #adminToggleRole { border-color: rgba(105, 168, 255, .22); background: rgba(105, 168, 255, .08); color: var(--blue); }
.admin-account-controls #adminToggleRole.remove-admin { border-color: rgba(255, 184, 92, .24); background: rgba(255, 184, 92, .08); color: #ffc06b; }
.admin-account-controls button:disabled { cursor: not-allowed; opacity: .42; }

.admin-user-history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.admin-user-history-grid > section { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.admin-user-history { display: grid; gap: 4px; margin-top: 8px; }
.admin-user-history > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, .045);
}
.admin-user-history > div:first-child { border-top: 0; }
.admin-user-history > div > span:nth-child(2) { display: grid; min-width: 0; gap: 1px; }
.admin-user-history > div b,
.admin-user-history > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-history > div b { font-size: 11px; }
.admin-user-history > div small { color: var(--muted-2); font-size: 9px; }
.admin-user-history > div strong { color: var(--muted); font-size: 9px; font-weight: 750; text-align: right; }
.admin-user-history > div strong.plus { color: var(--green); }
.admin-user-history > div strong.minus { color: #ff8b94; }
.admin-user-history .activity-symbol { width: 26px; height: 26px; font-size: 10px; }
.admin-action-dot { width: 7px; height: 7px; margin-left: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(138, 99, 255, .09); }
.admin-user-history-empty { margin: 8px 0 0; color: var(--muted-2); font-size: 10px; }

.billing-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1.28fr);
  gap: 14px;
  margin-bottom: 14px;
}

.billing-balance,
.spend-chart {
  min-height: 225px;
  padding: 25px;
}

.billing-balance {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 90% 0, rgba(138,99,255,.22), transparent 48%),
    #14131e;
}

.billing-balance > span,
.spend-chart-summary > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.billing-balance strong {
  margin: 8px 0 24px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.billing-balance strong b {
  font-size: 46px;
}

.billing-balance > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.billing-balance small {
  color: var(--muted-2);
}

.spend-chart {
  display: grid;
  grid-template-rows: auto 1fr;
}

.spend-chart-head {
  display: grid;
  gap: 12px;
}

.spend-chart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spend-chart-summary b {
  font-size: 20px;
}

.spend-period-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 9, 14, 0.5);
}

.spend-period-switch button {
  min-width: 0;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: 700 11px/1 inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.spend-period-switch button:hover {
  color: var(--text);
  background: rgba(138, 99, 255, 0.08);
}

.spend-period-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, #8a63ff, #7040e8);
  box-shadow: 0 6px 16px rgba(112, 64, 232, 0.22);
}

.chart-bars {
  display: flex;
  height: 130px;
  align-items: end;
  justify-content: space-between;
  gap: 11px;
  padding-top: 18px;
}

.chart-bars i {
  position: relative;
  width: 100%;
  height: var(--bar);
  max-width: 35px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, rgba(138,99,255,.56), rgba(138,99,255,.1));
}

.chart-bars[data-period="month"] {
  gap: 5px;
}

.chart-bars[data-period="month"] i {
  max-width: 18px;
}

.chart-bars i.today {
  background: linear-gradient(180deg, #9c7aff, #633be4);
  box-shadow: 0 0 20px rgba(138, 99, 255, 0.2);
}

.chart-bars small {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-size: 12px;
  font-style: normal;
}

.transactions-card {
  padding: 22px;
}

.transactions-card .panel-head {
  margin-bottom: 8px;
}

.outline-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #c1c7d2;
  font-size: 12px;
}

.transaction-row {
  display: grid;
  grid-template-columns: 42px 1.2fr 0.8fr 0.8fr 0.6fr;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  border-top: 1px solid var(--line);
}

.transaction-row .activity-symbol {
  width: 34px;
  height: 34px;
}

.transaction-row > span:not(.activity-symbol) {
  display: grid;
  gap: 3px;
}

.transaction-row b {
  font-size: 13px;
}

.transaction-row small {
  color: var(--muted-2);
  font-size: 12px;
}

.transaction-state {
  width: fit-content;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(99, 230, 164, 0.08);
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.partner-page {
  display: grid;
  gap: 16px;
}

.partner-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  min-height: 360px;
  gap: 34px;
  align-items: center;
  overflow: hidden;
  padding: 42px;
  border: 1px solid rgba(138, 99, 255, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 18%, rgba(138, 99, 255, 0.17), transparent 34%),
    radial-gradient(circle at 12% 95%, rgba(99, 230, 164, 0.08), transparent 32%),
    rgba(15, 18, 24, 0.82);
}

.partner-hero::after {
  position: absolute;
  top: -120px;
  right: -95px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(138, 99, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(138, 99, 255, 0.025), 0 0 0 90px rgba(138, 99, 255, 0.015);
  content: "";
}

.partner-hero-copy,
.partner-profit-card {
  position: relative;
  z-index: 1;
}

.partner-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(138, 99, 255, 0.24);
  border-radius: 999px;
  background: rgba(138, 99, 255, 0.09);
  color: #bcaaff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(99, 230, 164, 0.7);
}

.partner-hero h2 {
  max-width: 720px;
  margin: 20px 0 12px;
}

.partner-hero-copy > p {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.partner-profit-card {
  padding: 26px;
  border: 1px solid rgba(99, 230, 164, 0.2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(99, 230, 164, 0.1), rgba(16, 21, 25, 0.88));
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.24);
}

.partner-profit-card > span,
.partner-metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.partner-profit-card > strong {
  display: block;
  margin-top: 9px;
  color: var(--green);
  font-size: clamp(42px, 5vw, 62px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.partner-profit-card > p {
  margin: 8px 0 22px;
  color: #b4bdc8;
  font-size: 12px;
}

.partner-price-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-price-route span { display: grid; gap: 5px; }
.partner-price-route small { color: var(--muted-2); font-size: 10px; }
.partner-price-route b { font-size: 16px; }
.partner-price-route i { color: var(--green); font-size: 16px; font-style: normal; }

.partner-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.partner-metrics article {
  display: flex;
  min-height: 116px;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 18, 24, 0.76);
}

.partner-metric-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 850;
}

.partner-metric-icon.violet { background: rgba(138, 99, 255, 0.12); color: #b7a2ff; }
.partner-metric-icon.green { background: rgba(99, 230, 164, 0.1); color: var(--green); }
.partner-metric-icon.orange { background: rgba(240, 166, 88, 0.1); color: var(--orange); }

.partner-metrics article > div { display: grid; gap: 4px; }
.partner-metrics b { font-size: 20px; letter-spacing: -0.03em; }
.partner-metrics em { color: var(--muted-2); font-size: 10px; font-style: normal; }

.partner-flow {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 18, 24, 0.7);
}

.partner-flow-heading h3 { margin: 7px 0 22px; font-size: 20px; }

.partner-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.partner-steps > div {
  display: grid;
  min-height: 126px;
  align-content: start;
  gap: 7px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.partner-steps > div > span {
  display: grid;
  width: 25px;
  height: 25px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 8px;
  background: rgba(138, 99, 255, 0.12);
  color: #b7a2ff;
  font-size: 11px;
  font-weight: 850;
}

.partner-steps b { font-size: 13px; }
.partner-steps small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.partner-steps > i { color: #655c76; font-style: normal; }

.partner-application-status {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid rgba(246, 173, 98, 0.28);
  border-radius: 15px;
  background: rgba(246, 173, 98, 0.07);
}

.partner-application-status > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  background: rgba(246, 173, 98, 0.12);
  color: var(--orange);
  font-size: 17px;
  font-weight: 850;
}

.partner-application-status > div { display: grid; gap: 4px; }
.partner-application-status b { font-size: 13px; }
.partner-application-status small { color: var(--muted); font-size: 11px; }

.partner-application-status.rejected {
  border-color: rgba(255, 114, 125, 0.25);
  background: rgba(255, 114, 125, 0.06);
}

.partner-application-status.rejected > span {
  background: rgba(255, 114, 125, 0.11);
  color: var(--red);
}

.partner-dashboard { display: grid; gap: 16px; }

.partner-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(99, 230, 164, 0.2);
  border-radius: 999px;
  background: rgba(99, 230, 164, 0.08);
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.partner-active-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 11px rgba(99, 230, 164, 0.7);
}

.partner-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.partner-dashboard-stats article {
  display: grid;
  min-height: 126px;
  align-content: center;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.partner-dashboard-stats small { color: var(--muted); font-size: 12px; font-weight: 700; }
.partner-dashboard-stats b { font-size: 24px; letter-spacing: -0.04em; }
.partner-dashboard-stats span { color: var(--muted-2); font-size: 10px; }

.partner-controls {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.partner-control-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 18, 24, 0.76);
}

.partner-control-card h3 { margin: 8px 0 6px; font-size: 20px; }
.partner-control-card > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.partner-link-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.partner-link-field input,
.partner-price-input {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.partner-link-field input {
  min-width: 0;
  padding: 0 13px;
  color: #c9ced8;
  font: 11px "SFMono-Regular", Consolas, monospace;
  outline: none;
}

.partner-link-field button {
  padding: 0 15px;
  border: 1px solid rgba(138, 99, 255, 0.25);
  border-radius: 11px;
  background: rgba(138, 99, 255, 0.1);
  color: #c3b2ff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.partner-price-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 0 12px;
}

.partner-price-input > span { color: var(--green); font-size: 18px; font-weight: 850; }
.partner-price-input input { min-width: 0; border: 0; background: transparent; color: var(--text); font: 800 18px inherit; outline: none; }
.partner-price-input small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.partner-price-input small b { color: var(--green); }
.partner-control-card > .primary-button { width: 100%; }

.partner-application-modal { width: min(530px, 100%); }

.partner-application-calculation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 15px;
  padding: 13px;
  border: 1px solid rgba(99, 230, 164, 0.14);
  border-radius: 11px;
  background: rgba(99, 230, 164, 0.05);
  color: var(--muted);
  font-size: 10px;
}

.partner-application-calculation b { color: var(--green); }

.admin-partner-list { display: grid; gap: 10px; }

.admin-partner-card {
  padding: 15px;
  border: 1px solid rgba(138, 99, 255, 0.16);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(138, 99, 255, 0.055), rgba(255, 255, 255, 0.012));
}

.admin-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0;
}

.admin-partner-grid > span {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-partner-grid small { color: var(--muted-2); font-size: 9px; }
.admin-partner-grid b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-partner-grid em { color: var(--muted); font-size: 9px; font-style: normal; }

.modal-backdrop {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(2, 3, 5, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  backdrop-filter: blur(12px);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: min(455px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  transform: translateY(14px) scale(0.985);
  border: 1px solid var(--line-strong);
  border-radius: 23px;
  background:
    radial-gradient(circle at 100% 0, rgba(138,99,255,.1), transparent 35%),
    #11141a;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
  transition: transform 180ms ease;
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.modal-close::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  content: "×";
  font-size: 20px;
  line-height: 1;
  transform: rotate(0) scale(1);
  transform-origin: 50% 50%;
  transition: color 160ms ease, opacity 160ms ease, transform 200ms cubic-bezier(.2, .8, .2, 1);
}

.modal-close:hover::before {
  transform: rotate(90deg) scale(1.08);
  color: var(--text);
}

.modal-close:active::before {
  transform: rotate(90deg) scale(0.86);
  opacity: 0.72;
}

.modal-close:focus-visible {
  border-radius: 7px;
  outline: 2px solid rgba(138, 99, 255, 0.5);
  outline-offset: 2px;
}

.modal-icon {
  width: 43px;
  height: 43px;
  margin-bottom: 17px;
}

.modal h3 {
  margin: 7px 0 7px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.modal > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.profile-modal,
.password-reset-modal {
  width: min(485px, 100%);
}

#profileModal[data-required="true"] .modal-close {
  display: none;
}

.telegram-link-steps {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 15px 17px 15px 34px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.022);
  color: #aeb5c1;
  font-size: 12px;
  line-height: 1.55;
}

.telegram-link-steps b {
  color: #cbbfff;
}

.telegram-bot-link {
  color: #cbbfff;
  font-weight: 800;
  text-decoration: none;
}

.telegram-bot-link:hover {
  color: #ffffff;
}

.telegram-linked-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(99, 230, 164, 0.24);
  border-radius: 13px;
  background: rgba(99, 230, 164, 0.07);
}

.telegram-linked-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(99, 230, 164, 0.13);
  color: var(--green);
  font-weight: 850;
}

.telegram-linked-card > div {
  display: grid;
  gap: 3px;
}

.telegram-linked-card b {
  font-size: 13px;
}

.telegram-linked-card small {
  color: var(--muted);
  font-size: 11px;
}

.profile-logout-button {
  width: 100%;
  margin-top: 13px;
}

.amount-field {
  display: grid;
  gap: 8px;
}

.amount-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.amount-field > div {
  display: flex;
  min-height: 60px;
  align-items: center;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.amount-field b {
  color: #a89bbd;
  font-size: 20px;
}

.amount-field input {
  width: 100%;
  margin-left: 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.amount-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0 18px;
}

.amount-chips button {
  min-height: 33px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.amount-chips button.active {
  border-color: rgba(138, 99, 255, 0.3);
  background: rgba(138, 99, 255, 0.1);
  color: #c3b2ff;
}

.payment-methods {
  display: grid;
  gap: 7px;
}

.payment-method {
  display: grid;
  grid-template-columns: 36px 1fr 15px;
  align-items: center;
  gap: 11px;
  min-height: 57px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.payment-method.active {
  border-color: rgba(99, 230, 164, 0.23);
  background: rgba(99, 230, 164, 0.035);
}

.payment-method:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.coin {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.coin.usdt { background: #25a17b; color: #fff; }
.coin.rocket { background: #6c8cff; color: #fff; }

.coin.rocket svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.payment-method > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.payment-method b { font-size: 13px; }
.payment-method small { color: var(--muted-2); font-size: 12px; }

.payment-method i {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.payment-method.active i {
  border: 4px solid var(--green);
}

.modal-submit {
  width: 100%;
  margin-top: 17px;
}

.modal-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.modal-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 12px;
}

.modal-note svg {
  width: 13px;
}

.dropzone {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  border: 1px dashed rgba(138, 99, 255, 0.3);
  border-radius: 15px;
  background: rgba(138, 99, 255, 0.035);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.dropzone.dragging {
  border-color: var(--violet);
  background: rgba(138, 99, 255, 0.08);
}

.dropzone:focus-visible {
  border-color: var(--violet);
  outline: 2px solid rgba(138, 99, 255, 0.18);
  outline-offset: 3px;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 4px;
  place-items: center;
  border-radius: 13px;
  background: rgba(138, 99, 255, 0.1);
  color: #a98fff;
}

.dropzone b { font-size: 13px; }
.dropzone small { color: var(--muted); font-size: 12px; }

.dropzone img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 13px;
  background: #0d1015;
}

.dropzone.has-file img {
  display: block;
}

.dispute-evidence {
  position: relative;
  display: grid !important;
  min-height: 82px !important;
  grid-template-columns: 38px 1fr;
  align-items: center !important;
  gap: 11px !important;
  overflow: hidden;
  padding: 10px 12px !important;
  cursor: pointer;
}

.dispute-evidence input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dispute-evidence-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: rgba(138, 99, 255, 0.1);
  color: #b5a3ff;
  font-size: 21px;
}

.dispute-evidence > span:nth-of-type(2) {
  display: grid;
  gap: 3px;
}

.dispute-evidence b { font-size: 13px; }
.dispute-evidence small { color: var(--muted); font-size: 12px; }

.dispute-evidence img {
  position: absolute;
  right: 8px;
  display: none;
  width: 66px;
  height: 66px;
  border-radius: 9px;
  object-fit: cover;
}

.dispute-evidence.has-file {
  padding-right: 84px !important;
  border-color: rgba(99, 230, 164, 0.34) !important;
}

.dispute-evidence.has-file img { display: block; }

.notifications-modal {
  width: min(540px, 100%);
}

.notification-sound-toggle {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .018);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease;
}

.notification-sound-toggle:hover {
  border-color: rgba(138, 99, 255, .28);
  background: rgba(138, 99, 255, .045);
}

.notification-sound-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(138, 99, 255, .12);
  color: #b5a3ff;
}

.notification-sound-icon svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.notification-sound-toggle > span:nth-child(2) { display: grid; gap: 3px; }
.notification-sound-toggle b { font-size: 12px; }
.notification-sound-toggle small { color: var(--green); font-size: 10px; }

.notification-sound-toggle > i {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(138, 99, 255, .65);
  box-shadow: inset 0 0 0 1px rgba(180, 155, 255, .18);
  transition: background 160ms ease;
}

.notification-sound-toggle > i::after {
  position: absolute;
  top: 3px;
  left: 19px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  content: "";
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
  transition: transform 160ms ease, left 160ms ease;
}

.notification-sound-toggle[aria-pressed="false"] .notification-sound-icon {
  background: rgba(255, 255, 255, .04);
  color: var(--muted-2);
}

.notification-sound-toggle[aria-pressed="false"] .sound-wave { display: none; }
.notification-sound-toggle[aria-pressed="false"] small { color: var(--muted-2); }
.notification-sound-toggle[aria-pressed="false"] > i { background: #292e38; }
.notification-sound-toggle[aria-pressed="false"] > i::after { left: 3px; }

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.notification-list::-webkit-scrollbar { display: none; }

.notification-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  font-family: inherit;
  text-align: left;
}

.notification-item.unread {
  border-color: rgba(138, 99, 255, 0.28);
  background: rgba(138, 99, 255, 0.06);
}

.notification-item.support-reply {
  border-color: rgba(99, 230, 164, 0.3);
  background: linear-gradient(135deg, rgba(99, 230, 164, 0.1), rgba(99, 230, 164, 0.035));
}

.notification-item.support-reply .notification-symbol {
  background: rgba(99, 230, 164, 0.14);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(99, 230, 164, 0.14);
}

.notification-item.support-reply b { color: #dfffee; }

.notification-item.admin-broadcast {
  position: relative;
  padding: 12px;
  border-color: rgba(238, 190, 82, 0.4);
  background: linear-gradient(135deg, rgba(238, 190, 82, 0.14), rgba(238, 190, 82, 0.035));
  box-shadow: inset 0 1px rgba(255, 229, 156, 0.06);
}

.notification-item.admin-broadcast .notification-symbol {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: rgba(238, 190, 82, 0.14);
  color: #f3c967;
  box-shadow: inset 0 0 0 1px rgba(238, 190, 82, 0.16);
}

.notification-item.admin-broadcast .notification-content { grid-column: 2; }
.notification-item.admin-broadcast time { grid-column: 3; }
.notification-item.admin-broadcast b { color: #ffe6a3; }

.notification-item.payment-received {
  border-color: rgba(99, 230, 164, 0.34);
  background: linear-gradient(135deg, rgba(99, 230, 164, 0.11), rgba(99, 230, 164, 0.025));
}

.notification-item.payment-received .notification-symbol {
  background: rgba(99, 230, 164, 0.14);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(99, 230, 164, 0.16);
}

.notification-item.payment-received b { color: #dfffee; }

.notification-item.partner-approved {
  border-color: rgba(138, 99, 255, 0.42);
  background: linear-gradient(135deg, rgba(138, 99, 255, 0.15), rgba(138, 99, 255, 0.035));
  box-shadow: inset 0 1px rgba(205, 190, 255, 0.06);
}

.notification-item.partner-approved .notification-symbol {
  background: rgba(138, 99, 255, 0.18);
  color: #c5b4ff;
  box-shadow: inset 0 0 0 1px rgba(138, 99, 255, 0.2);
}

.notification-item.partner-approved b { color: #e4ddff; }

.notification-item.admin-access-granted {
  border-color: rgba(255, 86, 109, 0.48);
  background:
    radial-gradient(circle at 13% 50%, rgba(255, 91, 116, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 78, 104, 0.13), rgba(65, 18, 31, 0.08));
  box-shadow:
    inset 0 1px rgba(255, 196, 204, 0.06),
    0 0 18px rgba(255, 68, 98, 0.1);
  animation: admin-access-glow 2.8s ease-in-out infinite;
}

.notification-item.admin-access-granted .notification-symbol {
  background: rgba(255, 75, 103, 0.16);
  color: #ff8295;
  box-shadow: inset 0 0 0 1px rgba(255, 102, 125, 0.2), 0 0 14px rgba(255, 62, 94, 0.14);
}

.notification-item.admin-access-granted b { color: #ffd9df; }

@keyframes admin-access-glow {
  50% {
    border-color: rgba(255, 102, 125, 0.66);
    box-shadow:
      inset 0 1px rgba(255, 215, 221, 0.08),
      0 0 26px rgba(255, 58, 91, 0.18);
  }
}

.notification-kind {
  flex: 0 0 auto;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(99, 230, 164, 0.12);
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notification-kind.brand {
  background: rgba(99, 230, 164, 0.13);
  color: var(--green);
}

.notification-item.admin-broadcast .notification-kind.brand {
  position: absolute;
  top: 9px;
  right: 12px;
  left: auto;
}

.notification-admin { cursor: pointer; }

.notification-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(138, 99, 255, 0.12);
  color: #b5a3ff;
  font-size: 14px;
  font-weight: 850;
}

.notification-symbol svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.notification-item > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notification-content {
  display: flex !important;
  min-width: 0;
  flex-direction: column;
  align-self: center;
  justify-content: center;
  gap: 4px !important;
}

.notification-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
}

.notification-title b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-content > small {
  display: block;
  margin: 0;
}

.notification-item b { font-size: 13px; }
.notification-item small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.notification-item time { color: var(--muted-2); font-size: 12px; white-space: nowrap; }

.notification-empty {
  padding: 34px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.notification-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.notification-actions > button {
  width: 100%;
}

.notification-clear-button {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid rgba(255, 107, 122, 0.2);
  border-radius: 10px;
  background: rgba(255, 107, 122, 0.055);
  color: #ff8c98;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.notification-clear-button:hover {
  border-color: rgba(255, 107, 122, 0.38);
  background: rgba(255, 107, 122, 0.1);
  color: #ffabb3;
}

.notification-clear-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.reserve-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.reserve-line span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.reserve-line i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.reserve-line b {
  color: var(--orange);
}

.request-details-card {
  position: fixed;
  z-index: 225;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(370px, calc(100vw - 44px));
  gap: 11px;
  padding: 16px;
  transform: translateY(12px) scale(.98);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(17, 21, 28, .98);
  opacity: 0;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .46);
  transition: transform 180ms ease, opacity 180ms ease;
}

.request-details-card[hidden] { display: none; }
.request-details-card.open { transform: translateY(0) scale(1); opacity: 1; }

.request-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.request-details-head > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.request-details-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  transition: color 160ms ease, transform 200ms cubic-bezier(.2, .8, .2, 1);
}

.request-details-close:hover { transform: rotate(90deg); color: var(--text); }
.request-details-close:focus-visible { border-radius: 7px; outline: 2px solid rgba(138, 99, 255, .5); outline-offset: 2px; }
.request-details-card > strong { font-size: 22px; letter-spacing: -.03em; }

.request-details-grid {
  display: grid;
  grid-template-columns: 1.1fr .85fr 1fr;
  gap: 7px;
}

.request-details-grid > span {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .018);
}

.request-details-grid small { color: var(--muted-2); font-size: 9px; }
.request-details-grid b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.request-details-grid > .request-details-two-factor { grid-column: 1 / -1; }
.request-details-two-factor[hidden] { display: none; }
.request-details-two-factor > span { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.request-details-two-factor b { color: #c5b4ff; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 13px; }
.request-details-two-factor button { flex: 0 0 auto; min-height: 28px; padding: 0 9px; border: 1px solid rgba(138, 99, 255, .24); border-radius: 8px; background: rgba(138, 99, 255, .08); color: #c5b4ff; cursor: pointer; font-size: 10px; font-weight: 750; }
.request-details-two-factor button:hover { border-color: rgba(138, 99, 255, .45); background: rgba(138, 99, 255, .14); }
.request-details-status.success { color: var(--green); }
.request-details-status.failed { color: #ff828b; }
.request-details-status.processing { color: #7eb5ff; }
.request-details-status.waiting { color: #eeb16f; }
.request-details-status.disputed { color: #bd9cff; }

.toast-stack {
  position: fixed;
  z-index: 220;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 9px;
  width: min(340px, calc(100vw - 44px));
}

.toast {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 11px;
  padding: 13px;
  transform: translateY(10px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(20, 24, 31, 0.96);
  opacity: 0;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.36);
  transition: 180ms ease;
  backdrop-filter: blur(16px);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.support-reply {
  border-color: rgba(99, 230, 164, 0.38);
  background: linear-gradient(135deg, rgba(19, 39, 32, 0.98), rgba(17, 23, 27, 0.98));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 230, 164, 0.12);
}

.toast.support-reply > span {
  box-shadow: inset 0 0 0 1px rgba(99, 230, 164, 0.2);
}

.toast.admin-broadcast {
  border-color: rgba(238, 190, 82, 0.42);
  background: linear-gradient(135deg, rgba(47, 38, 17, 0.98), rgba(24, 23, 21, 0.98));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(238, 190, 82, 0.12);
}

.toast.admin-broadcast > span {
  background: rgba(238, 190, 82, 0.14);
  color: #f3c967;
  box-shadow: inset 0 0 0 1px rgba(238, 190, 82, 0.2);
}

.toast.payment-received {
  border-color: rgba(99, 230, 164, 0.38);
  background: linear-gradient(135deg, rgba(19, 39, 32, 0.98), rgba(17, 23, 27, 0.98));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 230, 164, 0.12);
}

.toast.admin-access-granted {
  border-color: rgba(255, 86, 109, 0.5);
  background: linear-gradient(135deg, rgba(53, 19, 29, 0.98), rgba(24, 19, 23, 0.98));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 58, 91, 0.16);
}

.toast.admin-access-granted > span {
  background: rgba(255, 75, 103, 0.16);
  color: #ff8295;
  box-shadow: inset 0 0 0 1px rgba(255, 102, 125, 0.2);
}

.toast.payment-received > span {
  box-shadow: inset 0 0 0 1px rgba(99, 230, 164, 0.2);
}

.toast > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(99, 230, 164, 0.1);
  color: var(--green);
  font-weight: 850;
}

.toast div {
  display: grid;
  gap: 3px;
}

.toast b { font-size: 13px; }
.toast small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.auth-hidden,
.auth-screen.hidden {
  display: none !important;
}

.auth-screen {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  padding: 18px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(430px, 0.92fr);
  min-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #0d1015;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.38);
}

.auth-showcase {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(30px, 4vw, 58px);
  background:
    radial-gradient(circle at 83% 82%, rgba(99, 230, 164, 0.14), transparent 34%),
    radial-gradient(circle at 5% 6%, rgba(138, 99, 255, 0.25), transparent 40%),
    linear-gradient(145deg, #17132a 0%, #10141b 52%, #0d1516 100%);
}

.auth-showcase::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 37px 37px;
  content: "";
  mask-image: linear-gradient(145deg, #000 10%, transparent 78%);
  pointer-events: none;
}

.auth-showcase::after {
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(99, 230, 164, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 55px rgba(99, 230, 164, 0.022), 0 0 0 115px rgba(99, 230, 164, 0.014);
}

.auth-brand {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 0;
}

.auth-copy {
  position: relative;
  z-index: 2;
  max-width: 630px;
  margin: auto 0;
  padding: 38px 0 28px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(99, 230, 164, 0.16);
  border-radius: 999px;
  background: rgba(99, 230, 164, 0.055);
  color: #91dcba;
  font-size: 12px;
  font-weight: 750;
}

.auth-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(99, 230, 164, 0.75);
}

.auth-copy h1 {
  max-width: 660px;
  margin: 24px 0 17px;
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.auth-copy h1 em {
  background: linear-gradient(105deg, #ad95ff, #7beab3);
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.auth-copy > p {
  max-width: 535px;
  margin: 0;
  color: #949baa;
  font-size: clamp(11px, 1.15vw, 14px);
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: calc(100% + min(4vw, 46px));
  margin-top: 32px;
}

.auth-benefits > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 3px 9px;
  min-width: 0;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
}

.auth-benefits > div > span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(138, 99, 255, 0.1);
  color: #ac94ff;
}

.auth-benefits svg {
  width: 16px;
  height: 16px;
}

.auth-benefits b {
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.auth-benefits small {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

.auth-preview-card {
  position: relative;
  z-index: 2;
  width: min(420px, 76%);
  overflow: hidden;
  padding: 18px 20px;
  transform: rotate(-1.5deg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(19, 23, 29, 0.72);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
}

.auth-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-preview-top i {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(99, 230, 164, 0.08);
  color: var(--green);
  font-size: 12px;
  font-style: normal;
}

.auth-preview-top i.unavailable {
  background: rgba(246, 173, 98, 0.1);
  color: #eeb16f;
}

.auth-preview-card > strong {
  display: block;
  margin: 8px 0 16px;
  font-size: 31px;
  letter-spacing: -0.055em;
}

.auth-preview-stats {
  display: flex;
  gap: 33px;
}

.auth-preview-stats > span {
  display: grid;
  gap: 3px;
}

.auth-preview-stats small {
  color: var(--muted-2);
  font-size: 12px;
}

.auth-preview-stats b {
  font-size: 12px;
}

.auth-preview-glow {
  position: absolute;
  top: -70px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(138, 99, 255, 0.16);
  filter: blur(35px);
}

.auth-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  color: var(--muted-2);
  font-size: 12px;
}

.auth-panel {
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 62px clamp(28px, 5vw, 76px) 38px;
  background:
    radial-gradient(circle at 100% 0, rgba(138, 99, 255, 0.08), transparent 34%),
    #0d1015;
}

.auth-panel-inner {
  width: min(420px, 100%);
}

.auth-mobile-brand {
  display: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 32px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.auth-tabs[hidden] { display: none; }

.auth-tabs button {
  min-height: 39px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: 150ms ease;
}

.auth-tabs button.active {
  background: #1b2028;
  color: #f4f6fa;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.05);
}

.auth-form.hidden {
  display: none;
}

.auth-form {
  animation: fade-in 190ms ease;
}

.auth-heading {
  margin-bottom: 24px;
}

.auth-heading h2 {
  margin: 7px 0 6px;
  font-size: 29px;
  letter-spacing: -0.045em;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-verification-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(138, 99, 255, 0.24);
  border-radius: 14px;
  background: rgba(138, 99, 255, 0.1);
  color: #b9a7ff;
  box-shadow: 0 12px 34px rgba(73, 47, 169, 0.14);
}

.auth-verification-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-code-field input {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.28em;
}

.auth-security-note {
  margin: 2px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

.auth-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.auth-field > span {
  color: #aeb5c1;
  font-size: 12px;
  font-weight: 700;
}

.auth-field > div {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-field > div:focus-within {
  border-color: rgba(138, 99, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(138, 99, 255, 0.08);
}

.auth-field.invalid > div {
  border-color: rgba(255, 114, 125, 0.52);
  box-shadow: 0 0 0 3px rgba(255, 114, 125, 0.06);
}

.auth-field svg {
  width: 16px;
  color: #656e7c;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}

.auth-field select {
  appearance: none;
  cursor: pointer;
}

.auth-field select option {
  background: #151920;
  color: var(--text);
}

.custom-select-field {
  position: relative;
  z-index: 4;
}

.custom-select-field:has(.custom-select.open) {
  z-index: 12;
}

.auth-field > .custom-select {
  position: relative;
  display: block;
  padding: 0;
}

.custom-select-trigger {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
}

.custom-select-trigger svg {
  width: 17px;
  flex: 0 0 17px;
  transition: transform 160ms ease;
}

.custom-select.open .custom-select-trigger svg {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: grid;
  gap: 3px;
  padding: 6px;
  transform: translateY(-5px) scale(0.985);
  transform-origin: top;
  border: 1px solid rgba(138, 99, 255, 0.28);
  border-radius: 12px;
  background: #151820;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(138, 99, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}

.custom-select.open .custom-select-options {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.custom-select-options button {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c7ccd6;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  transition: background 120ms ease, color 120ms ease;
}

.custom-select-options button:hover,
.custom-select-options button:focus-visible {
  outline: 0;
  background: rgba(138, 99, 255, 0.1);
  color: #f0ecff;
}

.custom-select-options button.selected {
  background: linear-gradient(90deg, rgba(138, 99, 255, 0.18), rgba(92, 73, 218, 0.08));
  color: #c9bcff;
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
  color: #4d5562;
}

.support-field > div {
  min-height: 132px;
  align-items: stretch;
  padding-block: 12px;
}

.support-modal { width: min(520px, 100%); }
.optional-label { color: var(--muted-2); font-size: 10px; font-style: normal; font-weight: 600; }
.auth-field > .support-field-hint { min-height: 0; color: var(--muted-2); font-size: 10px; }

.support-attachment-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.support-attachment-field > span { color: #aeb5c1; font-size: 12px; font-weight: 700; }

.support-attachment-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, .018);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}

.support-attachment-button:hover { border-color: rgba(138, 99, 255, .45); background: rgba(138, 99, 255, .05); }
.support-attachment-button > b { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: rgba(138, 99, 255, .1); color: #bda8ff; font-size: 18px; }
.support-attachment-button > span { display: grid; gap: 3px; }
.support-attachment-button strong { font-size: 12px; }
.support-attachment-button small { color: var(--muted-2); font-size: 10px; }

.support-attachment-previews { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.support-attachment-previews[hidden] { display: none; }

.support-attachment-preview {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}

.support-attachment-preview img { width: 100%; height: 100%; object-fit: cover; }
.support-attachment-preview button { position: absolute; top: 3px; right: 3px; display: grid; width: 22px; height: 22px; padding: 0; place-items: center; border: 0; border-radius: 7px; background: rgba(5, 7, 12, .84); color: #fff; cursor: pointer; font-size: 14px; }

.auth-field textarea {
  min-height: 106px;
  resize: vertical;
  line-height: 1.5;
}

.auth-field > small {
  min-height: 9px;
  color: var(--red);
  font-size: 12px;
}

.password-toggle {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  background: transparent;
  color: #67707d;
  cursor: pointer;
  font-size: 13px;
}

.password-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: 4px;
  margin: -4px 0 13px;
}

.password-strength i {
  height: 3px;
  border-radius: 999px;
  background: #252a32;
  transition: background 140ms ease;
}

.password-strength.level-1 i:nth-child(-n+1) { background: var(--red); }
.password-strength.level-2 i:nth-child(-n+2) { background: var(--orange); }
.password-strength.level-3 i:nth-child(-n+3) { background: #e5d66b; }
.password-strength.level-4 i:nth-child(-n+4) { background: var(--green); }

.password-strength span {
  min-width: 81px;
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 12px;
  text-align: right;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  cursor: pointer;
}

.auth-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.auth-check > span {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  transition: 140ms ease;
}

.auth-check i {
  transform: scale(0);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  transition: transform 140ms ease;
}

.auth-check input:checked + span {
  border-color: var(--violet);
  background: var(--violet-2);
}

.auth-check input:checked + span i {
  transform: scale(1);
}

.auth-check b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.compact-check {
  margin: 0;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
}

.auth-options > button {
  background: transparent;
  color: #a991ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.auth-alert {
  display: none;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 114, 125, 0.18);
  border-radius: 9px;
  background: rgba(255, 114, 125, 0.055);
  color: #ff939b;
  font-size: 12px;
  line-height: 1.45;
}

.auth-alert.show {
  display: block;
}

.auth-submit {
  width: 100%;
  margin-top: 17px;
}

.auth-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.auth-submit.loading span::after {
  content: "...";
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
}

.auth-switch button {
  background: transparent;
  color: #ae99ff;
  cursor: pointer;
  font-size: inherit;
  font-weight: 750;
}

.mobile-menu,
.sidebar-close,
.sidebar-overlay {
  display: none;
}

@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(370px, .9fr) minmax(420px, 1.1fr); }
  .auth-benefits { grid-template-columns: 1fr; max-width: 350px; }
  .auth-benefits > div:nth-child(3) { display: none; }
  .auth-preview-card { width: 90%; }
  .app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { width: 218px; }
  .hero-grid { grid-template-columns: 1fr; }
  .balance-card { min-height: 250px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-grid { grid-template-columns: 1fr; }
  .flow-card { grid-template-columns: 1fr; }
  .admin-summary { grid-template-columns: repeat(2, 1fr); }
  .admin-user-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-user-card { grid-template-columns: 38px minmax(170px, 1fr) 110px 105px auto; }
  .admin-user-stat { display: none; }
  .partner-hero { grid-template-columns: minmax(0, 1fr) 290px; padding: 34px; }
  .partner-dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  html, body { scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
  .ambient { display: none; }
  .auth-screen { padding: 0; }
  .auth-shell { display: block; min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; }
  .auth-showcase { display: none; }
  .auth-panel { min-height: 100vh; min-height: 100dvh; padding: max(48px, env(safe-area-inset-top)) 24px max(30px, env(safe-area-inset-bottom)); }
  .auth-mobile-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 27px; }
  .auth-mobile-brand .brand-mark { width: 37px; height: 37px; flex-basis: 37px; border-radius: 12px; }
  .auth-mobile-brand b { font-size: 16px; }
  .app-shell { display: block; }
  .sidebar {
    width: min(288px, calc(100vw - 32px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: max(24px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    transform: translate3d(-104%, 0, 0);
    background: #0b0e13;
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.48);
    backdrop-filter: none;
    scrollbar-width: none;
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar-close {
    position: absolute;
    z-index: 2;
    top: max(14px, env(safe-area-inset-top));
    right: 10px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: color 160ms ease, transform 180ms ease;
  }
  .sidebar-close:hover { color: var(--text); transform: rotate(90deg); }
  .sidebar > .brand { margin-right: 42px; }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar { transform: translate3d(0, 0, 0); }
  .sidebar-overlay {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    background: rgba(2, 3, 6, .72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .main-content { padding: max(42px, env(safe-area-inset-top)) 18px max(34px, env(safe-area-inset-bottom)); }
  .mobile-menu { display: grid; width: 44px; height: 44px; flex: 0 0 44px; align-content: center; gap: 4px; }
  .mobile-menu span { width: 16px; height: 1.5px; background: currentColor; transition: transform 180ms ease, opacity 140ms ease; }
  body.sidebar-open .mobile-menu span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  body.sidebar-open .mobile-menu span:nth-child(2) { opacity: 0; }
  body.sidebar-open .mobile-menu span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .topbar { align-items: flex-start; margin-bottom: 23px; }
  .page-title { flex: 1; min-width: 0; }
  .page-title p { display: none; }
  .page-title h1 { margin-top: 6px; font-size: 20px; }
  .system-status { display: none; }
  .topbar-actions { flex: 0 0 auto; gap: 8px; }
  .icon-button, .primary-button.compact { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .primary-button.compact { font-size: 0; }
  .primary-button.compact svg { width: 17px; margin: 0; }
  .launch-card { grid-template-columns: 1fr 160px; }
  .qr-visual { min-width: 150px; }
  .qr-cube { width: 100px; height: 100px; }
  .orbit-one { width: 150px; height: 150px; }
  .orbit-two { width: 180px; height: 180px; }
  .request-table-head { display: none; }
  .request-table-row { grid-template-columns: 1.2fr 0.8fr auto 25px; }
  .request-table-row > :nth-child(2), .request-table-row > :nth-child(3), .request-table-row > :nth-child(6) { display: none; }
  .billing-grid { grid-template-columns: 1fr; }
  .admin-dispute-grid { grid-template-columns: 1fr 1fr; }
  .admin-user-card { grid-template-columns: 38px minmax(0, 1fr) 105px auto; }
  .admin-user-tags { display: none; }
  .admin-user-open { font-size: 0; }
  .admin-user-open::after { content: "→"; font-size: 13px; }
  .admin-user-history-grid { grid-template-columns: 1fr; }
  .partner-hero { grid-template-columns: 1fr; }
  .partner-profit-card { max-width: 430px; }
  .partner-controls { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .auth-screen,
  .auth-shell,
  .auth-panel,
  .auth-panel-inner,
  .auth-form,
  .auth-field,
  .auth-field > div { min-width: 0; max-width: 100%; }
  .auth-screen,
  .auth-shell,
  .auth-panel,
  .auth-panel-inner,
  .auth-form { width: 100%; }
  .auth-panel { overflow-x: hidden; }
  .auth-panel { align-items: start; padding: max(32px, env(safe-area-inset-top)) 17px max(24px, env(safe-area-inset-bottom)); }
  .auth-panel-inner { width: 100%; }
  .auth-mobile-brand { margin-bottom: 22px; }
  .auth-tabs { margin-bottom: 25px; }
  .auth-heading h2 { font-size: 26px; }
  .auth-heading p { line-height: 1.55; }
  .auth-field > div { min-height: 50px; }
  .auth-field input,
  .auth-field select,
  .auth-field textarea { width: auto; flex: 1 1 auto; }
  .auth-field input,
  .auth-field select,
  .auth-field textarea,
  .admin-broadcast-fields input,
  .admin-broadcast-fields textarea,
  .admin-support-reply textarea,
  .admin-user-search input,
  .admin-user-toolbar select,
  .admin-balance-fields select,
  .admin-money-input input,
  .admin-reason-field input,
  .partner-link-field input,
  .partner-price-input input,
  .amount-field input { font-size: 16px; }
  .main-content { padding: max(28px, env(safe-area-inset-top)) 12px max(28px, env(safe-area-inset-bottom)); }
  .topbar { align-items: center; gap: 8px; margin-bottom: 20px; }
  .topbar-actions { gap: 6px; }
  .page-title h1 span { display: none; }
  .page-title h1 { overflow: hidden; margin-top: 0; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .balance-card, .launch-card, .panel, .flow-card, .table-card, .billing-balance, .spend-chart { border-radius: 18px; box-shadow: 0 16px 48px rgba(0, 0, 0, .24); }
  .balance-card { min-height: 0; padding: 20px; }
  .balance-value b { font-size: 40px; }
  .wallet-icon { width: 42px; height: 42px; border-radius: 13px; }
  .balance-meta { flex-direction: column; gap: 10px; }
  .balance-meta div { display: flex; justify-content: space-between; }
  .balance-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 18px; }
  .balance-actions button { min-height: 44px; }
  .launch-card { display: block; min-height: 250px; padding: 22px 20px; }
  .qr-visual { position: absolute; right: -30px; bottom: -38px; opacity: .32; }
  .qr-orbit { animation: none; }
  .launch-content { max-width: 100%; }
  .launch-content h2 { font-size: 27px; }
  .launch-content p { max-width: 76%; line-height: 1.55; }
  .launch-content .primary-button { min-height: 44px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { min-height: 96px; gap: 9px; padding: 12px; }
  .stat-icon { width: 34px; height: 34px; }
  .stat-card b { font-size: 16px; }
  .stat-card small { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
  .panel { padding: 17px 15px; }
  .panel-head { gap: 10px; margin-bottom: 15px; }
  .panel-head h3 { font-size: 16px; }
  .request-item { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; padding: 11px; }
  .request-account { display: none; }
  .request-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .request-actions:has(.decision-timer) { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .request-actions .result-button, .request-actions .decision-timer { min-width: 0; min-height: 40px; padding-inline: 7px; }
  .flow-card { gap: 20px; padding: 20px; }
  .flow-steps { grid-template-columns: 1fr; gap: 8px; }
  .flow-steps > i { width: 1px; height: 13px; margin: 0 0 0 15px; }
  .section-heading { align-items: center; gap: 12px; margin-bottom: 19px; }
  .section-heading h2 { font-size: 27px; line-height: 1.08; }
  .section-heading p { max-width: 250px; line-height: 1.5; }
  .section-heading-actions { gap: 7px; }
  .section-heading-actions .primary-button,
  .section-heading-actions .outline-button { width: 44px; min-height: 44px; flex: 0 0 44px; padding: 0; font-size: 0; }
  .filter-bar { overflow-x: auto; padding-bottom: 4px; }
  .filter-bar { scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .search-box { display: none; }
  .table-card { padding: 6px; }
  .request-table-row { grid-template-columns: minmax(0, 1fr) 30px; gap: 8px; padding: 11px 9px; }
  .request-display-id { display: none; }
  .request-mobile-account { display: block; }
  .request-mobile-two-factor { display: block; }
  .request-qr-label.has-two-factor { display: none; }
  .request-table-row > :nth-child(4), .request-table-row > :nth-child(6) { display: none; }
  .request-table-row > .table-decision,
  .request-table-row > .table-decision-empty { grid-column: 1 / -1; grid-row: 2; }
  .table-decision { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
  .table-decision .result-button, .table-decision .decision-timer { min-width: 0; min-height: 40px; padding-inline: 7px; }
  .table-decision-empty { padding: 5px 0; }
  .billing-balance strong b { font-size: 38px; }
  .billing-balance, .spend-chart { min-height: 0; padding: 20px 17px; }
  .spend-period-switch button { height: 36px; padding: 0 4px; font-size: 10px; }
  .chart-bars { height: 112px; gap: 7px; padding-top: 14px; }
  .chart-bars[data-period="month"] { gap: 3px; }
  .chart-bars small { bottom: -18px; font-size: 10px; }
  .transactions-card { padding: 16px 14px; }
  .transaction-row { grid-template-columns: 36px 1fr auto; }
  .transaction-row > span:nth-child(3), .transaction-row > span:nth-child(4) { display: none; }
  .transaction-row { gap: 9px; min-height: 66px; }
  .admin-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-summary article { min-height: 90px; padding: 14px; }
  .admin-summary article:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .admin-user-metrics { grid-template-columns: 1fr 1fr; }
  .admin-user-metrics article { padding: 12px; }
  .admin-broadcast-fields { grid-template-columns: 1fr; }
  .admin-broadcast-submit { width: 100%; }
  .admin-user-toolbar { grid-template-columns: 1fr; }
  .admin-user-card { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; padding: 10px; }
  .admin-user-avatar { width: 36px; height: 36px; }
  .admin-user-balance { text-align: right; }
  .admin-user-open { display: none; }
  .admin-user-overview { grid-template-columns: 1fr 1fr; }
  .admin-balance-fields { grid-template-columns: 1fr; }
  .admin-balance-form .primary-button { width: 100%; }
  .admin-account-controls > div:last-child { display: grid; grid-template-columns: 1fr; }
  .admin-dispute-grid { grid-template-columns: 1fr; }
  .admin-dispute-actions { align-items: stretch; flex-direction: column; }
  .admin-resolve { width: 100%; }
  .admin-block-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .admin-support-card { grid-template-columns: 1fr; }
  .admin-support-actions { justify-items: stretch; }
  .admin-support-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-support-done, .admin-support-reply-open { width: 100%; }
  .support-attachment-previews { grid-template-columns: repeat(4, 1fr); }
  .partner-hero { min-height: 0; gap: 25px; padding: 24px 18px; border-radius: 20px; }
  .partner-hero h2 { margin-top: 16px; font-size: 27px; line-height: 1.08; }
  .partner-hero-copy > p { line-height: 1.6; }
  .partner-hero-copy > .primary-button { width: 100%; min-height: 45px; }
  .partner-profit-card { padding: 21px; }
  .partner-metrics { grid-template-columns: 1fr; }
  .partner-metrics article { min-height: 96px; }
  .partner-dashboard-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .partner-dashboard-stats article { min-height: 104px; padding: 15px; }
  .partner-controls { gap: 10px; }
  .partner-control-card { padding: 21px; }
  .partner-link-field { grid-template-columns: 1fr; }
  .partner-link-field button { min-height: 42px; }
  .partner-price-input { grid-template-columns: auto minmax(0, 1fr); }
  .partner-price-input small { grid-column: 1 / 3; padding-bottom: 10px; }
  .partner-application-calculation { align-items: flex-start; flex-direction: column; }
  .partner-flow { padding: 21px; }
  .partner-steps { grid-template-columns: 1fr; gap: 9px; }
  .partner-steps > div { min-height: 112px; }
  .partner-steps > i { transform: rotate(90deg); text-align: center; }
  .admin-partner-grid { grid-template-columns: 1fr; }
  .modal-backdrop { align-items: end; padding: 0; background: rgba(2, 3, 5, .8); backdrop-filter: none; }
  .modal {
    width: 100%;
    max-height: min(92vh, 92dvh);
    padding: 24px 18px max(20px, env(safe-area-inset-bottom));
    transform: translate3d(0, 28px, 0);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .modal::-webkit-scrollbar { display: none; }
  .modal-backdrop.open .modal { transform: translate3d(0, 0, 0); }
  .modal-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .modal h3 { padding-right: 28px; font-size: 23px; }
  .dropzone { min-height: 165px; }
  .notification-list { max-height: min(54vh, 430px); }
  .notification-item { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .notification-item time { grid-column: 2; font-size: 10px; }
  .notification-item.admin-broadcast time { grid-column: 2; }
  .notification-actions { grid-template-columns: 1fr; }
  .amount-chips { grid-template-columns: repeat(2, 1fr); }
  .amount-chips button { min-height: 40px; }
  .payment-method { min-height: 62px; }
  .custom-select-options { max-height: min(42vh, 310px); overflow-y: auto; overscroll-behavior: contain; }
  .toast-stack { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; width: auto; }
  .request-details-card { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; width: auto; padding: 14px; }
  .request-details-grid { grid-template-columns: 1fr 1fr; }
  .request-details-grid > span:nth-child(3) { grid-column: 1 / -1; }
  .request-details-grid > span:last-child { grid-column: 1 / -1; }
  .toast { padding: 12px; backdrop-filter: none; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; padding-inline: 3px; }
}

@media (max-width: 380px) {
  .main-content { padding-inline: 10px; }
  .topbar { gap: 6px; }
  .topbar-actions { gap: 5px; }
  .page-title h1 { font-size: 16px; }
  .icon-button, .mobile-menu, .primary-button.compact { width: 42px; height: 42px; min-height: 42px; flex-basis: 42px; }
  .balance-actions { grid-template-columns: 1fr; }
  .balance-actions .ghost-button { width: 100%; }
  .stats-grid { gap: 7px; }
  .stat-card { align-items: flex-start; flex-direction: column; min-height: 112px; }
  .spend-period-switch { gap: 2px; padding: 3px; }
  .spend-period-switch button { padding-inline: 2px; font-size: 9px; }
  .admin-summary { grid-template-columns: 1fr; }
  .partner-dashboard-stats { grid-template-columns: 1fr; }
}

@media (max-width: 840px) and (max-height: 680px) {
  .sidebar { padding-top: 18px; }
  .sidebar .brand { margin-bottom: 18px; }
  .nav-item { min-height: 44px; }
  .support-card { margin: 10px 0; padding: 12px; }
  .support-icon, .support-card p { display: none; }
}

@media (hover: none) {
  .primary-button:hover,
  .light-button:hover,
  .outline-button:hover,
  .admin-user-card:hover { transform: none; }
  .modal-close:hover::before { transform: rotate(0) scale(1); }
  .sidebar-close:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
