* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0f14;
  --panel: rgba(18, 24, 33, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --muted: #96a2b4;
  --muted-2: #6e7b8f;
  --accent: #6d5dfc;
  --accent-2: #4cc9f0;
  --success: #1ecb81;
  --warning: #f6b73c;
  --danger: #ff5d73;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --input-h: 58px;
  --sidebar-w: 280px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(109, 93, 252, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(76, 201, 240, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(30, 203, 129, 0.08), transparent 24%),
    linear-gradient(135deg, #090c11 0%, #0d1218 35%, #0b0f14 100%);
}
.promo-select {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: #18202b;
  color: #f4f7fb;
  padding: 0 14px;
  outline: none;
  font: inherit;
}
.worker-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255,255,255,.06);
  text-align: center;
  position: relative;
}

.worker-rank {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #000;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.worker-name {
  font-size: 18px;
  font-weight: 800;
  margin-top: 10px;
}

.worker-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #94a3b8;
}

.worker-profit {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #6d5dfc, #4cc9f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.analytics-panel {
  overflow: hidden;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 20px;
  padding: 0 24px 24px;
}

.dashboard-bottom-left,
.dashboard-bottom-right {
  min-width: 0;
}

.dashboard-bottom-right {
  display: grid;
  gap: 20px;
}

.dashboard-side-card {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
  padding: 18px;
}

.profit-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 230px;
  padding: 18px 14px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
}

.profit-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
  min-width: 0;
}

.profit-chart-value {
  font-size: 11px;
  color: #96a2b4;
  line-height: 1;
  white-space: nowrap;
}

.profit-chart-bar-wrap {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.profit-chart-bar {
  width: 100%;
  max-width: 26px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #6d5dfc 0%, #4cc9f0 100%);
  box-shadow: 0 10px 24px rgba(109,93,252,.25);
}

.profit-chart-label {
  font-size: 11px;
  color: #96a2b4;
  line-height: 1;
  white-space: nowrap;
}

.type-breakdown-list,
.recent-payments-list,
.mini-top-list {
  display: grid;
  gap: 10px;
}

.type-breakdown-item,
.recent-payment-item,
.mini-top-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}

.type-breakdown-left,
.recent-payment-left,
.mini-top-main {
  min-width: 0;
}

.type-breakdown-type,
.recent-payment-type,
.mini-top-name {
  font-weight: 800;
  color: #f4f7fb;
}

.type-breakdown-meta,
.recent-payment-meta,
.mini-top-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #96a2b4;
}

.type-breakdown-value,
.recent-payment-amount,
.mini-top-value {
  font-weight: 800;
  color: #4cc9f0;
  white-space: nowrap;
}

.recent-payment-country {
  margin-top: 4px;
  font-size: 12px;
  color: #96a2b4;
  text-align: right;
}

.mini-top-rank {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  font-weight: 800;
  flex-shrink: 0;
}

.mini-top-box {
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .profit-chart {
    overflow-x: auto;
    grid-template-columns: repeat(14, 42px);
    justify-content: start;
  }
}
.top-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.top-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.worker-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255,255,255,.06);
  text-align: center;
  position: relative;
}

.worker-rank {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #000;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.worker-name {
  font-size: 18px;
  font-weight: 800;
  margin-top: 10px;
}

.worker-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #94a3b8;
}

.worker-profit {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #6d5dfc, #4cc9f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-table th,
.top-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}

.top-table th {
  color: #96a2b4;
  font-size: 13px;
  font-weight: 700;
}

.top-table td {
  color: #f4f7fb;
  font-size: 14px;
}

.top-table tbody tr:hover {
  background: rgba(255,255,255,.03);
}

.top-rank {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  font-weight: 800;
}

.top-rank--hot {
  background: linear-gradient(135deg, #6d5dfc, #4cc9f0);
  color: white;
  box-shadow: 0 10px 24px rgba(109,93,252,.2);
}

.top-user-name {
  font-weight: 800;
}

.top-user-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #96a2b4;
}
.analytics-panel {
  overflow: hidden;
}

.profit-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 230px;
  padding: 18px 14px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
}

.profit-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
  min-width: 0;
}

.profit-chart-value {
  font-size: 11px;
  color: #96a2b4;
  line-height: 1;
  white-space: nowrap;
}

.profit-chart-bar-wrap {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.profit-chart-bar {
  width: 100%;
  max-width: 26px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #6d5dfc 0%, #4cc9f0 100%);
  box-shadow: 0 10px 24px rgba(109,93,252,.25);
}

.profit-chart-label {
  font-size: 11px;
  color: #96a2b4;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .profit-chart {
    overflow-x: auto;
    grid-template-columns: repeat(14, 42px);
    justify-content: start;
  }
}

