/* ============================================================
   RF Online Cabinet — Light Minimal Theme
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f8fa; --bg-card: #ffffff; --bg-soft: #f3f4f6;
  --text: #1a1d23; --text-muted: #6b7280; --text-soft: #9ca3af;
  --border: #e5e7eb; --border-soft: #f3f4f6;
  --primary: #3b82f6; --primary-hover: #2563eb;
  --primary-soft: #eff6ff; --primary-border: #bfdbfe;
  --success: #10b981; --success-soft: #ecfdf5; --success-border: #a7f3d0;
  --danger: #ef4444; --danger-soft: #fef2f2; --danger-border: #fecaca;
  --warning: #f59e0b; --warning-soft: #fffbeb;
  --gold: #d97706; --gold-soft: #fef3c7; --gold-border: #fcd34d;
  --purple: #8b5cf6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.08);
  --ease: cubic-bezier(.4,0,.2,1); --dur: .24s;
}

html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
}

/* ФОН */
.background-scene {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, #e0ebff 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, #ffe9e0 0%, transparent 50%),
    linear-gradient(180deg, #f7f8fa 0%, #f0f2f7 100%);
}
.background-scene .bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(60,90,140,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,90,140,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.background-scene .bg-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.background-scene .blob-1 { width: 400px; height: 400px; background: #bfdbfe; top: -100px; left: -100px; animation: blobFloat 18s ease-in-out infinite; }
.background-scene .blob-2 { width: 500px; height: 500px; background: #fecaca; opacity: .35; bottom: -150px; right: -120px; animation: blobFloat 22s ease-in-out infinite reverse; }
.background-scene .blob-3 { width: 300px; height: 300px; background: #ddd6fe; opacity: .4; top: 40%; left: 60%; animation: blobFloat 26s ease-in-out infinite; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,30px) scale(.95); }
}

/* АНИМАЦИИ */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }
@keyframes pop { 0% { opacity: 0; transform: scale(.96) } 100% { opacity: 1; transform: none } }
@keyframes spin { to { transform: rotate(360deg) } }
.anim-fade { animation: fadeIn .35s var(--ease) both; }
.anim-slide { animation: slideUp .45s var(--ease) both; }
.anim-pop { animation: pop .35s var(--ease) both; }
.stagger > * { animation: slideUp .5s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .10s; }
.stagger > *:nth-child(4) { animation-delay: .14s; }
.stagger > *:nth-child(5) { animation-delay: .18s; }
.stagger > *:nth-child(6) { animation-delay: .22s; }

/* КНОПКИ */
button { font-family: inherit; }
.btn-primary, .btn-save, .register-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 1px 2px rgba(59,130,246,.25);
}
.btn-primary:hover, .btn-save:hover, .register-btn:hover {
  background: var(--primary-hover); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59,130,246,.3);
}
.btn-primary:disabled, .btn-save:disabled {
  opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none;
}
.btn-secondary, .btn-danger, .btn-ban, .btn-unban, .btn-balance {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: none; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.btn-secondary { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #e9ebef; transform: translateY(-1px); }
.btn-danger, .btn-ban { background: var(--danger); color: #fff; box-shadow: 0 1px 2px rgba(239,68,68,.25); }
.btn-danger:hover, .btn-ban:hover { background: #dc2626; transform: translateY(-1px); }
.btn-unban { background: var(--success); color: #fff; }
.btn-unban:hover { background: #059669; }
.btn-balance { background: var(--gold); color: #fff; }
.btn-balance:hover { background: #b45309; }
.btn-tiny {
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted);
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all var(--dur) var(--ease); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-tiny:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-tiny.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.btn-tiny.primary { color: var(--primary); border-color: var(--primary-border); }
.btn-tiny.primary:hover { background: var(--primary-soft); }
.preset-btn {
  padding: 10px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-muted); cursor: pointer;
  transition: all var(--dur) var(--ease); text-align: center; font-size: 13px; font-weight: 500;
}
.preset-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* СООБЩЕНИЯ */
.message-success, .error-message, .success-message {
  border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
  font-size: 14px; line-height: 1.5; animation: slideDown .3s var(--ease) both;
}
.message-success, .success-message {
  background: var(--success-soft); border: 1px solid var(--success-border); color: #065f46;
}
.message-error, .error-message {
  background: var(--danger-soft); border: 1px solid var(--danger-border); color: #991b1b;
}
.error-message, .success-message { display: none; }
.error-message.visible, .success-message.visible { display: block; }

/* LOGIN / REGISTER */
body.auth-mode { padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.register-card {
  position: relative; z-index: 10; width: 100%; max-width: 440px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 32px; box-shadow: var(--shadow-lg);
  animation: slideUp .5s var(--ease) both;
}
.brand { margin-bottom: 8px; }
.brand-text { font-weight: 700; font-size: 20px; letter-spacing: -.4px; color: var(--text); display: block; }
.brand-text span { color: var(--primary); }
.brand-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
}
.subhead { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.input-group .field {
  display: flex; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; transition: all var(--dur) var(--ease);
}
.input-group .field:focus-within { background: var(--bg-card); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.input-group .field input {
  width: 100%; padding: 12px 14px; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 15px; font-family: inherit;
}
.input-group .field input::placeholder { color: var(--text-soft); }
.input-group .field .prefix { padding-left: 14px; color: var(--text-soft); font-size: 15px; user-select: none; pointer-events: none; }
.password-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.password-wrapper input { padding-right: 44px !important; }
.toggle-password {
  position: absolute; right: 10px; background: transparent; border: none;
  color: var(--text-soft); cursor: pointer; font-size: 16px;
  padding: 4px 6px; border-radius: 6px; transition: color var(--dur);
}
.toggle-password:hover { color: var(--text); }
.options-row { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 24px; font-size: 14px; }
.remember-me { display: flex; align-items: center; gap: 8px; color: var(--text-muted); cursor: pointer; }
.remember-me input[type="checkbox"] {
  appearance: none; width: 16px; height: 16px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 4px; cursor: pointer; position: relative;
  transition: all var(--dur); flex-shrink: 0;
}
.remember-me input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.remember-me input[type="checkbox"]:checked::after {
  content: "✓"; position: absolute; color: #fff; font-size: 11px; font-weight: 700;
  left: 2px; top: -2px;
}
.forgot-link { color: var(--text-muted); text-decoration: none; transition: color var(--dur); }
.forgot-link:hover { color: var(--primary); }
.register-btn { width: 100%; padding: 14px 0; border-radius: 60px; font-size: 15px; margin-bottom: 22px; }
.login-redirect { text-align: center; color: var(--text-muted); font-size: 14px; }
.login-redirect a { color: var(--primary); text-decoration: none; font-weight: 600; margin-left: 4px; transition: color var(--dur); }
.login-redirect a:hover { color: var(--primary-hover); text-decoration: underline; }
.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 0 20px; color: var(--text-soft);
  font-size: 12px; letter-spacing: .4px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ПАНЕЛЬ */
body.panel-mode { padding: 0; display: block; }
.panel-container {
  display: flex; min-height: 100vh; width: 100%;
  position: relative; z-index: 10;
}
.panel-sidebar {
  width: 250px; min-height: 100vh; flex-shrink: 0;
  background: var(--bg-card); border-right: 1px solid var(--border);
  padding: 26px 18px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; animation: fadeIn .4s var(--ease) both;
}
.panel-sidebar .brand-text { font-size: 17px; margin-bottom: 22px; display: block; }
.panel-sidebar .brand-logo { margin-bottom: 22px; }

.sidebar-user {
  padding: 12px 14px; margin-bottom: 18px;
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  border-radius: 12px;
}
.sidebar-user .username { color: var(--text); font-size: 14px; font-weight: 600; word-break: break-all; }
.sidebar-user .user-balance { color: var(--primary); font-size: 13px; margin-top: 4px; font-weight: 500; }

.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin-bottom: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text-muted); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.sidebar-nav a:hover { background: var(--bg-soft); color: var(--text); transform: translateX(2px); }
.sidebar-nav a.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,.25);
}
.sidebar-nav a.active:hover { background: var(--primary-hover); }
.sidebar-nav a .icon { font-size: 16px; width: 20px; text-align: center; }
.sidebar-nav a .badge {
  margin-left: auto; background: var(--primary-soft);
  padding: 1px 8px; border-radius: 10px;
  font-size: 11px; color: var(--primary); font-weight: 600;
}
.sidebar-nav a.active .badge { background: rgba(255,255,255,.25); color: #fff; }

.sidebar-logout {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.sidebar-logout a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text-muted); text-decoration: none; font-size: 13.5px;
  transition: all var(--dur) var(--ease);
}
.sidebar-logout a:hover { background: var(--danger-soft); color: var(--danger); }

/* Соцсети в сайдбаре */
.sidebar-socials {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  justify-content: center;
}
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.social-btn.social-vk:hover        { background: #4C75A3; border-color: #4C75A3; }
.social-btn.social-telegram:hover  { background: #0088CC; border-color: #0088CC; }
.social-btn.social-discord:hover   { background: #5865F2; border-color: #5865F2; }
.social-btn.social-youtube:hover   { background: #FF0000; border-color: #FF0000; }
.social-btn.social-instagram:hover { background: linear-gradient(135deg,#F58529,#DD2A7B,#8134AF); border-color: #DD2A7B; }
.social-btn.social-tiktok:hover    { background: #000; border-color: #000; }
.social-btn.social-twitter:hover   { background: #000; border-color: #000; }
.social-btn svg { width: 18px; height: 18px; display: block; }

/* Верхняя панель кнопок темы/языка */
.topbar {
  display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px;
}
.topbar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-muted); text-decoration: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.topbar-btn:hover {
  color: var(--primary); border-color: var(--primary-border);
  background: var(--primary-soft); transform: translateY(-1px);
}

.panel-content {
  flex: 1; padding: 32px 40px; overflow-y: auto;
  min-height: 100vh; max-height: 100vh;
  animation: fadeIn .4s var(--ease) both;
}
.page-title {
  color: var(--text); font-size: 22px; font-weight: 700;
  margin-bottom: 24px; letter-spacing: -.4px;
}

/* КАРТОЧКИ */
.panel-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  animation: slideUp .4s var(--ease) both;
  transition: all var(--dur) var(--ease);
}
.panel-card:hover { box-shadow: var(--shadow-md); }
.panel-card .card-title {
  color: var(--text); font-size: 15px; font-weight: 600;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}

/* СТАТИСТИКА */
.admin-stats, .stats-grid-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 22px;
}
.admin-stat-card, .stat-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; text-align: center;
  transition: all var(--dur) var(--ease);
  animation: slideUp .4s var(--ease) both;
}
.admin-stat-card:hover, .stat-item:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}
.admin-stat-card .number, .stat-value {
  font-size: 26px; font-weight: 700; color: var(--primary); letter-spacing: -.5px;
}
.admin-stat-card .label, .stat-label {
  font-size: 12px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .4px; margin-top: 6px; font-weight: 500;
}

/* ТАБЛИЦЫ */
.results-table, .vote-history-table { width: 100%; border-collapse: collapse; }
.results-table th, .vote-history-table th {
  text-align: left; padding: 12px 10px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}
.results-table td, .vote-history-table td {
  padding: 12px 10px; color: var(--text);
  border-bottom: 1px solid var(--border-soft); font-size: 13.5px;
}
.results-table tbody tr:hover td, .vote-history-table tbody tr:hover td { background: var(--bg-soft); }

/* ФОРМЫ АДМИНКИ */
.admin-search-form, .admin-action-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm); animation: slideUp .4s var(--ease) both;
}
.admin-search-form .form-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-search-form input, .admin-action-form input, .admin-action-form select {
  flex: 1; min-width: 180px; padding: 11px 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px;
  font-family: inherit; outline: none;
  transition: all var(--dur) var(--ease);
}
.admin-search-form input:focus, .admin-action-form input:focus, .admin-action-form select:focus {
  background: var(--bg-card); border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.admin-search-form button {
  padding: 11px 22px; background: var(--primary); color: #fff;
  border: none; border-radius: 10px; font-weight: 600; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.admin-search-form button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.admin-action-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px;
}
.admin-action-form .form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* НАСТРОЙКИ */
.settings-group { margin-bottom: 18px; }
.settings-group .settings-label, .settings-label {
  color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block;
}
.settings-group input[type="text"],
.settings-group input[type="password"],
.settings-group input[type="number"],
.settings-group input[type="email"],
.settings-group input[type="url"],
.settings-group select {
  width: 100%; padding: 11px 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px;
  font-family: inherit; outline: none;
  transition: all var(--dur) var(--ease);
}
.settings-group textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px;
  font-family: ui-monospace, Consolas, monospace; outline: none;
  min-height: 100px; resize: vertical;
}
.settings-group input:focus, .settings-group select:focus, .settings-group textarea:focus {
  background: var(--bg-card); border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.settings-group .help-text, .help-text {
  color: var(--text-soft); font-size: 12px; margin-top: 5px; line-height: 1.5;
}
.settings-group .help-text code, .help-text code, .api-hint code {
  background: var(--primary-soft); color: var(--primary);
  padding: 1px 6px; border-radius: 4px; font-size: 12px;
}
.settings-checkbox { display: flex; align-items: center; gap: 10px; color: var(--text); margin: 12px 0; font-size: 14px; cursor: pointer; }
.settings-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.settings-actions {
  display: flex; gap: 12px; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border-soft); flex-wrap: wrap;
}
.api-hint {
  color: var(--text-muted); font-size: 12.5px; line-height: 1.6;
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  border-radius: 10px; padding: 12px 16px; margin-top: 8px;
  word-break: break-all;
}

/* Подвкладки настроек */
.settings-subtabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.settings-subtabs a {
  padding: 8px 16px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.settings-subtabs a:hover {
  color: var(--primary); border-color: var(--primary-border);
  background: var(--primary-soft);
}
.settings-subtabs a.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(59,130,246,.25);
}

/* АДМИНЫ */
.admin-card-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  transition: all var(--dur) var(--ease);
  animation: slideUp .35s var(--ease) both;
}
.admin-card-block:hover { box-shadow: var(--shadow-md); border-color: var(--primary-border); }
.admin-card-block .admin-name {
  color: var(--text); font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.admin-card-block .admin-email { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.admin-card-block .admin-meta { color: var(--text-soft); font-size: 12px; margin-top: 6px; }
.admin-card-block .admin-meta span { display: inline-block; margin-right: 12px; }
.admin-card-block .badge-you {
  display: inline-block; background: var(--warning-soft); color: var(--gold);
  padding: 2px 8px; border-radius: 8px; font-size: 10px; font-weight: 700; letter-spacing: .3px;
}
.admin-card-block .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline-block; }

/* СУБ-ВКЛАДКИ */
.subtabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.subtabs a {
  padding: 8px 16px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.subtabs a:hover { color: var(--primary); border-color: var(--primary-border); background: var(--primary-soft); }
.subtabs a.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(59,130,246,.25);
}

.reward-badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; letter-spacing: .3px; }
.reward-available { background: var(--primary-soft); color: var(--primary); }
.reward-locked    { background: var(--bg-soft); color: var(--text-soft); }
.reward-claimed   { background: var(--success-soft); color: #047857; }

.top-levels-place {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 11px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary);
}
.top-levels-place.p1 { background: rgba(217,119,6,.15); color: var(--gold); }
.top-levels-place.p2 { background: #e5e7eb; color: #4b5563; }
.top-levels-place.p3 { background: rgba(205,127,50,.15); color: #b45309; }

.dev-placeholder { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.dev-placeholder .dev-icon { font-size: 42px; margin-bottom: 12px; opacity: .6; }
.dev-placeholder .dev-title { color: var(--text); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.dev-placeholder .dev-sub { font-size: 13px; color: var(--text-soft); }
.power-value { color: var(--gold); font-weight: 600; }

/* АККАУНТ */
.account-info-list { display: flex; flex-direction: column; gap: 0; }
.account-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border-soft);
}
.account-info-row:last-child { border-bottom: none; }
.account-info-row .label { color: var(--text-muted); font-size: 13px; }
.account-info-row .value { color: var(--text); font-size: 15px; font-weight: 500; }
.account-info-row .value.balance { color: var(--primary); font-weight: 700; }
.premium-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.premium-active   { background: var(--warning-soft); color: var(--gold); }
.premium-inactive { background: var(--bg-soft); color: var(--text-soft); }

/* Модальное окно */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.55);
  align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s var(--ease) both;
}
.modal-backdrop.visible { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; max-width: 460px; width: 100%;
  box-shadow: var(--shadow-lg); animation: pop .25s var(--ease) both;
}
.modal h3 { color: var(--text); font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--border-soft);
}

/* ПЕРСОНАЖИ */
.chars-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.chars-slots { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; }
.slots-dots { display: flex; gap: 5px; }
.slots-dots .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
  transition: all var(--dur) var(--ease);
}
.slots-dots .dot.empty { background: var(--bg-soft); box-shadow: none; }

/* ★ 3 карточки в ряд, растянуты на всю ширину ★ */
.chars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.char-card-full {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; position: relative; overflow: hidden;
  transition: all var(--dur) var(--ease);
  animation: slideUp .4s var(--ease) both;
}
.char-card-full:hover { border-color: var(--primary-border); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.char-card-full .race-stripe { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.char-card-full .race-stripe.bellato  { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.char-card-full .race-stripe.alliance { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.char-card-full .race-stripe.empire   { background: linear-gradient(90deg, #ef4444, #f87171); }
.char-card-full .char-name { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -.3px; }
.char-card-full .char-race { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.char-card-full .char-info-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; font-size: 13px;
  border-bottom: 1px dashed var(--border-soft);
}
.char-card-full .char-info-row:last-child { border-bottom: none; }
.char-card-full .char-info-row .lbl { color: var(--text-soft); }
.char-card-full .char-info-row .val { color: var(--text); font-weight: 500; text-align: right; }
.char-card-full .char-info-row .val.level    { color: var(--primary); font-weight: 700; }
.char-card-full .char-info-row .val.dalant   { color: var(--success); }
.char-card-full .char-info-row .val.gold     { color: var(--gold); }
.char-card-full .char-info-row .val.date     { color: var(--text-soft); font-weight: 400; font-size: 12px; }
.char-card-full .char-info-row .val.playtime { color: var(--purple); }
.char-card-full .char-info-row .val.guild    { color: var(--primary); }
.char-card-full .char-info-row .val.status   { color: #0891b2; }
.char-card-full .char-info-row .val.pvp      { color: #dc2626; }
.vote-status { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: 12px; }
.vote-status.can  { color: var(--success); }
.vote-status.wait { color: var(--gold); }
.empty-slot {
  border: 2px dashed var(--border); border-radius: 16px;
  padding: 40px 20px; text-align: center;
  color: var(--text-soft); transition: all var(--dur) var(--ease);
  background: var(--bg-card);
}
.empty-slot:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.empty-slot .plus { font-size: 36px; margin-bottom: 8px; opacity: .5; font-weight: 300; }
.empty-slot .title { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.empty-slot .sub { font-size: 12px; color: var(--text-soft); }
.empty-slot:hover .title { color: var(--primary); }

/* VOTE */
.vote-intro {
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  border-radius: 12px; padding: 16px 20px;
  color: var(--text-muted); font-size: 13px; line-height: 1.65;
  margin-bottom: 24px; animation: slideDown .4s var(--ease) both;
}
.vote-intro strong { color: var(--primary); }
.vote-intro ol { margin: 8px 0 0 20px; padding: 0; }
.vote-intro li { margin-bottom: 4px; }
.vote-status-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.vote-status-card {
  flex: 1; min-width: 200px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  transition: all var(--dur) var(--ease);
  animation: slideUp .4s var(--ease) both;
}
.vote-status-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vote-status-card .label {
  color: var(--text-muted); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 6px; font-weight: 600;
}
.vote-status-card .value { font-size: 20px; font-weight: 700; }
.vote-status-card.can .value     { color: var(--success); }
.vote-status-card.wait .value    { color: var(--gold); }
.vote-status-card.votes .value   { color: var(--primary); }
.vote-status-card.balance .value { color: var(--primary); }
.vote-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 28px; }
.vote-banner {
  display: block; text-decoration: none;
  border-radius: 16px; padding: 30px 28px;
  position: relative; overflow: hidden; min-height: 180px;
  transition: all .3s var(--ease);
  animation: slideUp .5s var(--ease) both;
}
.vote-banner:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -10px rgba(0,0,0,.2); }
.vote-banner .banner-icon { font-size: 44px; margin-bottom: 12px; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.vote-banner .banner-title {
  font-size: 26px; font-weight: 800; color: #fff;
  margin-bottom: 6px; letter-spacing: -.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.vote-banner .banner-sub { font-size: 13px; color: rgba(255,255,255,.9); margin-bottom: 20px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.vote-banner .banner-btn {
  display: inline-block; padding: 9px 20px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px; color: #fff; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(4px); transition: background var(--dur);
}
.vote-banner:hover .banner-btn { background: rgba(255,255,255,.35); }
.vote-banner-locked {
  display: block; text-decoration: none;
  border-radius: 16px; padding: 30px 28px;
  position: relative; overflow: hidden; min-height: 180px;
  animation: slideUp .5s var(--ease) both;
}
.vote-banner-locked .banner-cooldown {
  font-size: 20px; font-weight: 800; color: #fff;
  margin-bottom: 14px; letter-spacing: -.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.site-badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; letter-spacing: .3px; background: var(--primary-soft); color: var(--primary); }
.site-badge.mmotop { background: var(--primary-soft); color: var(--primary); }
.site-badge.rfo_nc { background: var(--warning-soft); color: var(--gold); }

/* PALLY / DONATE */
.pally-balance-preview {
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  border-radius: 12px; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  margin: 14px 0; font-size: 14px;
}
.pally-balance-preview strong { color: var(--primary); font-size: 18px; font-weight: 700; }
.pally-notice { padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-size: 13px; line-height: 1.5; }
.pally-notice.info    { background: var(--primary-soft); border: 1px solid var(--primary-border); color: #1e40af; }
.pally-notice.warn    { background: var(--warning-soft); border: 1px solid #fde68a; color: #92400e; }
.pally-notice.success { background: var(--success-soft); border: 1px solid var(--success-border); color: #065f46; }
.pally-notice.error   { background: var(--danger-soft); border: 1px solid var(--danger-border); color: #991b1b; }
.pally-result-card {
  max-width: 500px; margin: 80px auto; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px 32px;
  box-shadow: var(--shadow-lg); animation: pop .5s var(--ease) both;
}
.pally-result-card .icon { font-size: 64px; margin-bottom: 16px; line-height: 1; }
.pally-result-card h1 { color: var(--text); font-size: 24px; margin-bottom: 10px; font-weight: 700; }
.pally-result-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.pally-result-card .actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Бонус блок */
.bonus-list { list-style: none; padding: 0; margin: 10px 0; }
.bonus-list li {
  display: flex; justify-content: space-between;
  padding: 8px 12px; border-radius: 8px;
  background: var(--gold-soft); border: 1px solid var(--gold-border);
  margin-bottom: 6px; font-size: 13px; font-weight: 600;
}
.bonus-list li .bonus-amount { color: var(--gold); }

/* Метод оплаты */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.pay-method {
  position: relative; padding: 14px;
  background: var(--bg-soft); border: 2px solid var(--border);
  border-radius: 12px; cursor: pointer; text-align: center;
  transition: all var(--dur) var(--ease);
}
.pay-method input { position: absolute; opacity: 0; }
.pay-method .pay-name { font-weight: 700; font-size: 14px; color: var(--text); }
.pay-method .pay-desc { font-size: 11px; color: var(--text-soft); margin-top: 2px; }
.pay-method:hover { border-color: var(--primary-border); }
.pay-method.active,
.pay-method:has(input:checked) {
  border-color: var(--primary); background: var(--primary-soft);
}

/* ИНВЕНТАРЬ */
.inv-char-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 8px; }
.inv-info-item { background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; }
.inv-info-item .lbl { color: var(--text-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; margin-bottom: 4px; display: block; }
.inv-info-item .val { color: var(--text); font-size: 15px; font-weight: 600; }
.inv-info-item .val.blue { color: var(--primary); }
.inv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.inv-tab {
  padding: 8px 16px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s ease;
}
.inv-tab:hover { border-color: var(--primary-border); color: var(--primary); background: var(--primary-soft); }
.inv-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(59,130,246,.25); }
.inv-page { display: none; }
.inv-page.active { display: block; animation: fadeIn .25s ease both; }
.inv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; max-width: 500px; }
.inv-grid-trade { grid-template-columns: repeat(5, 1fr); max-width: 500px; }
.inv-slot {
  position: relative; aspect-ratio: 1;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 4px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1.1; color: var(--text);
  transition: all .15s ease; cursor: help; overflow: hidden;
}
.inv-slot:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(59,130,246,.15); z-index: 2; }
.inv-slot.empty { background: var(--bg-card); opacity: .5; cursor: default; }
.inv-slot.empty:hover { border-color: var(--border); transform: none; box-shadow: none; }
.inv-slot .inv-num { position: absolute; top: 3px; left: 5px; font-size: 9px; color: var(--text-soft); font-weight: 500; }
.inv-slot .inv-id { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-slot .inv-server {
  font-size: 9.5px; color: var(--gold);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700; margin-top: 2px; padding: 1px 5px;
  background: var(--gold-soft); border: 1px solid var(--gold-border);
  border-radius: 4px; letter-spacing: .2px; line-height: 1.15;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inv-slot .inv-d { font-size: 10px; color: var(--success); font-weight: 600; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-slot .inv-u { font-size: 10px; color: var(--gold); font-weight: 700; margin-top: 1px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ОНЛАЙН */
.online-widget {
  display: grid; grid-template-columns: 200px 1fr 200px; gap: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm); animation: slideUp .45s var(--ease) both;
}
.online-total {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border-right: 1px solid var(--border-soft); padding-right: 20px;
}
.online-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 6px; }
.online-big-number { font-size: 42px; font-weight: 800; color: var(--primary); letter-spacing: -1px; line-height: 1.1; animation: pop .5s var(--ease) both; }
.online-sub { color: var(--text-soft); font-size: 12px; margin-top: 6px; }
.online-races { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: center; }
.race-card { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); transition: all var(--dur) var(--ease); }
.race-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.race-card .race-name { font-size: 12.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.race-card .race-count { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.3px; margin-bottom: 8px; }
.race-card .race-bar { height: 6px; background: rgba(0,0,0,.06); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.race-card .race-bar-fill { height: 100%; border-radius: 3px; transition: width .6s var(--ease); }
.race-card .race-perc { font-size: 11px; color: var(--text-soft); font-weight: 600; text-align: right; }
.race-card.bellato .race-count  { color: #3b82f6; }
.race-card.bellato .race-bar-fill { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.race-card.cora .race-count     { color: #a855f7; }
.race-card.cora .race-bar-fill  { background: linear-gradient(90deg, #a855f7, #c084fc); }
.race-card.accretia .race-count { color: #6b7280; }
.race-card.accretia .race-bar-fill { background: linear-gradient(90deg, #6b7280, #9ca3af); }
.online-meta {
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  border-left: 1px solid var(--border-soft); padding-left: 20px;
}
.online-meta .meta-item { display: flex; flex-direction: column; padding: 8px 12px; background: var(--bg-soft); border-radius: 10px; }
.online-meta .meta-label { color: var(--text-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.online-meta .meta-value { color: var(--text); font-size: 18px; font-weight: 700; margin-top: 2px; }

/* СКРОЛЛ */
.panel-content::-webkit-scrollbar { width: 8px; height: 8px; }
.panel-content::-webkit-scrollbar-track { background: transparent; }
.panel-content::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.panel-content::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ТЁМНАЯ ТЕМА */
body.theme-dark {
  --bg: #0f1115; --bg-card: #171a20; --bg-soft: #20242c;
  --text: #e5e7eb; --text-muted: #9ca3af; --text-soft: #6b7280;
  --border: #2a2f38; --border-soft: #1f232a;
  --primary-soft: rgba(59,130,246,.12); --primary-border: rgba(59,130,246,.35);
  --success-soft: rgba(16,185,129,.12); --success-border: rgba(16,185,129,.35);
  --danger-soft: rgba(239,68,68,.12); --danger-border: rgba(239,68,68,.35);
  --warning-soft: rgba(245,158,11,.12);
  --gold-soft: rgba(217,119,6,.18); --gold-border: rgba(217,119,6,.4);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.35); --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
  background: #0f1115;
}
body.theme-dark .background-scene {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(30,58,138,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(120,50,50,.1) 0%, transparent 50%),
    linear-gradient(180deg, #0f1115 0%, #0a0c10 100%);
}
body.theme-dark .background-scene .bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
}
body.theme-dark .background-scene .bg-blob { opacity: .18; }
body.theme-dark .message-success,
body.theme-dark .success-message { color: #6ee7b7; }
body.theme-dark .message-error,
body.theme-dark .error-message { color: #fca5a5; }
body.theme-dark .btn-secondary { background: var(--bg-soft); border-color: var(--border); color: var(--text); }
body.theme-dark .btn-secondary:hover { background: #2a2f38; }
body.theme-dark .race-card .race-bar { background: rgba(255,255,255,.06); }
body.theme-dark .vote-banner::before { background: rgba(0,0,0,.55); }
body.theme-dark .vote-banner .banner-title,
body.theme-dark .vote-banner .banner-sub { text-shadow: 0 2px 8px rgba(0,0,0,.8); }

/* АДАПТИВ */
@media (max-width: 900px) {
  .panel-container { flex-direction: column; }
  .panel-sidebar {
    width: 100%; min-height: auto; height: auto;
    position: relative; padding: 16px;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .panel-content { padding: 20px; max-height: none; }
  .admin-action-form .form-row { grid-template-columns: 1fr; }
  .admin-search-form .form-group { flex-direction: column; align-items: stretch; }
  .admin-search-form input { width: 100%; }
  .online-widget { grid-template-columns: 1fr; }
  .online-total { border-right: none; border-bottom: 1px solid var(--border-soft); padding-right: 0; padding-bottom: 16px; }
  .online-meta { border-left: none; border-top: 1px solid var(--border-soft); padding-left: 0; padding-top: 16px; flex-direction: row; }
  .online-meta .meta-item { flex: 1; }
}
@media (max-width: 600px) {
  .register-card { padding: 28px 20px; border-radius: 16px; }
  .brand-text { font-size: 18px; }
  .stats-grid-panel, .admin-stats { grid-template-columns: 1fr 1fr; }
  .chars-grid { grid-template-columns: 1fr; }
  .settings-actions { flex-direction: column; }
  .settings-actions button, .settings-actions a { width: 100%; }
  .online-races { grid-template-columns: 1fr; }
  .online-big-number { font-size: 34px; }
  .inv-grid { gap: 4px; }
  .inv-slot { font-size: 10px; padding: 6px 2px 2px; }
  .inv-slot .inv-id { font-size: 11px; margin-top: 4px; }
  .inv-slot .inv-server { font-size: 8.5px; padding: 0 3px; }
  .inv-slot .inv-d, .inv-slot .inv-u { font-size: 9px; }
  .inv-slot .inv-num { font-size: 8px; top: 2px; left: 3px; }
  .inv-tab { padding: 6px 12px; font-size: 12px; }
  .pay-methods { grid-template-columns: 1fr; }
}