@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-main: #0b0b0e;
  --bg-sidebar: #0e0e12;
  --bg-card: #131318;
  --bg-card-hover: #181820;
  --bg-input: #0c0c10;
  --border: #22222c;
  --border-light: #2d2d3a;
  --text-main: #ececf1;
  --text-muted: #8e8e9a;
  --text-dim: #636370;
  --accent: #a855f7;
  --accent-hover: #9333ea;
  --accent-soft: rgba(168, 85, 247, 0.14);
  --green: #3dd68c;
  --green-soft: rgba(61, 214, 140, 0.14);
  --amber: #f5a623;
  --amber-soft: rgba(245, 166, 35, 0.14);
  --red: #f25f5c;
  --red-soft: rgba(242, 95, 92, 0.14);
  --blue: #3b82f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  overflow-x: hidden;
}

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

/* ==================== SIDEBAR ==================== */
.sidebar {
  width: 230px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  user-select: none;
}

.sidebar-brand {
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: radial-gradient(circle at 30% 30%, #c084fc, #6b21a8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.55);
  flex-shrink: 0;
}

.brand-text b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.brand-text small {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

.nav-list {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link i {
  width: 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.nav-link.active {
  background: #1c1c25;
  color: #fff;
  font-weight: 600;
}

.nav-link.active i {
  color: var(--accent);
}

.nav-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.sidebar-bottom {
  padding: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.setup-Ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: inline-block;
}

.sidebar-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  background: var(--text-dim);
}

.status-dot.live { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.test { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.lang-switch {
  display: inline-flex;
  background: #15151c;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  cursor: pointer;
}

.lang-switch button.active {
  background: #ececf1;
  color: #0b0b0e;
}

.sidebar-user {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #13131a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #232330;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-meta b {
  display: block;
  font-size: 12.5px;
  color: #fff;
}

.user-meta small {
  display: block;
  font-size: 11px;
  color: var(--green);
}

/* ==================== MAIN CONTENT ==================== */
.main-area {
  margin-left: 230px;
  flex: 1;
  min-width: 0; /* flex item: without this the widest child stretches the page sideways */
  padding: 22px 34px 60px;
  max-width: 1460px;
}

.top-license-bar {
  background: rgba(168, 85, 247, 0.09);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: #d8b4fe;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auto-save-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-right: 6px;
}

/* ==================== BUTTONS & INPUTS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-white {
  background: #ececf1;
  color: #0b0b0e;
}

.btn-white:hover {
  background: #fff;
}

.btn-dark {
  background: #1b1b24;
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-dark:hover {
  background: #23232f;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-danger {
  background: rgba(242, 95, 92, 0.15);
  color: var(--red);
  border-color: rgba(242, 95, 92, 0.3);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11.5px;
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 11px;
  border-radius: 5px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

/* Custom Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #262633;
  transition: 0.2s;
  border-radius: 3px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #7c7c8a;
  transition: 0.2s;
  border-radius: 2px;
}

.switch input:checked + .slider {
  background-color: #ececf1;
}

.switch input:checked + .slider:before {
  transform: translateX(16px);
  background-color: #0b0b0e;
}

/* ==================== CARDS & VIEWS ==================== */
.view-page {
  display: none;
}

.view-page.active {
  display: block;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* System Banner on Panel */
.sys-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.sys-banner h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sys-banner p {
  color: var(--text-muted);
  font-size: 12.5px;
}

/* Metric Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 15px 18px;
}

.metric-val {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.metric-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Filter Pills */
.tabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #191922;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: #282836;
  color: #fff;
  border-color: #3f3f52;
  font-weight: 600;
}

/* Requests Table */
.req-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}

.req-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.req-row:last-child {
  border-bottom: none;
}

.req-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.req-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  width: 48px;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #1d1d27;
  font-size: 12px;
  font-weight: 600;
}

.req-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-sent { background: var(--green-soft); color: var(--green); }
.badge-skip { background: #1e1e28; color: var(--text-muted); }
.badge-manual { background: var(--amber-soft); color: var(--amber); }
.badge-failed { background: var(--red-soft); color: var(--red); }

/* ==================== GAMES GRID & SETTINGS ==================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s, background 0.15s;
}

.game-card.enabled {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.05);
}

.game-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.game-icon.cs2 { background: #f59e0b; color: #000; }
.game-icon.dota2 { background: #dc2626; color: #fff; }

.game-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gear-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.gear-btn:hover {
  background: #232330;
  color: #fff;
}

.two-col-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #16161e;
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 8px;
}

.seg-group {
  display: inline-flex;
  background: #0d0d12;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.seg-group button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.seg-group button.active {
  background: #ececf1;
  color: #0b0b0e;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: #171720;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

/* ==================== PRICES TABLES ==================== */
.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th {
  text-align: left;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  padding: 6px 8px;
}

.price-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #1b1b24;
}

.price-table input[type="number"] {
  width: 100%;
  max-width: 120px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #1b1b24;
}

.option-row:last-child {
  border-bottom: none;
}

.price-test-result {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 5px;
  background: #171720;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-test-result.err {
  background: rgba(242, 95, 92, 0.1);
  border-color: rgba(242, 95, 92, 0.3);
  color: #fca5a5;
}

/* ==================== CONVERSATIONS (MESSENGER) ==================== */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  height: calc(100vh - 150px);
  min-height: 540px;
}

.chat-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sidebar-top {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.conv-items {
  flex: 1;
  overflow-y: auto;
}

.conv-item {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conv-item:hover {
  background: var(--bg-card-hover);
}

.conv-item.active {
  background: #1e1e2a;
  border-left: 3px solid var(--accent);
}

.chat-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages-area {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-row {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}

.msg-row.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-row.theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-row.mine .msg-bubble {
  background: #ececf1;
  color: #0b0b0e;
  font-weight: 500;
}

.msg-row.theirs .msg-bubble {
  background: #1f1f29;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.msg-time {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 3px;
}

.chat-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==================== TEMPLATES 3-COLUMN ==================== */
.templates-grid {
  display: grid;
  grid-template-columns: 340px 1fr 380px;
  gap: 16px;
  align-items: start;
}

.preview-phone {
  background: #0c0c10;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.preview-bubble {
  background: #e5e5ec;
  color: #0b0b0e;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.var-chip {
  display: inline-block;
  padding: 4px 8px;
  background: #1b1b26;
  border: 1px solid #2e2e40;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #c084fc;
  cursor: pointer;
  margin: 2px;
}

.var-chip:hover {
  background: #282838;
}

/* ==================== SETUP POPOVER ==================== */
.setup-popover {
  position: fixed;
  left: 242px;
  bottom: 18px;
  width: 340px;
  background: #15151d;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  z-index: 500;
  padding: 16px;
  display: none;
}

.setup-popover.open {
  display: block;
}

.setup-step {
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  cursor: pointer;
}

.setup-step:last-child {
  border-bottom: none;
}

.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1c1c26;
  border: 1px solid var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* Оригинальные логотипы игр (CS2 20.webp и Dota 2 43.webp) */
.game-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.game-logo-sm {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Строгие контурные иконки секций в стиле Rixoffer */
.sec-icon {
  color: var(--text-dim);
  font-size: 13px;
  margin-right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Быстрые ответы в чате */
.quick-reply-popover {
  position: absolute;
  bottom: 62px;
  left: 16px;
  width: 340px;
  background: #16161f;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  padding: 8px;
  display: none;
  z-index: 200;
}

.quick-reply-popover.open {
  display: block;
}

.qr-item {
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}

.qr-item:last-child {
  border-bottom: none;
}

.qr-item:hover {
  background: #222230;
}

.qr-item b {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}

.qr-item span {
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== REPORTS & CHARTS (RIXOFFER STYLE) ==================== */
.reports-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
}

.chart-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  margin-bottom: 0;
}

.chart-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 5px;
}

.legend-dot.sold { background: #3b82f6; }
.legend-dot.cancelled { background: #f97316; }

.chart-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 340px;
  width: 100%;
}

.rep-orders-card {
  display: flex;
  flex-direction: column;
  max-height: 430px;
  margin-bottom: 0;
}

.rep-orders-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.rep-order-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  align-items: start;
  font-size: 12px;
}

.rep-order-row:last-child {
  border-bottom: none;
}

.rep-order-date b {
  display: block;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

.rep-order-date small {
  color: var(--text-dim);
  font-size: 10.5px;
}

.rep-order-mid b {
  display: block;
  color: #fff;
  font-size: 12.5px;
  margin-bottom: 3px;
}

.rep-order-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11.5px;
  margin-bottom: 2px;
}

.rep-order-range {
  color: var(--text-main);
  font-weight: 600;
  font-size: 11.5px;
}

/* ==================== SETUP ACCORDION POPOVER ==================== */
.setup-popover {
  position: fixed;
  left: 242px;
  bottom: 18px;
  width: 370px;
  max-height: 82vh;
  overflow-y: auto;
  background: #14141c;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  z-index: 600;
  padding: 16px;
  display: none;
}

.setup-popover.open {
  display: block;
}

.setup-progress-bar {
  height: 4px;
  background: #232332;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.setup-progress-fill {
  height: 100%;
  background: var(--green);
  transition: width 0.25s ease;
}

.setup-acc-item {
  border-bottom: 1px solid var(--border);
  padding: 9px 4px;
}

.setup-acc-item:last-child {
  border-bottom: none;
}

.setup-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.setup-acc-body {
  margin-top: 8px;
  padding: 10px 12px;
  background: #1a1a24;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: none;
}

.setup-acc-item.expanded .setup-acc-body {
  display: block;
}

/* ==================== ИКОНКИ РАНГОВ (RANK BADGES) ==================== */
.rank-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.rank-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

.rank-step-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-step-arrow {
  color: var(--text-dim);
  font-size: 12px;
  margin: 0 4px;
}

.rr-discount-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.rr-discount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.rr-discount-item label {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

/* === ARGON WIDE FACEIT TABLE & BADGES === */
#pane-pricing .grid-2,
#pane-prices .grid-2,
.pricing-layout-grid {
  grid-template-columns: 1.58fr 0.82fr !important;
  gap: 18px !important;
}
@media (max-width: 1200px) {
  #pane-pricing .grid-2,
  #pane-prices .grid-2,
  .pricing-layout-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Делаем поля ввода в таблице цен Faceit широкими, чтобы все цифры были видны */
#bandsBody input[type="number"],
#bandsBody input[type="text"],
.band-row input,
table input.inp-sm {
  min-width: 86px !important;
  width: 100% !important;
  padding: 7px 10px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-align: center;
}
/* Красивая первая колонка уровней Faceit без вертикального сплющивания текста */
#bandsBody td:first-child,
.faceit-lvl-cell {
  min-width: 185px !important;
  white-space: nowrap !important;
}
.faceit-badge-inline {
  width: 28px !important;
  height: 28px !important;
  vertical-align: middle;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
