.flex-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 1060px;
  width: 100%;
}

#shop-popup {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #005f85 0%, #0284c7 100%);
  color: #fff;
  border: 2px solid rgba(255, 200, 38, 0.75);
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

#shop-popup:hover {
  transform: scale(1.02);
}

.sale-badge {
  background: #ffc826;
  color: #111827;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.three-col-grid {
  display: grid;
  grid-template-columns: 300px 350px 300px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1020px) {
  .three-col-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}

.panel-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.menu-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-image-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.profile-name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.sub-pill {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #111;
  font-size: 10px;
  font-weight: 900;
}

.staff-role-pill {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.staff-role-pill.admin {
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
}

.staff-role-pill.mod {
  background: linear-gradient(90deg, #059669, #0284c7);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

.staff-role-pill.helper {
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.42);
}

.staff-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  margin-right: 4px;
  vertical-align: middle;
}

.staff-tag.admin {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.staff-tag.mod {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.staff-tag.helper {
  background: #f3e8ff;
  color: #6d28d9;
  border: 1px solid #d8b4fe;
}

.menu-report-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #fecaca;
  border-radius: 11px;
  padding: 9px 14px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.14s;
}

.menu-report-btn:hover {
  background: #fee2e2;
}

.menu-report-btn small {
  background: #fee2e2;
  color: #991b1b;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
}

.menu-staff-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: 11px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #b91c1c, #7c2d12);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.35);
}

.menu-staff-btn small {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
}

.hud-top-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-report-btn {
  border: 1px solid rgba(248, 113, 113, 0.6);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #fca5a5;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.hud-report-btn:hover {
  background: #7f1d1d;
  color: #fff;
}

.hud-staff-btn {
  border: 1px solid rgba(251, 191, 36, 0.65);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(15, 23, 42, 0.92);
  color: #fbbf24;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-staff-btn:hover {
  background: #1e293b;
  color: #fff;
}

.hud-control-btn {
  border: 1px solid rgba(74, 222, 128, 0.7);
  border-radius: 999px;
  padding: 7px 15px;
  background: rgba(15, 23, 42, 0.92);
  color: #4ade80;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.hud-control-btn:hover {
  background: #14532d;
  color: #fff;
}

.menu-control-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: 11px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #059669, #0369a1);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.menu-control-btn small {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
}

.staff-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.report-candidates-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 92px;
  overflow-y: auto;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.report-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.report-chip:hover, .report-chip.selected {
  background: #fee2e2;
  border-color: #f87171;
  color: #991b1b;
}

.server-notice-toast {
  position: fixed;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  max-width: 620px;
  width: max-content;
  padding: 11px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 2px solid #fbbf24;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.new-meter {
  position: relative;
  flex: 1;
  height: 26px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

#user-line-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 999px;
  transition: width 0.3s ease;
}

#progress-next {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  padding-left: 16px;
}

.agario-star-level {
  position: absolute;
  left: -6px;
  top: -5px;
  width: 34px;
  height: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-level {
  position: absolute;
  font-size: 11px;
  font-weight: 900;
  color: #111;
}

.xp-boost-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  color: #92400e;
}

.coins-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.coins-num {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 15px;
}

.plus-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 7px;
  background: #22c55e;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

#offers-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offers-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#free-chest-button, #collect-button, #shop-button, #sigma-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 11px;
  padding: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: filter 0.15s;
}

#free-chest-button, #collect-button { background: #16a34a; }
#shop-button { background: #2563eb; }
#sigma-button {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #111827;
  font-size: 15px;
}

.collect-col {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  text-align: left;
}

.promo-slot {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px;
  color: #e2e8f0;
}

.promo-slot__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.promo-slot__body {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 200, 38, 0.25);
}

.promo-slot__body strong {
  color: #ffc826;
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

.promo-slot__body p {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.menu-center {
  min-height: 495px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#clans_and_settings {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

#clans_and_settings button, #updates-button button {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  padding: 4px 6px;
}

.divider-v {
  width: 1px;
  height: 18px;
  background: #cbd5e1;
}

#title {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  margin: 14px 0 18px;
  color: #0f172a;
}

.skin-nick-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.skin-select__inner {
  position: relative;
  width: 78px;
  height: 78px;
}

.skin-select__icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #f8fafc center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skin-select__badge {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.skin-select__badge.add { background: #22c55e; }
.skin-select__badge.remove { background: #ef4444; }

.inputs-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-control {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.form-control:focus {
  border-color: #2563eb;
  background: #fff;
}

.mode-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-play {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.btn-spectate {
  width: 50px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sign-in-btn, .sign-out-btn {
  width: 100%;
  height: 40px;
  border-radius: 9px;
  border: 1px solid #1d4ed8;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.sign-out-btn {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.ch-lang__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ch-lang__flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.15s;
}

.ch-lang__flag:hover {
  transform: scale(1.15);
}

.center-footer-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

#tournament_link, #discord_link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

#tournament_link {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

#discord_link {
  background: #5865f2;
  color: #fff;
}

.top-users_buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.top-users_buttons button {
  border: none;
  background: transparent;
  padding: 7px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}

.top-users_buttons button.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.top-users__inner table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.top-users__inner th {
  color: #64748b;
  font-size: 11px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.top-users__inner td {
  padding: 5px 4px;
  font-weight: 600;
  border-bottom: 1px solid #f8fafc;
}

.top-users__inner tr.sub td {
  color: #b45309;
  font-weight: 800;
}

.stats-card {
  width: 360px;
  text-align: center;
}

.stats-heading {
  margin: 0 0 6px;
}

.stats__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.stats__item {
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.stats__item-title {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.stats__item-value {
  font-size: 20px;
  color: #0f172a;
}

.stats-btn__continue {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 12px;
}

.stats-btn__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}

.share-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hud-macro-btn {
  border: 1px solid rgba(56, 189, 248, 0.65);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #7dd3fc;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.hud-macro-btn:hover {
  background: #0c4a6e;
  color: #fff;
}

.menu-macro-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #bae6fd;
  border-radius: 11px;
  padding: 9px 14px;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.14s;
}

.menu-macro-btn:hover {
  background: #e0f2fe;
}

.menu-macro-btn small {
  background: #e0f2fe;
  color: #075985;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
}

.macro-toggles-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.macro-toggles-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.macro-speed-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
}

.macro-speed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #334155;
}

.macro-speed-badge {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
}

.macro-binds-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 2px;
}

.macro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.macro-row-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.macro-row-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.macro-key-btn {
  min-width: 108px;
  height: 31px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.12s;
}

.macro-key-btn:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

.macro-key-btn.listening {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.macro-key-btn.unbound {
  color: #94a3b8;
  font-weight: 600;
}

.macro-clear-btn {
  width: 28px;
  height: 31px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.macro-clear-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.macro-footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.macro-footer-actions button {
  flex: 1;
  height: 38px;
}

.rules-scroll .menu__desc-title {
  margin: 14px 0 5px;
  font-size: 15px;
  color: #0f172a;
}

.rules-scroll .menu__desc-title:first-child {
  margin-top: 2px;
}

.rules-scroll .menu__desc-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.rules-scroll ul {
  margin: 6px 0 10px;
  padding-left: 20px;
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}