.promo-select option {
  background: #ffffff;
  color: #111827;
}
body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  appearance: none;
}

.hidden {
  display: none !important;
}

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

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, rgba(23, 31, 43, 0.96), rgba(14, 19, 27, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(109, 93, 252, 0.32), transparent 65%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(109, 93, 252, 1), rgba(76, 201, 240, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 10px 30px rgba(109, 93, 252, 0.35);
}

.sidebar-mini-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 15px;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.auth-title {
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.auth-text {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.field {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 14px;
  color: #d6ddeb;
  margin-bottom: 10px;
  font-weight: 600;
}

.input-wrap,
.search-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 18px;
  pointer-events: none;
}

.input {
  width: 100%;
  height: var(--input-h);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 0 18px 0 50px;
  outline: none;
  transition: 0.2s ease;
}

.input::placeholder {
  color: #748196;
}

.input:focus,
.select:focus {
  border-color: rgba(109, 93, 252, 0.7);
  box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 22px;
  flex-wrap: wrap;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #d9e1ef;
  font-size: 14px;
}

.check input {
  display: none;
}

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.check input:checked + .check-box {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(109, 93, 252, 0.35);
}

.check input:checked + .check-box::before {
  content: "✓";
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.auth-btn {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #7a65ff 45%, var(--accent-2));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 34px rgba(109, 93, 252, 0.28);
  transition: 0.2s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.auth-footer {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.5;
}

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: rgba(10, 14, 20, 0.82);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 8px;
}

.sidebar-title {
  font-size: 17px;
  font-weight: 800;
}

.sidebar-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-label {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 10px;
  margin: 10px 0 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  color: #dce4f2;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.18), rgba(76, 201, 240, 0.08));
  border-color: rgba(109, 93, 252, 0.28);
}

.nav-icon {
  width: 22px;
  text-align: center;
  font-size: 17px;
  flex-shrink: 0;
}

.nav-text {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

.nav-badge {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  padding: 0 8px;
}

.sidebar-user {
  margin-top: auto;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b2230, #0f141c);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.user-meta {
  min-width: 0;
  flex: 1;
}

.user-name {
  font-size: 14px;
  font-weight: 700;
}

.user-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 24px;
}

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

.page-title {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
}

.page-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-btn,
.accent-btn,
.small-btn {
  cursor: pointer;
  transition: 0.2s ease;
}

.ghost-btn {
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.065);
}

.accent-btn {
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(109, 93, 252, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: linear-gradient(180deg, rgba(20, 27, 38, 0.92), rgba(14, 20, 29, 0.96));
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card,
.side-summary,
.promo-top {
  padding: 24px;
}

.profile-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.profile-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-avatar {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(135deg, #131a24, #1d2634);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.profile-name {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 6px;
}

.profile-username {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.badge.success {
  color: #dffbed;
  background: rgba(30, 203, 129, 0.12);
  border-color: rgba(30, 203, 129, 0.24);
}

.badge.purple {
  color: #ece8ff;
  background: rgba(109, 93, 252, 0.14);
  border-color: rgba(109, 93, 252, 0.24);
}

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

.stats-grid,
.promo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat-card,
.mini-stat {
  min-height: 110px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-label,
.mini-stat-label {
  color: var(--muted);
  font-size: 13px;
}

.stat-value,
.mini-stat-value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.stat-trend {
  font-size: 12px;
  color: var(--success);
  font-weight: 700;
}

.stat-warning {
  color: var(--warning);
}

.summary-top h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.summary-top p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.summary-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 16px;
  padding: 14px;
}

.summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(109, 93, 252, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.summary-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.promo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.promo-top-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.promo-title {
  font-size: 26px;
  font-weight: 900;
  margin: 0;
}

.promo-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
}

.search-wrap .input {
  padding-left: 48px;
  height: 54px;
}

.search-wrap .input-icon {
  left: 16px;
}

.select {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  appearance: none;
}

.mini-stat-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.promo-list {
  display: grid;
  gap: 14px;
}

.promo-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 29, 40, 0.96), rgba(14, 20, 29, 0.98));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  transition: 0.2s ease;
}

.promo-card:hover {
  border-color: rgba(109, 93, 252, 0.28);
  transform: translateY(-2px);
}

.promo-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.promo-main {
  min-width: 0;
}

.promo-main-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.promo-name {
  font-size: 19px;
  font-weight: 800;
}

.promo-code {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-active {
  background: rgba(30, 203, 129, 0.12);
  color: #dffbed;
  border: 1px solid rgba(30, 203, 129, 0.24);
}

.status-disabled {
  background: rgba(255, 93, 115, 0.1);
  color: #ffdbe1;
  border: 1px solid rgba(255, 93, 115, 0.22);
}

.status-pending {
  background: rgba(246, 183, 60, 0.12);
  color: #ffefc9;
  border: 1px solid rgba(246, 183, 60, 0.22);
}

.promo-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.promo-meta strong {
  color: #dce5f3;
  font-weight: 700;
}

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

.small-btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.small-btn.primary {
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.18), rgba(76, 201, 240, 0.16));
  border-color: rgba(109, 93, 252, 0.22);
}

.mobile-topbar {
  display: none;
  padding: 14px 18px 0;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.empty-state {
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 980px) {
  .mobile-topbar {
    display: block;
  }

  .dashboard {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 320px);
    transform: translateX(-105%);
    z-index: 50;
    transition: 0.25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    padding: 18px;
  }

  .promo-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .promo-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .auth-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

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

  .page-title {
    font-size: 24px;
  }

.alert {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-error {
  background: rgba(255, 93, 115, 0.10);
  border: 1px solid rgba(255, 93, 115, 0.20);
  color: #ffd8df;
}

  .profile-name {
    font-size: 24px;
  }

  .stats-grid,
  .promo-stats,
  .filters {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .side-summary,
  .promo-top {
    padding: 18px;
  }

  .profile-actions {
    width: 100%;
  }

  .profile-actions .ghost-btn,
  .profile-actions .accent-btn {
    flex: 1 1 100%;
  }
}
.settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.settings-profile-card,
.settings-wallets-card {
  padding: 24px;
}

.settings-profile-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.settings-avatar-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.settings-avatar {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}

.settings-avatar-btn {
  position: relative;
  overflow: hidden;
}

.settings-profile-meta {
  flex: 1;
  min-width: 260px;
}

.settings-block-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.settings-block-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.settings-card-header {
  margin-bottom: 22px;
}

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

.field-full {
  grid-column: 1 / -1;
}

.input-simple {
  padding-left: 18px;
}

.textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
  color: var(--text);
  padding: 16px 18px;
  outline: none;
  transition: .2s ease;
  font: inherit;
}

.alert {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-success {
  background: rgba(30, 203, 129, 0.10);
  border: 1px solid rgba(30, 203, 129, 0.22);
  color: #dffbed;
}

.alert-error {
  background: rgba(255, 93, 115, 0.10);
  border: 1px solid rgba(255, 93, 115, 0.20);
  color: #ffd8df;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 7, 14, 0.72);
  backdrop-filter: blur(8px);
}

.modal.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 620px;
  background: linear-gradient(180deg, rgba(20, 27, 38, 0.98), rgba(14, 20, 29, 0.99));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.modal-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f4f7fb;
}

.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #f4f7fb;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: .2s ease;
}

.modal-close:hover {
  background: rgba(255,255,255,.08);
}

.modal-body {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 22px 22px;
  flex-wrap: wrap;
}

.modal-note {
  color: #96a2b4;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}

.price-item {
  display: grid;
  gap: 8px;
}

.promo-edit-label {
  color: #dce5f3;
  font-size: 14px;
  font-weight: 700;
}

.promo-input,
.promo-select {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #f4f7fb;
  padding: 0 14px;
  outline: none;
  font: inherit;
}

.promo-input::placeholder {
  color: #8ea0ba;
}

.promo-input:focus,
.promo-select:focus {
  border-color: rgba(109, 93, 252, 0.7);
  box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.14);
}

.promo-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9db0cc 50%),
    linear-gradient(135deg, #9db0cc 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.promo-select option {
  background: #101722;
  color: #f4f7fb;
}

.promo-static-card {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-weight: 700;
  color: #f4f7fb;
}

.promo-static-icon {
  font-size: 18px;
}

@media (max-width: 700px) {
  .modal {
    padding: 12px;
  }

  .modal-dialog {
    max-width: 100%;
    border-radius: 20px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-footer .btn,
  .modal-footer .ghost-btn {
    width: 100%;
  }
}
.textarea:focus {
  border-color: rgba(109, 93, 252, 0.7);
  box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.14);
  background: rgba(255,255,255,.055);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

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

  .settings-profile-head {
    align-items: flex-start;
  }

  .settings-avatar {
    width: 120px;
    height: 120px;
    border-radius: 24px;
  }
}